pdf.worker.js 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757
  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.270';
  23. PDFJS.build = '844bc64';
  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. // The global PDFJS object exposes the API
  67. // In production, it will be declared outside a global wrapper
  68. // In development, it will be declared here
  69. if (!globalScope.PDFJS) {
  70. globalScope.PDFJS = {};
  71. }
  72. globalScope.PDFJS.pdfBug = false;
  73. PDFJS.VERBOSITY_LEVELS = {
  74. errors: 0,
  75. warnings: 1,
  76. infos: 5
  77. };
  78. // All the possible operations for an operator list.
  79. var OPS = PDFJS.OPS = {
  80. // Intentionally start from 1 so it is easy to spot bad operators that will be
  81. // 0's.
  82. dependency: 1,
  83. setLineWidth: 2,
  84. setLineCap: 3,
  85. setLineJoin: 4,
  86. setMiterLimit: 5,
  87. setDash: 6,
  88. setRenderingIntent: 7,
  89. setFlatness: 8,
  90. setGState: 9,
  91. save: 10,
  92. restore: 11,
  93. transform: 12,
  94. moveTo: 13,
  95. lineTo: 14,
  96. curveTo: 15,
  97. curveTo2: 16,
  98. curveTo3: 17,
  99. closePath: 18,
  100. rectangle: 19,
  101. stroke: 20,
  102. closeStroke: 21,
  103. fill: 22,
  104. eoFill: 23,
  105. fillStroke: 24,
  106. eoFillStroke: 25,
  107. closeFillStroke: 26,
  108. closeEOFillStroke: 27,
  109. endPath: 28,
  110. clip: 29,
  111. eoClip: 30,
  112. beginText: 31,
  113. endText: 32,
  114. setCharSpacing: 33,
  115. setWordSpacing: 34,
  116. setHScale: 35,
  117. setLeading: 36,
  118. setFont: 37,
  119. setTextRenderingMode: 38,
  120. setTextRise: 39,
  121. moveText: 40,
  122. setLeadingMoveText: 41,
  123. setTextMatrix: 42,
  124. nextLine: 43,
  125. showText: 44,
  126. showSpacedText: 45,
  127. nextLineShowText: 46,
  128. nextLineSetSpacingShowText: 47,
  129. setCharWidth: 48,
  130. setCharWidthAndBounds: 49,
  131. setStrokeColorSpace: 50,
  132. setFillColorSpace: 51,
  133. setStrokeColor: 52,
  134. setStrokeColorN: 53,
  135. setFillColor: 54,
  136. setFillColorN: 55,
  137. setStrokeGray: 56,
  138. setFillGray: 57,
  139. setStrokeRGBColor: 58,
  140. setFillRGBColor: 59,
  141. setStrokeCMYKColor: 60,
  142. setFillCMYKColor: 61,
  143. shadingFill: 62,
  144. beginInlineImage: 63,
  145. beginImageData: 64,
  146. endInlineImage: 65,
  147. paintXObject: 66,
  148. markPoint: 67,
  149. markPointProps: 68,
  150. beginMarkedContent: 69,
  151. beginMarkedContentProps: 70,
  152. endMarkedContent: 71,
  153. beginCompat: 72,
  154. endCompat: 73,
  155. paintFormXObjectBegin: 74,
  156. paintFormXObjectEnd: 75,
  157. beginGroup: 76,
  158. endGroup: 77,
  159. beginAnnotations: 78,
  160. endAnnotations: 79,
  161. beginAnnotation: 80,
  162. endAnnotation: 81,
  163. paintJpegXObject: 82,
  164. paintImageMaskXObject: 83,
  165. paintImageMaskXObjectGroup: 84,
  166. paintImageXObject: 85,
  167. paintInlineImageXObject: 86,
  168. paintInlineImageXObjectGroup: 87,
  169. paintImageXObjectRepeat: 88,
  170. paintImageMaskXObjectRepeat: 89,
  171. paintSolidColorImageMask: 90,
  172. constructPath: 91
  173. };
  174. // A notice for devs. These are good for things that are helpful to devs, such
  175. // as warning that Workers were disabled, which is important to devs but not
  176. // end users.
  177. function info(msg) {
  178. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.infos) {
  179. console.log('Info: ' + msg);
  180. }
  181. }
  182. // Non-fatal warnings.
  183. function warn(msg) {
  184. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.warnings) {
  185. console.log('Warning: ' + msg);
  186. }
  187. }
  188. // Fatal errors that should trigger the fallback UI and halt execution by
  189. // throwing an exception.
  190. function error(msg) {
  191. // If multiple arguments were passed, pass them all to the log function.
  192. if (arguments.length > 1) {
  193. var logArguments = ['Error:'];
  194. logArguments.push.apply(logArguments, arguments);
  195. console.log.apply(console, logArguments);
  196. // Join the arguments into a single string for the lines below.
  197. msg = [].join.call(arguments, ' ');
  198. } else {
  199. console.log('Error: ' + msg);
  200. }
  201. console.log(backtrace());
  202. UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
  203. throw new Error(msg);
  204. }
  205. function backtrace() {
  206. try {
  207. throw new Error();
  208. } catch (e) {
  209. return e.stack ? e.stack.split('\n').slice(2).join('\n') : '';
  210. }
  211. }
  212. function assert(cond, msg) {
  213. if (!cond) {
  214. error(msg);
  215. }
  216. }
  217. var UNSUPPORTED_FEATURES = PDFJS.UNSUPPORTED_FEATURES = {
  218. unknown: 'unknown',
  219. forms: 'forms',
  220. javaScript: 'javaScript',
  221. smask: 'smask',
  222. shadingPattern: 'shadingPattern',
  223. font: 'font'
  224. };
  225. var UnsupportedManager = PDFJS.UnsupportedManager =
  226. (function UnsupportedManagerClosure() {
  227. var listeners = [];
  228. return {
  229. listen: function (cb) {
  230. listeners.push(cb);
  231. },
  232. notify: function (featureId) {
  233. warn('Unsupported feature "' + featureId + '"');
  234. for (var i = 0, ii = listeners.length; i < ii; i++) {
  235. listeners[i](featureId);
  236. }
  237. }
  238. };
  239. })();
  240. // Combines two URLs. The baseUrl shall be absolute URL. If the url is an
  241. // absolute URL, it will be returned as is.
  242. function combineUrl(baseUrl, url) {
  243. if (!url) {
  244. return baseUrl;
  245. }
  246. if (/^[a-z][a-z0-9+\-.]*:/i.test(url)) {
  247. return url;
  248. }
  249. var i;
  250. if (url.charAt(0) == '/') {
  251. // absolute path
  252. i = baseUrl.indexOf('://');
  253. if (url.charAt(1) === '/') {
  254. ++i;
  255. } else {
  256. i = baseUrl.indexOf('/', i + 3);
  257. }
  258. return baseUrl.substring(0, i) + url;
  259. } else {
  260. // relative path
  261. var pathLength = baseUrl.length;
  262. i = baseUrl.lastIndexOf('#');
  263. pathLength = i >= 0 ? i : pathLength;
  264. i = baseUrl.lastIndexOf('?', pathLength);
  265. pathLength = i >= 0 ? i : pathLength;
  266. var prefixLength = baseUrl.lastIndexOf('/', pathLength);
  267. return baseUrl.substring(0, prefixLength + 1) + url;
  268. }
  269. }
  270. // Validates if URL is safe and allowed, e.g. to avoid XSS.
  271. function isValidUrl(url, allowRelative) {
  272. if (!url) {
  273. return false;
  274. }
  275. // RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1)
  276. // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  277. var protocol = /^[a-z][a-z0-9+\-.]*(?=:)/i.exec(url);
  278. if (!protocol) {
  279. return allowRelative;
  280. }
  281. protocol = protocol[0].toLowerCase();
  282. switch (protocol) {
  283. case 'http':
  284. case 'https':
  285. case 'ftp':
  286. case 'mailto':
  287. return true;
  288. default:
  289. return false;
  290. }
  291. }
  292. PDFJS.isValidUrl = isValidUrl;
  293. function shadow(obj, prop, value) {
  294. Object.defineProperty(obj, prop, { value: value,
  295. enumerable: true,
  296. configurable: true,
  297. writable: false });
  298. return value;
  299. }
  300. var PasswordResponses = PDFJS.PasswordResponses = {
  301. NEED_PASSWORD: 1,
  302. INCORRECT_PASSWORD: 2
  303. };
  304. var PasswordException = (function PasswordExceptionClosure() {
  305. function PasswordException(msg, code) {
  306. this.name = 'PasswordException';
  307. this.message = msg;
  308. this.code = code;
  309. }
  310. PasswordException.prototype = new Error();
  311. PasswordException.constructor = PasswordException;
  312. return PasswordException;
  313. })();
  314. var UnknownErrorException = (function UnknownErrorExceptionClosure() {
  315. function UnknownErrorException(msg, details) {
  316. this.name = 'UnknownErrorException';
  317. this.message = msg;
  318. this.details = details;
  319. }
  320. UnknownErrorException.prototype = new Error();
  321. UnknownErrorException.constructor = UnknownErrorException;
  322. return UnknownErrorException;
  323. })();
  324. var InvalidPDFException = (function InvalidPDFExceptionClosure() {
  325. function InvalidPDFException(msg) {
  326. this.name = 'InvalidPDFException';
  327. this.message = msg;
  328. }
  329. InvalidPDFException.prototype = new Error();
  330. InvalidPDFException.constructor = InvalidPDFException;
  331. return InvalidPDFException;
  332. })();
  333. var MissingPDFException = (function MissingPDFExceptionClosure() {
  334. function MissingPDFException(msg) {
  335. this.name = 'MissingPDFException';
  336. this.message = msg;
  337. }
  338. MissingPDFException.prototype = new Error();
  339. MissingPDFException.constructor = MissingPDFException;
  340. return MissingPDFException;
  341. })();
  342. var NotImplementedException = (function NotImplementedExceptionClosure() {
  343. function NotImplementedException(msg) {
  344. this.message = msg;
  345. }
  346. NotImplementedException.prototype = new Error();
  347. NotImplementedException.prototype.name = 'NotImplementedException';
  348. NotImplementedException.constructor = NotImplementedException;
  349. return NotImplementedException;
  350. })();
  351. var MissingDataException = (function MissingDataExceptionClosure() {
  352. function MissingDataException(begin, end) {
  353. this.begin = begin;
  354. this.end = end;
  355. this.message = 'Missing data [' + begin + ', ' + end + ')';
  356. }
  357. MissingDataException.prototype = new Error();
  358. MissingDataException.prototype.name = 'MissingDataException';
  359. MissingDataException.constructor = MissingDataException;
  360. return MissingDataException;
  361. })();
  362. var XRefParseException = (function XRefParseExceptionClosure() {
  363. function XRefParseException(msg) {
  364. this.message = msg;
  365. }
  366. XRefParseException.prototype = new Error();
  367. XRefParseException.prototype.name = 'XRefParseException';
  368. XRefParseException.constructor = XRefParseException;
  369. return XRefParseException;
  370. })();
  371. function bytesToString(bytes) {
  372. var length = bytes.length;
  373. var MAX_ARGUMENT_COUNT = 8192;
  374. if (length < MAX_ARGUMENT_COUNT) {
  375. return String.fromCharCode.apply(null, bytes);
  376. }
  377. var strBuf = [];
  378. for (var i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
  379. var chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
  380. var chunk = bytes.subarray(i, chunkEnd);
  381. strBuf.push(String.fromCharCode.apply(null, chunk));
  382. }
  383. return strBuf.join('');
  384. }
  385. function stringToArray(str) {
  386. var length = str.length;
  387. var array = [];
  388. for (var i = 0; i < length; ++i) {
  389. array[i] = str.charCodeAt(i);
  390. }
  391. return array;
  392. }
  393. function stringToBytes(str) {
  394. var length = str.length;
  395. var bytes = new Uint8Array(length);
  396. for (var i = 0; i < length; ++i) {
  397. bytes[i] = str.charCodeAt(i) & 0xFF;
  398. }
  399. return bytes;
  400. }
  401. function string32(value) {
  402. return String.fromCharCode((value >> 24) & 0xff, (value >> 16) & 0xff,
  403. (value >> 8) & 0xff, value & 0xff);
  404. }
  405. function log2(x) {
  406. var n = 1, i = 0;
  407. while (x > n) {
  408. n <<= 1;
  409. i++;
  410. }
  411. return i;
  412. }
  413. function readInt8(data, start) {
  414. return (data[start] << 24) >> 24;
  415. }
  416. function readUint16(data, offset) {
  417. return (data[offset] << 8) | data[offset + 1];
  418. }
  419. function readUint32(data, offset) {
  420. return ((data[offset] << 24) | (data[offset + 1] << 16) |
  421. (data[offset + 2] << 8) | data[offset + 3]) >>> 0;
  422. }
  423. // Lazy test the endianness of the platform
  424. // NOTE: This will be 'true' for simulated TypedArrays
  425. function isLittleEndian() {
  426. var buffer8 = new Uint8Array(2);
  427. buffer8[0] = 1;
  428. var buffer16 = new Uint16Array(buffer8.buffer);
  429. return (buffer16[0] === 1);
  430. }
  431. Object.defineProperty(PDFJS, 'isLittleEndian', {
  432. configurable: true,
  433. get: function PDFJS_isLittleEndian() {
  434. return shadow(PDFJS, 'isLittleEndian', isLittleEndian());
  435. }
  436. });
  437. // Lazy test if the userAgant support CanvasTypedArrays
  438. function hasCanvasTypedArrays() {
  439. var canvas = document.createElement('canvas');
  440. canvas.width = canvas.height = 1;
  441. var ctx = canvas.getContext('2d');
  442. var imageData = ctx.createImageData(1, 1);
  443. return (typeof imageData.data.buffer !== 'undefined');
  444. }
  445. Object.defineProperty(PDFJS, 'hasCanvasTypedArrays', {
  446. configurable: true,
  447. get: function PDFJS_hasCanvasTypedArrays() {
  448. return shadow(PDFJS, 'hasCanvasTypedArrays', hasCanvasTypedArrays());
  449. }
  450. });
  451. var Uint32ArrayView = (function Uint32ArrayViewClosure() {
  452. function Uint32ArrayView(buffer, length) {
  453. this.buffer = buffer;
  454. this.byteLength = buffer.length;
  455. this.length = length === undefined ? (this.byteLength >> 2) : length;
  456. ensureUint32ArrayViewProps(this.length);
  457. }
  458. Uint32ArrayView.prototype = Object.create(null);
  459. var uint32ArrayViewSetters = 0;
  460. function createUint32ArrayProp(index) {
  461. return {
  462. get: function () {
  463. var buffer = this.buffer, offset = index << 2;
  464. return (buffer[offset] | (buffer[offset + 1] << 8) |
  465. (buffer[offset + 2] << 16) | (buffer[offset + 3] << 24)) >>> 0;
  466. },
  467. set: function (value) {
  468. var buffer = this.buffer, offset = index << 2;
  469. buffer[offset] = value & 255;
  470. buffer[offset + 1] = (value >> 8) & 255;
  471. buffer[offset + 2] = (value >> 16) & 255;
  472. buffer[offset + 3] = (value >>> 24) & 255;
  473. }
  474. };
  475. }
  476. function ensureUint32ArrayViewProps(length) {
  477. while (uint32ArrayViewSetters < length) {
  478. Object.defineProperty(Uint32ArrayView.prototype,
  479. uint32ArrayViewSetters,
  480. createUint32ArrayProp(uint32ArrayViewSetters));
  481. uint32ArrayViewSetters++;
  482. }
  483. }
  484. return Uint32ArrayView;
  485. })();
  486. var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
  487. var Util = PDFJS.Util = (function UtilClosure() {
  488. function Util() {}
  489. Util.makeCssRgb = function Util_makeCssRgb(rgb) {
  490. return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
  491. };
  492. // Concatenates two transformation matrices together and returns the result.
  493. Util.transform = function Util_transform(m1, m2) {
  494. return [
  495. m1[0] * m2[0] + m1[2] * m2[1],
  496. m1[1] * m2[0] + m1[3] * m2[1],
  497. m1[0] * m2[2] + m1[2] * m2[3],
  498. m1[1] * m2[2] + m1[3] * m2[3],
  499. m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
  500. m1[1] * m2[4] + m1[3] * m2[5] + m1[5]
  501. ];
  502. };
  503. // For 2d affine transforms
  504. Util.applyTransform = function Util_applyTransform(p, m) {
  505. var xt = p[0] * m[0] + p[1] * m[2] + m[4];
  506. var yt = p[0] * m[1] + p[1] * m[3] + m[5];
  507. return [xt, yt];
  508. };
  509. Util.applyInverseTransform = function Util_applyInverseTransform(p, m) {
  510. var d = m[0] * m[3] - m[1] * m[2];
  511. var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
  512. var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
  513. return [xt, yt];
  514. };
  515. // Applies the transform to the rectangle and finds the minimum axially
  516. // aligned bounding box.
  517. Util.getAxialAlignedBoundingBox =
  518. function Util_getAxialAlignedBoundingBox(r, m) {
  519. var p1 = Util.applyTransform(r, m);
  520. var p2 = Util.applyTransform(r.slice(2, 4), m);
  521. var p3 = Util.applyTransform([r[0], r[3]], m);
  522. var p4 = Util.applyTransform([r[2], r[1]], m);
  523. return [
  524. Math.min(p1[0], p2[0], p3[0], p4[0]),
  525. Math.min(p1[1], p2[1], p3[1], p4[1]),
  526. Math.max(p1[0], p2[0], p3[0], p4[0]),
  527. Math.max(p1[1], p2[1], p3[1], p4[1])
  528. ];
  529. };
  530. Util.inverseTransform = function Util_inverseTransform(m) {
  531. var d = m[0] * m[3] - m[1] * m[2];
  532. return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d,
  533. (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  534. };
  535. // Apply a generic 3d matrix M on a 3-vector v:
  536. // | a b c | | X |
  537. // | d e f | x | Y |
  538. // | g h i | | Z |
  539. // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i],
  540. // with v as [X,Y,Z]
  541. Util.apply3dTransform = function Util_apply3dTransform(m, v) {
  542. return [
  543. m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
  544. m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
  545. m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
  546. ];
  547. };
  548. // This calculation uses Singular Value Decomposition.
  549. // The SVD can be represented with formula A = USV. We are interested in the
  550. // matrix S here because it represents the scale values.
  551. Util.singularValueDecompose2dScale =
  552. function Util_singularValueDecompose2dScale(m) {
  553. var transpose = [m[0], m[2], m[1], m[3]];
  554. // Multiply matrix m with its transpose.
  555. var a = m[0] * transpose[0] + m[1] * transpose[2];
  556. var b = m[0] * transpose[1] + m[1] * transpose[3];
  557. var c = m[2] * transpose[0] + m[3] * transpose[2];
  558. var d = m[2] * transpose[1] + m[3] * transpose[3];
  559. // Solve the second degree polynomial to get roots.
  560. var first = (a + d) / 2;
  561. var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
  562. var sx = first + second || 1;
  563. var sy = first - second || 1;
  564. // Scale values are the square roots of the eigenvalues.
  565. return [Math.sqrt(sx), Math.sqrt(sy)];
  566. };
  567. // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
  568. // For coordinate systems whose origin lies in the bottom-left, this
  569. // means normalization to (BL,TR) ordering. For systems with origin in the
  570. // top-left, this means (TL,BR) ordering.
  571. Util.normalizeRect = function Util_normalizeRect(rect) {
  572. var r = rect.slice(0); // clone rect
  573. if (rect[0] > rect[2]) {
  574. r[0] = rect[2];
  575. r[2] = rect[0];
  576. }
  577. if (rect[1] > rect[3]) {
  578. r[1] = rect[3];
  579. r[3] = rect[1];
  580. }
  581. return r;
  582. };
  583. // Returns a rectangle [x1, y1, x2, y2] corresponding to the
  584. // intersection of rect1 and rect2. If no intersection, returns 'false'
  585. // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
  586. Util.intersect = function Util_intersect(rect1, rect2) {
  587. function compare(a, b) {
  588. return a - b;
  589. }
  590. // Order points along the axes
  591. var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare),
  592. orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare),
  593. result = [];
  594. rect1 = Util.normalizeRect(rect1);
  595. rect2 = Util.normalizeRect(rect2);
  596. // X: first and second points belong to different rectangles?
  597. if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
  598. (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
  599. // Intersection must be between second and third points
  600. result[0] = orderedX[1];
  601. result[2] = orderedX[2];
  602. } else {
  603. return false;
  604. }
  605. // Y: first and second points belong to different rectangles?
  606. if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
  607. (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
  608. // Intersection must be between second and third points
  609. result[1] = orderedY[1];
  610. result[3] = orderedY[2];
  611. } else {
  612. return false;
  613. }
  614. return result;
  615. };
  616. Util.sign = function Util_sign(num) {
  617. return num < 0 ? -1 : 1;
  618. };
  619. // TODO(mack): Rename appendToArray
  620. Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
  621. Array.prototype.push.apply(arr1, arr2);
  622. };
  623. Util.prependToArray = function concatenateToArray(arr1, arr2) {
  624. Array.prototype.unshift.apply(arr1, arr2);
  625. };
  626. Util.extendObj = function extendObj(obj1, obj2) {
  627. for (var key in obj2) {
  628. obj1[key] = obj2[key];
  629. }
  630. };
  631. Util.getInheritableProperty = function Util_getInheritableProperty(dict,
  632. name) {
  633. while (dict && !dict.has(name)) {
  634. dict = dict.get('Parent');
  635. }
  636. if (!dict) {
  637. return null;
  638. }
  639. return dict.get(name);
  640. };
  641. Util.inherit = function Util_inherit(sub, base, prototype) {
  642. sub.prototype = Object.create(base.prototype);
  643. sub.prototype.constructor = sub;
  644. for (var prop in prototype) {
  645. sub.prototype[prop] = prototype[prop];
  646. }
  647. };
  648. Util.loadScript = function Util_loadScript(src, callback) {
  649. var script = document.createElement('script');
  650. var loaded = false;
  651. script.setAttribute('src', src);
  652. if (callback) {
  653. script.onload = function() {
  654. if (!loaded) {
  655. callback();
  656. }
  657. loaded = true;
  658. };
  659. }
  660. document.getElementsByTagName('head')[0].appendChild(script);
  661. };
  662. return Util;
  663. })();
  664. /**
  665. * PDF page viewport created based on scale, rotation and offset.
  666. * @class
  667. * @alias PDFJS.PageViewport
  668. */
  669. var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
  670. /**
  671. * @constructor
  672. * @private
  673. * @param viewBox {Array} xMin, yMin, xMax and yMax coordinates.
  674. * @param scale {number} scale of the viewport.
  675. * @param rotation {number} rotations of the viewport in degrees.
  676. * @param offsetX {number} offset X
  677. * @param offsetY {number} offset Y
  678. * @param dontFlip {boolean} if true, axis Y will not be flipped.
  679. */
  680. function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
  681. this.viewBox = viewBox;
  682. this.scale = scale;
  683. this.rotation = rotation;
  684. this.offsetX = offsetX;
  685. this.offsetY = offsetY;
  686. // creating transform to convert pdf coordinate system to the normal
  687. // canvas like coordinates taking in account scale and rotation
  688. var centerX = (viewBox[2] + viewBox[0]) / 2;
  689. var centerY = (viewBox[3] + viewBox[1]) / 2;
  690. var rotateA, rotateB, rotateC, rotateD;
  691. rotation = rotation % 360;
  692. rotation = rotation < 0 ? rotation + 360 : rotation;
  693. switch (rotation) {
  694. case 180:
  695. rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
  696. break;
  697. case 90:
  698. rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0;
  699. break;
  700. case 270:
  701. rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0;
  702. break;
  703. //case 0:
  704. default:
  705. rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1;
  706. break;
  707. }
  708. if (dontFlip) {
  709. rotateC = -rotateC; rotateD = -rotateD;
  710. }
  711. var offsetCanvasX, offsetCanvasY;
  712. var width, height;
  713. if (rotateA === 0) {
  714. offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
  715. offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
  716. width = Math.abs(viewBox[3] - viewBox[1]) * scale;
  717. height = Math.abs(viewBox[2] - viewBox[0]) * scale;
  718. } else {
  719. offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
  720. offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
  721. width = Math.abs(viewBox[2] - viewBox[0]) * scale;
  722. height = Math.abs(viewBox[3] - viewBox[1]) * scale;
  723. }
  724. // creating transform for the following operations:
  725. // translate(-centerX, -centerY), rotate and flip vertically,
  726. // scale, and translate(offsetCanvasX, offsetCanvasY)
  727. this.transform = [
  728. rotateA * scale,
  729. rotateB * scale,
  730. rotateC * scale,
  731. rotateD * scale,
  732. offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY,
  733. offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY
  734. ];
  735. this.width = width;
  736. this.height = height;
  737. this.fontScale = scale;
  738. }
  739. PageViewport.prototype = /** @lends PDFJS.PageViewport.prototype */ {
  740. /**
  741. * Clones viewport with additional properties.
  742. * @param args {Object} (optional) If specified, may contain the 'scale' or
  743. * 'rotation' properties to override the corresponding properties in
  744. * the cloned viewport.
  745. * @returns {PDFJS.PageViewport} Cloned viewport.
  746. */
  747. clone: function PageViewPort_clone(args) {
  748. args = args || {};
  749. var scale = 'scale' in args ? args.scale : this.scale;
  750. var rotation = 'rotation' in args ? args.rotation : this.rotation;
  751. return new PageViewport(this.viewBox.slice(), scale, rotation,
  752. this.offsetX, this.offsetY, args.dontFlip);
  753. },
  754. /**
  755. * Converts PDF point to the viewport coordinates. For examples, useful for
  756. * converting PDF location into canvas pixel coordinates.
  757. * @param x {number} X coordinate.
  758. * @param y {number} Y coordinate.
  759. * @returns {Object} Object that contains 'x' and 'y' properties of the
  760. * point in the viewport coordinate space.
  761. * @see {@link convertToPdfPoint}
  762. * @see {@link convertToViewportRectangle}
  763. */
  764. convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) {
  765. return Util.applyTransform([x, y], this.transform);
  766. },
  767. /**
  768. * Converts PDF rectangle to the viewport coordinates.
  769. * @param rect {Array} xMin, yMin, xMax and yMax coordinates.
  770. * @returns {Array} Contains corresponding coordinates of the rectangle
  771. * in the viewport coordinate space.
  772. * @see {@link convertToViewportPoint}
  773. */
  774. convertToViewportRectangle:
  775. function PageViewport_convertToViewportRectangle(rect) {
  776. var tl = Util.applyTransform([rect[0], rect[1]], this.transform);
  777. var br = Util.applyTransform([rect[2], rect[3]], this.transform);
  778. return [tl[0], tl[1], br[0], br[1]];
  779. },
  780. /**
  781. * Converts viewport coordinates to the PDF location. For examples, useful
  782. * for converting canvas pixel location into PDF one.
  783. * @param x {number} X coordinate.
  784. * @param y {number} Y coordinate.
  785. * @returns {Object} Object that contains 'x' and 'y' properties of the
  786. * point in the PDF coordinate space.
  787. * @see {@link convertToViewportPoint}
  788. */
  789. convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) {
  790. return Util.applyInverseTransform([x, y], this.transform);
  791. }
  792. };
  793. return PageViewport;
  794. })();
  795. var PDFStringTranslateTable = [
  796. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  797. 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0,
  798. 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,
  799. 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,
  800. 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,
  801. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014,
  802. 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C,
  803. 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160,
  804. 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC
  805. ];
  806. function stringToPDFString(str) {
  807. var i, n = str.length, strBuf = [];
  808. if (str[0] === '\xFE' && str[1] === '\xFF') {
  809. // UTF16BE BOM
  810. for (i = 2; i < n; i += 2) {
  811. strBuf.push(String.fromCharCode(
  812. (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1)));
  813. }
  814. } else {
  815. for (i = 0; i < n; ++i) {
  816. var code = PDFStringTranslateTable[str.charCodeAt(i)];
  817. strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
  818. }
  819. }
  820. return strBuf.join('');
  821. }
  822. function stringToUTF8String(str) {
  823. return decodeURIComponent(escape(str));
  824. }
  825. function isEmptyObj(obj) {
  826. for (var key in obj) {
  827. return false;
  828. }
  829. return true;
  830. }
  831. function isBool(v) {
  832. return typeof v == 'boolean';
  833. }
  834. function isInt(v) {
  835. return typeof v == 'number' && ((v | 0) == v);
  836. }
  837. function isNum(v) {
  838. return typeof v == 'number';
  839. }
  840. function isString(v) {
  841. return typeof v == 'string';
  842. }
  843. function isNull(v) {
  844. return v === null;
  845. }
  846. function isName(v) {
  847. return v instanceof Name;
  848. }
  849. function isCmd(v, cmd) {
  850. return v instanceof Cmd && (!cmd || v.cmd == cmd);
  851. }
  852. function isDict(v, type) {
  853. if (!(v instanceof Dict)) {
  854. return false;
  855. }
  856. if (!type) {
  857. return true;
  858. }
  859. var dictType = v.get('Type');
  860. return isName(dictType) && dictType.name == type;
  861. }
  862. function isArray(v) {
  863. return v instanceof Array;
  864. }
  865. function isStream(v) {
  866. return typeof v == 'object' && v !== null && v !== undefined &&
  867. ('getBytes' in v);
  868. }
  869. function isArrayBuffer(v) {
  870. return typeof v == 'object' && v !== null && v !== undefined &&
  871. ('byteLength' in v);
  872. }
  873. function isRef(v) {
  874. return v instanceof Ref;
  875. }
  876. /**
  877. * Promise Capability object.
  878. *
  879. * @typedef {Object} PromiseCapability
  880. * @property {Promise} promise - A promise object.
  881. * @property {function} resolve - Fullfills the promise.
  882. * @property {function} reject - Rejects the promise.
  883. */
  884. /**
  885. * Creates a promise capability object.
  886. * @alias PDFJS.createPromiseCapability
  887. *
  888. * @return {PromiseCapability} A capability object contains:
  889. * - a Promise, resolve and reject methods.
  890. */
  891. function createPromiseCapability() {
  892. var capability = {};
  893. capability.promise = new Promise(function (resolve, reject) {
  894. capability.resolve = resolve;
  895. capability.reject = reject;
  896. });
  897. return capability;
  898. }
  899. PDFJS.createPromiseCapability = createPromiseCapability;
  900. /**
  901. * Polyfill for Promises:
  902. * The following promise implementation tries to generally implement the
  903. * Promise/A+ spec. Some notable differences from other promise libaries are:
  904. * - There currently isn't a seperate deferred and promise object.
  905. * - Unhandled rejections eventually show an error if they aren't handled.
  906. *
  907. * Based off of the work in:
  908. * https://bugzilla.mozilla.org/show_bug.cgi?id=810490
  909. */
  910. (function PromiseClosure() {
  911. if (globalScope.Promise) {
  912. // Promises existing in the DOM/Worker, checking presence of all/resolve
  913. if (typeof globalScope.Promise.all !== 'function') {
  914. globalScope.Promise.all = function (iterable) {
  915. var count = 0, results = [], resolve, reject;
  916. var promise = new globalScope.Promise(function (resolve_, reject_) {
  917. resolve = resolve_;
  918. reject = reject_;
  919. });
  920. iterable.forEach(function (p, i) {
  921. count++;
  922. p.then(function (result) {
  923. results[i] = result;
  924. count--;
  925. if (count === 0) {
  926. resolve(results);
  927. }
  928. }, reject);
  929. });
  930. if (count === 0) {
  931. resolve(results);
  932. }
  933. return promise;
  934. };
  935. }
  936. if (typeof globalScope.Promise.resolve !== 'function') {
  937. globalScope.Promise.resolve = function (value) {
  938. return new globalScope.Promise(function (resolve) { resolve(value); });
  939. };
  940. }
  941. if (typeof globalScope.Promise.reject !== 'function') {
  942. globalScope.Promise.reject = function (reason) {
  943. return new globalScope.Promise(function (resolve, reject) {
  944. reject(reason);
  945. });
  946. };
  947. }
  948. if (typeof globalScope.Promise.prototype.catch !== 'function') {
  949. globalScope.Promise.prototype.catch = function (onReject) {
  950. return globalScope.Promise.prototype.then(undefined, onReject);
  951. };
  952. }
  953. return;
  954. }
  955. var STATUS_PENDING = 0;
  956. var STATUS_RESOLVED = 1;
  957. var STATUS_REJECTED = 2;
  958. // In an attempt to avoid silent exceptions, unhandled rejections are
  959. // tracked and if they aren't handled in a certain amount of time an
  960. // error is logged.
  961. var REJECTION_TIMEOUT = 500;
  962. var HandlerManager = {
  963. handlers: [],
  964. running: false,
  965. unhandledRejections: [],
  966. pendingRejectionCheck: false,
  967. scheduleHandlers: function scheduleHandlers(promise) {
  968. if (promise._status == STATUS_PENDING) {
  969. return;
  970. }
  971. this.handlers = this.handlers.concat(promise._handlers);
  972. promise._handlers = [];
  973. if (this.running) {
  974. return;
  975. }
  976. this.running = true;
  977. setTimeout(this.runHandlers.bind(this), 0);
  978. },
  979. runHandlers: function runHandlers() {
  980. var RUN_TIMEOUT = 1; // ms
  981. var timeoutAt = Date.now() + RUN_TIMEOUT;
  982. while (this.handlers.length > 0) {
  983. var handler = this.handlers.shift();
  984. var nextStatus = handler.thisPromise._status;
  985. var nextValue = handler.thisPromise._value;
  986. try {
  987. if (nextStatus === STATUS_RESOLVED) {
  988. if (typeof(handler.onResolve) == 'function') {
  989. nextValue = handler.onResolve(nextValue);
  990. }
  991. } else if (typeof(handler.onReject) === 'function') {
  992. nextValue = handler.onReject(nextValue);
  993. nextStatus = STATUS_RESOLVED;
  994. if (handler.thisPromise._unhandledRejection) {
  995. this.removeUnhandeledRejection(handler.thisPromise);
  996. }
  997. }
  998. } catch (ex) {
  999. nextStatus = STATUS_REJECTED;
  1000. nextValue = ex;
  1001. }
  1002. handler.nextPromise._updateStatus(nextStatus, nextValue);
  1003. if (Date.now() >= timeoutAt) {
  1004. break;
  1005. }
  1006. }
  1007. if (this.handlers.length > 0) {
  1008. setTimeout(this.runHandlers.bind(this), 0);
  1009. return;
  1010. }
  1011. this.running = false;
  1012. },
  1013. addUnhandledRejection: function addUnhandledRejection(promise) {
  1014. this.unhandledRejections.push({
  1015. promise: promise,
  1016. time: Date.now()
  1017. });
  1018. this.scheduleRejectionCheck();
  1019. },
  1020. removeUnhandeledRejection: function removeUnhandeledRejection(promise) {
  1021. promise._unhandledRejection = false;
  1022. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1023. if (this.unhandledRejections[i].promise === promise) {
  1024. this.unhandledRejections.splice(i);
  1025. i--;
  1026. }
  1027. }
  1028. },
  1029. scheduleRejectionCheck: function scheduleRejectionCheck() {
  1030. if (this.pendingRejectionCheck) {
  1031. return;
  1032. }
  1033. this.pendingRejectionCheck = true;
  1034. setTimeout(function rejectionCheck() {
  1035. this.pendingRejectionCheck = false;
  1036. var now = Date.now();
  1037. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1038. if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
  1039. var unhandled = this.unhandledRejections[i].promise._value;
  1040. var msg = 'Unhandled rejection: ' + unhandled;
  1041. if (unhandled.stack) {
  1042. msg += '\n' + unhandled.stack;
  1043. }
  1044. warn(msg);
  1045. this.unhandledRejections.splice(i);
  1046. i--;
  1047. }
  1048. }
  1049. if (this.unhandledRejections.length) {
  1050. this.scheduleRejectionCheck();
  1051. }
  1052. }.bind(this), REJECTION_TIMEOUT);
  1053. }
  1054. };
  1055. function Promise(resolver) {
  1056. this._status = STATUS_PENDING;
  1057. this._handlers = [];
  1058. try {
  1059. resolver.call(this, this._resolve.bind(this), this._reject.bind(this));
  1060. } catch (e) {
  1061. this._reject(e);
  1062. }
  1063. }
  1064. /**
  1065. * Builds a promise that is resolved when all the passed in promises are
  1066. * resolved.
  1067. * @param {array} array of data and/or promises to wait for.
  1068. * @return {Promise} New dependant promise.
  1069. */
  1070. Promise.all = function Promise_all(promises) {
  1071. var resolveAll, rejectAll;
  1072. var deferred = new Promise(function (resolve, reject) {
  1073. resolveAll = resolve;
  1074. rejectAll = reject;
  1075. });
  1076. var unresolved = promises.length;
  1077. var results = [];
  1078. if (unresolved === 0) {
  1079. resolveAll(results);
  1080. return deferred;
  1081. }
  1082. function reject(reason) {
  1083. if (deferred._status === STATUS_REJECTED) {
  1084. return;
  1085. }
  1086. results = [];
  1087. rejectAll(reason);
  1088. }
  1089. for (var i = 0, ii = promises.length; i < ii; ++i) {
  1090. var promise = promises[i];
  1091. var resolve = (function(i) {
  1092. return function(value) {
  1093. if (deferred._status === STATUS_REJECTED) {
  1094. return;
  1095. }
  1096. results[i] = value;
  1097. unresolved--;
  1098. if (unresolved === 0) {
  1099. resolveAll(results);
  1100. }
  1101. };
  1102. })(i);
  1103. if (Promise.isPromise(promise)) {
  1104. promise.then(resolve, reject);
  1105. } else {
  1106. resolve(promise);
  1107. }
  1108. }
  1109. return deferred;
  1110. };
  1111. /**
  1112. * Checks if the value is likely a promise (has a 'then' function).
  1113. * @return {boolean} true if value is thenable
  1114. */
  1115. Promise.isPromise = function Promise_isPromise(value) {
  1116. return value && typeof value.then === 'function';
  1117. };
  1118. /**
  1119. * Creates resolved promise
  1120. * @param value resolve value
  1121. * @returns {Promise}
  1122. */
  1123. Promise.resolve = function Promise_resolve(value) {
  1124. return new Promise(function (resolve) { resolve(value); });
  1125. };
  1126. /**
  1127. * Creates rejected promise
  1128. * @param reason rejection value
  1129. * @returns {Promise}
  1130. */
  1131. Promise.reject = function Promise_reject(reason) {
  1132. return new Promise(function (resolve, reject) { reject(reason); });
  1133. };
  1134. Promise.prototype = {
  1135. _status: null,
  1136. _value: null,
  1137. _handlers: null,
  1138. _unhandledRejection: null,
  1139. _updateStatus: function Promise__updateStatus(status, value) {
  1140. if (this._status === STATUS_RESOLVED ||
  1141. this._status === STATUS_REJECTED) {
  1142. return;
  1143. }
  1144. if (status == STATUS_RESOLVED &&
  1145. Promise.isPromise(value)) {
  1146. value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
  1147. this._updateStatus.bind(this, STATUS_REJECTED));
  1148. return;
  1149. }
  1150. this._status = status;
  1151. this._value = value;
  1152. if (status === STATUS_REJECTED && this._handlers.length === 0) {
  1153. this._unhandledRejection = true;
  1154. HandlerManager.addUnhandledRejection(this);
  1155. }
  1156. HandlerManager.scheduleHandlers(this);
  1157. },
  1158. _resolve: function Promise_resolve(value) {
  1159. this._updateStatus(STATUS_RESOLVED, value);
  1160. },
  1161. _reject: function Promise_reject(reason) {
  1162. this._updateStatus(STATUS_REJECTED, reason);
  1163. },
  1164. then: function Promise_then(onResolve, onReject) {
  1165. var nextPromise = new Promise(function (resolve, reject) {
  1166. this.resolve = reject;
  1167. this.reject = reject;
  1168. });
  1169. this._handlers.push({
  1170. thisPromise: this,
  1171. onResolve: onResolve,
  1172. onReject: onReject,
  1173. nextPromise: nextPromise
  1174. });
  1175. HandlerManager.scheduleHandlers(this);
  1176. return nextPromise;
  1177. },
  1178. catch: function Promise_catch(onReject) {
  1179. return this.then(undefined, onReject);
  1180. }
  1181. };
  1182. globalScope.Promise = Promise;
  1183. })();
  1184. var StatTimer = (function StatTimerClosure() {
  1185. function rpad(str, pad, length) {
  1186. while (str.length < length) {
  1187. str += pad;
  1188. }
  1189. return str;
  1190. }
  1191. function StatTimer() {
  1192. this.started = {};
  1193. this.times = [];
  1194. this.enabled = true;
  1195. }
  1196. StatTimer.prototype = {
  1197. time: function StatTimer_time(name) {
  1198. if (!this.enabled) {
  1199. return;
  1200. }
  1201. if (name in this.started) {
  1202. warn('Timer is already running for ' + name);
  1203. }
  1204. this.started[name] = Date.now();
  1205. },
  1206. timeEnd: function StatTimer_timeEnd(name) {
  1207. if (!this.enabled) {
  1208. return;
  1209. }
  1210. if (!(name in this.started)) {
  1211. warn('Timer has not been started for ' + name);
  1212. }
  1213. this.times.push({
  1214. 'name': name,
  1215. 'start': this.started[name],
  1216. 'end': Date.now()
  1217. });
  1218. // Remove timer from started so it can be called again.
  1219. delete this.started[name];
  1220. },
  1221. toString: function StatTimer_toString() {
  1222. var i, ii;
  1223. var times = this.times;
  1224. var out = '';
  1225. // Find the longest name for padding purposes.
  1226. var longest = 0;
  1227. for (i = 0, ii = times.length; i < ii; ++i) {
  1228. var name = times[i]['name'];
  1229. if (name.length > longest) {
  1230. longest = name.length;
  1231. }
  1232. }
  1233. for (i = 0, ii = times.length; i < ii; ++i) {
  1234. var span = times[i];
  1235. var duration = span.end - span.start;
  1236. out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n';
  1237. }
  1238. return out;
  1239. }
  1240. };
  1241. return StatTimer;
  1242. })();
  1243. PDFJS.createBlob = function createBlob(data, contentType) {
  1244. if (typeof Blob !== 'undefined') {
  1245. return new Blob([data], { type: contentType });
  1246. }
  1247. // Blob builder is deprecated in FF14 and removed in FF18.
  1248. var bb = new MozBlobBuilder();
  1249. bb.append(data);
  1250. return bb.getBlob(contentType);
  1251. };
  1252. PDFJS.createObjectURL = (function createObjectURLClosure() {
  1253. // Blob/createObjectURL is not available, falling back to data schema.
  1254. var digits =
  1255. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1256. return function createObjectURL(data, contentType) {
  1257. if (!PDFJS.disableCreateObjectURL &&
  1258. typeof URL !== 'undefined' && URL.createObjectURL) {
  1259. var blob = PDFJS.createBlob(data, contentType);
  1260. return URL.createObjectURL(blob);
  1261. }
  1262. var buffer = 'data:' + contentType + ';base64,';
  1263. for (var i = 0, ii = data.length; i < ii; i += 3) {
  1264. var b1 = data[i] & 0xFF;
  1265. var b2 = data[i + 1] & 0xFF;
  1266. var b3 = data[i + 2] & 0xFF;
  1267. var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
  1268. var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
  1269. var d4 = i + 2 < ii ? (b3 & 0x3F) : 64;
  1270. buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
  1271. }
  1272. return buffer;
  1273. };
  1274. })();
  1275. function MessageHandler(name, comObj) {
  1276. this.name = name;
  1277. this.comObj = comObj;
  1278. this.callbackIndex = 1;
  1279. this.postMessageTransfers = true;
  1280. var callbacksCapabilities = this.callbacksCapabilities = {};
  1281. var ah = this.actionHandler = {};
  1282. ah['console_log'] = [function ahConsoleLog(data) {
  1283. console.log.apply(console, data);
  1284. }];
  1285. ah['console_error'] = [function ahConsoleError(data) {
  1286. console.error.apply(console, data);
  1287. }];
  1288. ah['_unsupported_feature'] = [function ah_unsupportedFeature(data) {
  1289. UnsupportedManager.notify(data);
  1290. }];
  1291. comObj.onmessage = function messageHandlerComObjOnMessage(event) {
  1292. var data = event.data;
  1293. if (data.isReply) {
  1294. var callbackId = data.callbackId;
  1295. if (data.callbackId in callbacksCapabilities) {
  1296. var callback = callbacksCapabilities[callbackId];
  1297. delete callbacksCapabilities[callbackId];
  1298. if ('error' in data) {
  1299. callback.reject(data.error);
  1300. } else {
  1301. callback.resolve(data.data);
  1302. }
  1303. } else {
  1304. error('Cannot resolve callback ' + callbackId);
  1305. }
  1306. } else if (data.action in ah) {
  1307. var action = ah[data.action];
  1308. if (data.callbackId) {
  1309. Promise.resolve().then(function () {
  1310. return action[0].call(action[1], data.data);
  1311. }).then(function (result) {
  1312. comObj.postMessage({
  1313. isReply: true,
  1314. callbackId: data.callbackId,
  1315. data: result
  1316. });
  1317. }, function (reason) {
  1318. comObj.postMessage({
  1319. isReply: true,
  1320. callbackId: data.callbackId,
  1321. error: reason
  1322. });
  1323. });
  1324. } else {
  1325. action[0].call(action[1], data.data);
  1326. }
  1327. } else {
  1328. error('Unknown action from worker: ' + data.action);
  1329. }
  1330. };
  1331. }
  1332. MessageHandler.prototype = {
  1333. on: function messageHandlerOn(actionName, handler, scope) {
  1334. var ah = this.actionHandler;
  1335. if (ah[actionName]) {
  1336. error('There is already an actionName called "' + actionName + '"');
  1337. }
  1338. ah[actionName] = [handler, scope];
  1339. },
  1340. /**
  1341. * Sends a message to the comObj to invoke the action with the supplied data.
  1342. * @param {String} actionName Action to call.
  1343. * @param {JSON} data JSON data to send.
  1344. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers
  1345. */
  1346. send: function messageHandlerSend(actionName, data, transfers) {
  1347. var message = {
  1348. action: actionName,
  1349. data: data
  1350. };
  1351. this.postMessage(message, transfers);
  1352. },
  1353. /**
  1354. * Sends a message to the comObj to invoke the action with the supplied data.
  1355. * Expects that other side will callback with the response.
  1356. * @param {String} actionName Action to call.
  1357. * @param {JSON} data JSON data to send.
  1358. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers.
  1359. * @returns {Promise} Promise to be resolved with response data.
  1360. */
  1361. sendWithPromise:
  1362. function messageHandlerSendWithPromise(actionName, data, transfers) {
  1363. var callbackId = this.callbackIndex++;
  1364. var message = {
  1365. action: actionName,
  1366. data: data,
  1367. callbackId: callbackId
  1368. };
  1369. var capability = createPromiseCapability();
  1370. this.callbacksCapabilities[callbackId] = capability;
  1371. try {
  1372. this.postMessage(message, transfers);
  1373. } catch (e) {
  1374. capability.reject(e);
  1375. }
  1376. return capability.promise;
  1377. },
  1378. /**
  1379. * Sends raw message to the comObj.
  1380. * @private
  1381. * @param message {Object} Raw message.
  1382. * @param transfers List of transfers/ArrayBuffers, or undefined.
  1383. */
  1384. postMessage: function (message, transfers) {
  1385. if (transfers && this.postMessageTransfers) {
  1386. this.comObj.postMessage(message, transfers);
  1387. } else {
  1388. this.comObj.postMessage(message);
  1389. }
  1390. }
  1391. };
  1392. function loadJpegStream(id, imageUrl, objs) {
  1393. var img = new Image();
  1394. img.onload = (function loadJpegStream_onloadClosure() {
  1395. objs.resolve(id, img);
  1396. });
  1397. img.src = imageUrl;
  1398. }
  1399. var DEFAULT_ICON_SIZE = 22; // px
  1400. var HIGHLIGHT_OFFSET = 4; // px
  1401. var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
  1402. var Annotation = (function AnnotationClosure() {
  1403. // 12.5.5: Algorithm: Appearance streams
  1404. function getTransformMatrix(rect, bbox, matrix) {
  1405. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  1406. var minX = bounds[0];
  1407. var minY = bounds[1];
  1408. var maxX = bounds[2];
  1409. var maxY = bounds[3];
  1410. if (minX === maxX || minY === maxY) {
  1411. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  1412. // just apply the transform for rect
  1413. return [1, 0, 0, 1, rect[0], rect[1]];
  1414. }
  1415. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  1416. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  1417. return [
  1418. xRatio,
  1419. 0,
  1420. 0,
  1421. yRatio,
  1422. rect[0] - minX * xRatio,
  1423. rect[1] - minY * yRatio
  1424. ];
  1425. }
  1426. function getDefaultAppearance(dict) {
  1427. var appearanceState = dict.get('AP');
  1428. if (!isDict(appearanceState)) {
  1429. return;
  1430. }
  1431. var appearance;
  1432. var appearances = appearanceState.get('N');
  1433. if (isDict(appearances)) {
  1434. var as = dict.get('AS');
  1435. if (as && appearances.has(as.name)) {
  1436. appearance = appearances.get(as.name);
  1437. }
  1438. } else {
  1439. appearance = appearances;
  1440. }
  1441. return appearance;
  1442. }
  1443. function Annotation(params) {
  1444. if (params.data) {
  1445. this.data = params.data;
  1446. return;
  1447. }
  1448. var dict = params.dict;
  1449. var data = this.data = {};
  1450. data.subtype = dict.get('Subtype').name;
  1451. var rect = dict.get('Rect') || [0, 0, 0, 0];
  1452. data.rect = Util.normalizeRect(rect);
  1453. data.annotationFlags = dict.get('F');
  1454. var color = dict.get('C');
  1455. if (isArray(color) && color.length === 3) {
  1456. // TODO(mack): currently only supporting rgb; need support different
  1457. // colorspaces
  1458. data.color = color;
  1459. } else {
  1460. data.color = [0, 0, 0];
  1461. }
  1462. // Some types of annotations have border style dict which has more
  1463. // info than the border array
  1464. if (dict.has('BS')) {
  1465. var borderStyle = dict.get('BS');
  1466. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  1467. } else {
  1468. var borderArray = dict.get('Border') || [0, 0, 1];
  1469. data.borderWidth = borderArray[2] || 0;
  1470. // TODO: implement proper support for annotations with line dash patterns.
  1471. var dashArray = borderArray[3];
  1472. if (data.borderWidth > 0 && dashArray) {
  1473. if (!isArray(dashArray)) {
  1474. // Ignore the border if dashArray is not actually an array,
  1475. // this is consistent with the behaviour in Adobe Reader.
  1476. data.borderWidth = 0;
  1477. } else {
  1478. var dashArrayLength = dashArray.length;
  1479. if (dashArrayLength > 0) {
  1480. // According to the PDF specification: the elements in a dashArray
  1481. // shall be numbers that are nonnegative and not all equal to zero.
  1482. var isInvalid = false;
  1483. var numPositive = 0;
  1484. for (var i = 0; i < dashArrayLength; i++) {
  1485. var validNumber = (+dashArray[i] >= 0);
  1486. if (!validNumber) {
  1487. isInvalid = true;
  1488. break;
  1489. } else if (dashArray[i] > 0) {
  1490. numPositive++;
  1491. }
  1492. }
  1493. if (isInvalid || numPositive === 0) {
  1494. data.borderWidth = 0;
  1495. }
  1496. }
  1497. }
  1498. }
  1499. }
  1500. this.appearance = getDefaultAppearance(dict);
  1501. data.hasAppearance = !!this.appearance;
  1502. data.id = params.ref.num;
  1503. }
  1504. Annotation.prototype = {
  1505. getData: function Annotation_getData() {
  1506. return this.data;
  1507. },
  1508. hasHtml: function Annotation_hasHtml() {
  1509. return false;
  1510. },
  1511. getHtmlElement: function Annotation_getHtmlElement(commonObjs) {
  1512. throw new NotImplementedException(
  1513. 'getHtmlElement() should be implemented in subclass');
  1514. },
  1515. // TODO(mack): Remove this, it's not really that helpful.
  1516. getEmptyContainer: function Annotation_getEmptyContainer(tagName, rect,
  1517. borderWidth) {
  1518. assert(!isWorker,
  1519. 'getEmptyContainer() should be called from main thread');
  1520. var bWidth = borderWidth || 0;
  1521. rect = rect || this.data.rect;
  1522. var element = document.createElement(tagName);
  1523. element.style.borderWidth = bWidth + 'px';
  1524. var width = rect[2] - rect[0] - 2 * bWidth;
  1525. var height = rect[3] - rect[1] - 2 * bWidth;
  1526. element.style.width = width + 'px';
  1527. element.style.height = height + 'px';
  1528. return element;
  1529. },
  1530. isInvisible: function Annotation_isInvisible() {
  1531. var data = this.data;
  1532. if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {
  1533. return false;
  1534. } else {
  1535. return !!(data &&
  1536. data.annotationFlags && // Default: not invisible
  1537. data.annotationFlags & 0x1); // Invisible
  1538. }
  1539. },
  1540. isViewable: function Annotation_isViewable() {
  1541. var data = this.data;
  1542. return !!(!this.isInvisible() &&
  1543. data &&
  1544. (!data.annotationFlags ||
  1545. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  1546. data.rect); // rectangle is nessessary
  1547. },
  1548. isPrintable: function Annotation_isPrintable() {
  1549. var data = this.data;
  1550. return !!(!this.isInvisible() &&
  1551. data &&
  1552. data.annotationFlags && // Default: not printable
  1553. data.annotationFlags & 0x4 && // Print
  1554. data.rect); // rectangle is nessessary
  1555. },
  1556. loadResources: function Annotation_loadResources(keys) {
  1557. return new Promise(function (resolve, reject) {
  1558. this.appearance.dict.getAsync('Resources').then(function (resources) {
  1559. if (!resources) {
  1560. resolve();
  1561. return;
  1562. }
  1563. var objectLoader = new ObjectLoader(resources.map,
  1564. keys,
  1565. resources.xref);
  1566. objectLoader.load().then(function() {
  1567. resolve(resources);
  1568. }, reject);
  1569. }, reject);
  1570. }.bind(this));
  1571. },
  1572. getOperatorList: function Annotation_getOperatorList(evaluator) {
  1573. if (!this.appearance) {
  1574. return Promise.resolve(new OperatorList());
  1575. }
  1576. var data = this.data;
  1577. var appearanceDict = this.appearance.dict;
  1578. var resourcesPromise = this.loadResources([
  1579. 'ExtGState',
  1580. 'ColorSpace',
  1581. 'Pattern',
  1582. 'Shading',
  1583. 'XObject',
  1584. 'Font'
  1585. // ProcSet
  1586. // Properties
  1587. ]);
  1588. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  1589. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  1590. var transform = getTransformMatrix(data.rect, bbox, matrix);
  1591. var self = this;
  1592. return resourcesPromise.then(function(resources) {
  1593. var opList = new OperatorList();
  1594. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  1595. return evaluator.getOperatorList(self.appearance, resources, opList).
  1596. then(function () {
  1597. opList.addOp(OPS.endAnnotation, []);
  1598. self.appearance.reset();
  1599. return opList;
  1600. });
  1601. });
  1602. }
  1603. };
  1604. Annotation.getConstructor =
  1605. function Annotation_getConstructor(subtype, fieldType) {
  1606. if (!subtype) {
  1607. return;
  1608. }
  1609. // TODO(mack): Implement FreeText annotations
  1610. if (subtype === 'Link') {
  1611. return LinkAnnotation;
  1612. } else if (subtype === 'Text') {
  1613. return TextAnnotation;
  1614. } else if (subtype === 'Widget') {
  1615. if (!fieldType) {
  1616. return;
  1617. }
  1618. if (fieldType === 'Tx') {
  1619. return TextWidgetAnnotation;
  1620. } else {
  1621. return WidgetAnnotation;
  1622. }
  1623. } else {
  1624. return Annotation;
  1625. }
  1626. };
  1627. // TODO(mack): Support loading annotation from data
  1628. Annotation.fromData = function Annotation_fromData(data) {
  1629. var subtype = data.subtype;
  1630. var fieldType = data.fieldType;
  1631. var Constructor = Annotation.getConstructor(subtype, fieldType);
  1632. if (Constructor) {
  1633. return new Constructor({ data: data });
  1634. }
  1635. };
  1636. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  1637. var dict = xref.fetchIfRef(ref);
  1638. if (!isDict(dict)) {
  1639. return;
  1640. }
  1641. var subtype = dict.get('Subtype');
  1642. subtype = isName(subtype) ? subtype.name : '';
  1643. if (!subtype) {
  1644. return;
  1645. }
  1646. var fieldType = Util.getInheritableProperty(dict, 'FT');
  1647. fieldType = isName(fieldType) ? fieldType.name : '';
  1648. var Constructor = Annotation.getConstructor(subtype, fieldType);
  1649. if (!Constructor) {
  1650. return;
  1651. }
  1652. var params = {
  1653. dict: dict,
  1654. ref: ref,
  1655. };
  1656. var annotation = new Constructor(params);
  1657. if (annotation.isViewable() || annotation.isPrintable()) {
  1658. return annotation;
  1659. } else {
  1660. warn('unimplemented annotation type: ' + subtype);
  1661. }
  1662. };
  1663. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  1664. annotations, opList, pdfManager, partialEvaluator, intent) {
  1665. function reject(e) {
  1666. annotationsReadyCapability.reject(e);
  1667. }
  1668. var annotationsReadyCapability = createPromiseCapability();
  1669. var annotationPromises = [];
  1670. for (var i = 0, n = annotations.length; i < n; ++i) {
  1671. if (intent === 'display' && annotations[i].isViewable() ||
  1672. intent === 'print' && annotations[i].isPrintable()) {
  1673. annotationPromises.push(
  1674. annotations[i].getOperatorList(partialEvaluator));
  1675. }
  1676. }
  1677. Promise.all(annotationPromises).then(function(datas) {
  1678. opList.addOp(OPS.beginAnnotations, []);
  1679. for (var i = 0, n = datas.length; i < n; ++i) {
  1680. var annotOpList = datas[i];
  1681. opList.addOpList(annotOpList);
  1682. }
  1683. opList.addOp(OPS.endAnnotations, []);
  1684. annotationsReadyCapability.resolve();
  1685. }, reject);
  1686. return annotationsReadyCapability.promise;
  1687. };
  1688. return Annotation;
  1689. })();
  1690. PDFJS.Annotation = Annotation;
  1691. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  1692. function WidgetAnnotation(params) {
  1693. Annotation.call(this, params);
  1694. if (params.data) {
  1695. return;
  1696. }
  1697. var dict = params.dict;
  1698. var data = this.data;
  1699. data.fieldValue = stringToPDFString(
  1700. Util.getInheritableProperty(dict, 'V') || '');
  1701. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  1702. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  1703. var fieldType = Util.getInheritableProperty(dict, 'FT');
  1704. data.fieldType = isName(fieldType) ? fieldType.name : '';
  1705. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  1706. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
  1707. // Building the full field name by collecting the field and
  1708. // its ancestors 'T' data and joining them using '.'.
  1709. var fieldName = [];
  1710. var namedItem = dict;
  1711. var ref = params.ref;
  1712. while (namedItem) {
  1713. var parent = namedItem.get('Parent');
  1714. var parentRef = namedItem.getRaw('Parent');
  1715. var name = namedItem.get('T');
  1716. if (name) {
  1717. fieldName.unshift(stringToPDFString(name));
  1718. } else {
  1719. // The field name is absent, that means more than one field
  1720. // with the same name may exist. Replacing the empty name
  1721. // with the '`' plus index in the parent's 'Kids' array.
  1722. // This is not in the PDF spec but necessary to id the
  1723. // the input controls.
  1724. var kids = parent.get('Kids');
  1725. var j, jj;
  1726. for (j = 0, jj = kids.length; j < jj; j++) {
  1727. var kidRef = kids[j];
  1728. if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
  1729. break;
  1730. }
  1731. }
  1732. fieldName.unshift('`' + j);
  1733. }
  1734. namedItem = parent;
  1735. ref = parentRef;
  1736. }
  1737. data.fullName = fieldName.join('.');
  1738. }
  1739. var parent = Annotation.prototype;
  1740. Util.inherit(WidgetAnnotation, Annotation, {
  1741. isViewable: function WidgetAnnotation_isViewable() {
  1742. if (this.data.fieldType === 'Sig') {
  1743. warn('unimplemented annotation type: Widget signature');
  1744. return false;
  1745. }
  1746. return parent.isViewable.call(this);
  1747. }
  1748. });
  1749. return WidgetAnnotation;
  1750. })();
  1751. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  1752. function TextWidgetAnnotation(params) {
  1753. WidgetAnnotation.call(this, params);
  1754. if (params.data) {
  1755. return;
  1756. }
  1757. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  1758. }
  1759. // TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
  1760. function setTextStyles(element, item, fontObj) {
  1761. var style = element.style;
  1762. style.fontSize = item.fontSize + 'px';
  1763. style.direction = item.fontDirection < 0 ? 'rtl': 'ltr';
  1764. if (!fontObj) {
  1765. return;
  1766. }
  1767. style.fontWeight = fontObj.black ?
  1768. (fontObj.bold ? 'bolder' : 'bold') :
  1769. (fontObj.bold ? 'bold' : 'normal');
  1770. style.fontStyle = fontObj.italic ? 'italic' : 'normal';
  1771. var fontName = fontObj.loadedName;
  1772. var fontFamily = fontName ? '"' + fontName + '", ' : '';
  1773. // Use a reasonable default font if the font doesn't specify a fallback
  1774. var fallbackName = fontObj.fallbackName || 'Helvetica, sans-serif';
  1775. style.fontFamily = fontFamily + fallbackName;
  1776. }
  1777. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  1778. hasHtml: function TextWidgetAnnotation_hasHtml() {
  1779. return !this.data.hasAppearance && !!this.data.fieldValue;
  1780. },
  1781. getHtmlElement: function TextWidgetAnnotation_getHtmlElement(commonObjs) {
  1782. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  1783. var item = this.data;
  1784. var element = this.getEmptyContainer('div');
  1785. element.style.display = 'table';
  1786. var content = document.createElement('div');
  1787. content.textContent = item.fieldValue;
  1788. var textAlignment = item.textAlignment;
  1789. content.style.textAlign = ['left', 'center', 'right'][textAlignment];
  1790. content.style.verticalAlign = 'middle';
  1791. content.style.display = 'table-cell';
  1792. var fontObj = item.fontRefName ?
  1793. commonObjs.getData(item.fontRefName) : null;
  1794. setTextStyles(content, item, fontObj);
  1795. element.appendChild(content);
  1796. return element;
  1797. },
  1798. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  1799. if (this.appearance) {
  1800. return Annotation.prototype.getOperatorList.call(this, evaluator);
  1801. }
  1802. var opList = new OperatorList();
  1803. var data = this.data;
  1804. // Even if there is an appearance stream, ignore it. This is the
  1805. // behaviour used by Adobe Reader.
  1806. if (!data.defaultAppearance) {
  1807. return Promise.resolve(opList);
  1808. }
  1809. var stream = new Stream(stringToBytes(data.defaultAppearance));
  1810. return evaluator.getOperatorList(stream, this.fieldResources, opList).
  1811. then(function () {
  1812. return opList;
  1813. });
  1814. }
  1815. });
  1816. return TextWidgetAnnotation;
  1817. })();
  1818. var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
  1819. function InteractiveAnnotation(params) {
  1820. Annotation.call(this, params);
  1821. }
  1822. Util.inherit(InteractiveAnnotation, Annotation, {
  1823. hasHtml: function InteractiveAnnotation_hasHtml() {
  1824. return true;
  1825. },
  1826. highlight: function InteractiveAnnotation_highlight() {
  1827. if (this.highlightElement &&
  1828. this.highlightElement.hasAttribute('hidden')) {
  1829. this.highlightElement.removeAttribute('hidden');
  1830. }
  1831. },
  1832. unhighlight: function InteractiveAnnotation_unhighlight() {
  1833. if (this.highlightElement &&
  1834. !this.highlightElement.hasAttribute('hidden')) {
  1835. this.highlightElement.setAttribute('hidden', true);
  1836. }
  1837. },
  1838. initContainer: function InteractiveAnnotation_initContainer() {
  1839. var item = this.data;
  1840. var rect = item.rect;
  1841. var container = this.getEmptyContainer('section', rect, item.borderWidth);
  1842. container.style.backgroundColor = item.color;
  1843. var color = item.color;
  1844. var rgb = [];
  1845. for (var i = 0; i < 3; ++i) {
  1846. rgb[i] = Math.round(color[i] * 255);
  1847. }
  1848. item.colorCssRgb = Util.makeCssRgb(rgb);
  1849. var highlight = document.createElement('div');
  1850. highlight.className = 'annotationHighlight';
  1851. highlight.style.left = highlight.style.top = -HIGHLIGHT_OFFSET + 'px';
  1852. highlight.style.right = highlight.style.bottom = -HIGHLIGHT_OFFSET + 'px';
  1853. highlight.setAttribute('hidden', true);
  1854. this.highlightElement = highlight;
  1855. container.appendChild(this.highlightElement);
  1856. return container;
  1857. }
  1858. });
  1859. return InteractiveAnnotation;
  1860. })();
  1861. var TextAnnotation = (function TextAnnotationClosure() {
  1862. function TextAnnotation(params) {
  1863. InteractiveAnnotation.call(this, params);
  1864. if (params.data) {
  1865. return;
  1866. }
  1867. var dict = params.dict;
  1868. var data = this.data;
  1869. var content = dict.get('Contents');
  1870. var title = dict.get('T');
  1871. data.content = stringToPDFString(content || '');
  1872. data.title = stringToPDFString(title || '');
  1873. if (data.hasAppearance) {
  1874. data.name = 'NoIcon';
  1875. } else {
  1876. data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
  1877. data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
  1878. data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
  1879. }
  1880. if (dict.has('C')) {
  1881. data.hasBgColor = true;
  1882. }
  1883. }
  1884. var ANNOT_MIN_SIZE = 10;
  1885. Util.inherit(TextAnnotation, InteractiveAnnotation, {
  1886. getHtmlElement: function TextAnnotation_getHtmlElement(commonObjs) {
  1887. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  1888. var item = this.data;
  1889. var rect = item.rect;
  1890. // sanity check because of OOo-generated PDFs
  1891. if ((rect[3] - rect[1]) < ANNOT_MIN_SIZE) {
  1892. rect[3] = rect[1] + ANNOT_MIN_SIZE;
  1893. }
  1894. if ((rect[2] - rect[0]) < ANNOT_MIN_SIZE) {
  1895. rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
  1896. }
  1897. var container = this.initContainer();
  1898. container.className = 'annotText';
  1899. var image = document.createElement('img');
  1900. image.style.height = container.style.height;
  1901. image.style.width = container.style.width;
  1902. var iconName = item.name;
  1903. image.src = PDFJS.imageResourcesPath + 'annotation-' +
  1904. iconName.toLowerCase() + '.svg';
  1905. image.alt = '[{{type}} Annotation]';
  1906. image.dataset.l10nId = 'text_annotation_type';
  1907. image.dataset.l10nArgs = JSON.stringify({type: iconName});
  1908. var contentWrapper = document.createElement('div');
  1909. contentWrapper.className = 'annotTextContentWrapper';
  1910. contentWrapper.style.left = Math.floor(rect[2] - rect[0] + 5) + 'px';
  1911. contentWrapper.style.top = '-10px';
  1912. var content = document.createElement('div');
  1913. content.className = 'annotTextContent';
  1914. content.setAttribute('hidden', true);
  1915. var i, ii;
  1916. if (item.hasBgColor) {
  1917. var color = item.color;
  1918. var rgb = [];
  1919. for (i = 0; i < 3; ++i) {
  1920. // Enlighten the color (70%)
  1921. var c = Math.round(color[i] * 255);
  1922. rgb[i] = Math.round((255 - c) * 0.7) + c;
  1923. }
  1924. content.style.backgroundColor = Util.makeCssRgb(rgb);
  1925. }
  1926. var title = document.createElement('h1');
  1927. var text = document.createElement('p');
  1928. title.textContent = item.title;
  1929. if (!item.content && !item.title) {
  1930. content.setAttribute('hidden', true);
  1931. } else {
  1932. var e = document.createElement('span');
  1933. var lines = item.content.split(/(?:\r\n?|\n)/);
  1934. for (i = 0, ii = lines.length; i < ii; ++i) {
  1935. var line = lines[i];
  1936. e.appendChild(document.createTextNode(line));
  1937. if (i < (ii - 1)) {
  1938. e.appendChild(document.createElement('br'));
  1939. }
  1940. }
  1941. text.appendChild(e);
  1942. var pinned = false;
  1943. var showAnnotation = function showAnnotation(pin) {
  1944. if (pin) {
  1945. pinned = true;
  1946. }
  1947. if (content.hasAttribute('hidden')) {
  1948. container.style.zIndex += 1;
  1949. content.removeAttribute('hidden');
  1950. }
  1951. };
  1952. var hideAnnotation = function hideAnnotation(unpin) {
  1953. if (unpin) {
  1954. pinned = false;
  1955. }
  1956. if (!content.hasAttribute('hidden') && !pinned) {
  1957. container.style.zIndex -= 1;
  1958. content.setAttribute('hidden', true);
  1959. }
  1960. };
  1961. var toggleAnnotation = function toggleAnnotation() {
  1962. if (pinned) {
  1963. hideAnnotation(true);
  1964. } else {
  1965. showAnnotation(true);
  1966. }
  1967. };
  1968. image.addEventListener('click', function image_clickHandler() {
  1969. toggleAnnotation();
  1970. }, false);
  1971. image.addEventListener('mouseover', function image_mouseOverHandler() {
  1972. showAnnotation();
  1973. }, false);
  1974. image.addEventListener('mouseout', function image_mouseOutHandler() {
  1975. hideAnnotation();
  1976. }, false);
  1977. content.addEventListener('click', function content_clickHandler() {
  1978. hideAnnotation(true);
  1979. }, false);
  1980. }
  1981. content.appendChild(title);
  1982. content.appendChild(text);
  1983. contentWrapper.appendChild(content);
  1984. container.appendChild(image);
  1985. container.appendChild(contentWrapper);
  1986. return container;
  1987. }
  1988. });
  1989. return TextAnnotation;
  1990. })();
  1991. var LinkAnnotation = (function LinkAnnotationClosure() {
  1992. function LinkAnnotation(params) {
  1993. InteractiveAnnotation.call(this, params);
  1994. if (params.data) {
  1995. return;
  1996. }
  1997. var dict = params.dict;
  1998. var data = this.data;
  1999. var action = dict.get('A');
  2000. if (action) {
  2001. var linkType = action.get('S').name;
  2002. if (linkType === 'URI') {
  2003. var url = action.get('URI');
  2004. if (isName(url)) {
  2005. // Some bad PDFs do not put parentheses around relative URLs.
  2006. url = '/' + url.name;
  2007. } else if (url) {
  2008. url = addDefaultProtocolToUrl(url);
  2009. }
  2010. // TODO: pdf spec mentions urls can be relative to a Base
  2011. // entry in the dictionary.
  2012. if (!isValidUrl(url, false)) {
  2013. url = '';
  2014. }
  2015. data.url = url;
  2016. } else if (linkType === 'GoTo') {
  2017. data.dest = action.get('D');
  2018. } else if (linkType === 'GoToR') {
  2019. var urlDict = action.get('F');
  2020. if (isDict(urlDict)) {
  2021. // We assume that the 'url' is a Filspec dictionary
  2022. // and fetch the url without checking any further
  2023. url = urlDict.get('F') || '';
  2024. }
  2025. // TODO: pdf reference says that GoToR
  2026. // can also have 'NewWindow' attribute
  2027. if (!isValidUrl(url, false)) {
  2028. url = '';
  2029. }
  2030. data.url = url;
  2031. data.dest = action.get('D');
  2032. } else if (linkType === 'Named') {
  2033. data.action = action.get('N').name;
  2034. } else {
  2035. warn('unrecognized link type: ' + linkType);
  2036. }
  2037. } else if (dict.has('Dest')) {
  2038. // simple destination link
  2039. var dest = dict.get('Dest');
  2040. data.dest = isName(dest) ? dest.name : dest;
  2041. }
  2042. }
  2043. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  2044. function addDefaultProtocolToUrl(url) {
  2045. if (url && url.indexOf('www.') === 0) {
  2046. return ('http://' + url);
  2047. }
  2048. return url;
  2049. }
  2050. Util.inherit(LinkAnnotation, InteractiveAnnotation, {
  2051. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  2052. return false;
  2053. },
  2054. getHtmlElement: function LinkAnnotation_getHtmlElement(commonObjs) {
  2055. var container = this.initContainer();
  2056. container.className = 'annotLink';
  2057. var item = this.data;
  2058. container.style.borderColor = item.colorCssRgb;
  2059. container.style.borderStyle = 'solid';
  2060. var link = document.createElement('a');
  2061. link.href = link.title = this.data.url || '';
  2062. container.appendChild(link);
  2063. return container;
  2064. }
  2065. });
  2066. return LinkAnnotation;
  2067. })();
  2068. var NetworkManager = (function NetworkManagerClosure() {
  2069. var OK_RESPONSE = 200;
  2070. var PARTIAL_CONTENT_RESPONSE = 206;
  2071. function NetworkManager(url, args) {
  2072. this.url = url;
  2073. args = args || {};
  2074. this.isHttp = /^https?:/i.test(url);
  2075. this.httpHeaders = (this.isHttp && args.httpHeaders) || {};
  2076. this.withCredentials = args.withCredentials || false;
  2077. this.getXhr = args.getXhr ||
  2078. function NetworkManager_getXhr() {
  2079. return new XMLHttpRequest();
  2080. };
  2081. this.currXhrId = 0;
  2082. this.pendingRequests = {};
  2083. this.loadedRequests = {};
  2084. }
  2085. function getArrayBuffer(xhr) {
  2086. var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
  2087. xhr.responseArrayBuffer || xhr.response);
  2088. if (typeof data !== 'string') {
  2089. return data;
  2090. }
  2091. var length = data.length;
  2092. var buffer = new Uint8Array(length);
  2093. for (var i = 0; i < length; i++) {
  2094. buffer[i] = data.charCodeAt(i) & 0xFF;
  2095. }
  2096. return buffer;
  2097. }
  2098. NetworkManager.prototype = {
  2099. requestRange: function NetworkManager_requestRange(begin, end, listeners) {
  2100. var args = {
  2101. begin: begin,
  2102. end: end
  2103. };
  2104. for (var prop in listeners) {
  2105. args[prop] = listeners[prop];
  2106. }
  2107. return this.request(args);
  2108. },
  2109. requestFull: function NetworkManager_requestRange(listeners) {
  2110. return this.request(listeners);
  2111. },
  2112. request: function NetworkManager_requestRange(args) {
  2113. var xhr = this.getXhr();
  2114. var xhrId = this.currXhrId++;
  2115. var pendingRequest = this.pendingRequests[xhrId] = {
  2116. xhr: xhr
  2117. };
  2118. xhr.open('GET', this.url);
  2119. xhr.withCredentials = this.withCredentials;
  2120. for (var property in this.httpHeaders) {
  2121. var value = this.httpHeaders[property];
  2122. if (typeof value === 'undefined') {
  2123. continue;
  2124. }
  2125. xhr.setRequestHeader(property, value);
  2126. }
  2127. if (this.isHttp && 'begin' in args && 'end' in args) {
  2128. var rangeStr = args.begin + '-' + (args.end - 1);
  2129. xhr.setRequestHeader('Range', 'bytes=' + rangeStr);
  2130. pendingRequest.expectedStatus = 206;
  2131. } else {
  2132. pendingRequest.expectedStatus = 200;
  2133. }
  2134. xhr.mozResponseType = xhr.responseType = 'arraybuffer';
  2135. if (args.onProgress) {
  2136. xhr.onprogress = args.onProgress;
  2137. }
  2138. if (args.onError) {
  2139. xhr.onerror = function(evt) {
  2140. args.onError(xhr.status);
  2141. };
  2142. }
  2143. xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
  2144. pendingRequest.onHeadersReceived = args.onHeadersReceived;
  2145. pendingRequest.onDone = args.onDone;
  2146. pendingRequest.onError = args.onError;
  2147. xhr.send(null);
  2148. return xhrId;
  2149. },
  2150. onStateChange: function NetworkManager_onStateChange(xhrId, evt) {
  2151. var pendingRequest = this.pendingRequests[xhrId];
  2152. if (!pendingRequest) {
  2153. // Maybe abortRequest was called...
  2154. return;
  2155. }
  2156. var xhr = pendingRequest.xhr;
  2157. if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
  2158. pendingRequest.onHeadersReceived();
  2159. delete pendingRequest.onHeadersReceived;
  2160. }
  2161. if (xhr.readyState !== 4) {
  2162. return;
  2163. }
  2164. if (!(xhrId in this.pendingRequests)) {
  2165. // The XHR request might have been aborted in onHeadersReceived()
  2166. // callback, in which case we should abort request
  2167. return;
  2168. }
  2169. delete this.pendingRequests[xhrId];
  2170. // success status == 0 can be on ftp, file and other protocols
  2171. if (xhr.status === 0 && this.isHttp) {
  2172. if (pendingRequest.onError) {
  2173. pendingRequest.onError(xhr.status);
  2174. }
  2175. return;
  2176. }
  2177. var xhrStatus = xhr.status || OK_RESPONSE;
  2178. // From http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2:
  2179. // "A server MAY ignore the Range header". This means it's possible to
  2180. // get a 200 rather than a 206 response from a range request.
  2181. var ok_response_on_range_request =
  2182. xhrStatus === OK_RESPONSE &&
  2183. pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;
  2184. if (!ok_response_on_range_request &&
  2185. xhrStatus !== pendingRequest.expectedStatus) {
  2186. if (pendingRequest.onError) {
  2187. pendingRequest.onError(xhr.status);
  2188. }
  2189. return;
  2190. }
  2191. this.loadedRequests[xhrId] = true;
  2192. var chunk = getArrayBuffer(xhr);
  2193. if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
  2194. var rangeHeader = xhr.getResponseHeader('Content-Range');
  2195. var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
  2196. var begin = parseInt(matches[1], 10);
  2197. pendingRequest.onDone({
  2198. begin: begin,
  2199. chunk: chunk
  2200. });
  2201. } else {
  2202. pendingRequest.onDone({
  2203. begin: 0,
  2204. chunk: chunk
  2205. });
  2206. }
  2207. },
  2208. hasPendingRequests: function NetworkManager_hasPendingRequests() {
  2209. for (var xhrId in this.pendingRequests) {
  2210. return true;
  2211. }
  2212. return false;
  2213. },
  2214. getRequestXhr: function NetworkManager_getXhr(xhrId) {
  2215. return this.pendingRequests[xhrId].xhr;
  2216. },
  2217. isPendingRequest: function NetworkManager_isPendingRequest(xhrId) {
  2218. return xhrId in this.pendingRequests;
  2219. },
  2220. isLoadedRequest: function NetworkManager_isLoadedRequest(xhrId) {
  2221. return xhrId in this.loadedRequests;
  2222. },
  2223. abortAllRequests: function NetworkManager_abortAllRequests() {
  2224. for (var xhrId in this.pendingRequests) {
  2225. this.abortRequest(xhrId | 0);
  2226. }
  2227. },
  2228. abortRequest: function NetworkManager_abortRequest(xhrId) {
  2229. var xhr = this.pendingRequests[xhrId].xhr;
  2230. delete this.pendingRequests[xhrId];
  2231. xhr.abort();
  2232. }
  2233. };
  2234. return NetworkManager;
  2235. })();
  2236. var ChunkedStream = (function ChunkedStreamClosure() {
  2237. function ChunkedStream(length, chunkSize, manager) {
  2238. this.bytes = new Uint8Array(length);
  2239. this.start = 0;
  2240. this.pos = 0;
  2241. this.end = length;
  2242. this.chunkSize = chunkSize;
  2243. this.loadedChunks = [];
  2244. this.numChunksLoaded = 0;
  2245. this.numChunks = Math.ceil(length / chunkSize);
  2246. this.manager = manager;
  2247. this.initialDataLength = 0;
  2248. }
  2249. // required methods for a stream. if a particular stream does not
  2250. // implement these, an error should be thrown
  2251. ChunkedStream.prototype = {
  2252. getMissingChunks: function ChunkedStream_getMissingChunks() {
  2253. var chunks = [];
  2254. for (var chunk = 0, n = this.numChunks; chunk < n; ++chunk) {
  2255. if (!(chunk in this.loadedChunks)) {
  2256. chunks.push(chunk);
  2257. }
  2258. }
  2259. return chunks;
  2260. },
  2261. getBaseStreams: function ChunkedStream_getBaseStreams() {
  2262. return [this];
  2263. },
  2264. allChunksLoaded: function ChunkedStream_allChunksLoaded() {
  2265. return this.numChunksLoaded === this.numChunks;
  2266. },
  2267. onReceiveData: function ChunkedStream_onReceiveData(begin, chunk) {
  2268. var end = begin + chunk.byteLength;
  2269. assert(begin % this.chunkSize === 0, 'Bad begin offset: ' + begin);
  2270. // Using this.length is inaccurate here since this.start can be moved
  2271. // See ChunkedStream.moveStart()
  2272. var length = this.bytes.length;
  2273. assert(end % this.chunkSize === 0 || end === length,
  2274. 'Bad end offset: ' + end);
  2275. this.bytes.set(new Uint8Array(chunk), begin);
  2276. var chunkSize = this.chunkSize;
  2277. var beginChunk = Math.floor(begin / chunkSize);
  2278. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  2279. var curChunk;
  2280. for (curChunk = beginChunk; curChunk < endChunk; ++curChunk) {
  2281. if (!(curChunk in this.loadedChunks)) {
  2282. this.loadedChunks[curChunk] = true;
  2283. ++this.numChunksLoaded;
  2284. }
  2285. }
  2286. },
  2287. onReceiveInitialData: function ChunkedStream_onReceiveInitialData(data) {
  2288. this.bytes.set(data);
  2289. this.initialDataLength = data.length;
  2290. var endChunk = (this.end === data.length ?
  2291. this.numChunks : Math.floor(data.length / this.chunkSize));
  2292. for (var i = 0; i < endChunk; i++) {
  2293. this.loadedChunks[i] = true;
  2294. ++this.numChunksLoaded;
  2295. }
  2296. },
  2297. ensureRange: function ChunkedStream_ensureRange(begin, end) {
  2298. if (begin >= end) {
  2299. return;
  2300. }
  2301. if (end <= this.initialDataLength) {
  2302. return;
  2303. }
  2304. var chunkSize = this.chunkSize;
  2305. var beginChunk = Math.floor(begin / chunkSize);
  2306. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  2307. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  2308. if (!(chunk in this.loadedChunks)) {
  2309. throw new MissingDataException(begin, end);
  2310. }
  2311. }
  2312. },
  2313. nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
  2314. var chunk, n;
  2315. for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
  2316. if (!(chunk in this.loadedChunks)) {
  2317. return chunk;
  2318. }
  2319. }
  2320. // Wrap around to beginning
  2321. for (chunk = 0; chunk < beginChunk; ++chunk) {
  2322. if (!(chunk in this.loadedChunks)) {
  2323. return chunk;
  2324. }
  2325. }
  2326. return null;
  2327. },
  2328. hasChunk: function ChunkedStream_hasChunk(chunk) {
  2329. return chunk in this.loadedChunks;
  2330. },
  2331. get length() {
  2332. return this.end - this.start;
  2333. },
  2334. get isEmpty() {
  2335. return this.length === 0;
  2336. },
  2337. getByte: function ChunkedStream_getByte() {
  2338. var pos = this.pos;
  2339. if (pos >= this.end) {
  2340. return -1;
  2341. }
  2342. this.ensureRange(pos, pos + 1);
  2343. return this.bytes[this.pos++];
  2344. },
  2345. getUint16: function ChunkedStream_getUint16() {
  2346. var b0 = this.getByte();
  2347. var b1 = this.getByte();
  2348. return (b0 << 8) + b1;
  2349. },
  2350. getInt32: function ChunkedStream_getInt32() {
  2351. var b0 = this.getByte();
  2352. var b1 = this.getByte();
  2353. var b2 = this.getByte();
  2354. var b3 = this.getByte();
  2355. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  2356. },
  2357. // returns subarray of original buffer
  2358. // should only be read
  2359. getBytes: function ChunkedStream_getBytes(length) {
  2360. var bytes = this.bytes;
  2361. var pos = this.pos;
  2362. var strEnd = this.end;
  2363. if (!length) {
  2364. this.ensureRange(pos, strEnd);
  2365. return bytes.subarray(pos, strEnd);
  2366. }
  2367. var end = pos + length;
  2368. if (end > strEnd) {
  2369. end = strEnd;
  2370. }
  2371. this.ensureRange(pos, end);
  2372. this.pos = end;
  2373. return bytes.subarray(pos, end);
  2374. },
  2375. peekBytes: function ChunkedStream_peekBytes(length) {
  2376. var bytes = this.getBytes(length);
  2377. this.pos -= bytes.length;
  2378. return bytes;
  2379. },
  2380. getByteRange: function ChunkedStream_getBytes(begin, end) {
  2381. this.ensureRange(begin, end);
  2382. return this.bytes.subarray(begin, end);
  2383. },
  2384. skip: function ChunkedStream_skip(n) {
  2385. if (!n) {
  2386. n = 1;
  2387. }
  2388. this.pos += n;
  2389. },
  2390. reset: function ChunkedStream_reset() {
  2391. this.pos = this.start;
  2392. },
  2393. moveStart: function ChunkedStream_moveStart() {
  2394. this.start = this.pos;
  2395. },
  2396. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  2397. this.ensureRange(start, start + length);
  2398. function ChunkedStreamSubstream() {}
  2399. ChunkedStreamSubstream.prototype = Object.create(this);
  2400. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  2401. var chunkSize = this.chunkSize;
  2402. var beginChunk = Math.floor(this.start / chunkSize);
  2403. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  2404. var missingChunks = [];
  2405. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  2406. if (!(chunk in this.loadedChunks)) {
  2407. missingChunks.push(chunk);
  2408. }
  2409. }
  2410. return missingChunks;
  2411. };
  2412. var subStream = new ChunkedStreamSubstream();
  2413. subStream.pos = subStream.start = start;
  2414. subStream.end = start + length || this.end;
  2415. subStream.dict = dict;
  2416. return subStream;
  2417. },
  2418. isStream: true
  2419. };
  2420. return ChunkedStream;
  2421. })();
  2422. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  2423. function ChunkedStreamManager(length, chunkSize, url, args) {
  2424. this.stream = new ChunkedStream(length, chunkSize, this);
  2425. this.length = length;
  2426. this.chunkSize = chunkSize;
  2427. this.url = url;
  2428. this.disableAutoFetch = args.disableAutoFetch;
  2429. var msgHandler = this.msgHandler = args.msgHandler;
  2430. if (args.chunkedViewerLoading) {
  2431. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  2432. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  2433. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  2434. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  2435. };
  2436. } else {
  2437. var getXhr = function getXhr() {
  2438. return new XMLHttpRequest();
  2439. };
  2440. this.networkManager = new NetworkManager(this.url, {
  2441. getXhr: getXhr,
  2442. httpHeaders: args.httpHeaders,
  2443. withCredentials: args.withCredentials
  2444. });
  2445. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  2446. this.networkManager.requestRange(begin, end, {
  2447. onDone: this.onReceiveData.bind(this),
  2448. onProgress: this.onProgress.bind(this)
  2449. });
  2450. };
  2451. }
  2452. this.currRequestId = 0;
  2453. this.chunksNeededByRequest = {};
  2454. this.requestsByChunk = {};
  2455. this.callbacksByRequest = {};
  2456. this._loadedStreamCapability = createPromiseCapability();
  2457. if (args.initialData) {
  2458. this.setInitialData(args.initialData);
  2459. }
  2460. }
  2461. ChunkedStreamManager.prototype = {
  2462. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  2463. this.stream.onReceiveInitialData(data);
  2464. if (this.stream.allChunksLoaded()) {
  2465. this._loadedStreamCapability.resolve(this.stream);
  2466. } else if (this.msgHandler) {
  2467. this.msgHandler.send('DocProgress', {
  2468. loaded: data.length,
  2469. total: this.length
  2470. });
  2471. }
  2472. },
  2473. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  2474. return this._loadedStreamCapability.promise;
  2475. },
  2476. // Get all the chunks that are not yet loaded and groups them into
  2477. // contiguous ranges to load in as few requests as possible
  2478. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  2479. var missingChunks = this.stream.getMissingChunks();
  2480. this.requestChunks(missingChunks);
  2481. return this._loadedStreamCapability.promise;
  2482. },
  2483. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  2484. callback) {
  2485. var requestId = this.currRequestId++;
  2486. var chunksNeeded;
  2487. var i, ii;
  2488. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  2489. for (i = 0, ii = chunks.length; i < ii; i++) {
  2490. if (!this.stream.hasChunk(chunks[i])) {
  2491. chunksNeeded[chunks[i]] = true;
  2492. }
  2493. }
  2494. if (isEmptyObj(chunksNeeded)) {
  2495. if (callback) {
  2496. callback();
  2497. }
  2498. return;
  2499. }
  2500. this.callbacksByRequest[requestId] = callback;
  2501. var chunksToRequest = [];
  2502. for (var chunk in chunksNeeded) {
  2503. chunk = chunk | 0;
  2504. if (!(chunk in this.requestsByChunk)) {
  2505. this.requestsByChunk[chunk] = [];
  2506. chunksToRequest.push(chunk);
  2507. }
  2508. this.requestsByChunk[chunk].push(requestId);
  2509. }
  2510. if (!chunksToRequest.length) {
  2511. return;
  2512. }
  2513. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  2514. for (i = 0; i < groupedChunksToRequest.length; ++i) {
  2515. var groupedChunk = groupedChunksToRequest[i];
  2516. var begin = groupedChunk.beginChunk * this.chunkSize;
  2517. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  2518. this.sendRequest(begin, end);
  2519. }
  2520. },
  2521. getStream: function ChunkedStreamManager_getStream() {
  2522. return this.stream;
  2523. },
  2524. // Loads any chunks in the requested range that are not yet loaded
  2525. requestRange: function ChunkedStreamManager_requestRange(
  2526. begin, end, callback) {
  2527. end = Math.min(end, this.length);
  2528. var beginChunk = this.getBeginChunk(begin);
  2529. var endChunk = this.getEndChunk(end);
  2530. var chunks = [];
  2531. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  2532. chunks.push(chunk);
  2533. }
  2534. this.requestChunks(chunks, callback);
  2535. },
  2536. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  2537. callback) {
  2538. ranges = ranges || [];
  2539. var chunksToRequest = [];
  2540. for (var i = 0; i < ranges.length; i++) {
  2541. var beginChunk = this.getBeginChunk(ranges[i].begin);
  2542. var endChunk = this.getEndChunk(ranges[i].end);
  2543. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  2544. if (chunksToRequest.indexOf(chunk) < 0) {
  2545. chunksToRequest.push(chunk);
  2546. }
  2547. }
  2548. }
  2549. chunksToRequest.sort(function(a, b) { return a - b; });
  2550. this.requestChunks(chunksToRequest, callback);
  2551. },
  2552. // Groups a sorted array of chunks into as few continguous larger
  2553. // chunks as possible
  2554. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  2555. var groupedChunks = [];
  2556. var beginChunk = -1;
  2557. var prevChunk = -1;
  2558. for (var i = 0; i < chunks.length; ++i) {
  2559. var chunk = chunks[i];
  2560. if (beginChunk < 0) {
  2561. beginChunk = chunk;
  2562. }
  2563. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  2564. groupedChunks.push({ beginChunk: beginChunk,
  2565. endChunk: prevChunk + 1 });
  2566. beginChunk = chunk;
  2567. }
  2568. if (i + 1 === chunks.length) {
  2569. groupedChunks.push({ beginChunk: beginChunk,
  2570. endChunk: chunk + 1 });
  2571. }
  2572. prevChunk = chunk;
  2573. }
  2574. return groupedChunks;
  2575. },
  2576. onProgress: function ChunkedStreamManager_onProgress(args) {
  2577. var bytesLoaded = (this.stream.numChunksLoaded * this.chunkSize +
  2578. args.loaded);
  2579. this.msgHandler.send('DocProgress', {
  2580. loaded: bytesLoaded,
  2581. total: this.length
  2582. });
  2583. },
  2584. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  2585. var chunk = args.chunk;
  2586. var begin = args.begin;
  2587. var end = begin + chunk.byteLength;
  2588. var beginChunk = this.getBeginChunk(begin);
  2589. var endChunk = this.getEndChunk(end);
  2590. this.stream.onReceiveData(begin, chunk);
  2591. if (this.stream.allChunksLoaded()) {
  2592. this._loadedStreamCapability.resolve(this.stream);
  2593. }
  2594. var loadedRequests = [];
  2595. var i, requestId;
  2596. for (chunk = beginChunk; chunk < endChunk; ++chunk) {
  2597. // The server might return more chunks than requested
  2598. var requestIds = this.requestsByChunk[chunk] || [];
  2599. delete this.requestsByChunk[chunk];
  2600. for (i = 0; i < requestIds.length; ++i) {
  2601. requestId = requestIds[i];
  2602. var chunksNeeded = this.chunksNeededByRequest[requestId];
  2603. if (chunk in chunksNeeded) {
  2604. delete chunksNeeded[chunk];
  2605. }
  2606. if (!isEmptyObj(chunksNeeded)) {
  2607. continue;
  2608. }
  2609. loadedRequests.push(requestId);
  2610. }
  2611. }
  2612. // If there are no pending requests, automatically fetch the next
  2613. // unfetched chunk of the PDF
  2614. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  2615. var nextEmptyChunk;
  2616. if (this.stream.numChunksLoaded === 1) {
  2617. // This is a special optimization so that after fetching the first
  2618. // chunk, rather than fetching the second chunk, we fetch the last
  2619. // chunk.
  2620. var lastChunk = this.stream.numChunks - 1;
  2621. if (!this.stream.hasChunk(lastChunk)) {
  2622. nextEmptyChunk = lastChunk;
  2623. }
  2624. } else {
  2625. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  2626. }
  2627. if (isInt(nextEmptyChunk)) {
  2628. this.requestChunks([nextEmptyChunk]);
  2629. }
  2630. }
  2631. for (i = 0; i < loadedRequests.length; ++i) {
  2632. requestId = loadedRequests[i];
  2633. var callback = this.callbacksByRequest[requestId];
  2634. delete this.callbacksByRequest[requestId];
  2635. if (callback) {
  2636. callback();
  2637. }
  2638. }
  2639. this.msgHandler.send('DocProgress', {
  2640. loaded: this.stream.numChunksLoaded * this.chunkSize,
  2641. total: this.length
  2642. });
  2643. },
  2644. onError: function ChunkedStreamManager_onError(err) {
  2645. this._loadedStreamCapability.reject(err);
  2646. },
  2647. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  2648. var chunk = Math.floor(begin / this.chunkSize);
  2649. return chunk;
  2650. },
  2651. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  2652. if (end % this.chunkSize === 0) {
  2653. return end / this.chunkSize;
  2654. }
  2655. // 0 -> 0
  2656. // 1 -> 1
  2657. // 99 -> 1
  2658. // 100 -> 1
  2659. // 101 -> 2
  2660. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  2661. return chunk;
  2662. }
  2663. };
  2664. return ChunkedStreamManager;
  2665. })();
  2666. // The maximum number of bytes fetched per range request
  2667. var RANGE_CHUNK_SIZE = 65536;
  2668. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  2669. var BasePdfManager = (function BasePdfManagerClosure() {
  2670. function BasePdfManager() {
  2671. throw new Error('Cannot initialize BaseManagerManager');
  2672. }
  2673. BasePdfManager.prototype = {
  2674. onLoadedStream: function BasePdfManager_onLoadedStream() {
  2675. throw new NotImplementedException();
  2676. },
  2677. ensureDoc: function BasePdfManager_ensureDoc(prop, args) {
  2678. return this.ensure(this.pdfDocument, prop, args);
  2679. },
  2680. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  2681. return this.ensure(this.pdfDocument.xref, prop, args);
  2682. },
  2683. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  2684. return this.ensure(this.pdfDocument.catalog, prop, args);
  2685. },
  2686. getPage: function BasePdfManager_pagePage(pageIndex) {
  2687. return this.pdfDocument.getPage(pageIndex);
  2688. },
  2689. cleanup: function BasePdfManager_cleanup() {
  2690. return this.pdfDocument.cleanup();
  2691. },
  2692. ensure: function BasePdfManager_ensure(obj, prop, args) {
  2693. return new NotImplementedException();
  2694. },
  2695. requestRange: function BasePdfManager_ensure(begin, end) {
  2696. return new NotImplementedException();
  2697. },
  2698. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  2699. return new NotImplementedException();
  2700. },
  2701. updatePassword: function BasePdfManager_updatePassword(password) {
  2702. this.pdfDocument.xref.password = this.password = password;
  2703. if (this._passwordChangedCapability) {
  2704. this._passwordChangedCapability.resolve();
  2705. }
  2706. },
  2707. passwordChanged: function BasePdfManager_passwordChanged() {
  2708. this._passwordChangedCapability = createPromiseCapability();
  2709. return this._passwordChangedCapability.promise;
  2710. },
  2711. terminate: function BasePdfManager_terminate() {
  2712. return new NotImplementedException();
  2713. }
  2714. };
  2715. return BasePdfManager;
  2716. })();
  2717. var LocalPdfManager = (function LocalPdfManagerClosure() {
  2718. function LocalPdfManager(data, password) {
  2719. var stream = new Stream(data);
  2720. this.pdfDocument = new PDFDocument(this, stream, password);
  2721. this._loadedStreamCapability = createPromiseCapability();
  2722. this._loadedStreamCapability.resolve(stream);
  2723. }
  2724. LocalPdfManager.prototype = Object.create(BasePdfManager.prototype);
  2725. LocalPdfManager.prototype.constructor = LocalPdfManager;
  2726. LocalPdfManager.prototype.ensure =
  2727. function LocalPdfManager_ensure(obj, prop, args) {
  2728. return new Promise(function (resolve, reject) {
  2729. try {
  2730. var value = obj[prop];
  2731. var result;
  2732. if (typeof value === 'function') {
  2733. result = value.apply(obj, args);
  2734. } else {
  2735. result = value;
  2736. }
  2737. resolve(result);
  2738. } catch (e) {
  2739. reject(e);
  2740. }
  2741. });
  2742. };
  2743. LocalPdfManager.prototype.requestRange =
  2744. function LocalPdfManager_requestRange(begin, end) {
  2745. return Promise.resolve();
  2746. };
  2747. LocalPdfManager.prototype.requestLoadedStream =
  2748. function LocalPdfManager_requestLoadedStream() {
  2749. };
  2750. LocalPdfManager.prototype.onLoadedStream =
  2751. function LocalPdfManager_getLoadedStream() {
  2752. return this._loadedStreamCapability.promise;
  2753. };
  2754. LocalPdfManager.prototype.terminate =
  2755. function LocalPdfManager_terminate() {
  2756. return;
  2757. };
  2758. return LocalPdfManager;
  2759. })();
  2760. var NetworkPdfManager = (function NetworkPdfManagerClosure() {
  2761. function NetworkPdfManager(args, msgHandler) {
  2762. this.msgHandler = msgHandler;
  2763. var params = {
  2764. msgHandler: msgHandler,
  2765. httpHeaders: args.httpHeaders,
  2766. withCredentials: args.withCredentials,
  2767. chunkedViewerLoading: args.chunkedViewerLoading,
  2768. disableAutoFetch: args.disableAutoFetch,
  2769. initialData: args.initialData
  2770. };
  2771. this.streamManager = new ChunkedStreamManager(args.length, RANGE_CHUNK_SIZE,
  2772. args.url, params);
  2773. this.pdfDocument = new PDFDocument(this, this.streamManager.getStream(),
  2774. args.password);
  2775. }
  2776. NetworkPdfManager.prototype = Object.create(BasePdfManager.prototype);
  2777. NetworkPdfManager.prototype.constructor = NetworkPdfManager;
  2778. NetworkPdfManager.prototype.ensure =
  2779. function NetworkPdfManager_ensure(obj, prop, args) {
  2780. var pdfManager = this;
  2781. return new Promise(function (resolve, reject) {
  2782. function ensureHelper() {
  2783. try {
  2784. var result;
  2785. var value = obj[prop];
  2786. if (typeof value === 'function') {
  2787. result = value.apply(obj, args);
  2788. } else {
  2789. result = value;
  2790. }
  2791. resolve(result);
  2792. } catch(e) {
  2793. if (!(e instanceof MissingDataException)) {
  2794. reject(e);
  2795. return;
  2796. }
  2797. pdfManager.streamManager.requestRange(e.begin, e.end, ensureHelper);
  2798. }
  2799. }
  2800. ensureHelper();
  2801. });
  2802. };
  2803. NetworkPdfManager.prototype.requestRange =
  2804. function NetworkPdfManager_requestRange(begin, end) {
  2805. return new Promise(function (resolve) {
  2806. this.streamManager.requestRange(begin, end, function() {
  2807. resolve();
  2808. });
  2809. }.bind(this));
  2810. };
  2811. NetworkPdfManager.prototype.requestLoadedStream =
  2812. function NetworkPdfManager_requestLoadedStream() {
  2813. this.streamManager.requestAllChunks();
  2814. };
  2815. NetworkPdfManager.prototype.onLoadedStream =
  2816. function NetworkPdfManager_getLoadedStream() {
  2817. return this.streamManager.onLoadedStream();
  2818. };
  2819. NetworkPdfManager.prototype.terminate =
  2820. function NetworkPdfManager_terminate() {
  2821. this.streamManager.networkManager.abortAllRequests();
  2822. };
  2823. return NetworkPdfManager;
  2824. })();
  2825. var Page = (function PageClosure() {
  2826. var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
  2827. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  2828. this.pdfManager = pdfManager;
  2829. this.pageIndex = pageIndex;
  2830. this.pageDict = pageDict;
  2831. this.xref = xref;
  2832. this.ref = ref;
  2833. this.fontCache = fontCache;
  2834. this.idCounters = {
  2835. obj: 0
  2836. };
  2837. this.resourcesPromise = null;
  2838. }
  2839. Page.prototype = {
  2840. getPageProp: function Page_getPageProp(key) {
  2841. return this.pageDict.get(key);
  2842. },
  2843. getInheritedPageProp: function Page_inheritPageProp(key) {
  2844. var dict = this.pageDict;
  2845. var value = dict.get(key);
  2846. while (value === undefined) {
  2847. dict = dict.get('Parent');
  2848. if (!dict) {
  2849. break;
  2850. }
  2851. value = dict.get(key);
  2852. }
  2853. return value;
  2854. },
  2855. get content() {
  2856. return this.getPageProp('Contents');
  2857. },
  2858. get resources() {
  2859. var value = this.getInheritedPageProp('Resources');
  2860. // For robustness: The spec states that a \Resources entry has to be
  2861. // present, but can be empty. Some document omit it still. In this case
  2862. // return an empty dictionary:
  2863. if (value === undefined) {
  2864. value = Dict.empty;
  2865. }
  2866. return shadow(this, 'resources', value);
  2867. },
  2868. get mediaBox() {
  2869. var obj = this.getInheritedPageProp('MediaBox');
  2870. // Reset invalid media box to letter size.
  2871. if (!isArray(obj) || obj.length !== 4) {
  2872. obj = LETTER_SIZE_MEDIABOX;
  2873. }
  2874. return shadow(this, 'mediaBox', obj);
  2875. },
  2876. get view() {
  2877. var mediaBox = this.mediaBox;
  2878. var cropBox = this.getInheritedPageProp('CropBox');
  2879. if (!isArray(cropBox) || cropBox.length !== 4) {
  2880. return shadow(this, 'view', mediaBox);
  2881. }
  2882. // From the spec, 6th ed., p.963:
  2883. // "The crop, bleed, trim, and art boxes should not ordinarily
  2884. // extend beyond the boundaries of the media box. If they do, they are
  2885. // effectively reduced to their intersection with the media box."
  2886. cropBox = Util.intersect(cropBox, mediaBox);
  2887. if (!cropBox) {
  2888. return shadow(this, 'view', mediaBox);
  2889. }
  2890. return shadow(this, 'view', cropBox);
  2891. },
  2892. get annotationRefs() {
  2893. return shadow(this, 'annotationRefs',
  2894. this.getInheritedPageProp('Annots'));
  2895. },
  2896. get rotate() {
  2897. var rotate = this.getInheritedPageProp('Rotate') || 0;
  2898. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  2899. if (rotate % 90 !== 0) {
  2900. rotate = 0;
  2901. } else if (rotate >= 360) {
  2902. rotate = rotate % 360;
  2903. } else if (rotate < 0) {
  2904. // The spec doesn't cover negatives, assume its counterclockwise
  2905. // rotation. The following is the other implementation of modulo.
  2906. rotate = ((rotate % 360) + 360) % 360;
  2907. }
  2908. return shadow(this, 'rotate', rotate);
  2909. },
  2910. getContentStream: function Page_getContentStream() {
  2911. var content = this.content;
  2912. var stream;
  2913. if (isArray(content)) {
  2914. // fetching items
  2915. var xref = this.xref;
  2916. var i, n = content.length;
  2917. var streams = [];
  2918. for (i = 0; i < n; ++i) {
  2919. streams.push(xref.fetchIfRef(content[i]));
  2920. }
  2921. stream = new StreamsSequenceStream(streams);
  2922. } else if (isStream(content)) {
  2923. stream = content;
  2924. } else {
  2925. // replacing non-existent page content with empty one
  2926. stream = new NullStream();
  2927. }
  2928. return stream;
  2929. },
  2930. loadResources: function Page_loadResources(keys) {
  2931. if (!this.resourcesPromise) {
  2932. // TODO: add async getInheritedPageProp and remove this.
  2933. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  2934. }
  2935. return this.resourcesPromise.then(function resourceSuccess() {
  2936. var objectLoader = new ObjectLoader(this.resources.map,
  2937. keys,
  2938. this.xref);
  2939. return objectLoader.load();
  2940. }.bind(this));
  2941. },
  2942. getOperatorList: function Page_getOperatorList(handler, intent) {
  2943. var self = this;
  2944. var pdfManager = this.pdfManager;
  2945. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  2946. []);
  2947. var resourcesPromise = this.loadResources([
  2948. 'ExtGState',
  2949. 'ColorSpace',
  2950. 'Pattern',
  2951. 'Shading',
  2952. 'XObject',
  2953. 'Font'
  2954. // ProcSet
  2955. // Properties
  2956. ]);
  2957. var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
  2958. handler, this.pageIndex,
  2959. 'p' + this.pageIndex + '_',
  2960. this.idCounters,
  2961. this.fontCache);
  2962. var dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);
  2963. var pageListPromise = dataPromises.then(function(data) {
  2964. var contentStream = data[0];
  2965. var opList = new OperatorList(intent, handler, self.pageIndex);
  2966. handler.send('StartRenderPage', {
  2967. transparency: partialEvaluator.hasBlendModes(self.resources),
  2968. pageIndex: self.pageIndex,
  2969. intent: intent
  2970. });
  2971. return partialEvaluator.getOperatorList(contentStream, self.resources,
  2972. opList).then(function () {
  2973. return opList;
  2974. });
  2975. });
  2976. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  2977. return Promise.all([pageListPromise, annotationsPromise]).then(
  2978. function(datas) {
  2979. var pageOpList = datas[0];
  2980. var annotations = datas[1];
  2981. if (annotations.length === 0) {
  2982. pageOpList.flush(true);
  2983. return pageOpList;
  2984. }
  2985. var annotationsReadyPromise = Annotation.appendToOperatorList(
  2986. annotations, pageOpList, pdfManager, partialEvaluator, intent);
  2987. return annotationsReadyPromise.then(function () {
  2988. pageOpList.flush(true);
  2989. return pageOpList;
  2990. });
  2991. });
  2992. },
  2993. extractTextContent: function Page_extractTextContent() {
  2994. var handler = {
  2995. on: function nullHandlerOn() {},
  2996. send: function nullHandlerSend() {}
  2997. };
  2998. var self = this;
  2999. var pdfManager = this.pdfManager;
  3000. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  3001. []);
  3002. var resourcesPromise = this.loadResources([
  3003. 'ExtGState',
  3004. 'XObject',
  3005. 'Font'
  3006. ]);
  3007. var dataPromises = Promise.all([contentStreamPromise,
  3008. resourcesPromise]);
  3009. return dataPromises.then(function(data) {
  3010. var contentStream = data[0];
  3011. var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
  3012. handler, self.pageIndex,
  3013. 'p' + self.pageIndex + '_',
  3014. self.idCounters,
  3015. self.fontCache);
  3016. return partialEvaluator.getTextContent(contentStream,
  3017. self.resources);
  3018. });
  3019. },
  3020. getAnnotationsData: function Page_getAnnotationsData() {
  3021. var annotations = this.annotations;
  3022. var annotationsData = [];
  3023. for (var i = 0, n = annotations.length; i < n; ++i) {
  3024. annotationsData.push(annotations[i].getData());
  3025. }
  3026. return annotationsData;
  3027. },
  3028. get annotations() {
  3029. var annotations = [];
  3030. var annotationRefs = (this.annotationRefs || []);
  3031. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  3032. var annotationRef = annotationRefs[i];
  3033. var annotation = Annotation.fromRef(this.xref, annotationRef);
  3034. if (annotation) {
  3035. annotations.push(annotation);
  3036. }
  3037. }
  3038. return shadow(this, 'annotations', annotations);
  3039. }
  3040. };
  3041. return Page;
  3042. })();
  3043. /**
  3044. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  3045. * `PDFDoc`, this one doesn't have any job management code.
  3046. * Right now there exists one PDFDocument on the main thread + one object
  3047. * for each worker. If there is no worker support enabled, there are two
  3048. * `PDFDocument` objects on the main thread created.
  3049. */
  3050. var PDFDocument = (function PDFDocumentClosure() {
  3051. function PDFDocument(pdfManager, arg, password) {
  3052. if (isStream(arg)) {
  3053. init.call(this, pdfManager, arg, password);
  3054. } else if (isArrayBuffer(arg)) {
  3055. init.call(this, pdfManager, new Stream(arg), password);
  3056. } else {
  3057. error('PDFDocument: Unknown argument type');
  3058. }
  3059. }
  3060. function init(pdfManager, stream, password) {
  3061. assert(stream.length > 0, 'stream must have data');
  3062. this.pdfManager = pdfManager;
  3063. this.stream = stream;
  3064. var xref = new XRef(this.stream, password, pdfManager);
  3065. this.xref = xref;
  3066. }
  3067. function find(stream, needle, limit, backwards) {
  3068. var pos = stream.pos;
  3069. var end = stream.end;
  3070. var strBuf = [];
  3071. if (pos + limit > end) {
  3072. limit = end - pos;
  3073. }
  3074. for (var n = 0; n < limit; ++n) {
  3075. strBuf.push(String.fromCharCode(stream.getByte()));
  3076. }
  3077. var str = strBuf.join('');
  3078. stream.pos = pos;
  3079. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  3080. if (index == -1) {
  3081. return false; /* not found */
  3082. }
  3083. stream.pos += index;
  3084. return true; /* found */
  3085. }
  3086. var DocumentInfoValidators = {
  3087. get entries() {
  3088. // Lazily build this since all the validation functions below are not
  3089. // defined until after this file loads.
  3090. return shadow(this, 'entries', {
  3091. Title: isString,
  3092. Author: isString,
  3093. Subject: isString,
  3094. Keywords: isString,
  3095. Creator: isString,
  3096. Producer: isString,
  3097. CreationDate: isString,
  3098. ModDate: isString,
  3099. Trapped: isName
  3100. });
  3101. }
  3102. };
  3103. PDFDocument.prototype = {
  3104. parse: function PDFDocument_parse(recoveryMode) {
  3105. this.setup(recoveryMode);
  3106. try {
  3107. // checking if AcroForm is present
  3108. this.acroForm = this.catalog.catDict.get('AcroForm');
  3109. if (this.acroForm) {
  3110. this.xfa = this.acroForm.get('XFA');
  3111. var fields = this.acroForm.get('Fields');
  3112. if ((!fields || !isArray(fields) || fields.length === 0) &&
  3113. !this.xfa) {
  3114. // no fields and no XFA -- not a form (?)
  3115. this.acroForm = null;
  3116. }
  3117. }
  3118. } catch (ex) {
  3119. info('Something wrong with AcroForm entry');
  3120. this.acroForm = null;
  3121. }
  3122. },
  3123. get linearization() {
  3124. var length = this.stream.length;
  3125. var linearization = false;
  3126. if (length) {
  3127. try {
  3128. linearization = new Linearization(this.stream);
  3129. if (linearization.length != length) {
  3130. linearization = false;
  3131. }
  3132. } catch (err) {
  3133. if (err instanceof MissingDataException) {
  3134. throw err;
  3135. }
  3136. info('The linearization data is not available ' +
  3137. 'or unreadable PDF data is found');
  3138. linearization = false;
  3139. }
  3140. }
  3141. // shadow the prototype getter with a data property
  3142. return shadow(this, 'linearization', linearization);
  3143. },
  3144. get startXRef() {
  3145. var stream = this.stream;
  3146. var startXRef = 0;
  3147. var linearization = this.linearization;
  3148. if (linearization) {
  3149. // Find end of first obj.
  3150. stream.reset();
  3151. if (find(stream, 'endobj', 1024)) {
  3152. startXRef = stream.pos + 6;
  3153. }
  3154. } else {
  3155. // Find startxref by jumping backward from the end of the file.
  3156. var step = 1024;
  3157. var found = false, pos = stream.end;
  3158. while (!found && pos > 0) {
  3159. pos -= step - 'startxref'.length;
  3160. if (pos < 0) {
  3161. pos = 0;
  3162. }
  3163. stream.pos = pos;
  3164. found = find(stream, 'startxref', step, true);
  3165. }
  3166. if (found) {
  3167. stream.skip(9);
  3168. var ch;
  3169. do {
  3170. ch = stream.getByte();
  3171. } while (Lexer.isSpace(ch));
  3172. var str = '';
  3173. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  3174. str += String.fromCharCode(ch);
  3175. ch = stream.getByte();
  3176. }
  3177. startXRef = parseInt(str, 10);
  3178. if (isNaN(startXRef)) {
  3179. startXRef = 0;
  3180. }
  3181. }
  3182. }
  3183. // shadow the prototype getter with a data property
  3184. return shadow(this, 'startXRef', startXRef);
  3185. },
  3186. get mainXRefEntriesOffset() {
  3187. var mainXRefEntriesOffset = 0;
  3188. var linearization = this.linearization;
  3189. if (linearization) {
  3190. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  3191. }
  3192. // shadow the prototype getter with a data property
  3193. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  3194. },
  3195. // Find the header, remove leading garbage and setup the stream
  3196. // starting from the header.
  3197. checkHeader: function PDFDocument_checkHeader() {
  3198. var stream = this.stream;
  3199. stream.reset();
  3200. if (find(stream, '%PDF-', 1024)) {
  3201. // Found the header, trim off any garbage before it.
  3202. stream.moveStart();
  3203. // Reading file format version
  3204. var MAX_VERSION_LENGTH = 12;
  3205. var version = '', ch;
  3206. while ((ch = stream.getByte()) > 0x20) { // SPACE
  3207. if (version.length >= MAX_VERSION_LENGTH) {
  3208. break;
  3209. }
  3210. version += String.fromCharCode(ch);
  3211. }
  3212. // removing "%PDF-"-prefix
  3213. this.pdfFormatVersion = version.substring(5);
  3214. return;
  3215. }
  3216. // May not be a PDF file, continue anyway.
  3217. },
  3218. parseStartXRef: function PDFDocument_parseStartXRef() {
  3219. var startXRef = this.startXRef;
  3220. this.xref.setStartXRef(startXRef);
  3221. },
  3222. setup: function PDFDocument_setup(recoveryMode) {
  3223. this.xref.parse(recoveryMode);
  3224. this.catalog = new Catalog(this.pdfManager, this.xref);
  3225. },
  3226. get numPages() {
  3227. var linearization = this.linearization;
  3228. var num = linearization ? linearization.numPages : this.catalog.numPages;
  3229. // shadow the prototype getter
  3230. return shadow(this, 'numPages', num);
  3231. },
  3232. get documentInfo() {
  3233. var docInfo = {
  3234. PDFFormatVersion: this.pdfFormatVersion,
  3235. IsAcroFormPresent: !!this.acroForm,
  3236. IsXFAPresent: !!this.xfa
  3237. };
  3238. var infoDict;
  3239. try {
  3240. infoDict = this.xref.trailer.get('Info');
  3241. } catch (err) {
  3242. info('The document information dictionary is invalid.');
  3243. }
  3244. if (infoDict) {
  3245. var validEntries = DocumentInfoValidators.entries;
  3246. // Only fill the document info with valid entries from the spec.
  3247. for (var key in validEntries) {
  3248. if (infoDict.has(key)) {
  3249. var value = infoDict.get(key);
  3250. // Make sure the value conforms to the spec.
  3251. if (validEntries[key](value)) {
  3252. docInfo[key] = (typeof value !== 'string' ?
  3253. value : stringToPDFString(value));
  3254. } else {
  3255. info('Bad value in document info for "' + key + '"');
  3256. }
  3257. }
  3258. }
  3259. }
  3260. return shadow(this, 'documentInfo', docInfo);
  3261. },
  3262. get fingerprint() {
  3263. var xref = this.xref, hash, fileID = '';
  3264. if (xref.trailer.has('ID')) {
  3265. hash = stringToBytes(xref.trailer.get('ID')[0]);
  3266. } else {
  3267. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  3268. }
  3269. for (var i = 0, n = hash.length; i < n; i++) {
  3270. fileID += hash[i].toString(16);
  3271. }
  3272. return shadow(this, 'fingerprint', fileID);
  3273. },
  3274. getPage: function PDFDocument_getPage(pageIndex) {
  3275. return this.catalog.getPage(pageIndex);
  3276. },
  3277. cleanup: function PDFDocument_cleanup() {
  3278. return this.catalog.cleanup();
  3279. }
  3280. };
  3281. return PDFDocument;
  3282. })();
  3283. var Name = (function NameClosure() {
  3284. function Name(name) {
  3285. this.name = name;
  3286. }
  3287. Name.prototype = {};
  3288. var nameCache = {};
  3289. Name.get = function Name_get(name) {
  3290. var nameValue = nameCache[name];
  3291. return (nameValue ? nameValue : (nameCache[name] = new Name(name)));
  3292. };
  3293. return Name;
  3294. })();
  3295. var Cmd = (function CmdClosure() {
  3296. function Cmd(cmd) {
  3297. this.cmd = cmd;
  3298. }
  3299. Cmd.prototype = {};
  3300. var cmdCache = {};
  3301. Cmd.get = function Cmd_get(cmd) {
  3302. var cmdValue = cmdCache[cmd];
  3303. return (cmdValue ? cmdValue : (cmdCache[cmd] = new Cmd(cmd)));
  3304. };
  3305. return Cmd;
  3306. })();
  3307. var Dict = (function DictClosure() {
  3308. var nonSerializable = function nonSerializableClosure() {
  3309. return nonSerializable; // creating closure on some variable
  3310. };
  3311. var GETALL_DICTIONARY_TYPES_WHITELIST = {
  3312. 'Background': true,
  3313. 'ExtGState': true,
  3314. 'Halftone': true,
  3315. 'Layout': true,
  3316. 'Mask': true,
  3317. 'Pagination': true,
  3318. 'Printing': true
  3319. };
  3320. function isRecursionAllowedFor(dict) {
  3321. if (!isName(dict.Type)) {
  3322. return true;
  3323. }
  3324. var dictType = dict.Type.name;
  3325. return GETALL_DICTIONARY_TYPES_WHITELIST[dictType] === true;
  3326. }
  3327. // xref is optional
  3328. function Dict(xref) {
  3329. // Map should only be used internally, use functions below to access.
  3330. this.map = Object.create(null);
  3331. this.xref = xref;
  3332. this.objId = null;
  3333. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  3334. }
  3335. Dict.prototype = {
  3336. assignXref: function Dict_assignXref(newXref) {
  3337. this.xref = newXref;
  3338. },
  3339. // automatically dereferences Ref objects
  3340. get: function Dict_get(key1, key2, key3) {
  3341. var value;
  3342. var xref = this.xref;
  3343. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  3344. typeof key2 == 'undefined') {
  3345. return xref ? xref.fetchIfRef(value) : value;
  3346. }
  3347. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  3348. typeof key3 == 'undefined') {
  3349. return xref ? xref.fetchIfRef(value) : value;
  3350. }
  3351. value = this.map[key3] || null;
  3352. return xref ? xref.fetchIfRef(value) : value;
  3353. },
  3354. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  3355. getAsync: function Dict_getAsync(key1, key2, key3) {
  3356. var value;
  3357. var xref = this.xref;
  3358. if (typeof (value = this.map[key1]) !== undefined || key1 in this.map ||
  3359. typeof key2 === undefined) {
  3360. if (xref) {
  3361. return xref.fetchIfRefAsync(value);
  3362. }
  3363. return Promise.resolve(value);
  3364. }
  3365. if (typeof (value = this.map[key2]) !== undefined || key2 in this.map ||
  3366. typeof key3 === undefined) {
  3367. if (xref) {
  3368. return xref.fetchIfRefAsync(value);
  3369. }
  3370. return Promise.resolve(value);
  3371. }
  3372. value = this.map[key3] || null;
  3373. if (xref) {
  3374. return xref.fetchIfRefAsync(value);
  3375. }
  3376. return Promise.resolve(value);
  3377. },
  3378. // no dereferencing
  3379. getRaw: function Dict_getRaw(key) {
  3380. return this.map[key];
  3381. },
  3382. // creates new map and dereferences all Refs
  3383. getAll: function Dict_getAll() {
  3384. var all = Object.create(null);
  3385. var queue = null;
  3386. var key, obj;
  3387. for (key in this.map) {
  3388. obj = this.get(key);
  3389. if (obj instanceof Dict) {
  3390. if (isRecursionAllowedFor(obj)) {
  3391. (queue || (queue = [])).push({target: all, key: key, obj: obj});
  3392. } else {
  3393. all[key] = this.getRaw(key);
  3394. }
  3395. } else {
  3396. all[key] = obj;
  3397. }
  3398. }
  3399. if (!queue) {
  3400. return all;
  3401. }
  3402. // trying to take cyclic references into the account
  3403. var processed = Object.create(null);
  3404. while (queue.length > 0) {
  3405. var item = queue.shift();
  3406. var itemObj = item.obj;
  3407. var objId = itemObj.objId;
  3408. if (objId && objId in processed) {
  3409. item.target[item.key] = processed[objId];
  3410. continue;
  3411. }
  3412. var dereferenced = Object.create(null);
  3413. for (key in itemObj.map) {
  3414. obj = itemObj.get(key);
  3415. if (obj instanceof Dict) {
  3416. if (isRecursionAllowedFor(obj)) {
  3417. queue.push({target: dereferenced, key: key, obj: obj});
  3418. } else {
  3419. dereferenced[key] = itemObj.getRaw(key);
  3420. }
  3421. } else {
  3422. dereferenced[key] = obj;
  3423. }
  3424. }
  3425. if (objId) {
  3426. processed[objId] = dereferenced;
  3427. }
  3428. item.target[item.key] = dereferenced;
  3429. }
  3430. return all;
  3431. },
  3432. set: function Dict_set(key, value) {
  3433. this.map[key] = value;
  3434. },
  3435. has: function Dict_has(key) {
  3436. return key in this.map;
  3437. },
  3438. forEach: function Dict_forEach(callback) {
  3439. for (var key in this.map) {
  3440. callback(key, this.get(key));
  3441. }
  3442. }
  3443. };
  3444. Dict.empty = new Dict(null);
  3445. return Dict;
  3446. })();
  3447. var Ref = (function RefClosure() {
  3448. function Ref(num, gen) {
  3449. this.num = num;
  3450. this.gen = gen;
  3451. }
  3452. Ref.prototype = {};
  3453. return Ref;
  3454. })();
  3455. // The reference is identified by number and generation.
  3456. // This structure stores only one instance of the reference.
  3457. var RefSet = (function RefSetClosure() {
  3458. function RefSet() {
  3459. this.dict = {};
  3460. }
  3461. RefSet.prototype = {
  3462. has: function RefSet_has(ref) {
  3463. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  3464. },
  3465. put: function RefSet_put(ref) {
  3466. this.dict['R' + ref.num + '.' + ref.gen] = true;
  3467. },
  3468. remove: function RefSet_remove(ref) {
  3469. delete this.dict['R' + ref.num + '.' + ref.gen];
  3470. }
  3471. };
  3472. return RefSet;
  3473. })();
  3474. var RefSetCache = (function RefSetCacheClosure() {
  3475. function RefSetCache() {
  3476. this.dict = Object.create(null);
  3477. }
  3478. RefSetCache.prototype = {
  3479. get: function RefSetCache_get(ref) {
  3480. return this.dict['R' + ref.num + '.' + ref.gen];
  3481. },
  3482. has: function RefSetCache_has(ref) {
  3483. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  3484. },
  3485. put: function RefSetCache_put(ref, obj) {
  3486. this.dict['R' + ref.num + '.' + ref.gen] = obj;
  3487. },
  3488. putAlias: function RefSetCache_putAlias(ref, aliasRef) {
  3489. this.dict['R' + ref.num + '.' + ref.gen] = this.get(aliasRef);
  3490. },
  3491. forEach: function RefSetCache_forEach(fn, thisArg) {
  3492. for (var i in this.dict) {
  3493. fn.call(thisArg, this.dict[i]);
  3494. }
  3495. },
  3496. clear: function RefSetCache_clear() {
  3497. this.dict = Object.create(null);
  3498. }
  3499. };
  3500. return RefSetCache;
  3501. })();
  3502. var Catalog = (function CatalogClosure() {
  3503. function Catalog(pdfManager, xref) {
  3504. this.pdfManager = pdfManager;
  3505. this.xref = xref;
  3506. this.catDict = xref.getCatalogObj();
  3507. this.fontCache = new RefSetCache();
  3508. assert(isDict(this.catDict),
  3509. 'catalog object is not a dictionary');
  3510. this.pagePromises = [];
  3511. }
  3512. Catalog.prototype = {
  3513. get metadata() {
  3514. var streamRef = this.catDict.getRaw('Metadata');
  3515. if (!isRef(streamRef)) {
  3516. return shadow(this, 'metadata', null);
  3517. }
  3518. var encryptMetadata = (!this.xref.encrypt ? false :
  3519. this.xref.encrypt.encryptMetadata);
  3520. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  3521. var metadata;
  3522. if (stream && isDict(stream.dict)) {
  3523. var type = stream.dict.get('Type');
  3524. var subtype = stream.dict.get('Subtype');
  3525. if (isName(type) && isName(subtype) &&
  3526. type.name === 'Metadata' && subtype.name === 'XML') {
  3527. // XXX: This should examine the charset the XML document defines,
  3528. // however since there are currently no real means to decode
  3529. // arbitrary charsets, let's just hope that the author of the PDF
  3530. // was reasonable enough to stick with the XML default charset,
  3531. // which is UTF-8.
  3532. try {
  3533. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  3534. } catch (e) {
  3535. info('Skipping invalid metadata.');
  3536. }
  3537. }
  3538. }
  3539. return shadow(this, 'metadata', metadata);
  3540. },
  3541. get toplevelPagesDict() {
  3542. var pagesObj = this.catDict.get('Pages');
  3543. assert(isDict(pagesObj), 'invalid top-level pages dictionary');
  3544. // shadow the prototype getter
  3545. return shadow(this, 'toplevelPagesDict', pagesObj);
  3546. },
  3547. get documentOutline() {
  3548. var obj = null;
  3549. try {
  3550. obj = this.readDocumentOutline();
  3551. } catch (ex) {
  3552. if (ex instanceof MissingDataException) {
  3553. throw ex;
  3554. }
  3555. warn('Unable to read document outline');
  3556. }
  3557. return shadow(this, 'documentOutline', obj);
  3558. },
  3559. readDocumentOutline: function Catalog_readDocumentOutline() {
  3560. var xref = this.xref;
  3561. var obj = this.catDict.get('Outlines');
  3562. var root = { items: [] };
  3563. if (isDict(obj)) {
  3564. obj = obj.getRaw('First');
  3565. var processed = new RefSet();
  3566. if (isRef(obj)) {
  3567. var queue = [{obj: obj, parent: root}];
  3568. // to avoid recursion keeping track of the items
  3569. // in the processed dictionary
  3570. processed.put(obj);
  3571. while (queue.length > 0) {
  3572. var i = queue.shift();
  3573. var outlineDict = xref.fetchIfRef(i.obj);
  3574. if (outlineDict === null) {
  3575. continue;
  3576. }
  3577. if (!outlineDict.has('Title')) {
  3578. error('Invalid outline item');
  3579. }
  3580. var dest = outlineDict.get('A');
  3581. if (dest) {
  3582. dest = dest.get('D');
  3583. } else if (outlineDict.has('Dest')) {
  3584. dest = outlineDict.getRaw('Dest');
  3585. if (isName(dest)) {
  3586. dest = dest.name;
  3587. }
  3588. }
  3589. var title = outlineDict.get('Title');
  3590. var outlineItem = {
  3591. dest: dest,
  3592. title: stringToPDFString(title),
  3593. color: outlineDict.get('C') || [0, 0, 0],
  3594. count: outlineDict.get('Count'),
  3595. bold: !!(outlineDict.get('F') & 2),
  3596. italic: !!(outlineDict.get('F') & 1),
  3597. items: []
  3598. };
  3599. i.parent.items.push(outlineItem);
  3600. obj = outlineDict.getRaw('First');
  3601. if (isRef(obj) && !processed.has(obj)) {
  3602. queue.push({obj: obj, parent: outlineItem});
  3603. processed.put(obj);
  3604. }
  3605. obj = outlineDict.getRaw('Next');
  3606. if (isRef(obj) && !processed.has(obj)) {
  3607. queue.push({obj: obj, parent: i.parent});
  3608. processed.put(obj);
  3609. }
  3610. }
  3611. }
  3612. }
  3613. return (root.items.length > 0 ? root.items : null);
  3614. },
  3615. get numPages() {
  3616. var obj = this.toplevelPagesDict.get('Count');
  3617. assert(
  3618. isInt(obj),
  3619. 'page count in top level pages object is not an integer'
  3620. );
  3621. // shadow the prototype getter
  3622. return shadow(this, 'num', obj);
  3623. },
  3624. get destinations() {
  3625. function fetchDestination(dest) {
  3626. return isDict(dest) ? dest.get('D') : dest;
  3627. }
  3628. var xref = this.xref;
  3629. var dests = {}, nameTreeRef, nameDictionaryRef;
  3630. var obj = this.catDict.get('Names');
  3631. if (obj && obj.has('Dests')) {
  3632. nameTreeRef = obj.getRaw('Dests');
  3633. } else if (this.catDict.has('Dests')) {
  3634. nameDictionaryRef = this.catDict.get('Dests');
  3635. }
  3636. if (nameDictionaryRef) {
  3637. // reading simple destination dictionary
  3638. obj = nameDictionaryRef;
  3639. obj.forEach(function catalogForEach(key, value) {
  3640. if (!value) {
  3641. return;
  3642. }
  3643. dests[key] = fetchDestination(value);
  3644. });
  3645. }
  3646. if (nameTreeRef) {
  3647. var nameTree = new NameTree(nameTreeRef, xref);
  3648. var names = nameTree.getAll();
  3649. for (var name in names) {
  3650. if (!names.hasOwnProperty(name)) {
  3651. continue;
  3652. }
  3653. dests[name] = fetchDestination(names[name]);
  3654. }
  3655. }
  3656. return shadow(this, 'destinations', dests);
  3657. },
  3658. get attachments() {
  3659. var xref = this.xref;
  3660. var attachments = null, nameTreeRef;
  3661. var obj = this.catDict.get('Names');
  3662. if (obj) {
  3663. nameTreeRef = obj.getRaw('EmbeddedFiles');
  3664. }
  3665. if (nameTreeRef) {
  3666. var nameTree = new NameTree(nameTreeRef, xref);
  3667. var names = nameTree.getAll();
  3668. for (var name in names) {
  3669. if (!names.hasOwnProperty(name)) {
  3670. continue;
  3671. }
  3672. var fs = new FileSpec(names[name], xref);
  3673. if (!attachments) {
  3674. attachments = {};
  3675. }
  3676. attachments[stringToPDFString(name)] = fs.serializable;
  3677. }
  3678. }
  3679. return shadow(this, 'attachments', attachments);
  3680. },
  3681. get javaScript() {
  3682. var xref = this.xref;
  3683. var obj = this.catDict.get('Names');
  3684. var javaScript = [];
  3685. if (obj && obj.has('JavaScript')) {
  3686. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  3687. var names = nameTree.getAll();
  3688. for (var name in names) {
  3689. if (!names.hasOwnProperty(name)) {
  3690. continue;
  3691. }
  3692. // We don't really use the JavaScript right now. This code is
  3693. // defensive so we don't cause errors on document load.
  3694. var jsDict = names[name];
  3695. if (!isDict(jsDict)) {
  3696. continue;
  3697. }
  3698. var type = jsDict.get('S');
  3699. if (!isName(type) || type.name !== 'JavaScript') {
  3700. continue;
  3701. }
  3702. var js = jsDict.get('JS');
  3703. if (!isString(js) && !isStream(js)) {
  3704. continue;
  3705. }
  3706. if (isStream(js)) {
  3707. js = bytesToString(js.getBytes());
  3708. }
  3709. javaScript.push(stringToPDFString(js));
  3710. }
  3711. }
  3712. // Append OpenAction actions to javaScript array
  3713. var openactionDict = this.catDict.get('OpenAction');
  3714. if (isDict(openactionDict)) {
  3715. var objType = openactionDict.get('Type');
  3716. var actionType = openactionDict.get('S');
  3717. var action = openactionDict.get('N');
  3718. var isPrintAction = (isName(objType) && objType.name === 'Action' &&
  3719. isName(actionType) && actionType.name === 'Named' &&
  3720. isName(action) && action.name === 'Print');
  3721. if (isPrintAction) {
  3722. javaScript.push('print(true);');
  3723. }
  3724. }
  3725. return shadow(this, 'javaScript', javaScript);
  3726. },
  3727. cleanup: function Catalog_cleanup() {
  3728. var promises = [];
  3729. this.fontCache.forEach(function (promise) {
  3730. promises.push(promise);
  3731. });
  3732. return Promise.all(promises).then(function (translatedFonts) {
  3733. for (var i = 0, ii = translatedFonts.length; i < ii; i++) {
  3734. var font = translatedFonts[i].dict;
  3735. delete font.translated;
  3736. }
  3737. this.fontCache.clear();
  3738. }.bind(this));
  3739. },
  3740. getPage: function Catalog_getPage(pageIndex) {
  3741. if (!(pageIndex in this.pagePromises)) {
  3742. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  3743. function (a) {
  3744. var dict = a[0];
  3745. var ref = a[1];
  3746. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  3747. this.fontCache);
  3748. }.bind(this)
  3749. );
  3750. }
  3751. return this.pagePromises[pageIndex];
  3752. },
  3753. getPageDict: function Catalog_getPageDict(pageIndex) {
  3754. var capability = createPromiseCapability();
  3755. var nodesToVisit = [this.catDict.getRaw('Pages')];
  3756. var currentPageIndex = 0;
  3757. var xref = this.xref;
  3758. function next() {
  3759. while (nodesToVisit.length) {
  3760. var currentNode = nodesToVisit.pop();
  3761. if (isRef(currentNode)) {
  3762. xref.fetchAsync(currentNode).then(function (obj) {
  3763. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  3764. if (pageIndex === currentPageIndex) {
  3765. capability.resolve([obj, currentNode]);
  3766. } else {
  3767. currentPageIndex++;
  3768. next();
  3769. }
  3770. return;
  3771. }
  3772. nodesToVisit.push(obj);
  3773. next();
  3774. }.bind(this), capability.reject.bind(capability));
  3775. return;
  3776. }
  3777. // must be a child page dictionary
  3778. assert(
  3779. isDict(currentNode),
  3780. 'page dictionary kid reference points to wrong type of object'
  3781. );
  3782. var count = currentNode.get('Count');
  3783. // Skip nodes where the page can't be.
  3784. if (currentPageIndex + count <= pageIndex) {
  3785. currentPageIndex += count;
  3786. continue;
  3787. }
  3788. var kids = currentNode.get('Kids');
  3789. assert(isArray(kids), 'page dictionary kids object is not an array');
  3790. if (count === kids.length) {
  3791. // Nodes that don't have the page have been skipped and this is the
  3792. // bottom of the tree which means the page requested must be a
  3793. // descendant of this pages node. Ideally we would just resolve the
  3794. // promise with the page ref here, but there is the case where more
  3795. // pages nodes could link to single a page (see issue 3666 pdf). To
  3796. // handle this push it back on the queue so if it is a pages node it
  3797. // will be descended into.
  3798. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  3799. currentPageIndex = pageIndex;
  3800. continue;
  3801. } else {
  3802. for (var last = kids.length - 1; last >= 0; last--) {
  3803. nodesToVisit.push(kids[last]);
  3804. }
  3805. }
  3806. }
  3807. capability.reject('Page index ' + pageIndex + ' not found.');
  3808. }
  3809. next();
  3810. return capability.promise;
  3811. },
  3812. getPageIndex: function Catalog_getPageIndex(ref) {
  3813. // The page tree nodes have the count of all the leaves below them. To get
  3814. // how many pages are before we just have to walk up the tree and keep
  3815. // adding the count of siblings to the left of the node.
  3816. var xref = this.xref;
  3817. function pagesBeforeRef(kidRef) {
  3818. var total = 0;
  3819. var parentRef;
  3820. return xref.fetchAsync(kidRef).then(function (node) {
  3821. if (!node) {
  3822. return null;
  3823. }
  3824. parentRef = node.getRaw('Parent');
  3825. return node.getAsync('Parent');
  3826. }).then(function (parent) {
  3827. if (!parent) {
  3828. return null;
  3829. }
  3830. return parent.getAsync('Kids');
  3831. }).then(function (kids) {
  3832. if (!kids) {
  3833. return null;
  3834. }
  3835. var kidPromises = [];
  3836. var found = false;
  3837. for (var i = 0; i < kids.length; i++) {
  3838. var kid = kids[i];
  3839. assert(isRef(kid), 'kids must be a ref');
  3840. if (kid.num == kidRef.num) {
  3841. found = true;
  3842. break;
  3843. }
  3844. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  3845. if (kid.has('Count')) {
  3846. var count = kid.get('Count');
  3847. total += count;
  3848. } else { // page leaf node
  3849. total++;
  3850. }
  3851. }));
  3852. }
  3853. if (!found) {
  3854. error('kid ref not found in parents kids');
  3855. }
  3856. return Promise.all(kidPromises).then(function () {
  3857. return [total, parentRef];
  3858. });
  3859. });
  3860. }
  3861. var total = 0;
  3862. function next(ref) {
  3863. return pagesBeforeRef(ref).then(function (args) {
  3864. if (!args) {
  3865. return total;
  3866. }
  3867. var count = args[0];
  3868. var parentRef = args[1];
  3869. total += count;
  3870. return next(parentRef);
  3871. });
  3872. }
  3873. return next(ref);
  3874. }
  3875. };
  3876. return Catalog;
  3877. })();
  3878. var XRef = (function XRefClosure() {
  3879. function XRef(stream, password) {
  3880. this.stream = stream;
  3881. this.entries = [];
  3882. this.xrefstms = {};
  3883. // prepare the XRef cache
  3884. this.cache = [];
  3885. this.password = password;
  3886. }
  3887. XRef.prototype = {
  3888. setStartXRef: function XRef_setStartXRef(startXRef) {
  3889. // Store the starting positions of xref tables as we process them
  3890. // so we can recover from missing data errors
  3891. this.startXRefQueue = [startXRef];
  3892. },
  3893. parse: function XRef_parse(recoveryMode) {
  3894. var trailerDict;
  3895. if (!recoveryMode) {
  3896. trailerDict = this.readXRef();
  3897. } else {
  3898. warn('Indexing all PDF objects');
  3899. trailerDict = this.indexObjects();
  3900. }
  3901. trailerDict.assignXref(this);
  3902. this.trailer = trailerDict;
  3903. var encrypt = trailerDict.get('Encrypt');
  3904. if (encrypt) {
  3905. var ids = trailerDict.get('ID');
  3906. var fileId = (ids && ids.length) ? ids[0] : '';
  3907. this.encrypt = new CipherTransformFactory(encrypt, fileId,
  3908. this.password);
  3909. }
  3910. // get the root dictionary (catalog) object
  3911. if (!(this.root = trailerDict.get('Root'))) {
  3912. error('Invalid root reference');
  3913. }
  3914. },
  3915. processXRefTable: function XRef_processXRefTable(parser) {
  3916. if (!('tableState' in this)) {
  3917. // Stores state of the table as we process it so we can resume
  3918. // from middle of table in case of missing data error
  3919. this.tableState = {
  3920. entryNum: 0,
  3921. streamPos: parser.lexer.stream.pos,
  3922. parserBuf1: parser.buf1,
  3923. parserBuf2: parser.buf2
  3924. };
  3925. }
  3926. var obj = this.readXRefTable(parser);
  3927. // Sanity check
  3928. if (!isCmd(obj, 'trailer')) {
  3929. error('Invalid XRef table: could not find trailer dictionary');
  3930. }
  3931. // Read trailer dictionary, e.g.
  3932. // trailer
  3933. // << /Size 22
  3934. // /Root 20R
  3935. // /Info 10R
  3936. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  3937. // >>
  3938. // The parser goes through the entire stream << ... >> and provides
  3939. // a getter interface for the key-value table
  3940. var dict = parser.getObj();
  3941. // The pdflib PDF generator can generate a nested trailer dictionary
  3942. if (!isDict(dict) && dict.dict) {
  3943. dict = dict.dict;
  3944. }
  3945. if (!isDict(dict)) {
  3946. error('Invalid XRef table: could not parse trailer dictionary');
  3947. }
  3948. delete this.tableState;
  3949. return dict;
  3950. },
  3951. readXRefTable: function XRef_readXRefTable(parser) {
  3952. // Example of cross-reference table:
  3953. // xref
  3954. // 0 1 <-- subsection header (first obj #, obj count)
  3955. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  3956. // 23 2 <-- subsection header ... and so on ...
  3957. // 0000025518 00002 n
  3958. // 0000025635 00000 n
  3959. // trailer
  3960. // ...
  3961. var stream = parser.lexer.stream;
  3962. var tableState = this.tableState;
  3963. stream.pos = tableState.streamPos;
  3964. parser.buf1 = tableState.parserBuf1;
  3965. parser.buf2 = tableState.parserBuf2;
  3966. // Outer loop is over subsection headers
  3967. var obj;
  3968. while (true) {
  3969. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  3970. if (isCmd(obj = parser.getObj(), 'trailer')) {
  3971. break;
  3972. }
  3973. tableState.firstEntryNum = obj;
  3974. tableState.entryCount = parser.getObj();
  3975. }
  3976. var first = tableState.firstEntryNum;
  3977. var count = tableState.entryCount;
  3978. if (!isInt(first) || !isInt(count)) {
  3979. error('Invalid XRef table: wrong types in subsection header');
  3980. }
  3981. // Inner loop is over objects themselves
  3982. for (var i = tableState.entryNum; i < count; i++) {
  3983. tableState.streamPos = stream.pos;
  3984. tableState.entryNum = i;
  3985. tableState.parserBuf1 = parser.buf1;
  3986. tableState.parserBuf2 = parser.buf2;
  3987. var entry = {};
  3988. entry.offset = parser.getObj();
  3989. entry.gen = parser.getObj();
  3990. var type = parser.getObj();
  3991. if (isCmd(type, 'f')) {
  3992. entry.free = true;
  3993. } else if (isCmd(type, 'n')) {
  3994. entry.uncompressed = true;
  3995. }
  3996. // Validate entry obj
  3997. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  3998. !(entry.free || entry.uncompressed)) {
  3999. console.log(entry.offset, entry.gen, entry.free,
  4000. entry.uncompressed);
  4001. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  4002. }
  4003. if (!this.entries[i + first]) {
  4004. this.entries[i + first] = entry;
  4005. }
  4006. }
  4007. tableState.entryNum = 0;
  4008. tableState.streamPos = stream.pos;
  4009. tableState.parserBuf1 = parser.buf1;
  4010. tableState.parserBuf2 = parser.buf2;
  4011. delete tableState.firstEntryNum;
  4012. delete tableState.entryCount;
  4013. }
  4014. // Per issue 3248: hp scanners generate bad XRef
  4015. if (first === 1 && this.entries[1] && this.entries[1].free) {
  4016. // shifting the entries
  4017. this.entries.shift();
  4018. }
  4019. // Sanity check: as per spec, first object must be free
  4020. if (this.entries[0] && !this.entries[0].free) {
  4021. error('Invalid XRef table: unexpected first object');
  4022. }
  4023. return obj;
  4024. },
  4025. processXRefStream: function XRef_processXRefStream(stream) {
  4026. if (!('streamState' in this)) {
  4027. // Stores state of the stream as we process it so we can resume
  4028. // from middle of stream in case of missing data error
  4029. var streamParameters = stream.dict;
  4030. var byteWidths = streamParameters.get('W');
  4031. var range = streamParameters.get('Index');
  4032. if (!range) {
  4033. range = [0, streamParameters.get('Size')];
  4034. }
  4035. this.streamState = {
  4036. entryRanges: range,
  4037. byteWidths: byteWidths,
  4038. entryNum: 0,
  4039. streamPos: stream.pos
  4040. };
  4041. }
  4042. this.readXRefStream(stream);
  4043. delete this.streamState;
  4044. return stream.dict;
  4045. },
  4046. readXRefStream: function XRef_readXRefStream(stream) {
  4047. var i, j;
  4048. var streamState = this.streamState;
  4049. stream.pos = streamState.streamPos;
  4050. var byteWidths = streamState.byteWidths;
  4051. var typeFieldWidth = byteWidths[0];
  4052. var offsetFieldWidth = byteWidths[1];
  4053. var generationFieldWidth = byteWidths[2];
  4054. var entryRanges = streamState.entryRanges;
  4055. while (entryRanges.length > 0) {
  4056. var first = entryRanges[0];
  4057. var n = entryRanges[1];
  4058. if (!isInt(first) || !isInt(n)) {
  4059. error('Invalid XRef range fields: ' + first + ', ' + n);
  4060. }
  4061. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  4062. !isInt(generationFieldWidth)) {
  4063. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  4064. }
  4065. for (i = streamState.entryNum; i < n; ++i) {
  4066. streamState.entryNum = i;
  4067. streamState.streamPos = stream.pos;
  4068. var type = 0, offset = 0, generation = 0;
  4069. for (j = 0; j < typeFieldWidth; ++j) {
  4070. type = (type << 8) | stream.getByte();
  4071. }
  4072. // if type field is absent, its default value is 1
  4073. if (typeFieldWidth === 0) {
  4074. type = 1;
  4075. }
  4076. for (j = 0; j < offsetFieldWidth; ++j) {
  4077. offset = (offset << 8) | stream.getByte();
  4078. }
  4079. for (j = 0; j < generationFieldWidth; ++j) {
  4080. generation = (generation << 8) | stream.getByte();
  4081. }
  4082. var entry = {};
  4083. entry.offset = offset;
  4084. entry.gen = generation;
  4085. switch (type) {
  4086. case 0:
  4087. entry.free = true;
  4088. break;
  4089. case 1:
  4090. entry.uncompressed = true;
  4091. break;
  4092. case 2:
  4093. break;
  4094. default:
  4095. error('Invalid XRef entry type: ' + type);
  4096. }
  4097. if (!this.entries[first + i]) {
  4098. this.entries[first + i] = entry;
  4099. }
  4100. }
  4101. streamState.entryNum = 0;
  4102. streamState.streamPos = stream.pos;
  4103. entryRanges.splice(0, 2);
  4104. }
  4105. },
  4106. indexObjects: function XRef_indexObjects() {
  4107. // Simple scan through the PDF content to find objects,
  4108. // trailers and XRef streams.
  4109. function readToken(data, offset) {
  4110. var token = '', ch = data[offset];
  4111. while (ch !== 13 && ch !== 10) {
  4112. if (++offset >= data.length) {
  4113. break;
  4114. }
  4115. token += String.fromCharCode(ch);
  4116. ch = data[offset];
  4117. }
  4118. return token;
  4119. }
  4120. function skipUntil(data, offset, what) {
  4121. var length = what.length, dataLength = data.length;
  4122. var skipped = 0;
  4123. // finding byte sequence
  4124. while (offset < dataLength) {
  4125. var i = 0;
  4126. while (i < length && data[offset + i] == what[i]) {
  4127. ++i;
  4128. }
  4129. if (i >= length) {
  4130. break; // sequence found
  4131. }
  4132. offset++;
  4133. skipped++;
  4134. }
  4135. return skipped;
  4136. }
  4137. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  4138. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  4139. 101, 102]);
  4140. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  4141. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  4142. var stream = this.stream;
  4143. stream.pos = 0;
  4144. var buffer = stream.getBytes();
  4145. var position = stream.start, length = buffer.length;
  4146. var trailers = [], xrefStms = [];
  4147. while (position < length) {
  4148. var ch = buffer[position];
  4149. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  4150. ++position;
  4151. continue;
  4152. }
  4153. if (ch === 37) { // %-comment
  4154. do {
  4155. ++position;
  4156. if (position >= length) {
  4157. break;
  4158. }
  4159. ch = buffer[position];
  4160. } while (ch !== 13 && ch !== 10);
  4161. continue;
  4162. }
  4163. var token = readToken(buffer, position);
  4164. var m;
  4165. if (token === 'xref') {
  4166. position += skipUntil(buffer, position, trailerBytes);
  4167. trailers.push(position);
  4168. position += skipUntil(buffer, position, startxrefBytes);
  4169. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  4170. this.entries[m[1]] = {
  4171. offset: position,
  4172. gen: m[2] | 0,
  4173. uncompressed: true
  4174. };
  4175. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  4176. var content = buffer.subarray(position, position + contentLength);
  4177. // checking XRef stream suspect
  4178. // (it shall have '/XRef' and next char is not a letter)
  4179. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  4180. if (xrefTagOffset < contentLength &&
  4181. content[xrefTagOffset + 5] < 64) {
  4182. xrefStms.push(position);
  4183. this.xrefstms[position] = 1; // don't read it recursively
  4184. }
  4185. position += contentLength;
  4186. } else {
  4187. position += token.length + 1;
  4188. }
  4189. }
  4190. // reading XRef streams
  4191. var i, ii;
  4192. for (i = 0, ii = xrefStms.length; i < ii; ++i) {
  4193. this.startXRefQueue.push(xrefStms[i]);
  4194. this.readXRef(/* recoveryMode */ true);
  4195. }
  4196. // finding main trailer
  4197. var dict;
  4198. for (i = 0, ii = trailers.length; i < ii; ++i) {
  4199. stream.pos = trailers[i];
  4200. var parser = new Parser(new Lexer(stream), true, null);
  4201. var obj = parser.getObj();
  4202. if (!isCmd(obj, 'trailer')) {
  4203. continue;
  4204. }
  4205. // read the trailer dictionary
  4206. if (!isDict(dict = parser.getObj())) {
  4207. continue;
  4208. }
  4209. // taking the first one with 'ID'
  4210. if (dict.has('ID')) {
  4211. return dict;
  4212. }
  4213. }
  4214. // no tailer with 'ID', taking last one (if exists)
  4215. if (dict) {
  4216. return dict;
  4217. }
  4218. // nothing helps
  4219. // calling error() would reject worker with an UnknownErrorException.
  4220. throw new InvalidPDFException('Invalid PDF structure');
  4221. },
  4222. readXRef: function XRef_readXRef(recoveryMode) {
  4223. var stream = this.stream;
  4224. try {
  4225. while (this.startXRefQueue.length) {
  4226. var startXRef = this.startXRefQueue[0];
  4227. stream.pos = startXRef + stream.start;
  4228. var parser = new Parser(new Lexer(stream), true, null);
  4229. var obj = parser.getObj();
  4230. var dict;
  4231. // Get dictionary
  4232. if (isCmd(obj, 'xref')) {
  4233. // Parse end-of-file XRef
  4234. dict = this.processXRefTable(parser);
  4235. if (!this.topDict) {
  4236. this.topDict = dict;
  4237. }
  4238. // Recursively get other XRefs 'XRefStm', if any
  4239. obj = dict.get('XRefStm');
  4240. if (isInt(obj)) {
  4241. var pos = obj;
  4242. // ignore previously loaded xref streams
  4243. // (possible infinite recursion)
  4244. if (!(pos in this.xrefstms)) {
  4245. this.xrefstms[pos] = 1;
  4246. this.startXRefQueue.push(pos);
  4247. }
  4248. }
  4249. } else if (isInt(obj)) {
  4250. // Parse in-stream XRef
  4251. if (!isInt(parser.getObj()) ||
  4252. !isCmd(parser.getObj(), 'obj') ||
  4253. !isStream(obj = parser.getObj())) {
  4254. error('Invalid XRef stream');
  4255. }
  4256. dict = this.processXRefStream(obj);
  4257. if (!this.topDict) {
  4258. this.topDict = dict;
  4259. }
  4260. if (!dict) {
  4261. error('Failed to read XRef stream');
  4262. }
  4263. } else {
  4264. error('Invalid XRef stream header');
  4265. }
  4266. // Recursively get previous dictionary, if any
  4267. obj = dict.get('Prev');
  4268. if (isInt(obj)) {
  4269. this.startXRefQueue.push(obj);
  4270. } else if (isRef(obj)) {
  4271. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  4272. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  4273. this.startXRefQueue.push(obj.num);
  4274. }
  4275. this.startXRefQueue.shift();
  4276. }
  4277. return this.topDict;
  4278. } catch (e) {
  4279. if (e instanceof MissingDataException) {
  4280. throw e;
  4281. }
  4282. info('(while reading XRef): ' + e);
  4283. }
  4284. if (recoveryMode) {
  4285. return;
  4286. }
  4287. throw new XRefParseException();
  4288. },
  4289. getEntry: function XRef_getEntry(i) {
  4290. var xrefEntry = this.entries[i];
  4291. if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
  4292. return xrefEntry;
  4293. }
  4294. return null;
  4295. },
  4296. fetchIfRef: function XRef_fetchIfRef(obj) {
  4297. if (!isRef(obj)) {
  4298. return obj;
  4299. }
  4300. return this.fetch(obj);
  4301. },
  4302. fetch: function XRef_fetch(ref, suppressEncryption) {
  4303. assert(isRef(ref), 'ref object is not a reference');
  4304. var num = ref.num;
  4305. if (num in this.cache) {
  4306. var cacheEntry = this.cache[num];
  4307. return cacheEntry;
  4308. }
  4309. var xrefEntry = this.getEntry(num);
  4310. // the referenced entry can be free
  4311. if (xrefEntry === null) {
  4312. return (this.cache[num] = null);
  4313. }
  4314. if (xrefEntry.uncompressed) {
  4315. xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption);
  4316. } else {
  4317. xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
  4318. }
  4319. if (isDict(xrefEntry)) {
  4320. xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
  4321. }
  4322. return xrefEntry;
  4323. },
  4324. fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry,
  4325. suppressEncryption) {
  4326. var gen = ref.gen;
  4327. var num = ref.num;
  4328. if (xrefEntry.gen !== gen) {
  4329. error('inconsistent generation in XRef');
  4330. }
  4331. var stream = this.stream.makeSubStream(xrefEntry.offset +
  4332. this.stream.start);
  4333. var parser = new Parser(new Lexer(stream), true, this);
  4334. var obj1 = parser.getObj();
  4335. var obj2 = parser.getObj();
  4336. var obj3 = parser.getObj();
  4337. if (!isInt(obj1) || parseInt(obj1, 10) !== num ||
  4338. !isInt(obj2) || parseInt(obj2, 10) !== gen ||
  4339. !isCmd(obj3)) {
  4340. error('bad XRef entry');
  4341. }
  4342. if (!isCmd(obj3, 'obj')) {
  4343. // some bad PDFs use "obj1234" and really mean 1234
  4344. if (obj3.cmd.indexOf('obj') === 0) {
  4345. num = parseInt(obj3.cmd.substring(3), 10);
  4346. if (!isNaN(num)) {
  4347. return num;
  4348. }
  4349. }
  4350. error('bad XRef entry');
  4351. }
  4352. if (this.encrypt && !suppressEncryption) {
  4353. try {
  4354. xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num,
  4355. gen));
  4356. } catch (ex) {
  4357. // Almost all streams must be encrypted, but sometimes
  4358. // they are not, probably due to some broken generators.
  4359. // Retrying without encryption...
  4360. return this.fetch(ref, true);
  4361. }
  4362. } else {
  4363. xrefEntry = parser.getObj();
  4364. }
  4365. if (!isStream(xrefEntry)) {
  4366. this.cache[num] = xrefEntry;
  4367. }
  4368. return xrefEntry;
  4369. },
  4370. fetchCompressed: function XRef_fetchCompressed(xrefEntry,
  4371. suppressEncryption) {
  4372. var tableOffset = xrefEntry.offset;
  4373. var stream = this.fetch(new Ref(tableOffset, 0));
  4374. if (!isStream(stream)) {
  4375. error('bad ObjStm stream');
  4376. }
  4377. var first = stream.dict.get('First');
  4378. var n = stream.dict.get('N');
  4379. if (!isInt(first) || !isInt(n)) {
  4380. error('invalid first and n parameters for ObjStm stream');
  4381. }
  4382. var parser = new Parser(new Lexer(stream), false, this);
  4383. parser.allowStreams = true;
  4384. var i, entries = [], num, nums = [];
  4385. // read the object numbers to populate cache
  4386. for (i = 0; i < n; ++i) {
  4387. num = parser.getObj();
  4388. if (!isInt(num)) {
  4389. error('invalid object number in the ObjStm stream: ' + num);
  4390. }
  4391. nums.push(num);
  4392. var offset = parser.getObj();
  4393. if (!isInt(offset)) {
  4394. error('invalid object offset in the ObjStm stream: ' + offset);
  4395. }
  4396. }
  4397. // read stream objects for cache
  4398. for (i = 0; i < n; ++i) {
  4399. entries.push(parser.getObj());
  4400. num = nums[i];
  4401. var entry = this.entries[num];
  4402. if (entry && entry.offset === tableOffset && entry.gen === i) {
  4403. this.cache[num] = entries[i];
  4404. }
  4405. }
  4406. xrefEntry = entries[xrefEntry.gen];
  4407. if (xrefEntry === undefined) {
  4408. error('bad XRef entry for compressed object');
  4409. }
  4410. return xrefEntry;
  4411. },
  4412. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  4413. if (!isRef(obj)) {
  4414. return Promise.resolve(obj);
  4415. }
  4416. return this.fetchAsync(obj);
  4417. },
  4418. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  4419. return new Promise(function (resolve, reject) {
  4420. var tryFetch = function () {
  4421. try {
  4422. resolve(this.fetch(ref, suppressEncryption));
  4423. } catch (e) {
  4424. if (e instanceof MissingDataException) {
  4425. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  4426. return;
  4427. }
  4428. reject(e);
  4429. }
  4430. }.bind(this);
  4431. tryFetch();
  4432. }.bind(this));
  4433. },
  4434. getCatalogObj: function XRef_getCatalogObj() {
  4435. return this.root;
  4436. }
  4437. };
  4438. return XRef;
  4439. })();
  4440. /**
  4441. * A NameTree is like a Dict but has some advantageous properties, see the
  4442. * spec (7.9.6) for more details.
  4443. * TODO: implement all the Dict functions and make this more efficent.
  4444. */
  4445. var NameTree = (function NameTreeClosure() {
  4446. function NameTree(root, xref) {
  4447. this.root = root;
  4448. this.xref = xref;
  4449. }
  4450. NameTree.prototype = {
  4451. getAll: function NameTree_getAll() {
  4452. var dict = {};
  4453. if (!this.root) {
  4454. return dict;
  4455. }
  4456. var xref = this.xref;
  4457. // reading name tree
  4458. var processed = new RefSet();
  4459. processed.put(this.root);
  4460. var queue = [this.root];
  4461. while (queue.length > 0) {
  4462. var i, n;
  4463. var obj = xref.fetchIfRef(queue.shift());
  4464. if (!isDict(obj)) {
  4465. continue;
  4466. }
  4467. if (obj.has('Kids')) {
  4468. var kids = obj.get('Kids');
  4469. for (i = 0, n = kids.length; i < n; i++) {
  4470. var kid = kids[i];
  4471. if (processed.has(kid)) {
  4472. error('invalid destinations');
  4473. }
  4474. queue.push(kid);
  4475. processed.put(kid);
  4476. }
  4477. continue;
  4478. }
  4479. var names = obj.get('Names');
  4480. if (names) {
  4481. for (i = 0, n = names.length; i < n; i += 2) {
  4482. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  4483. }
  4484. }
  4485. }
  4486. return dict;
  4487. }
  4488. };
  4489. return NameTree;
  4490. })();
  4491. /**
  4492. * "A PDF file can refer to the contents of another file by using a File
  4493. * Specification (PDF 1.1)", see the spec (7.11) for more details.
  4494. * NOTE: Only embedded files are supported (as part of the attachments support)
  4495. * TODO: support the 'URL' file system (with caching if !/V), portable
  4496. * collections attributes and related files (/RF)
  4497. */
  4498. var FileSpec = (function FileSpecClosure() {
  4499. function FileSpec(root, xref) {
  4500. if (!root || !isDict(root)) {
  4501. return;
  4502. }
  4503. this.xref = xref;
  4504. this.root = root;
  4505. if (root.has('FS')) {
  4506. this.fs = root.get('FS');
  4507. }
  4508. this.description = root.has('Desc') ?
  4509. stringToPDFString(root.get('Desc')) :
  4510. '';
  4511. if (root.has('RF')) {
  4512. warn('Related file specifications are not supported');
  4513. }
  4514. this.contentAvailable = true;
  4515. if (!root.has('EF')) {
  4516. this.contentAvailable = false;
  4517. warn('Non-embedded file specifications are not supported');
  4518. }
  4519. }
  4520. function pickPlatformItem(dict) {
  4521. // Look for the filename in this order:
  4522. // UF, F, Unix, Mac, DOS
  4523. if (dict.has('UF')) {
  4524. return dict.get('UF');
  4525. } else if (dict.has('F')) {
  4526. return dict.get('F');
  4527. } else if (dict.has('Unix')) {
  4528. return dict.get('Unix');
  4529. } else if (dict.has('Mac')) {
  4530. return dict.get('Mac');
  4531. } else if (dict.has('DOS')) {
  4532. return dict.get('DOS');
  4533. } else {
  4534. return null;
  4535. }
  4536. }
  4537. FileSpec.prototype = {
  4538. get filename() {
  4539. if (!this._filename && this.root) {
  4540. var filename = pickPlatformItem(this.root) || 'unnamed';
  4541. this._filename = stringToPDFString(filename).
  4542. replace(/\\\\/g, '\\').
  4543. replace(/\\\//g, '/').
  4544. replace(/\\/g, '/');
  4545. }
  4546. return this._filename;
  4547. },
  4548. get content() {
  4549. if (!this.contentAvailable) {
  4550. return null;
  4551. }
  4552. if (!this.contentRef && this.root) {
  4553. this.contentRef = pickPlatformItem(this.root.get('EF'));
  4554. }
  4555. var content = null;
  4556. if (this.contentRef) {
  4557. var xref = this.xref;
  4558. var fileObj = xref.fetchIfRef(this.contentRef);
  4559. if (fileObj && isStream(fileObj)) {
  4560. content = fileObj.getBytes();
  4561. } else {
  4562. warn('Embedded file specification points to non-existing/invalid ' +
  4563. 'content');
  4564. }
  4565. } else {
  4566. warn('Embedded file specification does not have a content');
  4567. }
  4568. return content;
  4569. },
  4570. get serializable() {
  4571. return {
  4572. filename: this.filename,
  4573. content: this.content
  4574. };
  4575. }
  4576. };
  4577. return FileSpec;
  4578. })();
  4579. /**
  4580. * A helper for loading missing data in object graphs. It traverses the graph
  4581. * depth first and queues up any objects that have missing data. Once it has
  4582. * has traversed as many objects that are available it attempts to bundle the
  4583. * missing data requests and then resume from the nodes that weren't ready.
  4584. *
  4585. * NOTE: It provides protection from circular references by keeping track of
  4586. * of loaded references. However, you must be careful not to load any graphs
  4587. * that have references to the catalog or other pages since that will cause the
  4588. * entire PDF document object graph to be traversed.
  4589. */
  4590. var ObjectLoader = (function() {
  4591. function mayHaveChildren(value) {
  4592. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  4593. }
  4594. function addChildren(node, nodesToVisit) {
  4595. var value;
  4596. if (isDict(node) || isStream(node)) {
  4597. var map;
  4598. if (isDict(node)) {
  4599. map = node.map;
  4600. } else {
  4601. map = node.dict.map;
  4602. }
  4603. for (var key in map) {
  4604. value = map[key];
  4605. if (mayHaveChildren(value)) {
  4606. nodesToVisit.push(value);
  4607. }
  4608. }
  4609. } else if (isArray(node)) {
  4610. for (var i = 0, ii = node.length; i < ii; i++) {
  4611. value = node[i];
  4612. if (mayHaveChildren(value)) {
  4613. nodesToVisit.push(value);
  4614. }
  4615. }
  4616. }
  4617. }
  4618. function ObjectLoader(obj, keys, xref) {
  4619. this.obj = obj;
  4620. this.keys = keys;
  4621. this.xref = xref;
  4622. this.refSet = null;
  4623. }
  4624. ObjectLoader.prototype = {
  4625. load: function ObjectLoader_load() {
  4626. var keys = this.keys;
  4627. this.capability = createPromiseCapability();
  4628. // Don't walk the graph if all the data is already loaded.
  4629. if (!(this.xref.stream instanceof ChunkedStream) ||
  4630. this.xref.stream.getMissingChunks().length === 0) {
  4631. this.capability.resolve();
  4632. return this.capability.promise;
  4633. }
  4634. this.refSet = new RefSet();
  4635. // Setup the initial nodes to visit.
  4636. var nodesToVisit = [];
  4637. for (var i = 0; i < keys.length; i++) {
  4638. nodesToVisit.push(this.obj[keys[i]]);
  4639. }
  4640. this.walk(nodesToVisit);
  4641. return this.capability.promise;
  4642. },
  4643. walk: function ObjectLoader_walk(nodesToVisit) {
  4644. var nodesToRevisit = [];
  4645. var pendingRequests = [];
  4646. // DFS walk of the object graph.
  4647. while (nodesToVisit.length) {
  4648. var currentNode = nodesToVisit.pop();
  4649. // Only references or chunked streams can cause missing data exceptions.
  4650. if (isRef(currentNode)) {
  4651. // Skip nodes that have already been visited.
  4652. if (this.refSet.has(currentNode)) {
  4653. continue;
  4654. }
  4655. try {
  4656. var ref = currentNode;
  4657. this.refSet.put(ref);
  4658. currentNode = this.xref.fetch(currentNode);
  4659. } catch (e) {
  4660. if (!(e instanceof MissingDataException)) {
  4661. throw e;
  4662. }
  4663. nodesToRevisit.push(currentNode);
  4664. pendingRequests.push({ begin: e.begin, end: e.end });
  4665. }
  4666. }
  4667. if (currentNode && currentNode.getBaseStreams) {
  4668. var baseStreams = currentNode.getBaseStreams();
  4669. var foundMissingData = false;
  4670. for (var i = 0; i < baseStreams.length; i++) {
  4671. var stream = baseStreams[i];
  4672. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  4673. foundMissingData = true;
  4674. pendingRequests.push({
  4675. begin: stream.start,
  4676. end: stream.end
  4677. });
  4678. }
  4679. }
  4680. if (foundMissingData) {
  4681. nodesToRevisit.push(currentNode);
  4682. }
  4683. }
  4684. addChildren(currentNode, nodesToVisit);
  4685. }
  4686. if (pendingRequests.length) {
  4687. this.xref.stream.manager.requestRanges(pendingRequests,
  4688. function pendingRequestCallback() {
  4689. nodesToVisit = nodesToRevisit;
  4690. for (var i = 0; i < nodesToRevisit.length; i++) {
  4691. var node = nodesToRevisit[i];
  4692. // Remove any reference nodes from the currrent refset so they
  4693. // aren't skipped when we revist them.
  4694. if (isRef(node)) {
  4695. this.refSet.remove(node);
  4696. }
  4697. }
  4698. this.walk(nodesToVisit);
  4699. }.bind(this));
  4700. return;
  4701. }
  4702. // Everything is loaded.
  4703. this.refSet = null;
  4704. this.capability.resolve();
  4705. }
  4706. };
  4707. return ObjectLoader;
  4708. })();
  4709. var ISOAdobeCharset = [
  4710. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  4711. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  4712. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  4713. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  4714. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  4715. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  4716. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  4717. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  4718. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  4719. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  4720. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  4721. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  4722. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  4723. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  4724. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  4725. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  4726. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  4727. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  4728. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  4729. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  4730. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  4731. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  4732. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  4733. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  4734. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  4735. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  4736. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  4737. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  4738. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  4739. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  4740. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  4741. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  4742. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  4743. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  4744. ];
  4745. var ExpertCharset = [
  4746. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  4747. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  4748. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  4749. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  4750. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  4751. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  4752. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  4753. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  4754. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  4755. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  4756. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  4757. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  4758. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  4759. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  4760. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  4761. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  4762. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  4763. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  4764. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  4765. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  4766. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  4767. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  4768. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  4769. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  4770. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  4771. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  4772. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  4773. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  4774. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  4775. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  4776. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  4777. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  4778. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  4779. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  4780. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  4781. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  4782. 'Ydieresissmall'
  4783. ];
  4784. var ExpertSubsetCharset = [
  4785. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  4786. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  4787. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  4788. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  4789. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  4790. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  4791. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  4792. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  4793. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  4794. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  4795. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  4796. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  4797. 'onehalf', 'threequarters', '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'
  4805. ];
  4806. var CIDToUnicodeMaps = {
  4807. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  4808. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  4809. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  4810. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  4811. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  4812. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  4813. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  4814. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  4815. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  4816. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  4817. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  4818. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  4819. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  4820. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  4821. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  4822. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  4823. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  4824. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  4825. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  4826. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  4827. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  4828. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  4829. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  4830. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  4831. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  4832. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  4833. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  4834. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  4835. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  4836. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  4837. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  4838. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  4839. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  4840. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  4841. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  4842. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  4843. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  4844. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  4845. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  4846. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  4847. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  4848. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  4849. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  4850. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  4851. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  4852. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  4853. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  4854. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  4855. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  4856. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  4857. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  4858. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  4859. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  4860. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  4861. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  4862. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  4863. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  4864. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  4865. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  4866. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  4867. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  4868. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  4869. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  4870. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  4871. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  4872. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  4873. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  4874. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  4875. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  4876. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  4877. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  4878. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  4879. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  4880. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  4881. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  4882. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  4883. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  4884. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  4885. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  4886. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  4887. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  4888. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  4889. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  4890. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  4891. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  4892. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  4893. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  4894. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  4895. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  4896. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  4897. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  4898. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  4899. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  4900. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  4901. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  4902. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  4903. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  4904. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  4905. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  4906. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  4907. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  4908. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  4909. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  4910. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  4911. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  4912. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  4913. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  4914. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  4915. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  4916. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  4917. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  4918. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  4919. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  4920. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  4921. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  4922. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  4923. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  4924. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  4925. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  4926. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  4927. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  4928. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  4929. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  4930. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  4931. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  4932. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  4933. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  4934. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  4935. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  4936. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  4937. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  4938. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  4939. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  4940. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  4941. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  4942. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  4943. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  4944. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  4945. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  4946. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  4947. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  4948. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  4949. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  4950. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  4951. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  4952. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  4953. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  4954. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  4955. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  4956. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  4957. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  4958. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  4959. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  4960. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  4961. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  4962. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  4963. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  4964. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  4965. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  4966. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  4967. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  4968. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  4969. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  4970. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  4971. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  4972. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  4973. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  4974. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  4975. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  4976. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  4977. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  4978. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  4979. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  4980. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  4981. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  4982. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  4983. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  4984. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  4985. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  4986. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  4987. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  4988. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  4989. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  4990. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  4991. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  4992. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  4993. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  4994. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  4995. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  4996. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  4997. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  4998. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  4999. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  5000. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  5001. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  5002. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  5003. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  5004. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  5005. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  5006. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  5007. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  5008. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  5009. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  5010. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  5011. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  5012. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  5013. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  5014. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  5015. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  5016. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  5017. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  5018. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  5019. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  5020. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  5021. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  5022. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  5023. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  5024. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  5025. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  5026. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  5027. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  5028. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  5029. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  5030. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  5031. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  5032. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  5033. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  5034. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  5035. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  5036. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  5037. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  5038. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  5039. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  5040. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  5041. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  5042. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  5043. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  5044. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  5045. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  5046. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  5047. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  5048. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  5049. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  5050. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  5051. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  5052. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  5053. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  5054. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  5055. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  5056. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  5057. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  5058. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  5059. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  5060. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  5061. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  5062. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  5063. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  5064. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  5065. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  5066. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  5067. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  5068. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  5069. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  5070. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  5071. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  5072. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  5073. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  5074. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  5075. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  5076. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  5077. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  5078. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  5079. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  5080. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  5081. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  5082. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  5083. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  5084. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  5085. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  5086. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  5087. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  5088. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  5089. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  5090. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  5091. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  5092. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  5093. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  5094. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  5095. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  5096. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  5097. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  5098. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  5099. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  5100. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  5101. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  5102. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  5103. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  5104. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  5105. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  5106. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  5107. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  5108. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  5109. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  5110. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  5111. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  5112. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  5113. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  5114. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  5115. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  5116. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  5117. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  5118. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  5119. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  5120. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  5121. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  5122. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  5123. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  5124. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  5125. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  5126. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  5127. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  5128. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  5129. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  5130. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  5131. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  5132. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  5133. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  5134. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  5135. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  5136. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  5137. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  5138. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  5139. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  5140. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  5141. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  5142. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  5143. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  5144. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  5145. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  5146. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  5147. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  5148. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  5149. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  5150. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  5151. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  5152. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  5153. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  5154. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  5155. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  5156. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  5157. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  5158. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  5159. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  5160. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  5161. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  5162. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  5163. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  5164. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  5165. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  5166. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  5167. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  5168. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  5169. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  5170. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  5171. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  5172. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  5173. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  5174. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  5175. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  5176. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  5177. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  5178. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  5179. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  5180. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  5181. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  5182. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  5183. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  5184. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  5185. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  5186. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  5187. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  5188. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  5189. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  5190. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  5191. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  5192. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  5193. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  5194. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  5195. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  5196. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  5197. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  5198. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  5199. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  5200. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  5201. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  5202. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  5203. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  5204. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  5205. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  5206. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  5207. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  5208. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  5209. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  5210. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  5211. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  5212. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  5213. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  5214. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  5215. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  5216. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  5217. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  5218. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  5219. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  5220. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  5221. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  5222. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  5223. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  5224. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  5225. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  5226. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  5227. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  5228. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  5229. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  5230. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  5231. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  5232. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  5233. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  5234. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  5235. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  5236. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  5237. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  5238. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  5239. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  5240. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  5241. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  5242. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  5243. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  5244. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  5245. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  5246. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  5247. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  5248. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  5249. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  5250. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  5251. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  5252. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  5253. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  5254. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  5255. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  5256. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  5257. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  5258. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  5259. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  5260. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  5261. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  5262. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  5263. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  5264. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  5265. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  5266. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  5267. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  5268. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  5269. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  5270. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  5271. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  5272. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  5273. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  5274. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  5275. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  5276. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  5277. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  5278. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  5279. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  5280. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  5281. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  5282. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  5283. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  5284. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  5285. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  5286. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  5287. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  5288. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  5289. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  5290. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  5291. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  5292. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  5293. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  5294. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  5295. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  5296. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  5297. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  5298. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  5299. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  5300. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  5301. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  5302. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  5303. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  5304. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  5305. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  5306. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  5307. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  5308. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  5309. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  5310. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  5311. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  5312. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  5313. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  5314. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  5315. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  5316. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  5317. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  5318. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  5319. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  5320. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  5321. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  5322. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  5323. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  5324. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  5325. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  5326. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  5327. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  5328. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  5329. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  5330. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  5331. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  5332. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  5333. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  5334. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  5335. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  5336. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  5337. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  5338. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  5339. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  5340. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  5341. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  5342. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  5343. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  5344. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  5345. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  5346. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  5347. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  5348. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  5349. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  5350. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  5351. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  5352. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  5353. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  5354. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  5355. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  5356. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  5357. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  5358. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  5359. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  5360. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  5361. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  5362. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  5363. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  5364. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  5365. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  5366. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  5367. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  5368. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  5369. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  5370. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  5371. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  5372. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  5373. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  5374. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  5375. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  5376. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  5377. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  5378. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  5379. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  5380. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  5381. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  5382. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  5383. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  5384. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  5385. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  5386. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  5387. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  5388. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  5389. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  5390. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  5391. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  5392. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  5393. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  5394. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  5395. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  5396. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  5397. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  5398. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  5399. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  5400. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  5401. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  5402. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  5403. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  5404. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  5405. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  5406. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  5407. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  5408. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  5409. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  5410. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  5411. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  5412. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  5413. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  5414. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  5415. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  5416. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  5417. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  5418. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  5419. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  5420. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  5421. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  5422. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  5423. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  5424. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  5425. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  5426. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  5427. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  5428. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  5429. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  5430. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  5431. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  5432. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  5433. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  5434. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  5435. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  5436. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  5437. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  5438. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  5439. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  5440. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  5441. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  5442. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  5443. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  5444. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  5445. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  5446. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  5447. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  5448. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  5449. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  5450. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  5451. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  5452. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  5453. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  5454. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  5455. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  5456. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  5457. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  5458. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  5459. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  5460. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  5461. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  5462. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  5463. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  5464. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  5465. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  5466. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  5467. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  5468. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  5469. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  5470. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  5471. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  5472. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  5473. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  5474. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  5475. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  5476. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  5477. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  5478. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  5479. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  5480. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  5481. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  5482. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  5483. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  5484. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  5485. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  5486. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  5487. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  5488. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  5489. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  5490. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  5491. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  5492. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  5493. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  5494. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  5495. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  5496. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  5497. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  5498. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  5499. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  5500. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  5501. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  5502. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  5503. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  5504. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  5505. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  5506. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  5507. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  5508. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  5509. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  5510. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  5511. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  5512. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  5513. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  5514. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  5515. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  5516. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  5517. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  5518. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  5519. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  5520. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  5521. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  5522. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  5523. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  5524. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  5525. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  5526. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  5527. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  5528. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  5529. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  5530. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  5531. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  5532. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  5533. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  5534. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  5535. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  5536. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  5537. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  5538. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  5539. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  5540. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  5541. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  5542. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  5543. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  5544. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  5545. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  5546. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  5547. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  5548. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  5549. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  5550. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  5551. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  5552. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  5553. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  5554. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  5555. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  5556. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  5557. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  5558. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  5559. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  5560. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  5561. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  5562. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  5563. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  5564. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  5565. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  5566. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  5567. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  5568. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  5569. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  5570. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  5571. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  5572. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  5573. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  5574. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  5575. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  5576. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  5577. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  5578. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  5579. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  5580. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  5581. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  5582. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  5583. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  5584. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  5585. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  5586. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  5587. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  5588. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  5589. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  5590. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  5591. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  5592. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  5593. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  5594. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  5595. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  5596. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  5597. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  5598. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  5599. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  5600. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  5601. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  5602. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  5603. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  5604. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  5605. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  5606. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  5607. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  5608. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  5609. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  5610. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  5611. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  5612. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  5613. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  5614. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  5615. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  5616. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  5617. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  5618. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  5619. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  5620. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  5621. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  5622. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  5623. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  5624. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  5625. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  5626. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  5627. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  5628. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  5629. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  5630. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  5631. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  5632. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  5633. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  5634. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  5635. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  5636. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  5637. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  5638. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  5639. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  5640. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  5641. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  5642. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  5643. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  5644. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  5645. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  5646. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  5647. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  5648. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  5649. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  5650. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  5651. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  5652. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  5653. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  5654. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  5655. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  5656. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  5657. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  5658. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  5659. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  5660. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  5661. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  5662. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  5663. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  5664. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  5665. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  5666. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  5667. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  5668. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  5669. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  5670. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  5671. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  5672. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  5673. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  5674. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  5675. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  5676. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  5677. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  5678. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  5679. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  5680. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  5681. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  5682. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  5683. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  5684. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  5685. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  5686. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  5687. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  5688. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  5689. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  5690. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  5691. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  5692. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  5693. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  5694. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  5695. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  5696. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  5697. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  5698. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  5699. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  5700. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  5701. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  5702. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  5703. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  5704. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  5705. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  5706. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  5707. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  5708. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  5709. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  5710. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  5711. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  5712. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  5713. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  5714. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  5715. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  5716. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  5717. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  5718. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  5719. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  5720. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  5721. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  5722. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  5723. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  5724. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  5725. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  5726. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  5727. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  5728. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  5729. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  5730. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  5731. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  5732. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  5733. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  5734. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  5735. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  5736. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  5737. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  5738. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  5739. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  5740. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  5741. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  5742. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  5743. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  5744. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  5745. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  5746. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  5747. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  5748. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  5749. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  5750. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  5751. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  5752. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  5753. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  5754. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  5755. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  5756. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  5757. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  5758. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  5759. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  5760. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  5761. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  5762. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  5763. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  5764. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  5765. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  5766. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  5767. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  5768. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  5769. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  5770. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  5771. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  5772. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  5773. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  5774. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  5775. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  5776. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  5777. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  5778. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  5779. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  5780. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  5781. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  5782. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  5783. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  5784. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  5785. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  5786. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  5787. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  5788. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  5789. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  5790. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  5791. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  5792. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  5793. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  5794. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  5795. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  5796. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  5797. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  5798. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  5799. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  5800. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  5801. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  5802. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  5803. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  5804. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  5805. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  5806. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  5807. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  5808. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  5809. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  5810. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  5811. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  5812. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  5813. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  5814. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  5815. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  5816. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  5817. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  5818. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  5819. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  5820. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  5821. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  5822. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  5823. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  5824. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  5825. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  5826. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  5827. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  5828. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  5829. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  5830. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  5831. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  5832. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  5833. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  5834. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  5835. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  5836. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  5837. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  5838. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  5839. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  5840. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  5841. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  5842. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  5843. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  5844. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  5845. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  5846. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  5847. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  5848. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  5849. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  5850. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  5851. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  5852. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  5853. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  5854. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  5855. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  5856. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  5857. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  5858. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  5859. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  5860. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  5861. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  5862. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  5863. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  5864. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  5865. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  5866. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  5867. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  5868. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  5869. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  5870. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  5871. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  5872. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  5873. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  5874. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  5875. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  5876. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  5877. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  5878. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  5879. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  5880. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  5881. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  5882. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  5883. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  5884. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  5885. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  5886. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  5887. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  5888. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  5889. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  5890. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  5891. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  5892. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  5893. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  5894. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  5895. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  5896. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  5897. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  5898. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  5899. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  5900. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  5901. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  5902. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  5903. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  5904. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  5905. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  5906. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  5907. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  5908. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  5909. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  5910. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  5911. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  5912. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  5913. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  5914. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  5915. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  5916. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  5917. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  5918. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  5919. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  5920. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  5921. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  5922. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  5923. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  5924. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  5925. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  5926. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  5927. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  5928. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  5929. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  5930. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  5931. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  5932. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  5933. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  5934. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  5935. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  5936. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  5937. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  5938. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  5939. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  5940. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  5941. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  5942. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  5943. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  5944. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  5945. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  5946. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  5947. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  5948. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  5949. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  5950. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  5951. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  5952. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  5953. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  5954. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  5955. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  5956. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  5957. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  5958. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  5959. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  5960. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  5961. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  5962. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  5963. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  5964. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  5965. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  5966. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  5967. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  5968. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  5969. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  5970. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  5971. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  5972. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  5973. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  5974. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  5975. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  5976. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  5977. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  5978. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  5979. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  5980. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  5981. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  5982. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  5983. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  5984. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  5985. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  5986. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  5987. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  5988. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  5989. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  5990. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  5991. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  5992. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  5993. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  5994. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  5995. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  5996. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  5997. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  5998. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  5999. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  6000. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  6001. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  6002. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  6003. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  6004. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  6005. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  6006. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  6007. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  6008. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  6009. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  6010. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  6011. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  6012. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  6013. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  6014. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  6015. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  6016. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  6017. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  6018. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  6019. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  6020. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  6021. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  6022. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  6023. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  6024. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  6025. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  6026. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  6027. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  6028. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  6029. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  6030. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  6031. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  6032. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  6033. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  6034. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  6035. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  6036. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  6037. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  6038. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  6039. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  6040. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  6041. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  6042. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  6043. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  6044. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  6045. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  6046. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  6047. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  6048. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  6049. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  6050. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  6051. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  6052. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  6053. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  6054. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  6055. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  6056. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  6057. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  6058. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  6059. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  6060. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  6061. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  6062. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  6063. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  6064. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  6065. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  6066. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  6067. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  6068. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  6069. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  6070. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  6071. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  6072. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  6073. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  6074. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  6075. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  6076. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  6077. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  6078. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  6079. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  6080. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  6081. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  6082. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  6083. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  6084. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  6085. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  6086. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  6087. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  6088. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  6089. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  6090. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  6091. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  6092. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  6093. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  6094. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  6095. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  6096. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  6097. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  6098. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  6099. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  6100. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  6101. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  6102. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  6103. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  6104. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  6105. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  6106. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  6107. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  6108. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  6109. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  6110. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  6111. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  6112. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  6113. 38315, 38741, 171581, 173594],
  6114. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  6115. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  6116. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  6117. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  6118. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  6119. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  6120. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  6121. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  6122. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  6123. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  6124. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  6125. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  6126. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  6127. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  6128. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  6129. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  6130. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  6131. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  6132. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  6133. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  6134. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  6135. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  6136. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  6137. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  6138. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  6139. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  6140. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  6141. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  6142. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  6143. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  6144. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  6145. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  6146. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  6147. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  6148. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  6149. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  6150. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  6151. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  6152. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  6153. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  6154. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  6155. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  6156. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  6157. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  6158. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  6159. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  6160. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  6161. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  6162. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  6163. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  6164. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  6165. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  6166. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  6167. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  6168. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  6169. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  6170. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  6171. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  6172. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  6173. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  6174. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  6175. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  6176. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  6177. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  6178. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  6179. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  6180. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  6181. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  6182. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  6183. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  6184. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  6185. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  6186. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  6187. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  6188. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  6189. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  6190. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  6191. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  6192. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  6193. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  6194. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  6195. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  6196. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  6197. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  6198. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  6199. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  6200. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  6201. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  6202. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  6203. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  6204. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  6205. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  6206. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  6207. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  6208. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  6209. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  6210. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  6211. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  6212. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  6213. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  6214. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  6215. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  6216. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  6217. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  6218. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  6219. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  6220. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  6221. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  6222. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  6223. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  6224. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  6225. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  6226. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  6227. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  6228. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  6229. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  6230. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  6231. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  6232. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  6233. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  6234. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  6235. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  6236. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  6237. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  6238. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  6239. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  6240. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  6241. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  6242. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  6243. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  6244. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  6245. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  6246. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  6247. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  6248. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  6249. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  6250. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  6251. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  6252. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  6253. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  6254. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  6255. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  6256. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  6257. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  6258. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  6259. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  6260. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  6261. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  6262. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  6263. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  6264. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  6265. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  6266. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  6267. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  6268. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  6269. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  6270. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  6271. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  6272. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  6273. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  6274. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  6275. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  6276. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  6277. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  6278. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  6279. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  6280. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  6281. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  6282. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  6283. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  6284. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  6285. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  6286. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  6287. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  6288. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  6289. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  6290. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  6291. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  6292. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  6293. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  6294. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  6295. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  6296. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  6297. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  6298. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  6299. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  6300. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  6301. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  6302. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  6303. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  6304. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  6305. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  6306. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  6307. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  6308. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  6309. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  6310. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  6311. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  6312. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  6313. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  6314. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  6315. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  6316. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  6317. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  6318. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  6319. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  6320. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  6321. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  6322. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  6323. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  6324. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  6325. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  6326. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  6327. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  6328. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  6329. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  6330. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  6331. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  6332. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  6333. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  6334. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  6335. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  6336. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  6337. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  6338. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  6339. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  6340. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  6341. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  6342. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  6343. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  6344. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  6345. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  6346. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  6347. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  6348. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  6349. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  6350. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  6351. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  6352. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  6353. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  6354. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  6355. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  6356. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  6357. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  6358. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  6359. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  6360. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  6361. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  6362. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  6363. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  6364. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  6365. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  6366. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  6367. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  6368. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  6369. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  6370. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  6371. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  6372. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  6373. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  6374. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  6375. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  6376. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  6377. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  6378. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  6379. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  6380. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  6381. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  6382. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  6383. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  6384. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  6385. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  6386. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  6387. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  6388. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  6389. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  6390. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  6391. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  6392. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  6393. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  6394. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  6395. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  6396. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  6397. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  6398. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  6399. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  6400. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  6401. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  6402. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  6403. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  6404. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  6405. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  6406. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  6407. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  6408. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  6409. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  6410. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  6411. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  6412. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  6413. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  6414. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  6415. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  6416. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  6417. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  6418. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  6419. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  6420. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  6421. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  6422. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  6423. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  6424. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  6425. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  6426. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  6427. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  6428. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  6429. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  6430. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  6431. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  6432. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  6433. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  6434. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  6435. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  6436. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  6437. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  6438. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  6439. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  6440. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  6441. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  6442. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  6443. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  6444. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  6445. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  6446. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  6447. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  6448. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  6449. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  6450. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  6451. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  6452. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  6453. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  6454. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  6455. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  6456. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  6457. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  6458. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  6459. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  6460. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  6461. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  6462. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  6463. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  6464. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  6465. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  6466. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  6467. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  6468. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  6469. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  6470. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  6471. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  6472. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  6473. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  6474. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  6475. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  6476. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  6477. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  6478. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  6479. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  6480. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  6481. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  6482. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  6483. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  6484. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  6485. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  6486. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  6487. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  6488. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  6489. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  6490. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  6491. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  6492. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  6493. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  6494. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  6495. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  6496. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  6497. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  6498. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  6499. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  6500. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  6501. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  6502. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  6503. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  6504. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  6505. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  6506. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  6507. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  6508. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  6509. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  6510. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  6511. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  6512. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  6513. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  6514. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  6515. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  6516. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  6517. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  6518. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  6519. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  6520. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  6521. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  6522. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  6523. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  6524. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  6525. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  6526. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  6527. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  6528. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  6529. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  6530. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  6531. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  6532. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  6533. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  6534. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  6535. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  6536. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  6537. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  6538. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  6539. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  6540. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  6541. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  6542. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  6543. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  6544. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  6545. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  6546. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  6547. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  6548. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  6549. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  6550. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  6551. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  6552. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  6553. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  6554. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  6555. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  6556. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  6557. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  6558. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  6559. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  6560. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  6561. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  6562. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  6563. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  6564. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  6565. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  6566. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  6567. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  6568. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  6569. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  6570. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  6571. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  6572. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  6573. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  6574. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  6575. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  6576. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  6577. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  6578. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  6579. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  6580. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  6581. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  6582. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  6583. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  6584. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  6585. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  6586. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  6587. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  6588. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  6589. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  6590. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  6591. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  6592. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  6593. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  6594. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  6595. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  6596. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  6597. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  6598. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  6599. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  6600. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  6601. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  6602. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  6603. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  6604. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  6605. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  6606. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  6607. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  6608. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  6609. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  6610. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  6611. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  6612. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  6613. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  6614. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  6615. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  6616. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  6617. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  6618. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  6619. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  6620. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  6621. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  6622. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  6623. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  6624. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  6625. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  6626. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  6627. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  6628. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  6629. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  6630. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  6631. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  6632. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  6633. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  6634. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  6635. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  6636. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  6637. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  6638. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  6639. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  6640. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  6641. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  6642. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  6643. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  6644. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  6645. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  6646. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  6647. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  6648. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  6649. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  6650. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  6651. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  6652. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  6653. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  6654. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  6655. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  6656. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  6657. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  6658. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  6659. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  6660. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  6661. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  6662. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  6663. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  6664. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  6665. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  6666. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  6667. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  6668. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  6669. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  6670. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  6671. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  6672. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  6673. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  6674. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  6675. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  6676. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  6677. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  6678. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  6679. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  6680. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  6681. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  6682. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  6683. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  6684. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  6685. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  6686. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  6687. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  6688. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  6689. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  6690. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  6691. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  6692. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  6693. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  6694. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  6695. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  6696. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  6697. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  6698. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  6699. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  6700. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  6701. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  6702. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  6703. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  6704. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  6705. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  6706. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  6707. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  6708. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  6709. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  6710. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  6711. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  6712. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  6713. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  6714. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  6715. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  6716. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  6717. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  6718. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  6719. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  6720. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  6721. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  6722. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  6723. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  6724. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  6725. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  6726. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  6727. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  6728. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  6729. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  6730. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  6731. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  6732. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  6733. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  6734. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  6735. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  6736. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  6737. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  6738. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  6739. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  6740. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  6741. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  6742. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  6743. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  6744. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  6745. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  6746. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  6747. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  6748. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  6749. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  6750. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  6751. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  6752. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  6753. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  6754. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  6755. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  6756. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  6757. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  6758. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  6759. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  6760. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  6761. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  6762. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  6763. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  6764. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  6765. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  6766. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  6767. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  6768. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  6769. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  6770. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  6771. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  6772. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  6773. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  6774. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  6775. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  6776. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  6777. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  6778. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  6779. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  6780. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  6781. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  6782. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  6783. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  6784. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  6785. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  6786. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  6787. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  6788. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  6789. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  6790. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  6791. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  6792. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  6793. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  6794. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  6795. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  6796. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  6797. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  6798. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  6799. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  6800. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  6801. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  6802. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  6803. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  6804. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  6805. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  6806. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  6807. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  6808. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  6809. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  6810. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  6811. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  6812. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  6813. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  6814. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  6815. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  6816. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  6817. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  6818. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  6819. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  6820. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  6821. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  6822. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  6823. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  6824. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  6825. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  6826. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  6827. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  6828. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  6829. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  6830. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  6831. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  6832. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  6833. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  6834. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  6835. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  6836. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  6837. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  6838. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  6839. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  6840. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  6841. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  6842. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  6843. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  6844. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  6845. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  6846. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  6847. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  6848. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  6849. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  6850. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  6851. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  6852. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  6853. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  6854. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  6855. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  6856. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  6857. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  6858. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  6859. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  6860. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  6861. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  6862. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  6863. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  6864. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  6865. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  6866. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  6867. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  6868. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  6869. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  6870. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  6871. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  6872. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  6873. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  6874. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  6875. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  6876. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  6877. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  6878. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  6879. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  6880. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  6881. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  6882. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  6883. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  6884. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  6885. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  6886. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  6887. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  6888. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  6889. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  6890. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  6891. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  6892. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  6893. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  6894. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  6895. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  6896. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  6897. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  6898. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  6899. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  6900. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  6901. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  6902. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  6903. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  6904. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  6905. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  6906. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  6907. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  6908. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  6909. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  6910. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  6911. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  6912. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  6913. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  6914. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  6915. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  6916. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  6917. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  6918. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  6919. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  6920. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  6921. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  6922. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  6923. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  6924. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  6925. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  6926. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  6927. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  6928. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  6929. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  6930. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  6931. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  6932. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  6933. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  6934. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  6935. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  6936. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  6937. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  6938. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  6939. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  6940. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  6941. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  6942. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  6943. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  6944. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  6945. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  6946. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  6947. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  6948. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  6949. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  6950. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  6951. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  6952. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  6953. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  6954. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  6955. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  6956. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  6957. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  6958. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  6959. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  6960. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  6961. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  6962. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  6963. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  6964. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  6965. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  6966. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  6967. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  6968. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  6969. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  6970. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  6971. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  6972. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  6973. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  6974. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  6975. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  6976. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  6977. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  6978. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  6979. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  6980. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  6981. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  6982. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  6983. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  6984. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  6985. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  6986. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  6987. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  6988. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  6989. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  6990. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  6991. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  6992. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  6993. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  6994. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  6995. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  6996. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  6997. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  6998. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  6999. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  7000. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  7001. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  7002. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  7003. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  7004. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  7005. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  7006. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  7007. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  7008. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  7009. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  7010. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  7011. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  7012. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  7013. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  7014. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  7015. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  7016. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  7017. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  7018. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  7019. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  7020. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  7021. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  7022. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  7023. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  7024. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  7025. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  7026. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  7027. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  7028. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  7029. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  7030. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  7031. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  7032. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  7033. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  7034. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  7035. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  7036. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  7037. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  7038. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  7039. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  7040. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  7041. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  7042. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  7043. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  7044. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  7045. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  7046. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  7047. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  7048. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  7049. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  7050. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  7051. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  7052. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  7053. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  7054. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  7055. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  7056. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  7057. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  7058. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  7059. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  7060. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  7061. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  7062. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  7063. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  7064. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  7065. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  7066. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  7067. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  7068. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  7069. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  7070. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  7071. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  7072. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  7073. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  7074. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  7075. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  7076. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  7077. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  7078. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  7079. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  7080. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  7081. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  7082. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  7083. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  7084. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  7085. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  7086. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  7087. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  7088. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  7089. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  7090. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  7091. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  7092. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  7093. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  7094. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  7095. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  7096. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  7097. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  7098. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  7099. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  7100. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  7101. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  7102. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  7103. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  7104. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  7105. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  7106. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  7107. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  7108. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  7109. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  7110. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  7111. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  7112. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  7113. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  7114. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  7115. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  7116. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  7117. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  7118. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  7119. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  7120. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  7121. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  7122. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  7123. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  7124. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  7125. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  7126. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  7127. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  7128. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  7129. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  7130. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  7131. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  7132. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  7133. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  7134. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  7135. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  7136. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  7137. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  7138. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  7139. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  7140. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  7141. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  7142. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  7143. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  7144. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  7145. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  7146. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  7147. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  7148. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  7149. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  7150. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  7151. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  7152. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  7153. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  7154. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  7155. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  7156. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  7157. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  7158. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  7159. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  7160. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  7161. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  7162. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  7163. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  7164. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  7165. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  7166. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  7167. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  7168. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  7169. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  7170. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  7171. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  7172. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  7173. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  7174. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  7175. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  7176. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  7177. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  7178. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  7179. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  7180. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  7181. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  7182. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  7183. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  7184. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  7185. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  7186. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  7187. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  7188. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  7189. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  7190. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  7191. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  7192. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  7193. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  7194. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  7195. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  7196. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  7197. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  7198. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  7199. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  7200. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  7201. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  7202. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  7203. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  7204. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  7205. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  7206. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  7207. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  7208. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  7209. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  7210. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  7211. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  7212. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  7213. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  7214. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  7215. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  7216. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  7217. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  7218. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  7219. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  7220. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  7221. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  7222. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  7223. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  7224. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  7225. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  7226. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  7227. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  7228. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  7229. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  7230. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  7231. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  7232. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  7233. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  7234. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  7235. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  7236. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  7237. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  7238. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  7239. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  7240. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  7241. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  7242. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  7243. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  7244. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  7245. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  7246. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  7247. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  7248. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  7249. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  7250. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  7251. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  7252. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  7253. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  7254. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  7255. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  7256. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  7257. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  7258. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  7259. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  7260. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  7261. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  7262. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  7263. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  7264. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  7265. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  7266. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  7267. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  7268. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  7269. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  7270. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  7271. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  7272. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  7273. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  7274. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  7275. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  7276. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  7277. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  7278. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  7279. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  7280. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  7281. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  7282. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  7283. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  7284. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  7285. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  7286. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  7287. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  7288. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  7289. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  7290. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  7291. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  7292. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  7293. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  7294. {f: 6, c: 55198}],
  7295. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  7296. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  7297. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  7298. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  7299. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  7300. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  7301. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  7302. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  7303. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  7304. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  7305. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  7306. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  7307. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  7308. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  7309. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  7310. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  7311. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  7312. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  7313. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  7314. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  7315. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  7316. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  7317. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  7318. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  7319. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  7320. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  7321. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  7322. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  7323. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  7324. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  7325. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  7326. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  7327. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  7328. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  7329. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  7330. [12057, 21353, 63192], [12059, 21430, 63193],
  7331. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  7332. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  7333. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  7334. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  7335. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  7336. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  7337. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  7338. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  7339. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  7340. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  7341. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  7342. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  7343. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  7344. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  7345. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  7346. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  7347. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  7348. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  7349. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  7350. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  7351. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  7352. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  7353. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  7354. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  7355. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  7356. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  7357. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  7358. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  7359. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  7360. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  7361. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  7362. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  7363. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  7364. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  7365. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  7366. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  7367. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  7368. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  7369. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  7370. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  7371. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  7372. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  7373. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  7374. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  7375. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  7376. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  7377. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  7378. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  7379. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  7380. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  7381. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  7382. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  7383. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  7384. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  7385. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  7386. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  7387. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  7388. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  7389. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  7390. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  7391. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  7392. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  7393. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  7394. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  7395. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  7396. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  7397. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  7398. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  7399. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  7400. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  7401. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  7402. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  7403. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  7404. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  7405. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  7406. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  7407. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  7408. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  7409. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  7410. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  7411. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  7412. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  7413. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  7414. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  7415. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  7416. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  7417. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  7418. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  7419. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  7420. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  7421. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  7422. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  7423. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  7424. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  7425. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  7426. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  7427. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  7428. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  7429. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  7430. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  7431. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  7432. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  7433. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  7434. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  7435. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  7436. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  7437. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  7438. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  7439. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  7440. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  7441. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  7442. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  7443. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  7444. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  7445. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  7446. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  7447. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  7448. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  7449. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  7450. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  7451. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  7452. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  7453. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  7454. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  7455. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  7456. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  7457. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  7458. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  7459. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  7460. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  7461. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  7462. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  7463. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  7464. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  7465. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  7466. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  7467. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  7468. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  7469. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  7470. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  7471. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  7472. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  7473. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  7474. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  7475. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  7476. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  7477. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  7478. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  7479. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  7480. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  7481. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  7482. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  7483. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  7484. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  7485. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  7486. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  7487. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  7488. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  7489. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  7490. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  7491. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  7492. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  7493. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  7494. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  7495. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  7496. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  7497. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  7498. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  7499. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  7500. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  7501. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  7502. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  7503. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  7504. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  7505. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  7506. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  7507. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  7508. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  7509. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  7510. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  7511. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  7512. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  7513. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  7514. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  7515. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  7516. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  7517. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  7518. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  7519. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  7520. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  7521. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  7522. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  7523. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  7524. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  7525. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  7526. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  7527. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  7528. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  7529. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  7530. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  7531. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  7532. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  7533. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  7534. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  7535. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  7536. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  7537. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  7538. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  7539. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  7540. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  7541. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  7542. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  7543. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  7544. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  7545. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  7546. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  7547. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  7548. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  7549. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  7550. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  7551. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  7552. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  7553. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  7554. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  7555. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  7556. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  7557. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  7558. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  7559. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  7560. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  7561. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  7562. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  7563. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  7564. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  7565. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  7566. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  7567. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  7568. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  7569. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  7570. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  7571. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  7572. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  7573. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  7574. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  7575. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  7576. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  7577. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  7578. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  7579. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  7580. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  7581. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  7582. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  7583. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  7584. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  7585. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  7586. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  7587. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  7588. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  7589. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  7590. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  7591. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  7592. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  7593. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  7594. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  7595. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  7596. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  7597. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  7598. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  7599. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  7600. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  7601. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  7602. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  7603. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  7604. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  7605. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  7606. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  7607. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  7608. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  7609. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  7610. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  7611. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  7612. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  7613. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  7614. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  7615. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  7616. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  7617. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  7618. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  7619. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  7620. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  7621. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  7622. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  7623. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  7624. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  7625. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  7626. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  7627. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  7628. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  7629. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  7630. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  7631. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  7632. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  7633. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  7634. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  7635. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  7636. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  7637. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  7638. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  7639. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  7640. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  7641. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  7642. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  7643. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  7644. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  7645. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  7646. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  7647. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  7648. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  7649. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  7650. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  7651. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  7652. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  7653. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  7654. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  7655. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  7656. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  7657. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  7658. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  7659. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  7660. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  7661. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  7662. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  7663. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  7664. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  7665. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  7666. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  7667. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  7668. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  7669. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  7670. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  7671. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  7672. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  7673. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  7674. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  7675. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  7676. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  7677. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  7678. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  7679. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  7680. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  7681. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  7682. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  7683. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  7684. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  7685. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  7686. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  7687. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  7688. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  7689. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  7690. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  7691. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  7692. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  7693. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  7694. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  7695. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  7696. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  7697. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  7698. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  7699. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  7700. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  7701. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  7702. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  7703. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  7704. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  7705. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  7706. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  7707. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  7708. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  7709. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  7710. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  7711. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  7712. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  7713. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  7714. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  7715. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  7716. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  7717. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  7718. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  7719. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  7720. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  7721. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  7722. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  7723. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  7724. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  7725. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  7726. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  7727. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  7728. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  7729. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  7730. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  7731. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  7732. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  7733. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  7734. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  7735. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  7736. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  7737. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  7738. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  7739. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  7740. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  7741. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  7742. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  7743. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  7744. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  7745. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  7746. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  7747. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  7748. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  7749. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  7750. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  7751. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  7752. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  7753. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  7754. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  7755. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  7756. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  7757. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  7758. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  7759. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  7760. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  7761. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  7762. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  7763. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  7764. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  7765. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  7766. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  7767. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  7768. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  7769. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  7770. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  7771. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  7772. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  7773. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  7774. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  7775. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  7776. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  7777. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  7778. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  7779. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  7780. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  7781. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  7782. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  7783. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  7784. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  7785. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  7786. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  7787. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  7788. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  7789. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  7790. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  7791. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  7792. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  7793. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  7794. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  7795. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  7796. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  7797. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  7798. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  7799. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  7800. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  7801. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  7802. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  7803. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  7804. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  7805. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  7806. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  7807. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  7808. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  7809. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  7810. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  7811. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  7812. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  7813. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  7814. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  7815. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  7816. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  7817. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  7818. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  7819. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  7820. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  7821. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  7822. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  7823. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  7824. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  7825. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  7826. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  7827. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  7828. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  7829. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  7830. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  7831. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  7832. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  7833. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  7834. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  7835. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  7836. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  7837. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  7838. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  7839. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  7840. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  7841. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  7842. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  7843. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  7844. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  7845. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  7846. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  7847. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  7848. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  7849. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  7850. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  7851. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  7852. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  7853. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  7854. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  7855. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  7856. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  7857. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  7858. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  7859. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  7860. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  7861. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  7862. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  7863. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  7864. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  7865. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  7866. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  7867. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  7868. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  7869. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  7870. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  7871. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  7872. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  7873. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  7874. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  7875. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  7876. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  7877. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  7878. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  7879. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  7880. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  7881. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  7882. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  7883. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  7884. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  7885. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  7886. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  7887. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  7888. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  7889. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  7890. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  7891. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  7892. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  7893. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  7894. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  7895. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  7896. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  7897. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  7898. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  7899. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  7900. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  7901. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  7902. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  7903. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  7904. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  7905. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  7906. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  7907. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  7908. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  7909. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  7910. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  7911. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  7912. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  7913. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  7914. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  7915. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  7916. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  7917. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  7918. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  7919. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  7920. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  7921. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  7922. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  7923. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  7924. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  7925. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  7926. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  7927. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  7928. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  7929. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  7930. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  7931. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  7932. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  7933. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  7934. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  7935. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  7936. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  7937. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  7938. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  7939. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  7940. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  7941. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  7942. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  7943. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  7944. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  7945. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  7946. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  7947. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  7948. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  7949. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  7950. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  7951. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  7952. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  7953. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  7954. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  7955. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  7956. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  7957. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  7958. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  7959. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  7960. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  7961. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  7962. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  7963. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  7964. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  7965. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  7966. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  7967. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  7968. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  7969. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  7970. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  7971. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  7972. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  7973. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  7974. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  7975. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  7976. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  7977. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  7978. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  7979. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  7980. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  7981. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  7982. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  7983. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  7984. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  7985. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  7986. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  7987. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  7988. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  7989. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  7990. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  7991. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  7992. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  7993. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  7994. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  7995. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  7996. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  7997. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  7998. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  7999. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  8000. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  8001. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  8002. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  8003. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  8004. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  8005. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  8006. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  8007. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  8008. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  8009. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  8010. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  8011. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  8012. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  8013. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  8014. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  8015. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  8016. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  8017. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  8018. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  8019. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  8020. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  8021. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  8022. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  8023. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  8024. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  8025. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  8026. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  8027. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  8028. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  8029. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  8030. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  8031. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  8032. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  8033. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  8034. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  8035. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  8036. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  8037. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  8038. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  8039. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  8040. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  8041. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  8042. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  8043. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  8044. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  8045. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  8046. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  8047. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  8048. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  8049. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  8050. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  8051. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  8052. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  8053. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  8054. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  8055. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  8056. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  8057. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  8058. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  8059. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  8060. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  8061. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  8062. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  8063. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  8064. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  8065. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  8066. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  8067. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  8068. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  8069. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  8070. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  8071. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  8072. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  8073. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  8074. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  8075. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  8076. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  8077. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  8078. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  8079. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  8080. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  8081. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  8082. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  8083. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  8084. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  8085. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  8086. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  8087. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  8088. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  8089. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  8090. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  8091. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  8092. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  8093. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  8094. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  8095. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  8096. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  8097. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  8098. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  8099. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  8100. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  8101. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  8102. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  8103. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  8104. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  8105. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  8106. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  8107. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  8108. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  8109. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  8110. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  8111. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  8112. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  8113. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  8114. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  8115. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  8116. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  8117. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  8118. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  8119. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  8120. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  8121. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  8122. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  8123. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  8124. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  8125. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  8126. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  8127. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  8128. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  8129. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  8130. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  8131. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  8132. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  8133. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  8134. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  8135. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  8136. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  8137. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  8138. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  8139. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  8140. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  8141. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  8142. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  8143. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  8144. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  8145. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  8146. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  8147. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  8148. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  8149. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  8150. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  8151. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  8152. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  8153. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  8154. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  8155. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  8156. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  8157. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  8158. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  8159. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  8160. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  8161. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  8162. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  8163. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  8164. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  8165. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  8166. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  8167. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  8168. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  8169. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  8170. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  8171. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  8172. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  8173. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  8174. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  8175. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  8176. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  8177. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  8178. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  8179. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  8180. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  8181. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  8182. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  8183. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  8184. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  8185. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  8186. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  8187. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  8188. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  8189. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  8190. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  8191. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  8192. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  8193. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  8194. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  8195. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  8196. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  8197. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  8198. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  8199. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  8200. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  8201. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  8202. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  8203. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  8204. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  8205. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  8206. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  8207. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  8208. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  8209. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  8210. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  8211. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  8212. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  8213. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  8214. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  8215. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  8216. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  8217. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  8218. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  8219. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  8220. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  8221. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  8222. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  8223. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  8224. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  8225. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  8226. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  8227. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  8228. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  8229. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  8230. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  8231. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  8232. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  8233. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  8234. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  8235. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  8236. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  8237. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  8238. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  8239. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  8240. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  8241. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  8242. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  8243. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  8244. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  8245. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  8246. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  8247. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  8248. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  8249. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  8250. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  8251. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  8252. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  8253. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  8254. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  8255. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  8256. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  8257. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  8258. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  8259. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  8260. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  8261. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  8262. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  8263. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  8264. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  8265. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  8266. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  8267. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  8268. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  8269. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  8270. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  8271. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  8272. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  8273. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  8274. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  8275. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  8276. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  8277. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  8278. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  8279. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  8280. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  8281. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  8282. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  8283. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  8284. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  8285. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  8286. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  8287. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  8288. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  8289. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  8290. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  8291. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  8292. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  8293. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  8294. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  8295. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  8296. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  8297. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  8298. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  8299. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  8300. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  8301. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  8302. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  8303. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  8304. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  8305. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  8306. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  8307. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  8308. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  8309. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  8310. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  8311. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  8312. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  8313. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  8314. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  8315. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  8316. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  8317. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  8318. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  8319. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  8320. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  8321. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  8322. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  8323. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  8324. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  8325. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  8326. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  8327. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  8328. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  8329. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  8330. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  8331. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  8332. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  8333. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  8334. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  8335. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  8336. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  8337. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  8338. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  8339. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  8340. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  8341. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  8342. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  8343. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  8344. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  8345. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  8346. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  8347. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  8348. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  8349. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  8350. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  8351. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  8352. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  8353. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  8354. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  8355. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  8356. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  8357. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  8358. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  8359. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  8360. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  8361. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  8362. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  8363. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  8364. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  8365. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  8366. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  8367. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  8368. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  8369. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  8370. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  8371. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  8372. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  8373. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  8374. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  8375. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  8376. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  8377. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  8378. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  8379. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  8380. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  8381. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  8382. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  8383. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  8384. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  8385. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  8386. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  8387. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  8388. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  8389. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  8390. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  8391. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  8392. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  8393. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  8394. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  8395. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  8396. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  8397. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  8398. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  8399. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  8400. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  8401. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  8402. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  8403. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  8404. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  8405. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  8406. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  8407. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  8408. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  8409. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  8410. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  8411. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  8412. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  8413. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  8414. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  8415. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  8416. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  8417. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  8418. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  8419. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  8420. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  8421. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  8422. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  8423. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  8424. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  8425. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  8426. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  8427. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  8428. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  8429. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  8430. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  8431. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  8432. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  8433. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  8434. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  8435. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  8436. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  8437. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  8438. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  8439. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  8440. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  8441. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  8442. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  8443. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  8444. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  8445. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  8446. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  8447. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  8448. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  8449. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  8450. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  8451. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  8452. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  8453. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  8454. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  8455. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  8456. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  8457. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  8458. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  8459. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  8460. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  8461. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  8462. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  8463. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  8464. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  8465. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  8466. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  8467. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  8468. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  8469. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  8470. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  8471. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  8472. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  8473. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  8474. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  8475. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  8476. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  8477. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  8478. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  8479. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  8480. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  8481. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  8482. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  8483. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  8484. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  8485. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  8486. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  8487. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  8488. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  8489. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  8490. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  8491. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  8492. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  8493. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  8494. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  8495. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  8496. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  8497. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  8498. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  8499. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  8500. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  8501. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  8502. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  8503. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  8504. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  8505. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  8506. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  8507. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  8508. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  8509. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  8510. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  8511. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  8512. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  8513. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  8514. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  8515. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  8516. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  8517. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  8518. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  8519. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  8520. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  8521. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  8522. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  8523. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  8524. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  8525. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  8526. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  8527. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  8528. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  8529. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  8530. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  8531. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  8532. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  8533. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  8534. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  8535. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  8536. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  8537. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  8538. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  8539. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  8540. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  8541. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  8542. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  8543. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  8544. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  8545. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  8546. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  8547. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  8548. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  8549. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  8550. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  8551. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  8552. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  8553. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  8554. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  8555. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  8556. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  8557. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  8558. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  8559. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  8560. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  8561. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  8562. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  8563. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  8564. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  8565. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  8566. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  8567. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  8568. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  8569. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  8570. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  8571. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  8572. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  8573. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  8574. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  8575. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  8576. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  8577. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  8578. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  8579. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  8580. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  8581. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  8582. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  8583. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  8584. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  8585. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  8586. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  8587. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  8588. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  8589. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  8590. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  8591. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  8592. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  8593. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  8594. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  8595. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  8596. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  8597. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  8598. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  8599. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  8600. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  8601. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  8602. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  8603. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  8604. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  8605. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  8606. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  8607. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  8608. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  8609. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  8610. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  8611. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  8612. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  8613. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  8614. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  8615. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  8616. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  8617. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  8618. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  8619. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  8620. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  8621. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  8622. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  8623. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  8624. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  8625. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  8626. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  8627. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  8628. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  8629. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  8630. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  8631. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  8632. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  8633. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  8634. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  8635. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  8636. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  8637. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  8638. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  8639. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  8640. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  8641. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  8642. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  8643. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  8644. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  8645. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  8646. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  8647. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  8648. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  8649. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  8650. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  8651. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  8652. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  8653. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  8654. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  8655. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  8656. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  8657. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  8658. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  8659. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  8660. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  8661. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  8662. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  8663. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  8664. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  8665. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  8666. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  8667. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  8668. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  8669. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  8670. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  8671. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  8672. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  8673. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  8674. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  8675. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  8676. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  8677. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  8678. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  8679. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  8680. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  8681. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  8682. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  8683. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  8684. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  8685. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  8686. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  8687. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  8688. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  8689. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  8690. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  8691. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  8692. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  8693. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  8694. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  8695. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  8696. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  8697. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  8698. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  8699. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  8700. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  8701. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  8702. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  8703. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  8704. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  8705. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  8706. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  8707. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  8708. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  8709. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  8710. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  8711. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  8712. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  8713. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  8714. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  8715. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  8716. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  8717. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  8718. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  8719. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  8720. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  8721. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  8722. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  8723. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  8724. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  8725. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  8726. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  8727. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  8728. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  8729. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  8730. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  8731. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  8732. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  8733. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  8734. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  8735. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  8736. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  8737. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  8738. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  8739. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  8740. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  8741. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  8742. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  8743. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  8744. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  8745. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  8746. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  8747. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  8748. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  8749. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  8750. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  8751. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  8752. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  8753. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  8754. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  8755. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  8756. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  8757. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  8758. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  8759. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  8760. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  8761. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  8762. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  8763. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  8764. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  8765. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  8766. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  8767. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  8768. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  8769. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  8770. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  8771. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  8772. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  8773. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  8774. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  8775. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  8776. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  8777. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  8778. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  8779. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  8780. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  8781. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  8782. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  8783. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  8784. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  8785. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  8786. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  8787. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  8788. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  8789. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  8790. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  8791. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  8792. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  8793. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  8794. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  8795. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  8796. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  8797. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  8798. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  8799. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  8800. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  8801. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  8802. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  8803. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  8804. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  8805. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  8806. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  8807. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  8808. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  8809. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  8810. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  8811. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  8812. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  8813. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  8814. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  8815. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  8816. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  8817. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  8818. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  8819. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  8820. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  8821. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  8822. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  8823. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  8824. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  8825. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  8826. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  8827. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  8828. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  8829. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  8830. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  8831. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  8832. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  8833. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  8834. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  8835. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  8836. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  8837. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  8838. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  8839. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  8840. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  8841. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  8842. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  8843. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  8844. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  8845. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  8846. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  8847. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  8848. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  8849. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  8850. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  8851. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  8852. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  8853. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  8854. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  8855. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  8856. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  8857. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  8858. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  8859. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  8860. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  8861. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  8862. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  8863. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  8864. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  8865. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  8866. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  8867. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  8868. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  8869. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  8870. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  8871. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  8872. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  8873. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  8874. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  8875. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  8876. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  8877. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  8878. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  8879. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  8880. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  8881. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  8882. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  8883. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  8884. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  8885. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  8886. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  8887. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  8888. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  8889. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  8890. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  8891. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  8892. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  8893. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  8894. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  8895. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  8896. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  8897. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  8898. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  8899. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  8900. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  8901. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  8902. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  8903. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  8904. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  8905. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  8906. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  8907. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  8908. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  8909. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  8910. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  8911. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  8912. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  8913. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  8914. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  8915. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  8916. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  8917. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  8918. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  8919. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  8920. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  8921. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  8922. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  8923. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  8924. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  8925. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  8926. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  8927. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  8928. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  8929. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  8930. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  8931. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  8932. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  8933. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  8934. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  8935. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  8936. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  8937. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  8938. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  8939. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  8940. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  8941. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  8942. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  8943. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  8944. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  8945. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  8946. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  8947. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  8948. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  8949. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  8950. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  8951. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  8952. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  8953. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  8954. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  8955. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  8956. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  8957. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  8958. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  8959. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  8960. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  8961. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  8962. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  8963. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  8964. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  8965. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  8966. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  8967. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  8968. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  8969. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  8970. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  8971. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  8972. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  8973. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  8974. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  8975. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  8976. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  8977. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  8978. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  8979. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  8980. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  8981. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  8982. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  8983. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  8984. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  8985. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  8986. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  8987. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  8988. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  8989. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  8990. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  8991. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  8992. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  8993. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  8994. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  8995. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  8996. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  8997. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  8998. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  8999. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  9000. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  9001. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  9002. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  9003. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  9004. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  9005. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  9006. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  9007. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  9008. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  9009. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  9010. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  9011. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  9012. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  9013. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  9014. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  9015. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  9016. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  9017. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  9018. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  9019. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  9020. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  9021. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  9022. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  9023. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  9024. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  9025. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  9026. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  9027. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  9028. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  9029. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  9030. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  9031. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  9032. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  9033. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  9034. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  9035. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  9036. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  9037. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  9038. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  9039. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  9040. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  9041. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  9042. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  9043. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  9044. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  9045. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  9046. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  9047. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  9048. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  9049. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  9050. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  9051. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  9052. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  9053. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  9054. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  9055. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  9056. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  9057. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  9058. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  9059. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  9060. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  9061. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  9062. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  9063. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  9064. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  9065. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  9066. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  9067. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  9068. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  9069. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  9070. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  9071. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  9072. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  9073. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  9074. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  9075. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  9076. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  9077. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  9078. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  9079. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  9080. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  9081. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  9082. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  9083. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  9084. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  9085. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  9086. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  9087. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  9088. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  9089. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  9090. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  9091. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  9092. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  9093. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  9094. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  9095. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  9096. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  9097. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  9098. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  9099. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  9100. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  9101. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  9102. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  9103. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  9104. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  9105. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  9106. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  9107. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  9108. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  9109. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  9110. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  9111. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  9112. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  9113. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  9114. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  9115. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  9116. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  9117. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  9118. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  9119. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  9120. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  9121. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  9122. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  9123. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  9124. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  9125. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  9126. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  9127. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  9128. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  9129. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  9130. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  9131. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  9132. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  9133. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  9134. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  9135. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  9136. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  9137. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  9138. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  9139. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  9140. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  9141. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  9142. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  9143. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  9144. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  9145. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  9146. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  9147. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  9148. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  9149. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  9150. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  9151. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  9152. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  9153. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  9154. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  9155. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  9156. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  9157. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  9158. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  9159. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  9160. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  9161. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  9162. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  9163. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  9164. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  9165. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  9166. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  9167. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  9168. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  9169. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  9170. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  9171. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  9172. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  9173. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  9174. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  9175. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  9176. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  9177. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  9178. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  9179. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  9180. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  9181. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  9182. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  9183. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  9184. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  9185. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  9186. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  9187. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  9188. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  9189. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  9190. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  9191. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  9192. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  9193. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  9194. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  9195. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  9196. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  9197. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  9198. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  9199. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  9200. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  9201. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  9202. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  9203. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  9204. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  9205. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  9206. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  9207. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  9208. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  9209. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  9210. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  9211. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  9212. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  9213. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  9214. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  9215. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  9216. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  9217. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  9218. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  9219. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  9220. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  9221. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  9222. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  9223. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  9224. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  9225. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  9226. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  9227. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  9228. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  9229. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  9230. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  9231. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  9232. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  9233. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  9234. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  9235. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  9236. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  9237. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  9238. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  9239. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  9240. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  9241. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  9242. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  9243. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  9244. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  9245. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  9246. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  9247. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  9248. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  9249. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  9250. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  9251. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  9252. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  9253. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  9254. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  9255. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  9256. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  9257. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  9258. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  9259. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  9260. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  9261. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  9262. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  9263. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  9264. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  9265. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  9266. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  9267. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  9268. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  9269. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  9270. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  9271. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  9272. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  9273. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  9274. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  9275. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  9276. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  9277. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  9278. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  9279. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  9280. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  9281. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  9282. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  9283. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  9284. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  9285. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  9286. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  9287. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  9288. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  9289. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  9290. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  9291. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  9292. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  9293. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  9294. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  9295. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  9296. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  9297. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  9298. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  9299. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  9300. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  9301. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  9302. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  9303. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  9304. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  9305. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  9306. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  9307. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  9308. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  9309. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  9310. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  9311. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  9312. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  9313. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  9314. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  9315. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  9316. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  9317. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  9318. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  9319. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  9320. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  9321. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  9322. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  9323. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  9324. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  9325. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  9326. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  9327. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  9328. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  9329. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  9330. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  9331. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  9332. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  9333. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  9334. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  9335. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  9336. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  9337. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  9338. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  9339. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  9340. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  9341. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  9342. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  9343. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  9344. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  9345. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  9346. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  9347. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  9348. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  9349. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  9350. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  9351. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  9352. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  9353. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  9354. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  9355. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  9356. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  9357. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  9358. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  9359. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  9360. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  9361. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  9362. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  9363. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  9364. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  9365. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  9366. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  9367. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  9368. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  9369. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  9370. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  9371. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  9372. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  9373. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  9374. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  9375. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  9376. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  9377. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  9378. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  9379. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  9380. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  9381. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  9382. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  9383. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  9384. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  9385. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  9386. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  9387. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  9388. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  9389. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  9390. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  9391. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  9392. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  9393. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  9394. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  9395. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  9396. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  9397. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  9398. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  9399. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  9400. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  9401. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  9402. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  9403. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  9404. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  9405. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  9406. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  9407. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  9408. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  9409. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  9410. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  9411. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  9412. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  9413. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  9414. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  9415. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  9416. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  9417. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  9418. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  9419. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  9420. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  9421. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  9422. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  9423. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  9424. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  9425. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  9426. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  9427. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  9428. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  9429. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  9430. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  9431. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  9432. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  9433. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  9434. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  9435. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  9436. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  9437. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  9438. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  9439. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  9440. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  9441. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  9442. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  9443. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  9444. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  9445. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  9446. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  9447. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  9448. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  9449. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  9450. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  9451. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  9452. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  9453. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  9454. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  9455. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  9456. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  9457. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  9458. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  9459. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  9460. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  9461. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  9462. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  9463. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  9464. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  9465. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  9466. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  9467. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  9468. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  9469. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  9470. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  9471. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  9472. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  9473. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  9474. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  9475. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  9476. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  9477. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  9478. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  9479. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  9480. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  9481. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  9482. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  9483. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  9484. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  9485. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  9486. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  9487. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  9488. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  9489. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  9490. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  9491. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  9492. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  9493. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  9494. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  9495. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  9496. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  9497. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  9498. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  9499. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  9500. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  9501. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  9502. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  9503. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  9504. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  9505. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  9506. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  9507. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  9508. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  9509. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  9510. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  9511. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  9512. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  9513. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  9514. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  9515. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  9516. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  9517. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  9518. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  9519. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  9520. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  9521. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  9522. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  9523. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  9524. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  9525. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  9526. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  9527. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  9528. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  9529. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  9530. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  9531. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  9532. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  9533. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  9534. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  9535. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  9536. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  9537. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  9538. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  9539. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  9540. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  9541. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  9542. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  9543. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  9544. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  9545. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  9546. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  9547. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  9548. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  9549. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  9550. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  9551. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  9552. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  9553. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  9554. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  9555. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  9556. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  9557. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  9558. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  9559. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  9560. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  9561. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  9562. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  9563. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  9564. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  9565. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  9566. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  9567. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  9568. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  9569. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  9570. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  9571. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  9572. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  9573. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  9574. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  9575. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  9576. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  9577. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  9578. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  9579. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  9580. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  9581. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  9582. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  9583. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  9584. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  9585. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  9586. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  9587. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  9588. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  9589. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  9590. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  9591. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  9592. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  9593. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  9594. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  9595. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  9596. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  9597. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  9598. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  9599. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  9600. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  9601. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  9602. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  9603. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  9604. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  9605. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  9606. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  9607. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  9608. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  9609. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  9610. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  9611. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  9612. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  9613. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  9614. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  9615. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  9616. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  9617. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  9618. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  9619. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  9620. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  9621. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  9622. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  9623. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  9624. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  9625. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  9626. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  9627. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  9628. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  9629. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  9630. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  9631. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  9632. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  9633. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  9634. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  9635. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  9636. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  9637. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  9638. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  9639. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  9640. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  9641. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  9642. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  9643. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  9644. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  9645. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  9646. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  9647. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  9648. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  9649. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  9650. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  9651. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  9652. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  9653. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  9654. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  9655. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  9656. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  9657. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  9658. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  9659. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  9660. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  9661. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  9662. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  9663. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  9664. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  9665. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  9666. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  9667. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  9668. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  9669. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  9670. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  9671. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  9672. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  9673. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  9674. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  9675. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  9676. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  9677. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  9678. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  9679. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  9680. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  9681. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  9682. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  9683. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  9684. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  9685. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  9686. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  9687. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  9688. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  9689. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  9690. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  9691. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  9692. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  9693. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  9694. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  9695. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  9696. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  9697. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  9698. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  9699. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  9700. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  9701. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  9702. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  9703. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  9704. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  9705. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  9706. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  9707. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  9708. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  9709. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  9710. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  9711. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  9712. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  9713. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  9714. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  9715. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  9716. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  9717. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  9718. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  9719. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  9720. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  9721. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  9722. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  9723. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  9724. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  9725. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  9726. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  9727. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  9728. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  9729. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  9730. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  9731. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  9732. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  9733. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  9734. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  9735. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  9736. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  9737. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  9738. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  9739. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  9740. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  9741. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  9742. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  9743. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  9744. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  9745. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  9746. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  9747. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  9748. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  9749. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  9750. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  9751. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  9752. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  9753. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  9754. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  9755. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  9756. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  9757. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  9758. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  9759. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  9760. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  9761. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  9762. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  9763. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  9764. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  9765. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  9766. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  9767. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  9768. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  9769. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  9770. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  9771. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  9772. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  9773. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  9774. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  9775. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  9776. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  9777. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  9778. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  9779. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  9780. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  9781. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  9782. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  9783. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  9784. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  9785. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  9786. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  9787. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  9788. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  9789. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  9790. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  9791. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  9792. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  9793. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  9794. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  9795. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  9796. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  9797. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  9798. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  9799. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  9800. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  9801. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  9802. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  9803. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  9804. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  9805. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  9806. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  9807. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  9808. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  9809. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  9810. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  9811. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  9812. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  9813. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  9814. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  9815. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  9816. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  9817. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  9818. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  9819. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  9820. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  9821. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  9822. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  9823. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  9824. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  9825. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  9826. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  9827. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  9828. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  9829. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  9830. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  9831. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  9832. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  9833. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  9834. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  9835. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  9836. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  9837. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  9838. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  9839. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  9840. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  9841. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  9842. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  9843. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  9844. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  9845. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  9846. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  9847. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  9848. 23446, 62959, 32347],
  9849. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  9850. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  9851. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  9852. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  9853. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  9854. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  9855. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  9856. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  9857. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  9858. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  9859. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  9860. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  9861. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  9862. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  9863. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  9864. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  9865. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  9866. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  9867. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  9868. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  9869. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  9870. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  9871. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  9872. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  9873. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  9874. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  9875. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  9876. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  9877. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  9878. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  9879. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  9880. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  9881. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  9882. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  9883. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  9884. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  9885. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  9886. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  9887. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  9888. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  9889. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  9890. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  9891. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  9892. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  9893. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  9894. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  9895. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  9896. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  9897. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  9898. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  9899. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  9900. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  9901. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  9902. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  9903. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  9904. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  9905. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  9906. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  9907. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  9908. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  9909. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  9910. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  9911. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  9912. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  9913. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  9914. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  9915. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  9916. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  9917. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  9918. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  9919. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  9920. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  9921. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  9922. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  9923. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  9924. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  9925. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  9926. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  9927. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  9928. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  9929. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  9930. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  9931. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  9932. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  9933. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  9934. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  9935. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  9936. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  9937. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  9938. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  9939. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  9940. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  9941. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  9942. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  9943. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  9944. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  9945. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  9946. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  9947. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  9948. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  9949. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  9950. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  9951. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  9952. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  9953. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  9954. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  9955. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  9956. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  9957. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  9958. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  9959. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  9960. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  9961. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  9962. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  9963. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  9964. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  9965. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  9966. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  9967. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  9968. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  9969. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  9970. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  9971. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  9972. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  9973. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  9974. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  9975. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  9976. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  9977. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  9978. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  9979. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  9980. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  9981. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  9982. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  9983. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  9984. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  9985. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  9986. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  9987. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  9988. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  9989. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  9990. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  9991. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  9992. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  9993. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  9994. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  9995. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  9996. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  9997. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  9998. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  9999. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  10000. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  10001. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  10002. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  10003. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  10004. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  10005. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  10006. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  10007. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  10008. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  10009. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  10010. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  10011. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  10012. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  10013. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  10014. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  10015. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  10016. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  10017. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  10018. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  10019. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  10020. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  10021. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  10022. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  10023. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  10024. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  10025. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  10026. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  10027. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  10028. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  10029. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  10030. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  10031. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  10032. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  10033. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  10034. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  10035. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  10036. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  10037. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  10038. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  10039. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  10040. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  10041. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  10042. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  10043. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  10044. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  10045. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  10046. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  10047. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  10048. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  10049. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  10050. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  10051. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  10052. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  10053. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  10054. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  10055. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  10056. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  10057. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  10058. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  10059. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  10060. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  10061. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  10062. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  10063. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  10064. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  10065. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  10066. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  10067. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  10068. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  10069. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  10070. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  10071. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  10072. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  10073. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  10074. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  10075. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  10076. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  10077. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  10078. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  10079. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  10080. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  10081. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  10082. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  10083. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  10084. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  10085. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  10086. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  10087. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  10088. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  10089. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  10090. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  10091. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  10092. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  10093. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  10094. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  10095. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  10096. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  10097. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  10098. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  10099. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  10100. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  10101. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  10102. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  10103. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  10104. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  10105. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  10106. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  10107. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  10108. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  10109. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  10110. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  10111. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  10112. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  10113. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  10114. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  10115. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  10116. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  10117. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  10118. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  10119. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  10120. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  10121. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  10122. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  10123. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  10124. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  10125. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  10126. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  10127. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  10128. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  10129. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  10130. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  10131. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  10132. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  10133. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  10134. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  10135. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  10136. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  10137. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  10138. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  10139. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  10140. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  10141. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  10142. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  10143. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  10144. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  10145. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  10146. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  10147. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  10148. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  10149. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  10150. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  10151. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  10152. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  10153. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  10154. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  10155. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  10156. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  10157. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  10158. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  10159. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  10160. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  10161. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  10162. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  10163. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  10164. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  10165. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  10166. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  10167. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  10168. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  10169. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  10170. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  10171. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  10172. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  10173. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  10174. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  10175. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  10176. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  10177. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  10178. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  10179. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  10180. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  10181. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  10182. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  10183. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  10184. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  10185. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  10186. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  10187. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  10188. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  10189. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  10190. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  10191. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  10192. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  10193. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  10194. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  10195. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  10196. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  10197. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  10198. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  10199. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  10200. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  10201. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  10202. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  10203. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  10204. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  10205. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  10206. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  10207. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  10208. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  10209. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  10210. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  10211. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  10212. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  10213. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  10214. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  10215. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  10216. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  10217. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  10218. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  10219. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  10220. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  10221. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  10222. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  10223. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  10224. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  10225. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  10226. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  10227. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  10228. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  10229. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  10230. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  10231. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  10232. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  10233. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  10234. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  10235. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  10236. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  10237. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  10238. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  10239. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  10240. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  10241. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  10242. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  10243. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  10244. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  10245. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  10246. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  10247. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  10248. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  10249. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  10250. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  10251. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  10252. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  10253. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  10254. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  10255. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  10256. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  10257. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  10258. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  10259. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  10260. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  10261. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  10262. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  10263. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  10264. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  10265. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  10266. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  10267. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  10268. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  10269. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  10270. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  10271. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  10272. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  10273. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  10274. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  10275. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  10276. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  10277. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  10278. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  10279. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  10280. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  10281. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  10282. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  10283. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  10284. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  10285. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  10286. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  10287. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  10288. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  10289. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  10290. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  10291. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  10292. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  10293. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  10294. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  10295. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  10296. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  10297. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  10298. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  10299. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  10300. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  10301. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  10302. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  10303. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  10304. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  10305. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  10306. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  10307. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  10308. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  10309. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  10310. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  10311. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  10312. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  10313. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  10314. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  10315. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  10316. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  10317. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  10318. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  10319. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  10320. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  10321. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  10322. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  10323. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  10324. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  10325. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  10326. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  10327. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  10328. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  10329. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  10330. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  10331. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  10332. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  10333. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  10334. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  10335. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  10336. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  10337. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  10338. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  10339. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  10340. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  10341. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  10342. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  10343. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  10344. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  10345. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  10346. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  10347. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  10348. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  10349. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  10350. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  10351. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  10352. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  10353. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  10354. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  10355. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  10356. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  10357. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  10358. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  10359. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  10360. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  10361. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  10362. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  10363. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  10364. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  10365. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  10366. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  10367. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  10368. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  10369. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  10370. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  10371. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  10372. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  10373. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  10374. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  10375. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  10376. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  10377. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  10378. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  10379. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  10380. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  10381. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  10382. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  10383. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  10384. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  10385. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  10386. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  10387. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  10388. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  10389. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  10390. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  10391. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  10392. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  10393. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  10394. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  10395. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  10396. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  10397. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  10398. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  10399. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  10400. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  10401. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  10402. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  10403. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  10404. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  10405. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  10406. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  10407. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  10408. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  10409. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  10410. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  10411. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  10412. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  10413. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  10414. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  10415. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  10416. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  10417. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  10418. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  10419. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  10420. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  10421. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  10422. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  10423. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  10424. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  10425. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  10426. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  10427. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  10428. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  10429. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  10430. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  10431. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  10432. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  10433. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  10434. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  10435. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  10436. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  10437. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  10438. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  10439. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  10440. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  10441. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  10442. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  10443. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  10444. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  10445. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  10446. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  10447. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  10448. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  10449. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  10450. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  10451. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  10452. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  10453. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  10454. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  10455. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  10456. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  10457. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  10458. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  10459. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  10460. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  10461. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  10462. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  10463. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  10464. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  10465. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  10466. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  10467. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  10468. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  10469. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  10470. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  10471. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  10472. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  10473. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  10474. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  10475. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  10476. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  10477. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  10478. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  10479. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  10480. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  10481. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  10482. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  10483. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  10484. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  10485. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  10486. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  10487. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  10488. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  10489. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  10490. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  10491. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  10492. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  10493. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  10494. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  10495. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  10496. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  10497. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  10498. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  10499. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  10500. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  10501. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  10502. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  10503. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  10504. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  10505. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  10506. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  10507. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  10508. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  10509. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  10510. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  10511. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  10512. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  10513. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  10514. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  10515. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  10516. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  10517. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  10518. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  10519. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  10520. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  10521. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  10522. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  10523. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  10524. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  10525. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  10526. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  10527. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  10528. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  10529. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  10530. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  10531. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  10532. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  10533. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  10534. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  10535. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  10536. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  10537. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  10538. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  10539. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  10540. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  10541. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  10542. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  10543. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  10544. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  10545. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  10546. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  10547. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  10548. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  10549. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  10550. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  10551. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  10552. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  10553. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  10554. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  10555. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  10556. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  10557. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  10558. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  10559. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  10560. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  10561. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  10562. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  10563. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  10564. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  10565. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  10566. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  10567. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  10568. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  10569. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  10570. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  10571. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  10572. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  10573. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  10574. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  10575. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  10576. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  10577. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  10578. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  10579. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  10580. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  10581. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  10582. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  10583. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  10584. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  10585. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  10586. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  10587. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  10588. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  10589. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  10590. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  10591. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  10592. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  10593. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  10594. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  10595. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  10596. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  10597. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  10598. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  10599. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  10600. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  10601. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  10602. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  10603. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  10604. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  10605. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  10606. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  10607. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  10608. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  10609. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  10610. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  10611. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  10612. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  10613. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  10614. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  10615. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  10616. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  10617. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  10618. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  10619. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  10620. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  10621. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  10622. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  10623. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  10624. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  10625. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  10626. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  10627. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  10628. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  10629. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  10630. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  10631. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  10632. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  10633. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  10634. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  10635. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  10636. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  10637. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  10638. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  10639. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  10640. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  10641. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  10642. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  10643. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  10644. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  10645. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  10646. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  10647. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  10648. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  10649. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  10650. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  10651. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  10652. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  10653. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  10654. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  10655. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  10656. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  10657. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  10658. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  10659. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  10660. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  10661. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  10662. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  10663. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  10664. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  10665. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  10666. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  10667. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  10668. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  10669. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  10670. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  10671. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  10672. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  10673. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  10674. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  10675. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  10676. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  10677. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  10678. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  10679. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  10680. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  10681. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  10682. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  10683. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  10684. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  10685. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  10686. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  10687. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  10688. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  10689. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  10690. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  10691. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  10692. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  10693. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  10694. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  10695. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  10696. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  10697. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  10698. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  10699. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  10700. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  10701. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  10702. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  10703. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  10704. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  10705. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  10706. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  10707. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  10708. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  10709. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  10710. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  10711. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  10712. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  10713. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  10714. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  10715. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  10716. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  10717. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  10718. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  10719. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  10720. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  10721. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  10722. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  10723. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  10724. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  10725. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  10726. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  10727. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  10728. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  10729. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  10730. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  10731. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  10732. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  10733. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  10734. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  10735. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  10736. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  10737. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  10738. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  10739. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  10740. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  10741. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  10742. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  10743. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  10744. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  10745. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  10746. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  10747. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  10748. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  10749. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  10750. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  10751. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  10752. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  10753. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  10754. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  10755. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  10756. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  10757. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  10758. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  10759. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  10760. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  10761. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  10762. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  10763. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  10764. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  10765. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  10766. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  10767. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  10768. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  10769. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  10770. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  10771. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  10772. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  10773. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  10774. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  10775. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  10776. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  10777. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  10778. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  10779. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  10780. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  10781. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  10782. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  10783. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  10784. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  10785. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  10786. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  10787. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  10788. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  10789. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  10790. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  10791. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  10792. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  10793. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  10794. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  10795. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  10796. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  10797. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  10798. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  10799. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  10800. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  10801. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  10802. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  10803. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  10804. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  10805. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  10806. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  10807. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  10808. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  10809. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  10810. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  10811. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  10812. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  10813. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  10814. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  10815. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  10816. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  10817. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  10818. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  10819. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  10820. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  10821. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  10822. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  10823. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  10824. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  10825. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  10826. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  10827. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  10828. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  10829. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  10830. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  10831. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  10832. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  10833. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  10834. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  10835. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  10836. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  10837. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  10838. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  10839. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  10840. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  10841. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  10842. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  10843. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  10844. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  10845. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  10846. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  10847. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  10848. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  10849. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  10850. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  10851. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  10852. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  10853. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  10854. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  10855. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  10856. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  10857. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  10858. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  10859. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  10860. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  10861. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  10862. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  10863. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  10864. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  10865. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  10866. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  10867. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  10868. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  10869. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  10870. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  10871. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  10872. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  10873. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  10874. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  10875. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  10876. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  10877. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  10878. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  10879. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  10880. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  10881. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  10882. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  10883. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  10884. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  10885. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  10886. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  10887. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  10888. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  10889. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  10890. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  10891. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  10892. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  10893. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  10894. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  10895. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  10896. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  10897. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  10898. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  10899. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  10900. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  10901. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  10902. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  10903. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  10904. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  10905. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  10906. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  10907. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  10908. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  10909. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  10910. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  10911. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  10912. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  10913. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  10914. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  10915. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  10916. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  10917. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  10918. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  10919. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  10920. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  10921. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  10922. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  10923. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  10924. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  10925. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  10926. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  10927. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  10928. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  10929. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  10930. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  10931. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  10932. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  10933. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  10934. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  10935. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  10936. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  10937. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  10938. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  10939. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  10940. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  10941. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  10942. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  10943. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  10944. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  10945. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  10946. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  10947. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  10948. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  10949. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  10950. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  10951. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  10952. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  10953. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  10954. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  10955. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  10956. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  10957. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  10958. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  10959. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  10960. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  10961. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  10962. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  10963. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  10964. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  10965. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  10966. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  10967. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  10968. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  10969. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  10970. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  10971. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  10972. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  10973. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  10974. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  10975. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  10976. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  10977. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  10978. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  10979. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  10980. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  10981. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  10982. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  10983. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  10984. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  10985. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  10986. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  10987. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  10988. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  10989. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  10990. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  10991. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  10992. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  10993. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  10994. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  10995. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  10996. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  10997. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  10998. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  10999. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  11000. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  11001. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  11002. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  11003. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  11004. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  11005. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  11006. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  11007. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  11008. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  11009. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  11010. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  11011. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  11012. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  11013. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  11014. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  11015. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  11016. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  11017. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  11018. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  11019. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  11020. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  11021. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  11022. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  11023. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  11024. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  11025. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  11026. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  11027. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  11028. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  11029. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  11030. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  11031. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  11032. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  11033. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  11034. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  11035. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  11036. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  11037. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  11038. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  11039. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  11040. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  11041. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  11042. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  11043. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  11044. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  11045. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  11046. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  11047. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  11048. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  11049. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  11050. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  11051. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  11052. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  11053. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  11054. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  11055. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  11056. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  11057. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  11058. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  11059. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  11060. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  11061. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  11062. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  11063. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  11064. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  11065. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  11066. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  11067. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  11068. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  11069. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  11070. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  11071. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  11072. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  11073. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  11074. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  11075. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  11076. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  11077. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  11078. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  11079. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  11080. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  11081. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  11082. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  11083. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  11084. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  11085. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  11086. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  11087. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  11088. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  11089. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  11090. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  11091. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  11092. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  11093. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  11094. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  11095. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  11096. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  11097. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  11098. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  11099. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  11100. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  11101. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  11102. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  11103. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  11104. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  11105. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  11106. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  11107. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  11108. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  11109. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  11110. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  11111. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  11112. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  11113. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  11114. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  11115. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  11116. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  11117. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  11118. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  11119. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  11120. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  11121. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  11122. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  11123. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  11124. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  11125. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  11126. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  11127. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  11128. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  11129. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  11130. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  11131. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  11132. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  11133. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  11134. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  11135. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  11136. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  11137. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  11138. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  11139. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  11140. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  11141. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  11142. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  11143. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  11144. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  11145. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  11146. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  11147. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  11148. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  11149. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  11150. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  11151. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  11152. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  11153. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  11154. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  11155. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  11156. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  11157. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  11158. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  11159. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  11160. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  11161. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  11162. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  11163. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  11164. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  11165. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  11166. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  11167. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  11168. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  11169. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  11170. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  11171. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  11172. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  11173. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  11174. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  11175. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  11176. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  11177. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  11178. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  11179. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  11180. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  11181. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  11182. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  11183. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  11184. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  11185. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  11186. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  11187. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  11188. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  11189. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  11190. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  11191. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  11192. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  11193. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  11194. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  11195. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  11196. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  11197. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  11198. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  11199. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  11200. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  11201. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  11202. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  11203. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  11204. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  11205. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  11206. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  11207. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  11208. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  11209. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  11210. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  11211. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  11212. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  11213. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  11214. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  11215. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  11216. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  11217. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  11218. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  11219. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  11220. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  11221. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  11222. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  11223. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  11224. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  11225. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  11226. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  11227. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  11228. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  11229. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  11230. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  11231. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  11232. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  11233. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  11234. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  11235. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  11236. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  11237. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  11238. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  11239. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  11240. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  11241. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  11242. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  11243. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  11244. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  11245. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  11246. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  11247. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  11248. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  11249. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  11250. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  11251. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  11252. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  11253. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  11254. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  11255. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  11256. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  11257. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  11258. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  11259. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  11260. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  11261. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  11262. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  11263. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  11264. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  11265. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  11266. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  11267. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  11268. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  11269. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  11270. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  11271. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  11272. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  11273. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  11274. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  11275. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  11276. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  11277. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  11278. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  11279. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  11280. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  11281. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  11282. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  11283. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  11284. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  11285. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  11286. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  11287. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  11288. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  11289. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  11290. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  11291. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  11292. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  11293. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  11294. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  11295. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  11296. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  11297. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  11298. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  11299. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  11300. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  11301. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  11302. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  11303. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  11304. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  11305. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  11306. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  11307. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  11308. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  11309. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  11310. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  11311. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  11312. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  11313. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  11314. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  11315. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  11316. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  11317. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  11318. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  11319. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  11320. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  11321. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  11322. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  11323. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  11324. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  11325. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  11326. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  11327. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  11328. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  11329. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  11330. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  11331. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  11332. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  11333. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  11334. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  11335. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  11336. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  11337. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  11338. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  11339. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  11340. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  11341. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  11342. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  11343. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  11344. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  11345. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  11346. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  11347. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  11348. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  11349. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  11350. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  11351. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  11352. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  11353. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  11354. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  11355. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  11356. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  11357. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  11358. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  11359. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  11360. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  11361. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  11362. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  11363. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  11364. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  11365. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  11366. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  11367. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  11368. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  11369. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  11370. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  11371. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  11372. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  11373. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  11374. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  11375. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  11376. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  11377. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  11378. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  11379. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  11380. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  11381. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  11382. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  11383. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  11384. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  11385. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  11386. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  11387. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  11388. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  11389. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  11390. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  11391. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  11392. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  11393. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  11394. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  11395. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  11396. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  11397. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  11398. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  11399. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  11400. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  11401. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  11402. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  11403. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  11404. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  11405. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  11406. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  11407. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  11408. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  11409. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  11410. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  11411. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  11412. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  11413. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  11414. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  11415. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  11416. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  11417. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  11418. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  11419. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  11420. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  11421. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  11422. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  11423. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  11424. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  11425. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  11426. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  11427. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  11428. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  11429. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  11430. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  11431. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  11432. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  11433. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  11434. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  11435. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  11436. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  11437. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  11438. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  11439. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  11440. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  11441. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  11442. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  11443. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  11444. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  11445. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  11446. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  11447. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  11448. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  11449. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  11450. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  11451. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  11452. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  11453. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  11454. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  11455. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  11456. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  11457. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  11458. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  11459. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  11460. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  11461. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  11462. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  11463. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  11464. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  11465. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  11466. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  11467. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  11468. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  11469. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  11470. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  11471. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  11472. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  11473. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  11474. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  11475. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  11476. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  11477. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  11478. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  11479. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  11480. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  11481. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  11482. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  11483. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  11484. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  11485. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  11486. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  11487. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  11488. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  11489. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  11490. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  11491. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  11492. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  11493. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  11494. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  11495. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  11496. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  11497. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  11498. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  11499. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  11500. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  11501. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  11502. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  11503. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  11504. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  11505. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  11506. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  11507. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  11508. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  11509. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  11510. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  11511. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  11512. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  11513. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  11514. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  11515. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  11516. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  11517. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  11518. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  11519. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  11520. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  11521. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  11522. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  11523. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  11524. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  11525. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  11526. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  11527. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  11528. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  11529. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  11530. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  11531. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  11532. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  11533. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  11534. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  11535. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  11536. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  11537. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  11538. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  11539. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  11540. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  11541. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  11542. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  11543. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  11544. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  11545. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  11546. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  11547. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  11548. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  11549. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  11550. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  11551. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  11552. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  11553. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  11554. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  11555. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  11556. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  11557. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  11558. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  11559. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  11560. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  11561. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  11562. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  11563. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  11564. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  11565. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  11566. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  11567. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  11568. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  11569. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  11570. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  11571. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  11572. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  11573. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  11574. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  11575. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  11576. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  11577. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  11578. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  11579. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  11580. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  11581. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  11582. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  11583. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  11584. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  11585. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  11586. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  11587. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  11588. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  11589. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  11590. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  11591. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  11592. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  11593. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  11594. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  11595. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  11596. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  11597. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  11598. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  11599. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  11600. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  11601. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  11602. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  11603. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  11604. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  11605. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  11606. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  11607. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  11608. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  11609. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  11610. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  11611. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  11612. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  11613. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  11614. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  11615. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  11616. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  11617. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  11618. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  11619. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  11620. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  11621. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  11622. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  11623. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  11624. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  11625. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  11626. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  11627. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  11628. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  11629. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  11630. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  11631. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  11632. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  11633. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  11634. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  11635. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  11636. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  11637. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  11638. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  11639. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  11640. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  11641. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  11642. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  11643. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  11644. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  11645. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  11646. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  11647. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  11648. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  11649. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  11650. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  11651. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  11652. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  11653. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  11654. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  11655. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  11656. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  11657. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  11658. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  11659. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  11660. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  11661. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  11662. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  11663. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  11664. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  11665. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  11666. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  11667. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  11668. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  11669. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  11670. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  11671. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  11672. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  11673. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  11674. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  11675. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  11676. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  11677. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  11678. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  11679. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  11680. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  11681. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  11682. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  11683. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  11684. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  11685. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  11686. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  11687. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  11688. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  11689. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  11690. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  11691. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  11692. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  11693. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  11694. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  11695. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  11696. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  11697. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  11698. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  11699. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  11700. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  11701. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  11702. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  11703. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  11704. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  11705. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  11706. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  11707. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  11708. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  11709. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  11710. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  11711. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  11712. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  11713. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  11714. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  11715. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  11716. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  11717. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  11718. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  11719. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  11720. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  11721. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  11722. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  11723. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  11724. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  11725. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  11726. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  11727. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  11728. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  11729. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  11730. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  11731. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  11732. {f: 7, c: 19887}]
  11733. };
  11734. var PDFFunction = (function PDFFunctionClosure() {
  11735. var CONSTRUCT_SAMPLED = 0;
  11736. var CONSTRUCT_INTERPOLATED = 2;
  11737. var CONSTRUCT_STICHED = 3;
  11738. var CONSTRUCT_POSTSCRIPT = 4;
  11739. return {
  11740. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  11741. str) {
  11742. var i, ii;
  11743. var length = 1;
  11744. for (i = 0, ii = size.length; i < ii; i++) {
  11745. length *= size[i];
  11746. }
  11747. length *= outputSize;
  11748. var array = [];
  11749. var codeSize = 0;
  11750. var codeBuf = 0;
  11751. // 32 is a valid bps so shifting won't work
  11752. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  11753. var strBytes = str.getBytes((length * bps + 7) / 8);
  11754. var strIdx = 0;
  11755. for (i = 0; i < length; i++) {
  11756. while (codeSize < bps) {
  11757. codeBuf <<= 8;
  11758. codeBuf |= strBytes[strIdx++];
  11759. codeSize += 8;
  11760. }
  11761. codeSize -= bps;
  11762. array.push((codeBuf >> codeSize) * sampleMul);
  11763. codeBuf &= (1 << codeSize) - 1;
  11764. }
  11765. return array;
  11766. },
  11767. getIR: function PDFFunction_getIR(xref, fn) {
  11768. var dict = fn.dict;
  11769. if (!dict) {
  11770. dict = fn;
  11771. }
  11772. var types = [this.constructSampled,
  11773. null,
  11774. this.constructInterpolated,
  11775. this.constructStiched,
  11776. this.constructPostScript];
  11777. var typeNum = dict.get('FunctionType');
  11778. var typeFn = types[typeNum];
  11779. if (!typeFn) {
  11780. error('Unknown type of function');
  11781. }
  11782. return typeFn.call(this, fn, dict, xref);
  11783. },
  11784. fromIR: function PDFFunction_fromIR(IR) {
  11785. var type = IR[0];
  11786. switch (type) {
  11787. case CONSTRUCT_SAMPLED:
  11788. return this.constructSampledFromIR(IR);
  11789. case CONSTRUCT_INTERPOLATED:
  11790. return this.constructInterpolatedFromIR(IR);
  11791. case CONSTRUCT_STICHED:
  11792. return this.constructStichedFromIR(IR);
  11793. //case CONSTRUCT_POSTSCRIPT:
  11794. default:
  11795. return this.constructPostScriptFromIR(IR);
  11796. }
  11797. },
  11798. parse: function PDFFunction_parse(xref, fn) {
  11799. var IR = this.getIR(xref, fn);
  11800. return this.fromIR(IR);
  11801. },
  11802. constructSampled: function PDFFunction_constructSampled(str, dict) {
  11803. function toMultiArray(arr) {
  11804. var inputLength = arr.length;
  11805. var out = [];
  11806. var index = 0;
  11807. for (var i = 0; i < inputLength; i += 2) {
  11808. out[index] = [arr[i], arr[i + 1]];
  11809. ++index;
  11810. }
  11811. return out;
  11812. }
  11813. var domain = dict.get('Domain');
  11814. var range = dict.get('Range');
  11815. if (!domain || !range) {
  11816. error('No domain or range');
  11817. }
  11818. var inputSize = domain.length / 2;
  11819. var outputSize = range.length / 2;
  11820. domain = toMultiArray(domain);
  11821. range = toMultiArray(range);
  11822. var size = dict.get('Size');
  11823. var bps = dict.get('BitsPerSample');
  11824. var order = dict.get('Order') || 1;
  11825. if (order !== 1) {
  11826. // No description how cubic spline interpolation works in PDF32000:2008
  11827. // As in poppler, ignoring order, linear interpolation may work as good
  11828. info('No support for cubic spline interpolation: ' + order);
  11829. }
  11830. var encode = dict.get('Encode');
  11831. if (!encode) {
  11832. encode = [];
  11833. for (var i = 0; i < inputSize; ++i) {
  11834. encode.push(0);
  11835. encode.push(size[i] - 1);
  11836. }
  11837. }
  11838. encode = toMultiArray(encode);
  11839. var decode = dict.get('Decode');
  11840. if (!decode) {
  11841. decode = range;
  11842. } else {
  11843. decode = toMultiArray(decode);
  11844. }
  11845. var samples = this.getSampleArray(size, outputSize, bps, str);
  11846. return [
  11847. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  11848. outputSize, Math.pow(2, bps) - 1, range
  11849. ];
  11850. },
  11851. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  11852. // See chapter 3, page 109 of the PDF reference
  11853. function interpolate(x, xmin, xmax, ymin, ymax) {
  11854. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  11855. }
  11856. return function constructSampledFromIRResult(args) {
  11857. // See chapter 3, page 110 of the PDF reference.
  11858. var m = IR[1];
  11859. var domain = IR[2];
  11860. var encode = IR[3];
  11861. var decode = IR[4];
  11862. var samples = IR[5];
  11863. var size = IR[6];
  11864. var n = IR[7];
  11865. //var mask = IR[8];
  11866. var range = IR[9];
  11867. if (m != args.length) {
  11868. error('Incorrect number of arguments: ' + m + ' != ' +
  11869. args.length);
  11870. }
  11871. var x = args;
  11872. // Building the cube vertices: its part and sample index
  11873. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  11874. var cubeVertices = 1 << m;
  11875. var cubeN = new Float64Array(cubeVertices);
  11876. var cubeVertex = new Uint32Array(cubeVertices);
  11877. var i, j;
  11878. for (j = 0; j < cubeVertices; j++) {
  11879. cubeN[j] = 1;
  11880. }
  11881. var k = n, pos = 1;
  11882. // Map x_i to y_j for 0 <= i < m using the sampled function.
  11883. for (i = 0; i < m; ++i) {
  11884. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  11885. var domain_2i = domain[i][0];
  11886. var domain_2i_1 = domain[i][1];
  11887. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  11888. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  11889. // Encode_2i, Encode_2i+1)
  11890. var e = interpolate(xi, domain_2i, domain_2i_1,
  11891. encode[i][0], encode[i][1]);
  11892. // e_i' = min(max(e_i, 0), Size_i - 1)
  11893. var size_i = size[i];
  11894. e = Math.min(Math.max(e, 0), size_i - 1);
  11895. // Adjusting the cube: N and vertex sample index
  11896. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  11897. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  11898. var n1 = e - e0; // (e - e0) / (e1 - e0);
  11899. var offset0 = e0 * k;
  11900. var offset1 = offset0 + k; // e1 * k
  11901. for (j = 0; j < cubeVertices; j++) {
  11902. if (j & pos) {
  11903. cubeN[j] *= n1;
  11904. cubeVertex[j] += offset1;
  11905. } else {
  11906. cubeN[j] *= n0;
  11907. cubeVertex[j] += offset0;
  11908. }
  11909. }
  11910. k *= size_i;
  11911. pos <<= 1;
  11912. }
  11913. var y = new Float64Array(n);
  11914. for (j = 0; j < n; ++j) {
  11915. // Sum all cube vertices' samples portions
  11916. var rj = 0;
  11917. for (i = 0; i < cubeVertices; i++) {
  11918. rj += samples[cubeVertex[i] + j] * cubeN[i];
  11919. }
  11920. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  11921. // Decode_2j, Decode_2j+1)
  11922. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  11923. // y_j = min(max(r_j, range_2j), range_2j+1)
  11924. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  11925. }
  11926. return y;
  11927. };
  11928. },
  11929. constructInterpolated: function PDFFunction_constructInterpolated(str,
  11930. dict) {
  11931. var c0 = dict.get('C0') || [0];
  11932. var c1 = dict.get('C1') || [1];
  11933. var n = dict.get('N');
  11934. if (!isArray(c0) || !isArray(c1)) {
  11935. error('Illegal dictionary for interpolated function');
  11936. }
  11937. var length = c0.length;
  11938. var diff = [];
  11939. for (var i = 0; i < length; ++i) {
  11940. diff.push(c1[i] - c0[i]);
  11941. }
  11942. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  11943. },
  11944. constructInterpolatedFromIR:
  11945. function PDFFunction_constructInterpolatedFromIR(IR) {
  11946. var c0 = IR[1];
  11947. var diff = IR[2];
  11948. var n = IR[3];
  11949. var length = diff.length;
  11950. return function constructInterpolatedFromIRResult(args) {
  11951. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  11952. var out = [];
  11953. for (var j = 0; j < length; ++j) {
  11954. out.push(c0[j] + (x * diff[j]));
  11955. }
  11956. return out;
  11957. };
  11958. },
  11959. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  11960. var domain = dict.get('Domain');
  11961. if (!domain) {
  11962. error('No domain');
  11963. }
  11964. var inputSize = domain.length / 2;
  11965. if (inputSize != 1) {
  11966. error('Bad domain for stiched function');
  11967. }
  11968. var fnRefs = dict.get('Functions');
  11969. var fns = [];
  11970. for (var i = 0, ii = fnRefs.length; i < ii; ++i) {
  11971. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  11972. }
  11973. var bounds = dict.get('Bounds');
  11974. var encode = dict.get('Encode');
  11975. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  11976. },
  11977. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  11978. var domain = IR[1];
  11979. var bounds = IR[2];
  11980. var encode = IR[3];
  11981. var fnsIR = IR[4];
  11982. var fns = [];
  11983. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  11984. fns.push(PDFFunction.fromIR(fnsIR[i]));
  11985. }
  11986. return function constructStichedFromIRResult(args) {
  11987. var clip = function constructStichedFromIRClip(v, min, max) {
  11988. if (v > max) {
  11989. v = max;
  11990. } else if (v < min) {
  11991. v = min;
  11992. }
  11993. return v;
  11994. };
  11995. // clip to domain
  11996. var v = clip(args[0], domain[0], domain[1]);
  11997. // calulate which bound the value is in
  11998. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  11999. if (v < bounds[i]) {
  12000. break;
  12001. }
  12002. }
  12003. // encode value into domain of function
  12004. var dmin = domain[0];
  12005. if (i > 0) {
  12006. dmin = bounds[i - 1];
  12007. }
  12008. var dmax = domain[1];
  12009. if (i < bounds.length) {
  12010. dmax = bounds[i];
  12011. }
  12012. var rmin = encode[2 * i];
  12013. var rmax = encode[2 * i + 1];
  12014. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  12015. // call the appropriate function
  12016. return fns[i]([v2]);
  12017. };
  12018. },
  12019. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  12020. xref) {
  12021. var domain = dict.get('Domain');
  12022. var range = dict.get('Range');
  12023. if (!domain) {
  12024. error('No domain.');
  12025. }
  12026. if (!range) {
  12027. error('No range.');
  12028. }
  12029. var lexer = new PostScriptLexer(fn);
  12030. var parser = new PostScriptParser(lexer);
  12031. var code = parser.parse();
  12032. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  12033. },
  12034. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  12035. IR) {
  12036. var domain = IR[1];
  12037. var range = IR[2];
  12038. var code = IR[3];
  12039. var numOutputs = range.length >> 1;
  12040. var numInputs = domain.length >> 1;
  12041. var evaluator = new PostScriptEvaluator(code);
  12042. // Cache the values for a big speed up, the cache size is limited though
  12043. // since the number of possible values can be huge from a PS function.
  12044. var cache = {};
  12045. // The MAX_CACHE_SIZE is set to ~4x the maximum number of distinct values
  12046. // seen in our tests.
  12047. var MAX_CACHE_SIZE = 2048 * 4;
  12048. var cache_available = MAX_CACHE_SIZE;
  12049. return function constructPostScriptFromIRResult(args) {
  12050. var i, value;
  12051. var key = '';
  12052. var input = new Array(numInputs);
  12053. for (i = 0; i < numInputs; i++) {
  12054. value = args[i];
  12055. input[i] = value;
  12056. key += value + '_';
  12057. }
  12058. var cachedValue = cache[key];
  12059. if (cachedValue !== undefined) {
  12060. return cachedValue;
  12061. }
  12062. var output = new Array(numOutputs);
  12063. var stack = evaluator.execute(input);
  12064. var stackIndex = stack.length - numOutputs;
  12065. for (i = 0; i < numOutputs; i++) {
  12066. value = stack[stackIndex + i];
  12067. var bound = range[i * 2];
  12068. if (value < bound) {
  12069. value = bound;
  12070. } else {
  12071. bound = range[i * 2 +1];
  12072. if (value > bound) {
  12073. value = bound;
  12074. }
  12075. }
  12076. output[i] = value;
  12077. }
  12078. if (cache_available > 0) {
  12079. cache_available--;
  12080. cache[key] = output;
  12081. }
  12082. return output;
  12083. };
  12084. }
  12085. };
  12086. })();
  12087. function isPDFFunction(v) {
  12088. var fnDict;
  12089. if (typeof v != 'object') {
  12090. return false;
  12091. } else if (isDict(v)) {
  12092. fnDict = v;
  12093. } else if (isStream(v)) {
  12094. fnDict = v.dict;
  12095. } else {
  12096. return false;
  12097. }
  12098. return fnDict.has('FunctionType');
  12099. }
  12100. var PostScriptStack = (function PostScriptStackClosure() {
  12101. var MAX_STACK_SIZE = 100;
  12102. function PostScriptStack(initialStack) {
  12103. this.stack = initialStack || [];
  12104. }
  12105. PostScriptStack.prototype = {
  12106. push: function PostScriptStack_push(value) {
  12107. if (this.stack.length >= MAX_STACK_SIZE) {
  12108. error('PostScript function stack overflow.');
  12109. }
  12110. this.stack.push(value);
  12111. },
  12112. pop: function PostScriptStack_pop() {
  12113. if (this.stack.length <= 0) {
  12114. error('PostScript function stack underflow.');
  12115. }
  12116. return this.stack.pop();
  12117. },
  12118. copy: function PostScriptStack_copy(n) {
  12119. if (this.stack.length + n >= MAX_STACK_SIZE) {
  12120. error('PostScript function stack overflow.');
  12121. }
  12122. var stack = this.stack;
  12123. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++) {
  12124. stack.push(stack[i]);
  12125. }
  12126. },
  12127. index: function PostScriptStack_index(n) {
  12128. this.push(this.stack[this.stack.length - n - 1]);
  12129. },
  12130. // rotate the last n stack elements p times
  12131. roll: function PostScriptStack_roll(n, p) {
  12132. var stack = this.stack;
  12133. var l = stack.length - n;
  12134. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  12135. for (i = l, j = r; i < j; i++, j--) {
  12136. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  12137. }
  12138. for (i = l, j = c - 1; i < j; i++, j--) {
  12139. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  12140. }
  12141. for (i = c, j = r; i < j; i++, j--) {
  12142. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  12143. }
  12144. }
  12145. };
  12146. return PostScriptStack;
  12147. })();
  12148. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  12149. function PostScriptEvaluator(operators) {
  12150. this.operators = operators;
  12151. }
  12152. PostScriptEvaluator.prototype = {
  12153. execute: function PostScriptEvaluator_execute(initialStack) {
  12154. var stack = new PostScriptStack(initialStack);
  12155. var counter = 0;
  12156. var operators = this.operators;
  12157. var length = operators.length;
  12158. var operator, a, b;
  12159. while (counter < length) {
  12160. operator = operators[counter++];
  12161. if (typeof operator == 'number') {
  12162. // Operator is really an operand and should be pushed to the stack.
  12163. stack.push(operator);
  12164. continue;
  12165. }
  12166. switch (operator) {
  12167. // non standard ps operators
  12168. case 'jz': // jump if false
  12169. b = stack.pop();
  12170. a = stack.pop();
  12171. if (!a) {
  12172. counter = b;
  12173. }
  12174. break;
  12175. case 'j': // jump
  12176. a = stack.pop();
  12177. counter = a;
  12178. break;
  12179. // all ps operators in alphabetical order (excluding if/ifelse)
  12180. case 'abs':
  12181. a = stack.pop();
  12182. stack.push(Math.abs(a));
  12183. break;
  12184. case 'add':
  12185. b = stack.pop();
  12186. a = stack.pop();
  12187. stack.push(a + b);
  12188. break;
  12189. case 'and':
  12190. b = stack.pop();
  12191. a = stack.pop();
  12192. if (isBool(a) && isBool(b)) {
  12193. stack.push(a && b);
  12194. } else {
  12195. stack.push(a & b);
  12196. }
  12197. break;
  12198. case 'atan':
  12199. a = stack.pop();
  12200. stack.push(Math.atan(a));
  12201. break;
  12202. case 'bitshift':
  12203. b = stack.pop();
  12204. a = stack.pop();
  12205. if (a > 0) {
  12206. stack.push(a << b);
  12207. } else {
  12208. stack.push(a >> b);
  12209. }
  12210. break;
  12211. case 'ceiling':
  12212. a = stack.pop();
  12213. stack.push(Math.ceil(a));
  12214. break;
  12215. case 'copy':
  12216. a = stack.pop();
  12217. stack.copy(a);
  12218. break;
  12219. case 'cos':
  12220. a = stack.pop();
  12221. stack.push(Math.cos(a));
  12222. break;
  12223. case 'cvi':
  12224. a = stack.pop() | 0;
  12225. stack.push(a);
  12226. break;
  12227. case 'cvr':
  12228. // noop
  12229. break;
  12230. case 'div':
  12231. b = stack.pop();
  12232. a = stack.pop();
  12233. stack.push(a / b);
  12234. break;
  12235. case 'dup':
  12236. stack.copy(1);
  12237. break;
  12238. case 'eq':
  12239. b = stack.pop();
  12240. a = stack.pop();
  12241. stack.push(a == b);
  12242. break;
  12243. case 'exch':
  12244. stack.roll(2, 1);
  12245. break;
  12246. case 'exp':
  12247. b = stack.pop();
  12248. a = stack.pop();
  12249. stack.push(Math.pow(a, b));
  12250. break;
  12251. case 'false':
  12252. stack.push(false);
  12253. break;
  12254. case 'floor':
  12255. a = stack.pop();
  12256. stack.push(Math.floor(a));
  12257. break;
  12258. case 'ge':
  12259. b = stack.pop();
  12260. a = stack.pop();
  12261. stack.push(a >= b);
  12262. break;
  12263. case 'gt':
  12264. b = stack.pop();
  12265. a = stack.pop();
  12266. stack.push(a > b);
  12267. break;
  12268. case 'idiv':
  12269. b = stack.pop();
  12270. a = stack.pop();
  12271. stack.push((a / b) | 0);
  12272. break;
  12273. case 'index':
  12274. a = stack.pop();
  12275. stack.index(a);
  12276. break;
  12277. case 'le':
  12278. b = stack.pop();
  12279. a = stack.pop();
  12280. stack.push(a <= b);
  12281. break;
  12282. case 'ln':
  12283. a = stack.pop();
  12284. stack.push(Math.log(a));
  12285. break;
  12286. case 'log':
  12287. a = stack.pop();
  12288. stack.push(Math.log(a) / Math.LN10);
  12289. break;
  12290. case 'lt':
  12291. b = stack.pop();
  12292. a = stack.pop();
  12293. stack.push(a < b);
  12294. break;
  12295. case 'mod':
  12296. b = stack.pop();
  12297. a = stack.pop();
  12298. stack.push(a % b);
  12299. break;
  12300. case 'mul':
  12301. b = stack.pop();
  12302. a = stack.pop();
  12303. stack.push(a * b);
  12304. break;
  12305. case 'ne':
  12306. b = stack.pop();
  12307. a = stack.pop();
  12308. stack.push(a != b);
  12309. break;
  12310. case 'neg':
  12311. a = stack.pop();
  12312. stack.push(-a);
  12313. break;
  12314. case 'not':
  12315. a = stack.pop();
  12316. if (isBool(a)) {
  12317. stack.push(!a);
  12318. } else {
  12319. stack.push(~a);
  12320. }
  12321. break;
  12322. case 'or':
  12323. b = stack.pop();
  12324. a = stack.pop();
  12325. if (isBool(a) && isBool(b)) {
  12326. stack.push(a || b);
  12327. } else {
  12328. stack.push(a | b);
  12329. }
  12330. break;
  12331. case 'pop':
  12332. stack.pop();
  12333. break;
  12334. case 'roll':
  12335. b = stack.pop();
  12336. a = stack.pop();
  12337. stack.roll(a, b);
  12338. break;
  12339. case 'round':
  12340. a = stack.pop();
  12341. stack.push(Math.round(a));
  12342. break;
  12343. case 'sin':
  12344. a = stack.pop();
  12345. stack.push(Math.sin(a));
  12346. break;
  12347. case 'sqrt':
  12348. a = stack.pop();
  12349. stack.push(Math.sqrt(a));
  12350. break;
  12351. case 'sub':
  12352. b = stack.pop();
  12353. a = stack.pop();
  12354. stack.push(a - b);
  12355. break;
  12356. case 'true':
  12357. stack.push(true);
  12358. break;
  12359. case 'truncate':
  12360. a = stack.pop();
  12361. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  12362. stack.push(a);
  12363. break;
  12364. case 'xor':
  12365. b = stack.pop();
  12366. a = stack.pop();
  12367. if (isBool(a) && isBool(b)) {
  12368. stack.push(a != b);
  12369. } else {
  12370. stack.push(a ^ b);
  12371. }
  12372. break;
  12373. default:
  12374. error('Unknown operator ' + operator);
  12375. break;
  12376. }
  12377. }
  12378. return stack.stack;
  12379. }
  12380. };
  12381. return PostScriptEvaluator;
  12382. })();
  12383. var ColorSpace = (function ColorSpaceClosure() {
  12384. // Constructor should define this.numComps, this.defaultColor, this.name
  12385. function ColorSpace() {
  12386. error('should not call ColorSpace constructor');
  12387. }
  12388. ColorSpace.prototype = {
  12389. /**
  12390. * Converts the color value to the RGB color. The color components are
  12391. * located in the src array starting from the srcOffset. Returns the array
  12392. * of the rgb components, each value ranging from [0,255].
  12393. */
  12394. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  12395. var rgb = new Uint8Array(3);
  12396. this.getRgbItem(src, srcOffset, rgb, 0);
  12397. return rgb;
  12398. },
  12399. /**
  12400. * Converts the color value to the RGB color, similar to the getRgb method.
  12401. * The result placed into the dest array starting from the destOffset.
  12402. */
  12403. getRgbItem: function ColorSpace_getRgbItem(src, srcOffset,
  12404. dest, destOffset) {
  12405. error('Should not call ColorSpace.getRgbItem');
  12406. },
  12407. /**
  12408. * Converts the specified number of the color values to the RGB colors.
  12409. * The colors are located in the src array starting from the srcOffset.
  12410. * The result is placed into the dest array starting from the destOffset.
  12411. * The src array items shall be in [0,2^bits) range, the dest array items
  12412. * will be in [0,255] range. alpha01 indicates how many alpha components
  12413. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  12414. * array).
  12415. */
  12416. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  12417. dest, destOffset, bits,
  12418. alpha01) {
  12419. error('Should not call ColorSpace.getRgbBuffer');
  12420. },
  12421. /**
  12422. * Determines the number of bytes required to store the result of the
  12423. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  12424. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  12425. */
  12426. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  12427. alpha01) {
  12428. error('Should not call ColorSpace.getOutputLength');
  12429. },
  12430. /**
  12431. * Returns true if source data will be equal the result/output data.
  12432. */
  12433. isPassthrough: function ColorSpace_isPassthrough(bits) {
  12434. return false;
  12435. },
  12436. /**
  12437. * Fills in the RGB colors in the destination buffer. alpha01 indicates
  12438. * how many alpha components there are in the dest array; it will be either
  12439. * 0 (RGB array) or 1 (RGBA array).
  12440. */
  12441. fillRgb: function ColorSpace_fillRgb(dest, originalWidth,
  12442. originalHeight, width, height,
  12443. actualHeight, bpc, comps, alpha01) {
  12444. var count = originalWidth * originalHeight;
  12445. var rgbBuf = null;
  12446. var numComponentColors = 1 << bpc;
  12447. var needsResizing = originalHeight != height || originalWidth != width;
  12448. var i, ii;
  12449. if (this.isPassthrough(bpc)) {
  12450. rgbBuf = comps;
  12451. } else if (this.numComps === 1 && count > numComponentColors &&
  12452. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  12453. // Optimization: create a color map when there is just one component and
  12454. // we are converting more colors than the size of the color map. We
  12455. // don't build the map if the colorspace is gray or rgb since those
  12456. // methods are faster than building a map. This mainly offers big speed
  12457. // ups for indexed and alternate colorspaces.
  12458. //
  12459. // TODO it may be worth while to cache the color map. While running
  12460. // testing I never hit a cache so I will leave that out for now (perhaps
  12461. // we are reparsing colorspaces too much?).
  12462. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  12463. new Uint16Array(numComponentColors);
  12464. var key;
  12465. for (i = 0; i < numComponentColors; i++) {
  12466. allColors[i] = i;
  12467. }
  12468. var colorMap = new Uint8Array(numComponentColors * 3);
  12469. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  12470. /* alpha01 = */ 0);
  12471. var destPos, rgbPos;
  12472. if (!needsResizing) {
  12473. // Fill in the RGB values directly into |dest|.
  12474. destPos = 0;
  12475. for (i = 0; i < count; ++i) {
  12476. key = comps[i] * 3;
  12477. dest[destPos++] = colorMap[key];
  12478. dest[destPos++] = colorMap[key + 1];
  12479. dest[destPos++] = colorMap[key + 2];
  12480. destPos += alpha01;
  12481. }
  12482. } else {
  12483. rgbBuf = new Uint8Array(count * 3);
  12484. rgbPos = 0;
  12485. for (i = 0; i < count; ++i) {
  12486. key = comps[i] * 3;
  12487. rgbBuf[rgbPos++] = colorMap[key];
  12488. rgbBuf[rgbPos++] = colorMap[key + 1];
  12489. rgbBuf[rgbPos++] = colorMap[key + 2];
  12490. }
  12491. }
  12492. } else {
  12493. if (!needsResizing) {
  12494. // Fill in the RGB values directly into |dest|.
  12495. this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc,
  12496. alpha01);
  12497. } else {
  12498. rgbBuf = new Uint8Array(count * 3);
  12499. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  12500. /* alpha01 = */ 0);
  12501. }
  12502. }
  12503. if (rgbBuf) {
  12504. if (needsResizing) {
  12505. PDFImage.resize(rgbBuf, bpc, 3, originalWidth, originalHeight, width,
  12506. height, dest, alpha01);
  12507. } else {
  12508. rgbPos = 0;
  12509. destPos = 0;
  12510. for (i = 0, ii = width * actualHeight; i < ii; i++) {
  12511. dest[destPos++] = rgbBuf[rgbPos++];
  12512. dest[destPos++] = rgbBuf[rgbPos++];
  12513. dest[destPos++] = rgbBuf[rgbPos++];
  12514. destPos += alpha01;
  12515. }
  12516. }
  12517. }
  12518. },
  12519. /**
  12520. * True if the colorspace has components in the default range of [0, 1].
  12521. * This should be true for all colorspaces except for lab color spaces
  12522. * which are [0,100], [-128, 127], [-128, 127].
  12523. */
  12524. usesZeroToOneRange: true
  12525. };
  12526. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  12527. var IR = ColorSpace.parseToIR(cs, xref, res);
  12528. if (IR instanceof AlternateCS) {
  12529. return IR;
  12530. }
  12531. return ColorSpace.fromIR(IR);
  12532. };
  12533. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  12534. var name = isArray(IR) ? IR[0] : IR;
  12535. var whitePoint, blackPoint;
  12536. switch (name) {
  12537. case 'DeviceGrayCS':
  12538. return this.singletons.gray;
  12539. case 'DeviceRgbCS':
  12540. return this.singletons.rgb;
  12541. case 'DeviceCmykCS':
  12542. return this.singletons.cmyk;
  12543. case 'CalGrayCS':
  12544. whitePoint = IR[1].WhitePoint;
  12545. blackPoint = IR[1].BlackPoint;
  12546. var gamma = IR[1].Gamma;
  12547. return new CalGrayCS(whitePoint, blackPoint, gamma);
  12548. case 'PatternCS':
  12549. var basePatternCS = IR[1];
  12550. if (basePatternCS) {
  12551. basePatternCS = ColorSpace.fromIR(basePatternCS);
  12552. }
  12553. return new PatternCS(basePatternCS);
  12554. case 'IndexedCS':
  12555. var baseIndexedCS = IR[1];
  12556. var hiVal = IR[2];
  12557. var lookup = IR[3];
  12558. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  12559. case 'AlternateCS':
  12560. var numComps = IR[1];
  12561. var alt = IR[2];
  12562. var tintFnIR = IR[3];
  12563. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  12564. PDFFunction.fromIR(tintFnIR));
  12565. case 'LabCS':
  12566. whitePoint = IR[1].WhitePoint;
  12567. blackPoint = IR[1].BlackPoint;
  12568. var range = IR[1].Range;
  12569. return new LabCS(whitePoint, blackPoint, range);
  12570. default:
  12571. error('Unkown name ' + name);
  12572. }
  12573. return null;
  12574. };
  12575. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  12576. if (isName(cs)) {
  12577. var colorSpaces = res.get('ColorSpace');
  12578. if (isDict(colorSpaces)) {
  12579. var refcs = colorSpaces.get(cs.name);
  12580. if (refcs) {
  12581. cs = refcs;
  12582. }
  12583. }
  12584. }
  12585. cs = xref.fetchIfRef(cs);
  12586. var mode;
  12587. if (isName(cs)) {
  12588. mode = cs.name;
  12589. this.mode = mode;
  12590. switch (mode) {
  12591. case 'DeviceGray':
  12592. case 'G':
  12593. return 'DeviceGrayCS';
  12594. case 'DeviceRGB':
  12595. case 'RGB':
  12596. return 'DeviceRgbCS';
  12597. case 'DeviceCMYK':
  12598. case 'CMYK':
  12599. return 'DeviceCmykCS';
  12600. case 'Pattern':
  12601. return ['PatternCS', null];
  12602. default:
  12603. error('unrecognized colorspace ' + mode);
  12604. }
  12605. } else if (isArray(cs)) {
  12606. mode = cs[0].name;
  12607. this.mode = mode;
  12608. var numComps, params;
  12609. switch (mode) {
  12610. case 'DeviceGray':
  12611. case 'G':
  12612. return 'DeviceGrayCS';
  12613. case 'DeviceRGB':
  12614. case 'RGB':
  12615. return 'DeviceRgbCS';
  12616. case 'DeviceCMYK':
  12617. case 'CMYK':
  12618. return 'DeviceCmykCS';
  12619. case 'CalGray':
  12620. params = cs[1].getAll();
  12621. return ['CalGrayCS', params];
  12622. case 'CalRGB':
  12623. return 'DeviceRgbCS';
  12624. case 'ICCBased':
  12625. var stream = xref.fetchIfRef(cs[1]);
  12626. var dict = stream.dict;
  12627. numComps = dict.get('N');
  12628. if (numComps == 1) {
  12629. return 'DeviceGrayCS';
  12630. } else if (numComps == 3) {
  12631. return 'DeviceRgbCS';
  12632. } else if (numComps == 4) {
  12633. return 'DeviceCmykCS';
  12634. }
  12635. break;
  12636. case 'Pattern':
  12637. var basePatternCS = cs[1];
  12638. if (basePatternCS) {
  12639. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  12640. }
  12641. return ['PatternCS', basePatternCS];
  12642. case 'Indexed':
  12643. case 'I':
  12644. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  12645. var hiVal = cs[2] + 1;
  12646. var lookup = xref.fetchIfRef(cs[3]);
  12647. if (isStream(lookup)) {
  12648. lookup = lookup.getBytes();
  12649. }
  12650. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  12651. case 'Separation':
  12652. case 'DeviceN':
  12653. var name = cs[1];
  12654. numComps = 1;
  12655. if (isName(name)) {
  12656. numComps = 1;
  12657. } else if (isArray(name)) {
  12658. numComps = name.length;
  12659. }
  12660. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  12661. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  12662. return ['AlternateCS', numComps, alt, tintFnIR];
  12663. case 'Lab':
  12664. params = cs[1].getAll();
  12665. return ['LabCS', params];
  12666. default:
  12667. error('unimplemented color space object "' + mode + '"');
  12668. }
  12669. } else {
  12670. error('unrecognized color space object: "' + cs + '"');
  12671. }
  12672. return null;
  12673. };
  12674. /**
  12675. * Checks if a decode map matches the default decode map for a color space.
  12676. * This handles the general decode maps where there are two values per
  12677. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  12678. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  12679. * slightly different.
  12680. * @param {Array} decode Decode map (usually from an image).
  12681. * @param {Number} n Number of components the color space has.
  12682. */
  12683. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  12684. if (!decode) {
  12685. return true;
  12686. }
  12687. if (n * 2 !== decode.length) {
  12688. warn('The decode map is not the correct length');
  12689. return true;
  12690. }
  12691. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  12692. if (decode[i] !== 0 || decode[i + 1] != 1) {
  12693. return false;
  12694. }
  12695. }
  12696. return true;
  12697. };
  12698. ColorSpace.singletons = {
  12699. get gray() {
  12700. return shadow(this, 'gray', new DeviceGrayCS());
  12701. },
  12702. get rgb() {
  12703. return shadow(this, 'rgb', new DeviceRgbCS());
  12704. },
  12705. get cmyk() {
  12706. return shadow(this, 'cmyk', new DeviceCmykCS());
  12707. }
  12708. };
  12709. return ColorSpace;
  12710. })();
  12711. /**
  12712. * Alternate color space handles both Separation and DeviceN color spaces. A
  12713. * Separation color space is actually just a DeviceN with one color component.
  12714. * Both color spaces use a tinting function to convert colors to a base color
  12715. * space.
  12716. */
  12717. var AlternateCS = (function AlternateCSClosure() {
  12718. function AlternateCS(numComps, base, tintFn) {
  12719. this.name = 'Alternate';
  12720. this.numComps = numComps;
  12721. this.defaultColor = new Float32Array(numComps);
  12722. for (var i = 0; i < numComps; ++i) {
  12723. this.defaultColor[i] = 1;
  12724. }
  12725. this.base = base;
  12726. this.tintFn = tintFn;
  12727. }
  12728. AlternateCS.prototype = {
  12729. getRgb: ColorSpace.prototype.getRgb,
  12730. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  12731. dest, destOffset) {
  12732. var baseNumComps = this.base.numComps;
  12733. var input = 'subarray' in src ?
  12734. src.subarray(srcOffset, srcOffset + this.numComps) :
  12735. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  12736. var tinted = this.tintFn(input);
  12737. this.base.getRgbItem(tinted, 0, dest, destOffset);
  12738. },
  12739. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  12740. dest, destOffset, bits,
  12741. alpha01) {
  12742. var tinted;
  12743. var tintFn = this.tintFn;
  12744. var base = this.base;
  12745. var scale = 1 / ((1 << bits) - 1);
  12746. var baseNumComps = base.numComps;
  12747. var usesZeroToOneRange = base.usesZeroToOneRange;
  12748. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  12749. alpha01 === 0;
  12750. var pos = isPassthrough ? destOffset : 0;
  12751. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  12752. var numComps = this.numComps;
  12753. var scaled = new Float32Array(numComps);
  12754. var i, j;
  12755. if (usesZeroToOneRange) {
  12756. for (i = 0; i < count; i++) {
  12757. for (j = 0; j < numComps; j++) {
  12758. scaled[j] = src[srcOffset++] * scale;
  12759. }
  12760. tinted = tintFn(scaled);
  12761. for (j = 0; j < baseNumComps; j++) {
  12762. baseBuf[pos++] = tinted[j] * 255;
  12763. }
  12764. }
  12765. } else {
  12766. for (i = 0; i < count; i++) {
  12767. for (j = 0; j < numComps; j++) {
  12768. scaled[j] = src[srcOffset++] * scale;
  12769. }
  12770. tinted = tintFn(scaled);
  12771. base.getRgbItem(tinted, 0, baseBuf, pos);
  12772. pos += baseNumComps;
  12773. }
  12774. }
  12775. if (!isPassthrough) {
  12776. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  12777. }
  12778. },
  12779. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  12780. alpha01) {
  12781. return this.base.getOutputLength(inputLength *
  12782. this.base.numComps / this.numComps,
  12783. alpha01);
  12784. },
  12785. isPassthrough: ColorSpace.prototype.isPassthrough,
  12786. fillRgb: ColorSpace.prototype.fillRgb,
  12787. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  12788. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12789. },
  12790. usesZeroToOneRange: true
  12791. };
  12792. return AlternateCS;
  12793. })();
  12794. var PatternCS = (function PatternCSClosure() {
  12795. function PatternCS(baseCS) {
  12796. this.name = 'Pattern';
  12797. this.base = baseCS;
  12798. }
  12799. PatternCS.prototype = {};
  12800. return PatternCS;
  12801. })();
  12802. var IndexedCS = (function IndexedCSClosure() {
  12803. function IndexedCS(base, highVal, lookup) {
  12804. this.name = 'Indexed';
  12805. this.numComps = 1;
  12806. this.defaultColor = new Uint8Array([0]);
  12807. this.base = base;
  12808. this.highVal = highVal;
  12809. var baseNumComps = base.numComps;
  12810. var length = baseNumComps * highVal;
  12811. var lookupArray;
  12812. if (isStream(lookup)) {
  12813. lookupArray = new Uint8Array(length);
  12814. var bytes = lookup.getBytes(length);
  12815. lookupArray.set(bytes);
  12816. } else if (isString(lookup)) {
  12817. lookupArray = new Uint8Array(length);
  12818. for (var i = 0; i < length; ++i) {
  12819. lookupArray[i] = lookup.charCodeAt(i);
  12820. }
  12821. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  12822. lookupArray = lookup;
  12823. } else {
  12824. error('Unrecognized lookup table: ' + lookup);
  12825. }
  12826. this.lookup = lookupArray;
  12827. }
  12828. IndexedCS.prototype = {
  12829. getRgb: ColorSpace.prototype.getRgb,
  12830. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  12831. dest, destOffset) {
  12832. var numComps = this.base.numComps;
  12833. var start = src[srcOffset] * numComps;
  12834. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  12835. },
  12836. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  12837. dest, destOffset, bits,
  12838. alpha01) {
  12839. var base = this.base;
  12840. var numComps = base.numComps;
  12841. var outputDelta = base.getOutputLength(numComps, alpha01);
  12842. var lookup = this.lookup;
  12843. for (var i = 0; i < count; ++i) {
  12844. var lookupPos = src[srcOffset++] * numComps;
  12845. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  12846. destOffset += outputDelta;
  12847. }
  12848. },
  12849. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  12850. return this.base.getOutputLength(inputLength * this.base.numComps,
  12851. alpha01);
  12852. },
  12853. isPassthrough: ColorSpace.prototype.isPassthrough,
  12854. fillRgb: ColorSpace.prototype.fillRgb,
  12855. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  12856. // indexed color maps shouldn't be changed
  12857. return true;
  12858. },
  12859. usesZeroToOneRange: true
  12860. };
  12861. return IndexedCS;
  12862. })();
  12863. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  12864. function DeviceGrayCS() {
  12865. this.name = 'DeviceGray';
  12866. this.numComps = 1;
  12867. this.defaultColor = new Float32Array([0]);
  12868. }
  12869. DeviceGrayCS.prototype = {
  12870. getRgb: ColorSpace.prototype.getRgb,
  12871. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  12872. dest, destOffset) {
  12873. var c = (src[srcOffset] * 255) | 0;
  12874. c = c < 0 ? 0 : c > 255 ? 255 : c;
  12875. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  12876. },
  12877. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  12878. dest, destOffset, bits,
  12879. alpha01) {
  12880. var scale = 255 / ((1 << bits) - 1);
  12881. var j = srcOffset, q = destOffset;
  12882. for (var i = 0; i < count; ++i) {
  12883. var c = (scale * src[j++]) | 0;
  12884. dest[q++] = c;
  12885. dest[q++] = c;
  12886. dest[q++] = c;
  12887. q += alpha01;
  12888. }
  12889. },
  12890. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  12891. alpha01) {
  12892. return inputLength * (3 + alpha01);
  12893. },
  12894. isPassthrough: ColorSpace.prototype.isPassthrough,
  12895. fillRgb: ColorSpace.prototype.fillRgb,
  12896. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  12897. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12898. },
  12899. usesZeroToOneRange: true
  12900. };
  12901. return DeviceGrayCS;
  12902. })();
  12903. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  12904. function DeviceRgbCS() {
  12905. this.name = 'DeviceRGB';
  12906. this.numComps = 3;
  12907. this.defaultColor = new Float32Array([0, 0, 0]);
  12908. }
  12909. DeviceRgbCS.prototype = {
  12910. getRgb: ColorSpace.prototype.getRgb,
  12911. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  12912. dest, destOffset) {
  12913. var r = (src[srcOffset] * 255) | 0;
  12914. var g = (src[srcOffset + 1] * 255) | 0;
  12915. var b = (src[srcOffset + 2] * 255) | 0;
  12916. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  12917. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  12918. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  12919. },
  12920. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  12921. dest, destOffset, bits,
  12922. alpha01) {
  12923. if (bits === 8 && alpha01 === 0) {
  12924. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  12925. return;
  12926. }
  12927. var scale = 255 / ((1 << bits) - 1);
  12928. var j = srcOffset, q = destOffset;
  12929. for (var i = 0; i < count; ++i) {
  12930. dest[q++] = (scale * src[j++]) | 0;
  12931. dest[q++] = (scale * src[j++]) | 0;
  12932. dest[q++] = (scale * src[j++]) | 0;
  12933. q += alpha01;
  12934. }
  12935. },
  12936. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  12937. alpha01) {
  12938. return (inputLength * (3 + alpha01) / 3) | 0;
  12939. },
  12940. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  12941. return bits == 8;
  12942. },
  12943. fillRgb: ColorSpace.prototype.fillRgb,
  12944. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  12945. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12946. },
  12947. usesZeroToOneRange: true
  12948. };
  12949. return DeviceRgbCS;
  12950. })();
  12951. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  12952. // The coefficients below was found using numerical analysis: the method of
  12953. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  12954. // where color_value is the tabular value from the table of sampled RGB colors
  12955. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  12956. // CMYK color conversion using the estimation below:
  12957. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  12958. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  12959. var c = src[srcOffset + 0] * srcScale;
  12960. var m = src[srcOffset + 1] * srcScale;
  12961. var y = src[srcOffset + 2] * srcScale;
  12962. var k = src[srcOffset + 3] * srcScale;
  12963. var r =
  12964. (c * (-4.387332384609988 * c + 54.48615194189176 * m +
  12965. 18.82290502165302 * y + 212.25662451639585 * k +
  12966. -285.2331026137004) +
  12967. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  12968. -17.873870861415444 * k - 5.497006427196366) +
  12969. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  12970. 17.5119270841813) +
  12971. k * (-21.86122147463605 * k - 189.48180835922747) + 255) | 0;
  12972. var g =
  12973. (c * (8.841041422036149 * c + 60.118027045597366 * m +
  12974. 6.871425592049007 * y + 31.159100130055922 * k +
  12975. -79.2970844816548) +
  12976. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  12977. 131.35250912493976 * k - 190.9453302588951) +
  12978. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  12979. k * (-20.737325471181034 * k - 187.80453709719578) + 255) | 0;
  12980. var b =
  12981. (c * (0.8842522430003296 * c + 8.078677503112928 * m +
  12982. 30.89978309703729 * y - 0.23883238689178934 * k +
  12983. -14.183576799673286) +
  12984. m * (10.49593273432072 * m + 63.02378494754052 * y +
  12985. 50.606957656360734 * k - 112.23884253719248) +
  12986. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  12987. -193.58209356861505) +
  12988. k * (-22.33816807309886 * k - 180.12613974708367) + 255) | 0;
  12989. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  12990. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  12991. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  12992. }
  12993. function DeviceCmykCS() {
  12994. this.name = 'DeviceCMYK';
  12995. this.numComps = 4;
  12996. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  12997. }
  12998. DeviceCmykCS.prototype = {
  12999. getRgb: ColorSpace.prototype.getRgb,
  13000. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  13001. dest, destOffset) {
  13002. convertToRgb(src, srcOffset, 1, dest, destOffset);
  13003. },
  13004. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  13005. dest, destOffset, bits,
  13006. alpha01) {
  13007. var scale = 1 / ((1 << bits) - 1);
  13008. for (var i = 0; i < count; i++) {
  13009. convertToRgb(src, srcOffset, scale, dest, destOffset);
  13010. srcOffset += 4;
  13011. destOffset += 3 + alpha01;
  13012. }
  13013. },
  13014. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  13015. alpha01) {
  13016. return (inputLength / 4 * (3 + alpha01)) | 0;
  13017. },
  13018. isPassthrough: ColorSpace.prototype.isPassthrough,
  13019. fillRgb: ColorSpace.prototype.fillRgb,
  13020. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  13021. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  13022. },
  13023. usesZeroToOneRange: true
  13024. };
  13025. return DeviceCmykCS;
  13026. })();
  13027. //
  13028. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  13029. //
  13030. var CalGrayCS = (function CalGrayCSClosure() {
  13031. function CalGrayCS(whitePoint, blackPoint, gamma) {
  13032. this.name = 'CalGray';
  13033. this.numComps = 1;
  13034. this.defaultColor = new Float32Array([0]);
  13035. if (!whitePoint) {
  13036. error('WhitePoint missing - required for color space CalGray');
  13037. }
  13038. blackPoint = blackPoint || [0, 0, 0];
  13039. gamma = gamma || 1;
  13040. // Translate arguments to spec variables.
  13041. this.XW = whitePoint[0];
  13042. this.YW = whitePoint[1];
  13043. this.ZW = whitePoint[2];
  13044. this.XB = blackPoint[0];
  13045. this.YB = blackPoint[1];
  13046. this.ZB = blackPoint[2];
  13047. this.G = gamma;
  13048. // Validate variables as per spec.
  13049. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  13050. error('Invalid WhitePoint components for ' + this.name +
  13051. ', no fallback available');
  13052. }
  13053. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  13054. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  13055. this.XB = this.YB = this.ZB = 0;
  13056. }
  13057. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  13058. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  13059. ', ZB: ' + this.ZB + ', only default values are supported.');
  13060. }
  13061. if (this.G < 1) {
  13062. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  13063. ', falling back to default');
  13064. this.G = 1;
  13065. }
  13066. }
  13067. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  13068. // A represents a gray component of a calibrated gray space.
  13069. // A <---> AG in the spec
  13070. var A = src[srcOffset] * scale;
  13071. var AG = Math.pow(A, cs.G);
  13072. // Computes L as per spec. ( = cs.YW * AG )
  13073. // Except if other than default BlackPoint values are used.
  13074. var L = cs.YW * AG;
  13075. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  13076. // Convert values to rgb range [0, 255].
  13077. var val = Math.max(295.8 * Math.pow(L, 0.333333333333333333) - 40.8, 0) | 0;
  13078. dest[destOffset] = val;
  13079. dest[destOffset + 1] = val;
  13080. dest[destOffset + 2] = val;
  13081. }
  13082. CalGrayCS.prototype = {
  13083. getRgb: ColorSpace.prototype.getRgb,
  13084. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  13085. dest, destOffset) {
  13086. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  13087. },
  13088. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  13089. dest, destOffset, bits,
  13090. alpha01) {
  13091. var scale = 1 / ((1 << bits) - 1);
  13092. for (var i = 0; i < count; ++i) {
  13093. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  13094. srcOffset += 1;
  13095. destOffset += 3 + alpha01;
  13096. }
  13097. },
  13098. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  13099. return inputLength * (3 + alpha01);
  13100. },
  13101. isPassthrough: ColorSpace.prototype.isPassthrough,
  13102. fillRgb: ColorSpace.prototype.fillRgb,
  13103. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  13104. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  13105. },
  13106. usesZeroToOneRange: true
  13107. };
  13108. return CalGrayCS;
  13109. })();
  13110. //
  13111. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  13112. //
  13113. var LabCS = (function LabCSClosure() {
  13114. function LabCS(whitePoint, blackPoint, range) {
  13115. this.name = 'Lab';
  13116. this.numComps = 3;
  13117. this.defaultColor = new Float32Array([0, 0, 0]);
  13118. if (!whitePoint) {
  13119. error('WhitePoint missing - required for color space Lab');
  13120. }
  13121. blackPoint = blackPoint || [0, 0, 0];
  13122. range = range || [-100, 100, -100, 100];
  13123. // Translate args to spec variables
  13124. this.XW = whitePoint[0];
  13125. this.YW = whitePoint[1];
  13126. this.ZW = whitePoint[2];
  13127. this.amin = range[0];
  13128. this.amax = range[1];
  13129. this.bmin = range[2];
  13130. this.bmax = range[3];
  13131. // These are here just for completeness - the spec doesn't offer any
  13132. // formulas that use BlackPoint in Lab
  13133. this.XB = blackPoint[0];
  13134. this.YB = blackPoint[1];
  13135. this.ZB = blackPoint[2];
  13136. // Validate vars as per spec
  13137. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  13138. error('Invalid WhitePoint components, no fallback available');
  13139. }
  13140. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  13141. info('Invalid BlackPoint, falling back to default');
  13142. this.XB = this.YB = this.ZB = 0;
  13143. }
  13144. if (this.amin > this.amax || this.bmin > this.bmax) {
  13145. info('Invalid Range, falling back to defaults');
  13146. this.amin = -100;
  13147. this.amax = 100;
  13148. this.bmin = -100;
  13149. this.bmax = 100;
  13150. }
  13151. }
  13152. // Function g(x) from spec
  13153. function fn_g(x) {
  13154. if (x >= 6 / 29) {
  13155. return x * x * x;
  13156. } else {
  13157. return (108 / 841) * (x - 4 / 29);
  13158. }
  13159. }
  13160. function decode(value, high1, low2, high2) {
  13161. return low2 + (value) * (high2 - low2) / (high1);
  13162. }
  13163. // If decoding is needed maxVal should be 2^bits per component - 1.
  13164. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  13165. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  13166. // not the usual [0, 1]. If a command like setFillColor is used the src
  13167. // values will already be within the correct range. However, if we are
  13168. // converting an image we have to map the values to the correct range given
  13169. // above.
  13170. // Ls,as,bs <---> L*,a*,b* in the spec
  13171. var Ls = src[srcOffset];
  13172. var as = src[srcOffset + 1];
  13173. var bs = src[srcOffset + 2];
  13174. if (maxVal !== false) {
  13175. Ls = decode(Ls, maxVal, 0, 100);
  13176. as = decode(as, maxVal, cs.amin, cs.amax);
  13177. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  13178. }
  13179. // Adjust limits of 'as' and 'bs'
  13180. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  13181. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  13182. // Computes intermediate variables X,Y,Z as per spec
  13183. var M = (Ls + 16) / 116;
  13184. var L = M + (as / 500);
  13185. var N = M - (bs / 200);
  13186. var X = cs.XW * fn_g(L);
  13187. var Y = cs.YW * fn_g(M);
  13188. var Z = cs.ZW * fn_g(N);
  13189. var r, g, b;
  13190. // Using different conversions for D50 and D65 white points,
  13191. // per http://www.color.org/srgb.pdf
  13192. if (cs.ZW < 1) {
  13193. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  13194. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  13195. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  13196. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  13197. } else {
  13198. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  13199. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  13200. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  13201. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  13202. }
  13203. // clamp color values to [0,1] range then convert to [0,255] range.
  13204. dest[destOffset] = r <= 0 ? 0 : r >= 1 ? 255 : Math.sqrt(r) * 255 | 0;
  13205. dest[destOffset + 1] = g <= 0 ? 0 : g >= 1 ? 255 : Math.sqrt(g) * 255 | 0;
  13206. dest[destOffset + 2] = b <= 0 ? 0 : b >= 1 ? 255 : Math.sqrt(b) * 255 | 0;
  13207. }
  13208. LabCS.prototype = {
  13209. getRgb: ColorSpace.prototype.getRgb,
  13210. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  13211. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  13212. },
  13213. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  13214. dest, destOffset, bits,
  13215. alpha01) {
  13216. var maxVal = (1 << bits) - 1;
  13217. for (var i = 0; i < count; i++) {
  13218. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  13219. srcOffset += 3;
  13220. destOffset += 3 + alpha01;
  13221. }
  13222. },
  13223. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  13224. return (inputLength * (3 + alpha01) / 3) | 0;
  13225. },
  13226. isPassthrough: ColorSpace.prototype.isPassthrough,
  13227. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  13228. // XXX: Decoding is handled with the lab conversion because of the strange
  13229. // ranges that are used.
  13230. return true;
  13231. },
  13232. usesZeroToOneRange: false
  13233. };
  13234. return LabCS;
  13235. })();
  13236. var ARCFourCipher = (function ARCFourCipherClosure() {
  13237. function ARCFourCipher(key) {
  13238. this.a = 0;
  13239. this.b = 0;
  13240. var s = new Uint8Array(256);
  13241. var i, j = 0, tmp, keyLength = key.length;
  13242. for (i = 0; i < 256; ++i) {
  13243. s[i] = i;
  13244. }
  13245. for (i = 0; i < 256; ++i) {
  13246. tmp = s[i];
  13247. j = (j + tmp + key[i % keyLength]) & 0xFF;
  13248. s[i] = s[j];
  13249. s[j] = tmp;
  13250. }
  13251. this.s = s;
  13252. }
  13253. ARCFourCipher.prototype = {
  13254. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  13255. var i, n = data.length, tmp, tmp2;
  13256. var a = this.a, b = this.b, s = this.s;
  13257. var output = new Uint8Array(n);
  13258. for (i = 0; i < n; ++i) {
  13259. a = (a + 1) & 0xFF;
  13260. tmp = s[a];
  13261. b = (b + tmp) & 0xFF;
  13262. tmp2 = s[b];
  13263. s[a] = tmp2;
  13264. s[b] = tmp;
  13265. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  13266. }
  13267. this.a = a;
  13268. this.b = b;
  13269. return output;
  13270. }
  13271. };
  13272. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  13273. return ARCFourCipher;
  13274. })();
  13275. var calculateMD5 = (function calculateMD5Closure() {
  13276. var r = new Uint8Array([
  13277. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  13278. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  13279. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  13280. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  13281. var k = new Int32Array([
  13282. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  13283. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  13284. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  13285. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  13286. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  13287. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  13288. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  13289. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  13290. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  13291. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  13292. -145523070, -1120210379, 718787259, -343485551]);
  13293. function hash(data, offset, length) {
  13294. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  13295. // pre-processing
  13296. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  13297. var padded = new Uint8Array(paddedLength);
  13298. var i, j, n;
  13299. for (i = 0; i < length; ++i) {
  13300. padded[i] = data[offset++];
  13301. }
  13302. padded[i++] = 0x80;
  13303. n = paddedLength - 8;
  13304. while (i < n) {
  13305. padded[i++] = 0;
  13306. }
  13307. padded[i++] = (length << 3) & 0xFF;
  13308. padded[i++] = (length >> 5) & 0xFF;
  13309. padded[i++] = (length >> 13) & 0xFF;
  13310. padded[i++] = (length >> 21) & 0xFF;
  13311. padded[i++] = (length >>> 29) & 0xFF;
  13312. padded[i++] = 0;
  13313. padded[i++] = 0;
  13314. padded[i++] = 0;
  13315. // chunking
  13316. // TODO ArrayBuffer ?
  13317. var w = new Int32Array(16);
  13318. for (i = 0; i < paddedLength;) {
  13319. for (j = 0; j < 16; ++j, i += 4) {
  13320. w[j] = (padded[i] | (padded[i + 1] << 8) |
  13321. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  13322. }
  13323. var a = h0, b = h1, c = h2, d = h3, f, g;
  13324. for (j = 0; j < 64; ++j) {
  13325. if (j < 16) {
  13326. f = (b & c) | ((~b) & d);
  13327. g = j;
  13328. } else if (j < 32) {
  13329. f = (d & b) | ((~d) & c);
  13330. g = (5 * j + 1) & 15;
  13331. } else if (j < 48) {
  13332. f = b ^ c ^ d;
  13333. g = (3 * j + 5) & 15;
  13334. } else {
  13335. f = c ^ (b | (~d));
  13336. g = (7 * j) & 15;
  13337. }
  13338. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  13339. d = c;
  13340. c = b;
  13341. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  13342. a = tmp;
  13343. }
  13344. h0 = (h0 + a) | 0;
  13345. h1 = (h1 + b) | 0;
  13346. h2 = (h2 + c) | 0;
  13347. h3 = (h3 + d) | 0;
  13348. }
  13349. return new Uint8Array([
  13350. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  13351. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  13352. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  13353. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  13354. ]);
  13355. }
  13356. return hash;
  13357. })();
  13358. var NullCipher = (function NullCipherClosure() {
  13359. function NullCipher() {}
  13360. NullCipher.prototype = {
  13361. decryptBlock: function NullCipher_decryptBlock(data) {
  13362. return data;
  13363. }
  13364. };
  13365. return NullCipher;
  13366. })();
  13367. var AES128Cipher = (function AES128CipherClosure() {
  13368. var rcon = new Uint8Array([
  13369. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13370. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13371. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13372. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13373. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  13374. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  13375. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  13376. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  13377. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  13378. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  13379. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  13380. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  13381. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  13382. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  13383. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  13384. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  13385. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  13386. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13387. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13388. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13389. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13390. 0x74, 0xe8, 0xcb, 0x8d]);
  13391. var s = new Uint8Array([
  13392. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  13393. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  13394. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  13395. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  13396. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  13397. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  13398. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  13399. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  13400. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  13401. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  13402. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  13403. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  13404. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  13405. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  13406. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  13407. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  13408. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  13409. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  13410. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  13411. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  13412. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  13413. 0xb0, 0x54, 0xbb, 0x16]);
  13414. var inv_s = new Uint8Array([
  13415. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  13416. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  13417. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  13418. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  13419. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  13420. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  13421. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  13422. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  13423. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  13424. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  13425. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  13426. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  13427. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  13428. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  13429. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  13430. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  13431. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  13432. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13433. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13434. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13435. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13436. 0x55, 0x21, 0x0c, 0x7d]);
  13437. var mix = new Uint32Array([
  13438. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13439. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13440. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13441. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13442. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13443. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13444. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13445. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13446. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13447. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13448. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13449. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13450. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13451. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13452. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13453. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13454. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13455. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13456. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13457. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13458. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13459. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13460. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13461. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13462. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13463. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13464. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13465. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13466. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13467. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13468. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13469. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13470. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13471. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13472. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13473. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13474. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13475. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13476. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13477. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13478. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13479. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13480. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13481. function expandKey128(cipherKey) {
  13482. var b = 176, result = new Uint8Array(b);
  13483. result.set(cipherKey);
  13484. for (var j = 16, i = 1; j < b; ++i) {
  13485. // RotWord
  13486. var t1 = result[j - 3], t2 = result[j - 2],
  13487. t3 = result[j - 1], t4 = result[j - 4];
  13488. // SubWord
  13489. t1 = s[t1]; t2 = s[t2]; t3 = s[t3]; t4 = s[t4];
  13490. // Rcon
  13491. t1 = t1 ^ rcon[i];
  13492. for (var n = 0; n < 4; ++n) {
  13493. result[j] = (t1 ^= result[j - 16]); j++;
  13494. result[j] = (t2 ^= result[j - 16]); j++;
  13495. result[j] = (t3 ^= result[j - 16]); j++;
  13496. result[j] = (t4 ^= result[j - 16]); j++;
  13497. }
  13498. }
  13499. return result;
  13500. }
  13501. function decrypt128(input, key) {
  13502. var state = new Uint8Array(16);
  13503. state.set(input);
  13504. var i, j, k;
  13505. var t, u, v;
  13506. // AddRoundKey
  13507. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13508. state[j] ^= key[k];
  13509. }
  13510. for (i = 9; i >= 1; --i) {
  13511. // InvShiftRows
  13512. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13513. state[5] = state[1]; state[1] = t;
  13514. t = state[14]; u = state[10]; state[14] = state[6];
  13515. state[10] = state[2]; state[6] = t; state[2] = u;
  13516. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13517. state[11] = t; state[7] = u; state[3] = v;
  13518. // InvSubBytes
  13519. for (j = 0; j < 16; ++j) {
  13520. state[j] = inv_s[state[j]];
  13521. }
  13522. // AddRoundKey
  13523. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13524. state[j] ^= key[k];
  13525. }
  13526. // InvMixColumns
  13527. for (j = 0; j < 16; j += 4) {
  13528. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  13529. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  13530. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  13531. (s3 >>> 24) ^ (s3 << 8));
  13532. state[j] = (t >>> 24) & 0xFF;
  13533. state[j + 1] = (t >> 16) & 0xFF;
  13534. state[j + 2] = (t >> 8) & 0xFF;
  13535. state[j + 3] = t & 0xFF;
  13536. }
  13537. }
  13538. // InvShiftRows
  13539. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13540. state[5] = state[1]; state[1] = t;
  13541. t = state[14]; u = state[10]; state[14] = state[6];
  13542. state[10] = state[2]; state[6] = t; state[2] = u;
  13543. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13544. state[11] = t; state[7] = u; state[3] = v;
  13545. for (j = 0; j < 16; ++j) {
  13546. // InvSubBytes
  13547. state[j] = inv_s[state[j]];
  13548. // AddRoundKey
  13549. state[j] ^= key[j];
  13550. }
  13551. return state;
  13552. }
  13553. function AES128Cipher(key) {
  13554. this.key = expandKey128(key);
  13555. this.buffer = new Uint8Array(16);
  13556. this.bufferPosition = 0;
  13557. }
  13558. function decryptBlock2(data, finalize) {
  13559. var i, j, ii, sourceLength = data.length,
  13560. buffer = this.buffer, bufferLength = this.bufferPosition,
  13561. result = [], iv = this.iv;
  13562. for (i = 0; i < sourceLength; ++i) {
  13563. buffer[bufferLength] = data[i];
  13564. ++bufferLength;
  13565. if (bufferLength < 16) {
  13566. continue;
  13567. }
  13568. // buffer is full, decrypting
  13569. var plain = decrypt128(buffer, this.key);
  13570. // xor-ing the IV vector to get plain text
  13571. for (j = 0; j < 16; ++j) {
  13572. plain[j] ^= iv[j];
  13573. }
  13574. iv = buffer;
  13575. result.push(plain);
  13576. buffer = new Uint8Array(16);
  13577. bufferLength = 0;
  13578. }
  13579. // saving incomplete buffer
  13580. this.buffer = buffer;
  13581. this.bufferLength = bufferLength;
  13582. this.iv = iv;
  13583. if (result.length === 0) {
  13584. return new Uint8Array([]);
  13585. }
  13586. // combining plain text blocks into one
  13587. var outputLength = 16 * result.length;
  13588. if (finalize) {
  13589. // undo a padding that is described in RFC 2898
  13590. var lastBlock = result[result.length - 1];
  13591. outputLength -= lastBlock[15];
  13592. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  13593. }
  13594. var output = new Uint8Array(outputLength);
  13595. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  13596. output.set(result[i], j);
  13597. }
  13598. return output;
  13599. }
  13600. AES128Cipher.prototype = {
  13601. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  13602. var i, sourceLength = data.length;
  13603. var buffer = this.buffer, bufferLength = this.bufferPosition;
  13604. // waiting for IV values -- they are at the start of the stream
  13605. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) {
  13606. buffer[bufferLength] = data[i];
  13607. }
  13608. if (bufferLength < 16) {
  13609. // need more data
  13610. this.bufferLength = bufferLength;
  13611. return new Uint8Array([]);
  13612. }
  13613. this.iv = buffer;
  13614. this.buffer = new Uint8Array(16);
  13615. this.bufferLength = 0;
  13616. // starting decryption
  13617. this.decryptBlock = decryptBlock2;
  13618. return this.decryptBlock(data.subarray(16), finalize);
  13619. }
  13620. };
  13621. return AES128Cipher;
  13622. })();
  13623. var CipherTransform = (function CipherTransformClosure() {
  13624. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  13625. this.stringCipherConstructor = stringCipherConstructor;
  13626. this.streamCipherConstructor = streamCipherConstructor;
  13627. }
  13628. CipherTransform.prototype = {
  13629. createStream: function CipherTransform_createStream(stream, length) {
  13630. var cipher = new this.streamCipherConstructor();
  13631. return new DecryptStream(stream, length,
  13632. function cipherTransformDecryptStream(data, finalize) {
  13633. return cipher.decryptBlock(data, finalize);
  13634. }
  13635. );
  13636. },
  13637. decryptString: function CipherTransform_decryptString(s) {
  13638. var cipher = new this.stringCipherConstructor();
  13639. var data = stringToBytes(s);
  13640. data = cipher.decryptBlock(data, true);
  13641. return bytesToString(data);
  13642. }
  13643. };
  13644. return CipherTransform;
  13645. })();
  13646. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  13647. var defaultPasswordBytes = new Uint8Array([
  13648. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  13649. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  13650. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  13651. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  13652. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  13653. flags, revision, keyLength, encryptMetadata) {
  13654. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  13655. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  13656. if (password) {
  13657. n = Math.min(32, password.length);
  13658. for (; i < n; ++i) {
  13659. hashData[i] = password[i];
  13660. }
  13661. }
  13662. j = 0;
  13663. while (i < 32) {
  13664. hashData[i++] = defaultPasswordBytes[j++];
  13665. }
  13666. // as now the padded password in the hashData[0..i]
  13667. for (j = 0, n = ownerPassword.length; j < n; ++j) {
  13668. hashData[i++] = ownerPassword[j];
  13669. }
  13670. hashData[i++] = flags & 0xFF;
  13671. hashData[i++] = (flags >> 8) & 0xFF;
  13672. hashData[i++] = (flags >> 16) & 0xFF;
  13673. hashData[i++] = (flags >>> 24) & 0xFF;
  13674. for (j = 0, n = fileId.length; j < n; ++j) {
  13675. hashData[i++] = fileId[j];
  13676. }
  13677. if (revision >= 4 && !encryptMetadata) {
  13678. hashData[i++] = 0xFF;
  13679. hashData[i++] = 0xFF;
  13680. hashData[i++] = 0xFF;
  13681. hashData[i++] = 0xFF;
  13682. }
  13683. var hash = calculateMD5(hashData, 0, i);
  13684. var keyLengthInBytes = keyLength >> 3;
  13685. if (revision >= 3) {
  13686. for (j = 0; j < 50; ++j) {
  13687. hash = calculateMD5(hash, 0, keyLengthInBytes);
  13688. }
  13689. }
  13690. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  13691. var cipher, checkData;
  13692. if (revision >= 3) {
  13693. for (i = 0; i < 32; ++i) {
  13694. hashData[i] = defaultPasswordBytes[i];
  13695. }
  13696. for (j = 0, n = fileId.length; j < n; ++j) {
  13697. hashData[i++] = fileId[j];
  13698. }
  13699. cipher = new ARCFourCipher(encryptionKey);
  13700. checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  13701. n = encryptionKey.length;
  13702. var derivedKey = new Uint8Array(n), k;
  13703. for (j = 1; j <= 19; ++j) {
  13704. for (k = 0; k < n; ++k) {
  13705. derivedKey[k] = encryptionKey[k] ^ j;
  13706. }
  13707. cipher = new ARCFourCipher(derivedKey);
  13708. checkData = cipher.encryptBlock(checkData);
  13709. }
  13710. for (j = 0, n = checkData.length; j < n; ++j) {
  13711. if (userPassword[j] != checkData[j]) {
  13712. return null;
  13713. }
  13714. }
  13715. } else {
  13716. cipher = new ARCFourCipher(encryptionKey);
  13717. checkData = cipher.encryptBlock(defaultPasswordBytes);
  13718. for (j = 0, n = checkData.length; j < n; ++j) {
  13719. if (userPassword[j] != checkData[j]) {
  13720. return null;
  13721. }
  13722. }
  13723. }
  13724. return encryptionKey;
  13725. }
  13726. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  13727. var hashData = new Uint8Array(32), i = 0, j, n;
  13728. n = Math.min(32, password.length);
  13729. for (; i < n; ++i) {
  13730. hashData[i] = password[i];
  13731. }
  13732. j = 0;
  13733. while (i < 32) {
  13734. hashData[i++] = defaultPasswordBytes[j++];
  13735. }
  13736. var hash = calculateMD5(hashData, 0, i);
  13737. var keyLengthInBytes = keyLength >> 3;
  13738. if (revision >= 3) {
  13739. for (j = 0; j < 50; ++j) {
  13740. hash = calculateMD5(hash, 0, hash.length);
  13741. }
  13742. }
  13743. var cipher, userPassword;
  13744. if (revision >= 3) {
  13745. userPassword = ownerPassword;
  13746. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  13747. for (j = 19; j >= 0; j--) {
  13748. for (k = 0; k < keyLengthInBytes; ++k) {
  13749. derivedKey[k] = hash[k] ^ j;
  13750. }
  13751. cipher = new ARCFourCipher(derivedKey);
  13752. userPassword = cipher.encryptBlock(userPassword);
  13753. }
  13754. } else {
  13755. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  13756. userPassword = cipher.encryptBlock(ownerPassword);
  13757. }
  13758. return userPassword;
  13759. }
  13760. var identityName = Name.get('Identity');
  13761. function CipherTransformFactory(dict, fileId, password) {
  13762. var filter = dict.get('Filter');
  13763. if (!isName(filter) || filter.name != 'Standard') {
  13764. error('unknown encryption method');
  13765. }
  13766. this.dict = dict;
  13767. var algorithm = dict.get('V');
  13768. if (!isInt(algorithm) ||
  13769. (algorithm != 1 && algorithm != 2 && algorithm != 4)) {
  13770. error('unsupported encryption algorithm');
  13771. }
  13772. this.algorithm = algorithm;
  13773. var keyLength = dict.get('Length') || 40;
  13774. if (!isInt(keyLength) ||
  13775. keyLength < 40 || (keyLength % 8) !== 0) {
  13776. error('invalid key length');
  13777. }
  13778. // prepare keys
  13779. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  13780. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  13781. var flags = dict.get('P');
  13782. var revision = dict.get('R');
  13783. var encryptMetadata = (algorithm == 4 && // meaningful when V is 4
  13784. dict.get('EncryptMetadata') !== false); // makes true as default value
  13785. this.encryptMetadata = encryptMetadata;
  13786. var fileIdBytes = stringToBytes(fileId);
  13787. var passwordBytes;
  13788. if (password) {
  13789. passwordBytes = stringToBytes(password);
  13790. }
  13791. var encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  13792. ownerPassword, userPassword, flags,
  13793. revision, keyLength, encryptMetadata);
  13794. if (!encryptionKey && !password) {
  13795. throw new PasswordException('No password given',
  13796. PasswordResponses.NEED_PASSWORD);
  13797. } else if (!encryptionKey && password) {
  13798. // Attempting use the password as an owner password
  13799. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  13800. revision, keyLength);
  13801. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  13802. ownerPassword, userPassword, flags,
  13803. revision, keyLength, encryptMetadata);
  13804. }
  13805. if (!encryptionKey) {
  13806. throw new PasswordException('Incorrect Password',
  13807. PasswordResponses.INCORRECT_PASSWORD);
  13808. }
  13809. this.encryptionKey = encryptionKey;
  13810. if (algorithm == 4) {
  13811. this.cf = dict.get('CF');
  13812. this.stmf = dict.get('StmF') || identityName;
  13813. this.strf = dict.get('StrF') || identityName;
  13814. this.eff = dict.get('EFF') || this.strf;
  13815. }
  13816. }
  13817. function buildObjectKey(num, gen, encryptionKey, isAes) {
  13818. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  13819. for (i = 0, n = encryptionKey.length; i < n; ++i) {
  13820. key[i] = encryptionKey[i];
  13821. }
  13822. key[i++] = num & 0xFF;
  13823. key[i++] = (num >> 8) & 0xFF;
  13824. key[i++] = (num >> 16) & 0xFF;
  13825. key[i++] = gen & 0xFF;
  13826. key[i++] = (gen >> 8) & 0xFF;
  13827. if (isAes) {
  13828. key[i++] = 0x73;
  13829. key[i++] = 0x41;
  13830. key[i++] = 0x6C;
  13831. key[i++] = 0x54;
  13832. }
  13833. var hash = calculateMD5(key, 0, i);
  13834. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  13835. }
  13836. function buildCipherConstructor(cf, name, num, gen, key) {
  13837. var cryptFilter = cf.get(name.name);
  13838. var cfm;
  13839. if (cryptFilter !== null && cryptFilter !== undefined) {
  13840. cfm = cryptFilter.get('CFM');
  13841. }
  13842. if (!cfm || cfm.name == 'None') {
  13843. return function cipherTransformFactoryBuildCipherConstructorNone() {
  13844. return new NullCipher();
  13845. };
  13846. }
  13847. if ('V2' == cfm.name) {
  13848. return function cipherTransformFactoryBuildCipherConstructorV2() {
  13849. return new ARCFourCipher(buildObjectKey(num, gen, key, false));
  13850. };
  13851. }
  13852. if ('AESV2' == cfm.name) {
  13853. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  13854. return new AES128Cipher(buildObjectKey(num, gen, key, true));
  13855. };
  13856. }
  13857. error('Unknown crypto method');
  13858. }
  13859. CipherTransformFactory.prototype = {
  13860. createCipherTransform:
  13861. function CipherTransformFactory_createCipherTransform(num, gen) {
  13862. if (this.algorithm == 4) {
  13863. return new CipherTransform(
  13864. buildCipherConstructor(this.cf, this.stmf,
  13865. num, gen, this.encryptionKey),
  13866. buildCipherConstructor(this.cf, this.strf,
  13867. num, gen, this.encryptionKey));
  13868. }
  13869. // algorithms 1 and 2
  13870. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  13871. var cipherConstructor = function buildCipherCipherConstructor() {
  13872. return new ARCFourCipher(key);
  13873. };
  13874. return new CipherTransform(cipherConstructor, cipherConstructor);
  13875. }
  13876. };
  13877. return CipherTransformFactory;
  13878. })();
  13879. var PatternType = {
  13880. FUNCTION_BASED: 1,
  13881. AXIAL: 2,
  13882. RADIAL: 3,
  13883. FREE_FORM_MESH: 4,
  13884. LATTICE_FORM_MESH: 5,
  13885. COONS_PATCH_MESH: 6,
  13886. TENSOR_PATCH_MESH: 7
  13887. };
  13888. var Pattern = (function PatternClosure() {
  13889. // Constructor should define this.getPattern
  13890. function Pattern() {
  13891. error('should not call Pattern constructor');
  13892. }
  13893. Pattern.prototype = {
  13894. // Input: current Canvas context
  13895. // Output: the appropriate fillStyle or strokeStyle
  13896. getPattern: function Pattern_getPattern(ctx) {
  13897. error('Should not call Pattern.getStyle: ' + ctx);
  13898. }
  13899. };
  13900. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  13901. res) {
  13902. var dict = isStream(shading) ? shading.dict : shading;
  13903. var type = dict.get('ShadingType');
  13904. switch (type) {
  13905. case PatternType.AXIAL:
  13906. case PatternType.RADIAL:
  13907. // Both radial and axial shadings are handled by RadialAxial shading.
  13908. return new Shadings.RadialAxial(dict, matrix, xref, res);
  13909. case PatternType.FREE_FORM_MESH:
  13910. case PatternType.LATTICE_FORM_MESH:
  13911. case PatternType.COONS_PATCH_MESH:
  13912. case PatternType.TENSOR_PATCH_MESH:
  13913. return new Shadings.Mesh(shading, matrix, xref, res);
  13914. default:
  13915. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  13916. return new Shadings.Dummy();
  13917. }
  13918. };
  13919. return Pattern;
  13920. })();
  13921. var Shadings = {};
  13922. // A small number to offset the first/last color stops so we can insert ones to
  13923. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  13924. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  13925. // internally so we have to go bigger.
  13926. Shadings.SMALL_NUMBER = 1e-2;
  13927. // Radial and axial shading have very similar implementations
  13928. // If needed, the implementations can be broken into two classes
  13929. Shadings.RadialAxial = (function RadialAxialClosure() {
  13930. function RadialAxial(dict, matrix, xref, res) {
  13931. this.matrix = matrix;
  13932. this.coordsArr = dict.get('Coords');
  13933. this.shadingType = dict.get('ShadingType');
  13934. this.type = 'Pattern';
  13935. var cs = dict.get('ColorSpace', 'CS');
  13936. cs = ColorSpace.parse(cs, xref, res);
  13937. this.cs = cs;
  13938. var t0 = 0.0, t1 = 1.0;
  13939. if (dict.has('Domain')) {
  13940. var domainArr = dict.get('Domain');
  13941. t0 = domainArr[0];
  13942. t1 = domainArr[1];
  13943. }
  13944. var extendStart = false, extendEnd = false;
  13945. if (dict.has('Extend')) {
  13946. var extendArr = dict.get('Extend');
  13947. extendStart = extendArr[0];
  13948. extendEnd = extendArr[1];
  13949. }
  13950. if (this.shadingType === PatternType.RADIAL &&
  13951. (!extendStart || !extendEnd)) {
  13952. // Radial gradient only currently works if either circle is fully within
  13953. // the other circle.
  13954. var x1 = this.coordsArr[0];
  13955. var y1 = this.coordsArr[1];
  13956. var r1 = this.coordsArr[2];
  13957. var x2 = this.coordsArr[3];
  13958. var y2 = this.coordsArr[4];
  13959. var r2 = this.coordsArr[5];
  13960. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  13961. if (r1 <= r2 + distance &&
  13962. r2 <= r1 + distance) {
  13963. warn('Unsupported radial gradient.');
  13964. }
  13965. }
  13966. this.extendStart = extendStart;
  13967. this.extendEnd = extendEnd;
  13968. var fnObj = dict.get('Function');
  13969. var fn;
  13970. if (isArray(fnObj)) {
  13971. var fnArray = [];
  13972. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  13973. var obj = xref.fetchIfRef(fnObj[j]);
  13974. if (!isPDFFunction(obj)) {
  13975. error('Invalid function');
  13976. }
  13977. fnArray.push(PDFFunction.parse(xref, obj));
  13978. }
  13979. fn = function radialAxialColorFunction(arg) {
  13980. var out = [];
  13981. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  13982. out.push(fnArray[i](arg)[0]);
  13983. }
  13984. return out;
  13985. };
  13986. } else {
  13987. if (!isPDFFunction(fnObj)) {
  13988. error('Invalid function');
  13989. }
  13990. fn = PDFFunction.parse(xref, fnObj);
  13991. }
  13992. // 10 samples seems good enough for now, but probably won't work
  13993. // if there are sharp color changes. Ideally, we would implement
  13994. // the spec faithfully and add lossless optimizations.
  13995. var diff = t1 - t0;
  13996. var step = diff / 10;
  13997. var colorStops = this.colorStops = [];
  13998. // Protect against bad domains so we don't end up in an infinte loop below.
  13999. if (t0 >= t1 || step <= 0) {
  14000. // Acrobat doesn't seem to handle these cases so we'll ignore for
  14001. // now.
  14002. info('Bad shading domain.');
  14003. return;
  14004. }
  14005. var rgbColor;
  14006. for (var i = t0; i <= t1; i += step) {
  14007. rgbColor = cs.getRgb(fn([i]), 0);
  14008. var cssColor = Util.makeCssRgb(rgbColor);
  14009. colorStops.push([(i - t0) / diff, cssColor]);
  14010. }
  14011. var background = 'transparent';
  14012. if (dict.has('Background')) {
  14013. rgbColor = cs.getRgb(dict.get('Background'), 0);
  14014. background = Util.makeCssRgb(rgbColor);
  14015. }
  14016. if (!extendStart) {
  14017. // Insert a color stop at the front and offset the first real color stop
  14018. // so it doesn't conflict with the one we insert.
  14019. colorStops.unshift([0, background]);
  14020. colorStops[1][0] += Shadings.SMALL_NUMBER;
  14021. }
  14022. if (!extendEnd) {
  14023. // Same idea as above in extendStart but for the end.
  14024. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  14025. colorStops.push([1, background]);
  14026. }
  14027. this.colorStops = colorStops;
  14028. }
  14029. RadialAxial.prototype = {
  14030. getIR: function RadialAxial_getIR() {
  14031. var coordsArr = this.coordsArr;
  14032. var shadingType = this.shadingType;
  14033. var type, p0, p1, r0, r1;
  14034. if (shadingType == PatternType.AXIAL) {
  14035. p0 = [coordsArr[0], coordsArr[1]];
  14036. p1 = [coordsArr[2], coordsArr[3]];
  14037. r0 = null;
  14038. r1 = null;
  14039. type = 'axial';
  14040. } else if (shadingType == PatternType.RADIAL) {
  14041. p0 = [coordsArr[0], coordsArr[1]];
  14042. p1 = [coordsArr[3], coordsArr[4]];
  14043. r0 = coordsArr[2];
  14044. r1 = coordsArr[5];
  14045. type = 'radial';
  14046. } else {
  14047. error('getPattern type unknown: ' + shadingType);
  14048. }
  14049. var matrix = this.matrix;
  14050. if (matrix) {
  14051. p0 = Util.applyTransform(p0, matrix);
  14052. p1 = Util.applyTransform(p1, matrix);
  14053. }
  14054. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  14055. }
  14056. };
  14057. return RadialAxial;
  14058. })();
  14059. // All mesh shading. For now, they will be presented as set of the triangles
  14060. // to be drawn on the canvas and rgb color for each vertex.
  14061. Shadings.Mesh = (function MeshClosure() {
  14062. function MeshStreamReader(stream, context) {
  14063. this.stream = stream;
  14064. this.context = context;
  14065. this.buffer = 0;
  14066. this.bufferLength = 0;
  14067. }
  14068. MeshStreamReader.prototype = {
  14069. get hasData() {
  14070. if (this.stream.end) {
  14071. return this.stream.pos < this.stream.end;
  14072. }
  14073. if (this.bufferLength > 0) {
  14074. return true;
  14075. }
  14076. var nextByte = this.stream.getByte();
  14077. if (nextByte < 0) {
  14078. return false;
  14079. }
  14080. this.buffer = nextByte;
  14081. this.bufferLength = 8;
  14082. return true;
  14083. },
  14084. readBits: function MeshStreamReader_readBits(n) {
  14085. var buffer = this.buffer;
  14086. var bufferLength = this.bufferLength;
  14087. if (n === 32) {
  14088. if (bufferLength === 0) {
  14089. return ((this.stream.getByte() << 24) |
  14090. (this.stream.getByte() << 16) | (this.stream.getByte() << 8) |
  14091. this.stream.getByte()) >>> 0;
  14092. }
  14093. buffer = (buffer << 24) | (this.stream.getByte() << 16) |
  14094. (this.stream.getByte() << 8) | this.stream.getByte();
  14095. var nextByte = this.stream.getByte();
  14096. this.buffer = nextByte & ((1 << bufferLength) - 1);
  14097. return ((buffer << (8 - bufferLength)) |
  14098. ((nextByte & 0xFF) >> bufferLength)) >>> 0;
  14099. }
  14100. if (n === 8 && bufferLength === 0) {
  14101. return this.stream.getByte();
  14102. }
  14103. while (bufferLength < n) {
  14104. buffer = (buffer << 8) | this.stream.getByte();
  14105. bufferLength += 8;
  14106. }
  14107. bufferLength -= n;
  14108. this.bufferLength = bufferLength;
  14109. this.buffer = buffer & ((1 << bufferLength) - 1);
  14110. return buffer >> bufferLength;
  14111. },
  14112. align: function MeshStreamReader_align() {
  14113. this.buffer = 0;
  14114. this.bufferLength = 0;
  14115. },
  14116. readFlag: function MeshStreamReader_readFlag() {
  14117. return this.readBits(this.context.bitsPerFlag);
  14118. },
  14119. readCoordinate: function MeshStreamReader_readCoordinate() {
  14120. var bitsPerCoordinate = this.context.bitsPerCoordinate;
  14121. var xi = this.readBits(bitsPerCoordinate);
  14122. var yi = this.readBits(bitsPerCoordinate);
  14123. var decode = this.context.decode;
  14124. var scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) :
  14125. 2.3283064365386963e-10; // 2 ^ -32
  14126. return [
  14127. xi * scale * (decode[1] - decode[0]) + decode[0],
  14128. yi * scale * (decode[3] - decode[2]) + decode[2]
  14129. ];
  14130. },
  14131. readComponents: function MeshStreamReader_readComponents() {
  14132. var numComps = this.context.numComps;
  14133. var bitsPerComponent = this.context.bitsPerComponent;
  14134. var scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) :
  14135. 2.3283064365386963e-10; // 2 ^ -32
  14136. var decode = this.context.decode;
  14137. var components = [];
  14138. for (var i = 0, j = 4; i < numComps; i++, j += 2) {
  14139. var ci = this.readBits(bitsPerComponent);
  14140. components.push(ci * scale * (decode[j + 1] - decode[j]) + decode[j]);
  14141. }
  14142. if (this.context.colorFn) {
  14143. components = this.context.colorFn(components);
  14144. }
  14145. return this.context.colorSpace.getRgb(components, 0);
  14146. }
  14147. };
  14148. function decodeType4Shading(mesh, reader) {
  14149. var coords = mesh.coords;
  14150. var colors = mesh.colors;
  14151. var operators = [];
  14152. var ps = []; // not maintaining cs since that will match ps
  14153. var verticesLeft = 0; // assuming we have all data to start a new triangle
  14154. while (reader.hasData) {
  14155. var f = reader.readFlag();
  14156. var coord = reader.readCoordinate();
  14157. var color = reader.readComponents();
  14158. if (verticesLeft === 0) { // ignoring flags if we started a triangle
  14159. assert(0 <= f && f <= 2, 'Unknown type4 flag');
  14160. switch (f) {
  14161. case 0:
  14162. verticesLeft = 3;
  14163. break;
  14164. case 1:
  14165. ps.push(ps[ps.length - 2], ps[ps.length - 1]);
  14166. verticesLeft = 1;
  14167. break;
  14168. case 2:
  14169. ps.push(ps[ps.length - 3], ps[ps.length - 1]);
  14170. verticesLeft = 1;
  14171. break;
  14172. }
  14173. operators.push(f);
  14174. }
  14175. ps.push(coords.length);
  14176. coords.push(coord);
  14177. colors.push(color);
  14178. verticesLeft--;
  14179. reader.align();
  14180. }
  14181. var psPacked = new Int32Array(ps);
  14182. mesh.figures.push({
  14183. type: 'triangles',
  14184. coords: psPacked,
  14185. colors: psPacked
  14186. });
  14187. }
  14188. function decodeType5Shading(mesh, reader, verticesPerRow) {
  14189. var coords = mesh.coords;
  14190. var colors = mesh.colors;
  14191. var ps = []; // not maintaining cs since that will match ps
  14192. while (reader.hasData) {
  14193. var coord = reader.readCoordinate();
  14194. var color = reader.readComponents();
  14195. ps.push(coords.length);
  14196. coords.push(coord);
  14197. colors.push(color);
  14198. }
  14199. var psPacked = new Int32Array(ps);
  14200. mesh.figures.push({
  14201. type: 'lattice',
  14202. coords: psPacked,
  14203. colors: psPacked,
  14204. verticesPerRow: verticesPerRow
  14205. });
  14206. }
  14207. var MIN_SPLIT_PATCH_CHUNKS_AMOUNT = 3;
  14208. var MAX_SPLIT_PATCH_CHUNKS_AMOUNT = 20;
  14209. var TRIANGLE_DENSITY = 20; // count of triangles per entire mesh bounds
  14210. var getB = (function getBClosure() {
  14211. function buildB(count) {
  14212. var lut = [];
  14213. for (var i = 0; i <= count; i++) {
  14214. var t = i / count, t_ = 1 - t;
  14215. lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_,
  14216. 3 * t * t * t_, t * t * t]));
  14217. }
  14218. return lut;
  14219. }
  14220. var cache = [];
  14221. return function getB(count) {
  14222. if (!cache[count]) {
  14223. cache[count] = buildB(count);
  14224. }
  14225. return cache[count];
  14226. };
  14227. })();
  14228. function buildFigureFromPatch(mesh, index) {
  14229. var figure = mesh.figures[index];
  14230. assert(figure.type === 'patch', 'Unexpected patch mesh figure');
  14231. var coords = mesh.coords, colors = mesh.colors;
  14232. var pi = figure.coords;
  14233. var ci = figure.colors;
  14234. var figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0],
  14235. coords[pi[12]][0], coords[pi[15]][0]);
  14236. var figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1],
  14237. coords[pi[12]][1], coords[pi[15]][1]);
  14238. var figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0],
  14239. coords[pi[12]][0], coords[pi[15]][0]);
  14240. var figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1],
  14241. coords[pi[12]][1], coords[pi[15]][1]);
  14242. var splitXBy = Math.ceil((figureMaxX - figureMinX) * TRIANGLE_DENSITY /
  14243. (mesh.bounds[2] - mesh.bounds[0]));
  14244. splitXBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14245. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy));
  14246. var splitYBy = Math.ceil((figureMaxY - figureMinY) * TRIANGLE_DENSITY /
  14247. (mesh.bounds[3] - mesh.bounds[1]));
  14248. splitYBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14249. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy));
  14250. var verticesPerRow = splitXBy + 1;
  14251. var figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow);
  14252. var figureColors = new Int32Array((splitYBy + 1) * verticesPerRow);
  14253. var k = 0;
  14254. var cl = new Uint8Array(3), cr = new Uint8Array(3);
  14255. var c0 = colors[ci[0]], c1 = colors[ci[1]],
  14256. c2 = colors[ci[2]], c3 = colors[ci[3]];
  14257. var bRow = getB(splitYBy), bCol = getB(splitXBy);
  14258. for (var row = 0; row <= splitYBy; row++) {
  14259. cl[0] = ((c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy) | 0;
  14260. cl[1] = ((c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy) | 0;
  14261. cl[2] = ((c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy) | 0;
  14262. cr[0] = ((c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy) | 0;
  14263. cr[1] = ((c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy) | 0;
  14264. cr[2] = ((c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy) | 0;
  14265. for (var col = 0; col <= splitXBy; col++, k++) {
  14266. if ((row === 0 || row === splitYBy) &&
  14267. (col === 0 || col === splitXBy)) {
  14268. continue;
  14269. }
  14270. var x = 0, y = 0;
  14271. var q = 0;
  14272. for (var i = 0; i <= 3; i++) {
  14273. for (var j = 0; j <= 3; j++, q++) {
  14274. var m = bRow[row][i] * bCol[col][j];
  14275. x += coords[pi[q]][0] * m;
  14276. y += coords[pi[q]][1] * m;
  14277. }
  14278. }
  14279. figureCoords[k] = coords.length;
  14280. coords.push([x, y]);
  14281. figureColors[k] = colors.length;
  14282. var newColor = new Uint8Array(3);
  14283. newColor[0] = ((cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy) | 0;
  14284. newColor[1] = ((cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy) | 0;
  14285. newColor[2] = ((cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy) | 0;
  14286. colors.push(newColor);
  14287. }
  14288. }
  14289. figureCoords[0] = pi[0];
  14290. figureColors[0] = ci[0];
  14291. figureCoords[splitXBy] = pi[3];
  14292. figureColors[splitXBy] = ci[1];
  14293. figureCoords[verticesPerRow * splitYBy] = pi[12];
  14294. figureColors[verticesPerRow * splitYBy] = ci[2];
  14295. figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15];
  14296. figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3];
  14297. mesh.figures[index] = {
  14298. type: 'lattice',
  14299. coords: figureCoords,
  14300. colors: figureColors,
  14301. verticesPerRow: verticesPerRow
  14302. };
  14303. }
  14304. function decodeType6Shading(mesh, reader) {
  14305. // A special case of Type 7. The p11, p12, p21, p22 automatically filled
  14306. var coords = mesh.coords;
  14307. var colors = mesh.colors;
  14308. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14309. var cs = new Int32Array(4); // c00, c30, c03, c33
  14310. while (reader.hasData) {
  14311. var f = reader.readFlag();
  14312. assert(0 <= f && f <= 3, 'Unknown type6 flag');
  14313. var i, ii;
  14314. var pi = coords.length;
  14315. for (i = 0, ii = (f !== 0 ? 8 : 12); i < ii; i++) {
  14316. coords.push(reader.readCoordinate());
  14317. }
  14318. var ci = colors.length;
  14319. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14320. colors.push(reader.readComponents());
  14321. }
  14322. var tmp1, tmp2, tmp3, tmp4;
  14323. switch (f) {
  14324. case 0:
  14325. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14326. ps[ 8] = pi + 2; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14327. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 8;
  14328. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14329. cs[2] = ci + 1; cs[3] = ci + 2;
  14330. cs[0] = ci; cs[1] = ci + 3;
  14331. break;
  14332. case 1:
  14333. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14334. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14335. ps[ 8] = pi + 6; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 1;
  14336. ps[ 4] = pi + 7; /* calculated below */ ps[ 7] = pi;
  14337. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14338. tmp1 = cs[2]; tmp2 = cs[3];
  14339. cs[2] = ci + 1; cs[3] = ci;
  14340. cs[0] = tmp1; cs[1] = tmp2;
  14341. break;
  14342. case 2:
  14343. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14344. ps[ 8] = ps[11]; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 4;
  14345. ps[ 4] = ps[7]; /* calculated below */ ps[ 7] = pi + 3;
  14346. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14347. cs[2] = cs[3]; cs[3] = ci + 1;
  14348. cs[0] = cs[1]; cs[1] = ci;
  14349. break;
  14350. case 3:
  14351. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14352. ps[ 8] = pi; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14353. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 6;
  14354. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14355. cs[2] = cs[0]; cs[3] = cs[1];
  14356. cs[0] = ci; cs[1] = ci + 1;
  14357. break;
  14358. }
  14359. // set p11, p12, p21, p22
  14360. ps[5] = coords.length;
  14361. coords.push([
  14362. (-4 * coords[ps[0]][0] - coords[ps[15]][0] +
  14363. 6 * (coords[ps[4]][0] + coords[ps[1]][0]) -
  14364. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14365. 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9,
  14366. (-4 * coords[ps[0]][1] - coords[ps[15]][1] +
  14367. 6 * (coords[ps[4]][1] + coords[ps[1]][1]) -
  14368. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14369. 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9
  14370. ]);
  14371. ps[6] = coords.length;
  14372. coords.push([
  14373. (-4 * coords[ps[3]][0] - coords[ps[12]][0] +
  14374. 6 * (coords[ps[2]][0] + coords[ps[7]][0]) -
  14375. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14376. 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9,
  14377. (-4 * coords[ps[3]][1] - coords[ps[12]][1] +
  14378. 6 * (coords[ps[2]][1] + coords[ps[7]][1]) -
  14379. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14380. 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9
  14381. ]);
  14382. ps[9] = coords.length;
  14383. coords.push([
  14384. (-4 * coords[ps[12]][0] - coords[ps[3]][0] +
  14385. 6 * (coords[ps[8]][0] + coords[ps[13]][0]) -
  14386. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14387. 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9,
  14388. (-4 * coords[ps[12]][1] - coords[ps[3]][1] +
  14389. 6 * (coords[ps[8]][1] + coords[ps[13]][1]) -
  14390. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14391. 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9
  14392. ]);
  14393. ps[10] = coords.length;
  14394. coords.push([
  14395. (-4 * coords[ps[15]][0] - coords[ps[0]][0] +
  14396. 6 * (coords[ps[11]][0] + coords[ps[14]][0]) -
  14397. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14398. 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9,
  14399. (-4 * coords[ps[15]][1] - coords[ps[0]][1] +
  14400. 6 * (coords[ps[11]][1] + coords[ps[14]][1]) -
  14401. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14402. 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9
  14403. ]);
  14404. mesh.figures.push({
  14405. type: 'patch',
  14406. coords: new Int32Array(ps), // making copies of ps and cs
  14407. colors: new Int32Array(cs)
  14408. });
  14409. }
  14410. }
  14411. function decodeType7Shading(mesh, reader) {
  14412. var coords = mesh.coords;
  14413. var colors = mesh.colors;
  14414. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14415. var cs = new Int32Array(4); // c00, c30, c03, c33
  14416. while (reader.hasData) {
  14417. var f = reader.readFlag();
  14418. assert(0 <= f && f <= 3, 'Unknown type7 flag');
  14419. var i, ii;
  14420. var pi = coords.length;
  14421. for (i = 0, ii = (f !== 0 ? 12 : 16); i < ii; i++) {
  14422. coords.push(reader.readCoordinate());
  14423. }
  14424. var ci = colors.length;
  14425. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14426. colors.push(reader.readComponents());
  14427. }
  14428. var tmp1, tmp2, tmp3, tmp4;
  14429. switch (f) {
  14430. case 0:
  14431. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14432. ps[ 8] = pi + 2; ps[ 9] = pi + 13; ps[10] = pi + 14; ps[11] = pi + 7;
  14433. ps[ 4] = pi + 1; ps[ 5] = pi + 12; ps[ 6] = pi + 15; ps[ 7] = pi + 8;
  14434. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14435. cs[2] = ci + 1; cs[3] = ci + 2;
  14436. cs[0] = ci; cs[1] = ci + 3;
  14437. break;
  14438. case 1:
  14439. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14440. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14441. ps[ 8] = pi + 6; ps[ 9] = pi + 11; ps[10] = pi + 10; ps[11] = pi + 1;
  14442. ps[ 4] = pi + 7; ps[ 5] = pi + 8; ps[ 6] = pi + 9; ps[ 7] = pi;
  14443. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14444. tmp1 = cs[2]; tmp2 = cs[3];
  14445. cs[2] = ci + 1; cs[3] = ci;
  14446. cs[0] = tmp1; cs[1] = tmp2;
  14447. break;
  14448. case 2:
  14449. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14450. ps[ 8] = ps[11]; ps[ 9] = pi + 8; ps[10] = pi + 11; ps[11] = pi + 4;
  14451. ps[ 4] = ps[7]; ps[ 5] = pi + 9; ps[ 6] = pi + 10; ps[ 7] = pi + 3;
  14452. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14453. cs[2] = cs[3]; cs[3] = ci + 1;
  14454. cs[0] = cs[1]; cs[1] = ci;
  14455. break;
  14456. case 3:
  14457. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14458. ps[ 8] = pi; ps[ 9] = pi + 9; ps[10] = pi + 8; ps[11] = pi + 7;
  14459. ps[ 4] = pi + 1; ps[ 5] = pi + 10; ps[ 6] = pi + 11; ps[ 7] = pi + 6;
  14460. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14461. cs[2] = cs[0]; cs[3] = cs[1];
  14462. cs[0] = ci; cs[1] = ci + 1;
  14463. break;
  14464. }
  14465. mesh.figures.push({
  14466. type: 'patch',
  14467. coords: new Int32Array(ps), // making copies of ps and cs
  14468. colors: new Int32Array(cs)
  14469. });
  14470. }
  14471. }
  14472. function updateBounds(mesh) {
  14473. var minX = mesh.coords[0][0], minY = mesh.coords[0][1],
  14474. maxX = minX, maxY = minY;
  14475. for (var i = 1, ii = mesh.coords.length; i < ii; i++) {
  14476. var x = mesh.coords[i][0], y = mesh.coords[i][1];
  14477. minX = minX > x ? x : minX;
  14478. minY = minY > y ? y : minY;
  14479. maxX = maxX < x ? x : maxX;
  14480. maxY = maxY < y ? y : maxY;
  14481. }
  14482. mesh.bounds = [minX, minY, maxX, maxY];
  14483. }
  14484. function packData(mesh) {
  14485. var i, ii, j, jj;
  14486. var coords = mesh.coords;
  14487. var coordsPacked = new Float32Array(coords.length * 2);
  14488. for (i = 0, j = 0, ii = coords.length; i < ii; i++) {
  14489. var xy = coords[i];
  14490. coordsPacked[j++] = xy[0];
  14491. coordsPacked[j++] = xy[1];
  14492. }
  14493. mesh.coords = coordsPacked;
  14494. var colors = mesh.colors;
  14495. var colorsPacked = new Uint8Array(colors.length * 3);
  14496. for (i = 0, j = 0, ii = colors.length; i < ii; i++) {
  14497. var c = colors[i];
  14498. colorsPacked[j++] = c[0];
  14499. colorsPacked[j++] = c[1];
  14500. colorsPacked[j++] = c[2];
  14501. }
  14502. mesh.colors = colorsPacked;
  14503. var figures = mesh.figures;
  14504. for (i = 0, ii = figures.length; i < ii; i++) {
  14505. var figure = figures[i], ps = figure.coords, cs = figure.colors;
  14506. for (j = 0, jj = ps.length; j < jj; j++) {
  14507. ps[j] *= 2;
  14508. cs[j] *= 3;
  14509. }
  14510. }
  14511. }
  14512. function Mesh(stream, matrix, xref, res) {
  14513. assert(isStream(stream), 'Mesh data is not a stream');
  14514. var dict = stream.dict;
  14515. this.matrix = matrix;
  14516. this.shadingType = dict.get('ShadingType');
  14517. this.type = 'Pattern';
  14518. this.bbox = dict.get('BBox');
  14519. var cs = dict.get('ColorSpace', 'CS');
  14520. cs = ColorSpace.parse(cs, xref, res);
  14521. this.cs = cs;
  14522. this.background = dict.has('Background') ?
  14523. cs.getRgb(dict.get('Background'), 0) : null;
  14524. var fnObj = dict.get('Function');
  14525. var fn;
  14526. if (!fnObj) {
  14527. fn = null;
  14528. } else if (isArray(fnObj)) {
  14529. var fnArray = [];
  14530. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  14531. var obj = xref.fetchIfRef(fnObj[j]);
  14532. if (!isPDFFunction(obj)) {
  14533. error('Invalid function');
  14534. }
  14535. fnArray.push(PDFFunction.parse(xref, obj));
  14536. }
  14537. fn = function radialAxialColorFunction(arg) {
  14538. var out = [];
  14539. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  14540. out.push(fnArray[i](arg)[0]);
  14541. }
  14542. return out;
  14543. };
  14544. } else {
  14545. if (!isPDFFunction(fnObj)) {
  14546. error('Invalid function');
  14547. }
  14548. fn = PDFFunction.parse(xref, fnObj);
  14549. }
  14550. this.coords = [];
  14551. this.colors = [];
  14552. this.figures = [];
  14553. var decodeContext = {
  14554. bitsPerCoordinate: dict.get('BitsPerCoordinate'),
  14555. bitsPerComponent: dict.get('BitsPerComponent'),
  14556. bitsPerFlag: dict.get('BitsPerFlag'),
  14557. decode: dict.get('Decode'),
  14558. colorFn: fn,
  14559. colorSpace: cs,
  14560. numComps: fn ? 1 : cs.numComps
  14561. };
  14562. var reader = new MeshStreamReader(stream, decodeContext);
  14563. var patchMesh = false;
  14564. switch (this.shadingType) {
  14565. case PatternType.FREE_FORM_MESH:
  14566. decodeType4Shading(this, reader);
  14567. break;
  14568. case PatternType.LATTICE_FORM_MESH:
  14569. var verticesPerRow = dict.get('VerticesPerRow') | 0;
  14570. assert(verticesPerRow >= 2, 'Invalid VerticesPerRow');
  14571. decodeType5Shading(this, reader, verticesPerRow);
  14572. break;
  14573. case PatternType.COONS_PATCH_MESH:
  14574. decodeType6Shading(this, reader);
  14575. patchMesh = true;
  14576. break;
  14577. case PatternType.TENSOR_PATCH_MESH:
  14578. decodeType7Shading(this, reader);
  14579. patchMesh = true;
  14580. break;
  14581. default:
  14582. error('Unsupported mesh type.');
  14583. break;
  14584. }
  14585. if (patchMesh) {
  14586. // dirty bounds calculation for determining, how dense shall be triangles
  14587. updateBounds(this);
  14588. for (var i = 0, ii = this.figures.length; i < ii; i++) {
  14589. buildFigureFromPatch(this, i);
  14590. }
  14591. }
  14592. // calculate bounds
  14593. updateBounds(this);
  14594. packData(this);
  14595. }
  14596. Mesh.prototype = {
  14597. getIR: function Mesh_getIR() {
  14598. return ['Mesh', this.shadingType, this.coords, this.colors, this.figures,
  14599. this.bounds, this.matrix, this.bbox, this.background];
  14600. }
  14601. };
  14602. return Mesh;
  14603. })();
  14604. Shadings.Dummy = (function DummyClosure() {
  14605. function Dummy() {
  14606. this.type = 'Pattern';
  14607. }
  14608. Dummy.prototype = {
  14609. getIR: function Dummy_getIR() {
  14610. return ['Dummy'];
  14611. }
  14612. };
  14613. return Dummy;
  14614. })();
  14615. function getTilingPatternIR(operatorList, dict, args) {
  14616. var matrix = dict.get('Matrix');
  14617. var bbox = dict.get('BBox');
  14618. var xstep = dict.get('XStep');
  14619. var ystep = dict.get('YStep');
  14620. var paintType = dict.get('PaintType');
  14621. var tilingType = dict.get('TilingType');
  14622. return [
  14623. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  14624. paintType, tilingType
  14625. ];
  14626. }
  14627. var PartialEvaluator = (function PartialEvaluatorClosure() {
  14628. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  14629. uniquePrefix, idCounters, fontCache) {
  14630. this.pdfManager = pdfManager;
  14631. this.xref = xref;
  14632. this.handler = handler;
  14633. this.pageIndex = pageIndex;
  14634. this.uniquePrefix = uniquePrefix;
  14635. this.idCounters = idCounters;
  14636. this.fontCache = fontCache;
  14637. }
  14638. // Trying to minimize Date.now() usage and check every 100 time
  14639. var TIME_SLOT_DURATION_MS = 20;
  14640. var CHECK_TIME_EVERY = 100;
  14641. function TimeSlotManager() {
  14642. this.reset();
  14643. }
  14644. TimeSlotManager.prototype = {
  14645. check: function TimeSlotManager_check() {
  14646. if (++this.checked < CHECK_TIME_EVERY) {
  14647. return false;
  14648. }
  14649. this.checked = 0;
  14650. return this.endTime <= Date.now();
  14651. },
  14652. reset: function TimeSlotManager_reset() {
  14653. this.endTime = Date.now() + TIME_SLOT_DURATION_MS;
  14654. this.checked = 0;
  14655. }
  14656. };
  14657. var deferred = Promise.resolve();
  14658. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  14659. PartialEvaluator.prototype = {
  14660. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  14661. if (!isDict(resources)) {
  14662. return false;
  14663. }
  14664. var processed = Object.create(null);
  14665. if (resources.objId) {
  14666. processed[resources.objId] = true;
  14667. }
  14668. var nodes = [resources];
  14669. while (nodes.length) {
  14670. var key;
  14671. var node = nodes.shift();
  14672. // First check the current resources for blend modes.
  14673. var graphicStates = node.get('ExtGState');
  14674. if (isDict(graphicStates)) {
  14675. graphicStates = graphicStates.getAll();
  14676. for (key in graphicStates) {
  14677. var graphicState = graphicStates[key];
  14678. var bm = graphicState['BM'];
  14679. if (isName(bm) && bm.name !== 'Normal') {
  14680. return true;
  14681. }
  14682. }
  14683. }
  14684. // Descend into the XObjects to look for more resources and blend modes.
  14685. var xObjects = node.get('XObject');
  14686. if (!isDict(xObjects)) {
  14687. continue;
  14688. }
  14689. xObjects = xObjects.getAll();
  14690. for (key in xObjects) {
  14691. var xObject = xObjects[key];
  14692. if (!isStream(xObject)) {
  14693. continue;
  14694. }
  14695. var xResources = xObject.dict.get('Resources');
  14696. // Checking objId to detect an infinite loop.
  14697. if (isDict(xResources) &&
  14698. (!xResources.objId || !processed[xResources.objId])) {
  14699. nodes.push(xResources);
  14700. if (xResources.objId) {
  14701. processed[xResources.objId] = true;
  14702. }
  14703. }
  14704. }
  14705. }
  14706. return false;
  14707. },
  14708. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  14709. xobj, smask,
  14710. operatorList,
  14711. initialState) {
  14712. var matrix = xobj.dict.get('Matrix');
  14713. var bbox = xobj.dict.get('BBox');
  14714. var group = xobj.dict.get('Group');
  14715. if (group) {
  14716. var groupOptions = {
  14717. matrix: matrix,
  14718. bbox: bbox,
  14719. smask: smask,
  14720. isolated: false,
  14721. knockout: false
  14722. };
  14723. var groupSubtype = group.get('S');
  14724. var colorSpace;
  14725. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  14726. groupOptions.isolated = (group.get('I') || false);
  14727. groupOptions.knockout = (group.get('K') || false);
  14728. colorSpace = (group.has('CS') ?
  14729. ColorSpace.parse(group.get('CS'), this.xref, resources) : null);
  14730. }
  14731. if (smask && smask.backdrop) {
  14732. colorSpace = colorSpace || ColorSpace.singletons.rgb;
  14733. smask.backdrop = colorSpace.getRgb(smask.backdrop, 0);
  14734. }
  14735. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  14736. }
  14737. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  14738. return this.getOperatorList(xobj,
  14739. (xobj.dict.get('Resources') || resources), operatorList, initialState).
  14740. then(function () {
  14741. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  14742. if (group) {
  14743. operatorList.addOp(OPS.endGroup, [groupOptions]);
  14744. }
  14745. });
  14746. },
  14747. buildPaintImageXObject:
  14748. function PartialEvaluator_buildPaintImageXObject(resources, image,
  14749. inline, operatorList,
  14750. cacheKey, cache) {
  14751. var self = this;
  14752. var dict = image.dict;
  14753. var w = dict.get('Width', 'W');
  14754. var h = dict.get('Height', 'H');
  14755. if (!(w && isNum(w)) || !(h && isNum(h))) {
  14756. warn('Image dimensions are missing, or not numbers.');
  14757. return;
  14758. }
  14759. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  14760. warn('Image exceeded maximum allowed size and was removed.');
  14761. return;
  14762. }
  14763. var imageMask = (dict.get('ImageMask', 'IM') || false);
  14764. var imgData, args;
  14765. if (imageMask) {
  14766. // This depends on a tmpCanvas being filled with the
  14767. // current fillStyle, such that processing the pixel
  14768. // data can't be done here. Instead of creating a
  14769. // complete PDFImage, only read the information needed
  14770. // for later.
  14771. var width = dict.get('Width', 'W');
  14772. var height = dict.get('Height', 'H');
  14773. var bitStrideLength = (width + 7) >> 3;
  14774. var imgArray = image.getBytes(bitStrideLength * height);
  14775. var decode = dict.get('Decode', 'D');
  14776. var canTransfer = image instanceof DecodeStream;
  14777. var inverseDecode = (!!decode && decode[0] > 0);
  14778. imgData = PDFImage.createMask(imgArray, width, height,
  14779. canTransfer, inverseDecode);
  14780. imgData.cached = true;
  14781. args = [imgData];
  14782. operatorList.addOp(OPS.paintImageMaskXObject, args);
  14783. if (cacheKey) {
  14784. cache.key = cacheKey;
  14785. cache.fn = OPS.paintImageMaskXObject;
  14786. cache.args = args;
  14787. }
  14788. return;
  14789. }
  14790. var softMask = (dict.get('SMask', 'SM') || false);
  14791. var mask = (dict.get('Mask') || false);
  14792. var SMALL_IMAGE_DIMENSIONS = 200;
  14793. // Inlining small images into the queue as RGB data
  14794. if (inline && !softMask && !mask && !(image instanceof JpegStream) &&
  14795. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  14796. var imageObj = new PDFImage(this.xref, resources, image,
  14797. inline, null, null);
  14798. // We force the use of RGBA_32BPP images here, because we can't handle
  14799. // any other kind.
  14800. imgData = imageObj.createImageData(/* forceRGBA = */ true);
  14801. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  14802. return;
  14803. }
  14804. // If there is no imageMask, create the PDFImage and a lot
  14805. // of image processing can be done here.
  14806. var uniquePrefix = (this.uniquePrefix || '');
  14807. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  14808. operatorList.addDependency(objId);
  14809. args = [objId, w, h];
  14810. if (!softMask && !mask && image instanceof JpegStream &&
  14811. image.isNativelySupported(this.xref, resources)) {
  14812. // These JPEGs don't need any more processing so we can just send it.
  14813. operatorList.addOp(OPS.paintJpegXObject, args);
  14814. this.handler.send('obj',
  14815. [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  14816. return;
  14817. }
  14818. PDFImage.buildImage(self.handler, self.xref, resources, image, inline).
  14819. then(function(imageObj) {
  14820. var imgData = imageObj.createImageData(/* forceRGBA = */ false);
  14821. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  14822. [imgData.data.buffer]);
  14823. }).then(null, function (reason) {
  14824. warn('Unable to decode image: ' + reason);
  14825. self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
  14826. });
  14827. operatorList.addOp(OPS.paintImageXObject, args);
  14828. if (cacheKey) {
  14829. cache.key = cacheKey;
  14830. cache.fn = OPS.paintImageXObject;
  14831. cache.args = args;
  14832. }
  14833. },
  14834. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  14835. operatorList,
  14836. stateManager) {
  14837. var smaskContent = smask.get('G');
  14838. var smaskOptions = {
  14839. subtype: smask.get('S').name,
  14840. backdrop: smask.get('BC')
  14841. };
  14842. return this.buildFormXObject(resources, smaskContent, smaskOptions,
  14843. operatorList, stateManager.state.clone());
  14844. },
  14845. handleTilingType:
  14846. function PartialEvaluator_handleTilingType(fn, args, resources,
  14847. pattern, patternDict,
  14848. operatorList) {
  14849. // Create an IR of the pattern code.
  14850. var tilingOpList = new OperatorList();
  14851. return this.getOperatorList(pattern,
  14852. (patternDict.get('Resources') || resources), tilingOpList).
  14853. then(function () {
  14854. // Add the dependencies to the parent operator list so they are
  14855. // resolved before sub operator list is executed synchronously.
  14856. operatorList.addDependencies(tilingOpList.dependencies);
  14857. operatorList.addOp(fn, getTilingPatternIR({
  14858. fnArray: tilingOpList.fnArray,
  14859. argsArray: tilingOpList.argsArray
  14860. }, patternDict, args));
  14861. });
  14862. },
  14863. handleSetFont:
  14864. function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,
  14865. operatorList, state) {
  14866. // TODO(mack): Not needed?
  14867. var fontName;
  14868. if (fontArgs) {
  14869. fontArgs = fontArgs.slice();
  14870. fontName = fontArgs[0].name;
  14871. }
  14872. var self = this;
  14873. return this.loadFont(fontName, fontRef, this.xref, resources).then(
  14874. function (translated) {
  14875. if (!translated.font.isType3Font) {
  14876. return translated;
  14877. }
  14878. return translated.loadType3Data(self, resources, operatorList).then(
  14879. function () {
  14880. return translated;
  14881. });
  14882. }).then(function (translated) {
  14883. state.font = translated.font;
  14884. translated.send(self.handler);
  14885. return translated.loadedName;
  14886. });
  14887. },
  14888. handleText: function PartialEvaluator_handleText(chars, state) {
  14889. var font = state.font;
  14890. var glyphs = font.charsToGlyphs(chars);
  14891. var isAddToPathSet = !!(state.textRenderingMode &
  14892. TextRenderingMode.ADD_TO_PATH_FLAG);
  14893. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  14894. var buildPath = function (fontChar) {
  14895. if (!font.renderer.hasBuiltPath(fontChar)) {
  14896. var path = font.renderer.getPathJs(fontChar);
  14897. this.handler.send('commonobj', [
  14898. font.loadedName + '_path_' + fontChar,
  14899. 'FontPath',
  14900. path
  14901. ]);
  14902. }
  14903. }.bind(this);
  14904. for (var i = 0, ii = glyphs.length; i < ii; i++) {
  14905. var glyph = glyphs[i];
  14906. if (glyph === null) {
  14907. continue;
  14908. }
  14909. buildPath(glyph.fontChar);
  14910. // If the glyph has an accent we need to build a path for its
  14911. // fontChar too, otherwise CanvasGraphics_paintChar will fail.
  14912. var accent = glyph.accent;
  14913. if (accent && accent.fontChar) {
  14914. buildPath(accent.fontChar);
  14915. }
  14916. }
  14917. }
  14918. return glyphs;
  14919. },
  14920. setGState: function PartialEvaluator_setGState(resources, gState,
  14921. operatorList, xref,
  14922. stateManager) {
  14923. // TODO(mack): This should be rewritten so that this function returns
  14924. // what should be added to the queue during each iteration
  14925. function setGStateForKey(gStateObj, key, value) {
  14926. switch (key) {
  14927. case 'Type':
  14928. break;
  14929. case 'LW':
  14930. case 'LC':
  14931. case 'LJ':
  14932. case 'ML':
  14933. case 'D':
  14934. case 'RI':
  14935. case 'FL':
  14936. case 'CA':
  14937. case 'ca':
  14938. gStateObj.push([key, value]);
  14939. break;
  14940. case 'Font':
  14941. promise = promise.then(function () {
  14942. return self.handleSetFont(resources, null, value[0],
  14943. operatorList, stateManager.state).
  14944. then(function (loadedName) {
  14945. operatorList.addDependency(loadedName);
  14946. gStateObj.push([key, [loadedName, value[1]]]);
  14947. });
  14948. });
  14949. break;
  14950. case 'BM':
  14951. gStateObj.push([key, value]);
  14952. break;
  14953. case 'SMask':
  14954. if (isName(value) && value.name === 'None') {
  14955. gStateObj.push([key, false]);
  14956. break;
  14957. }
  14958. var dict = xref.fetchIfRef(value);
  14959. if (isDict(dict)) {
  14960. promise = promise.then(function () {
  14961. return self.handleSMask(dict, resources, operatorList,
  14962. stateManager);
  14963. });
  14964. gStateObj.push([key, true]);
  14965. } else {
  14966. warn('Unsupported SMask type');
  14967. }
  14968. break;
  14969. // Only generate info log messages for the following since
  14970. // they are unlikey to have a big impact on the rendering.
  14971. case 'OP':
  14972. case 'op':
  14973. case 'OPM':
  14974. case 'BG':
  14975. case 'BG2':
  14976. case 'UCR':
  14977. case 'UCR2':
  14978. case 'TR':
  14979. case 'TR2':
  14980. case 'HT':
  14981. case 'SM':
  14982. case 'SA':
  14983. case 'AIS':
  14984. case 'TK':
  14985. // TODO implement these operators.
  14986. info('graphic state operator ' + key);
  14987. break;
  14988. default:
  14989. info('Unknown graphic state operator ' + key);
  14990. break;
  14991. }
  14992. }
  14993. // This array holds the converted/processed state data.
  14994. var gStateObj = [];
  14995. var gStateMap = gState.map;
  14996. var self = this;
  14997. var promise = Promise.resolve();
  14998. for (var key in gStateMap) {
  14999. var value = gStateMap[key];
  15000. setGStateForKey(gStateObj, key, value);
  15001. }
  15002. return promise.then(function () {
  15003. operatorList.addOp(OPS.setGState, [gStateObj]);
  15004. });
  15005. },
  15006. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  15007. resources) {
  15008. function errorFont() {
  15009. return Promise.resolve(new TranslatedFont('g_font_error',
  15010. new ErrorFont('Font ' + fontName + ' is not available'), font));
  15011. }
  15012. var fontRef;
  15013. if (font) { // Loading by ref.
  15014. assert(isRef(font));
  15015. fontRef = font;
  15016. } else { // Loading by name.
  15017. var fontRes = resources.get('Font');
  15018. if (fontRes) {
  15019. fontRef = fontRes.getRaw(fontName);
  15020. } else {
  15021. warn('fontRes not available');
  15022. return errorFont();
  15023. }
  15024. }
  15025. if (this.fontCache.has(fontRef)) {
  15026. return this.fontCache.get(fontRef);
  15027. }
  15028. font = xref.fetchIfRef(fontRef);
  15029. if (!isDict(font)) {
  15030. return errorFont();
  15031. }
  15032. // We are holding font.translated references just for fontRef that are not
  15033. // dictionaries (Dict). See explanation below.
  15034. if (font.translated) {
  15035. return font.translated;
  15036. }
  15037. var fontCapability = createPromiseCapability();
  15038. var preEvaluatedFont = this.preEvaluateFont(font, xref);
  15039. var descriptor = preEvaluatedFont.descriptor;
  15040. var fontID = fontRef.num + '_' + fontRef.gen;
  15041. if (isDict(descriptor)) {
  15042. if (!descriptor.fontAliases) {
  15043. descriptor.fontAliases = Object.create(null);
  15044. }
  15045. var fontAliases = descriptor.fontAliases;
  15046. var hash = preEvaluatedFont.hash;
  15047. if (fontAliases[hash]) {
  15048. var aliasFontRef = fontAliases[hash].aliasRef;
  15049. if (aliasFontRef && this.fontCache.has(aliasFontRef)) {
  15050. this.fontCache.putAlias(fontRef, aliasFontRef);
  15051. return this.fontCache.get(fontRef);
  15052. }
  15053. }
  15054. if (!fontAliases[hash]) {
  15055. fontAliases[hash] = {
  15056. fontID: Font.getFontID()
  15057. };
  15058. }
  15059. fontAliases[hash].aliasRef = fontRef;
  15060. fontID = fontAliases[hash].fontID;
  15061. }
  15062. // Workaround for bad PDF generators that don't reference fonts
  15063. // properly, i.e. by not using an object identifier.
  15064. // Check if the fontRef is a Dict (as opposed to a standard object),
  15065. // in which case we don't cache the font and instead reference it by
  15066. // fontName in font.loadedName below.
  15067. var fontRefIsDict = isDict(fontRef);
  15068. if (!fontRefIsDict) {
  15069. this.fontCache.put(fontRef, fontCapability.promise);
  15070. }
  15071. // Keep track of each font we translated so the caller can
  15072. // load them asynchronously before calling display on a page.
  15073. font.loadedName = 'g_font_' + (fontRefIsDict ?
  15074. fontName.replace(/\W/g, '') : fontID);
  15075. font.translated = fontCapability.promise;
  15076. // TODO move promises into translate font
  15077. var translatedPromise;
  15078. try {
  15079. translatedPromise = Promise.resolve(
  15080. this.translateFont(preEvaluatedFont, xref));
  15081. } catch (e) {
  15082. translatedPromise = Promise.reject(e);
  15083. }
  15084. translatedPromise.then(function (translatedFont) {
  15085. fontCapability.resolve(new TranslatedFont(font.loadedName,
  15086. translatedFont, font));
  15087. }, function (reason) {
  15088. // TODO fontCapability.reject?
  15089. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  15090. fontCapability.resolve(new TranslatedFont(font.loadedName,
  15091. new ErrorFont(reason instanceof Error ? reason.message : reason),
  15092. font));
  15093. });
  15094. return fontCapability.promise;
  15095. },
  15096. buildPath: function PartialEvaluator_buildPath(operatorList, fn, args) {
  15097. var lastIndex = operatorList.length - 1;
  15098. if (lastIndex < 0 ||
  15099. operatorList.fnArray[lastIndex] !== OPS.constructPath) {
  15100. operatorList.addOp(OPS.constructPath, [[fn], args]);
  15101. } else {
  15102. var opArgs = operatorList.argsArray[lastIndex];
  15103. opArgs[0].push(fn);
  15104. Array.prototype.push.apply(opArgs[1], args);
  15105. }
  15106. },
  15107. handleColorN: function PartialEvaluator_handleColorN(operatorList, fn, args,
  15108. cs, patterns, resources, xref) {
  15109. // compile tiling patterns
  15110. var patternName = args[args.length - 1];
  15111. // SCN/scn applies patterns along with normal colors
  15112. var pattern;
  15113. if (isName(patternName) &&
  15114. (pattern = patterns.get(patternName.name))) {
  15115. var dict = (isStream(pattern) ? pattern.dict : pattern);
  15116. var typeNum = dict.get('PatternType');
  15117. if (typeNum == TILING_PATTERN) {
  15118. var color = cs.base ? cs.base.getRgb(args, 0) : null;
  15119. return this.handleTilingType(fn, color, resources, pattern,
  15120. dict, operatorList);
  15121. } else if (typeNum == SHADING_PATTERN) {
  15122. var shading = dict.get('Shading');
  15123. var matrix = dict.get('Matrix');
  15124. pattern = Pattern.parseShading(shading, matrix, xref, resources);
  15125. operatorList.addOp(fn, pattern.getIR());
  15126. return Promise.resolve();
  15127. } else {
  15128. return Promise.reject('Unknown PatternType: ' + typeNum);
  15129. }
  15130. }
  15131. // TODO shall we fail here?
  15132. operatorList.addOp(fn, args);
  15133. return Promise.resolve();
  15134. },
  15135. getOperatorList: function PartialEvaluator_getOperatorList(stream,
  15136. resources,
  15137. operatorList,
  15138. initialState) {
  15139. var self = this;
  15140. var xref = this.xref;
  15141. var imageCache = {};
  15142. assert(operatorList);
  15143. resources = (resources || Dict.empty);
  15144. var xobjs = (resources.get('XObject') || Dict.empty);
  15145. var patterns = (resources.get('Pattern') || Dict.empty);
  15146. var stateManager = new StateManager(initialState || new EvalState());
  15147. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15148. var timeSlotManager = new TimeSlotManager();
  15149. return new Promise(function next(resolve, reject) {
  15150. timeSlotManager.reset();
  15151. var stop, operation, i, ii, cs;
  15152. while (!(stop = timeSlotManager.check()) &&
  15153. (operation = preprocessor.read())) {
  15154. var args = operation.args;
  15155. var fn = operation.fn;
  15156. switch (fn | 0) {
  15157. case OPS.paintXObject:
  15158. if (args[0].code) {
  15159. break;
  15160. }
  15161. // eagerly compile XForm objects
  15162. var name = args[0].name;
  15163. if (imageCache.key === name) {
  15164. operatorList.addOp(imageCache.fn, imageCache.args);
  15165. args = [];
  15166. continue;
  15167. }
  15168. var xobj = xobjs.get(name);
  15169. if (xobj) {
  15170. assert(isStream(xobj), 'XObject should be a stream');
  15171. var type = xobj.dict.get('Subtype');
  15172. assert(isName(type),
  15173. 'XObject should have a Name subtype');
  15174. if (type.name === 'Form') {
  15175. stateManager.save();
  15176. return self.buildFormXObject(resources, xobj, null,
  15177. operatorList,
  15178. stateManager.state.clone()).
  15179. then(function () {
  15180. stateManager.restore();
  15181. next(resolve, reject);
  15182. }, reject);
  15183. } else if (type.name === 'Image') {
  15184. self.buildPaintImageXObject(resources, xobj, false,
  15185. operatorList, name, imageCache);
  15186. args = [];
  15187. continue;
  15188. } else if (type.name === 'PS') {
  15189. // PostScript XObjects are unused when viewing documents.
  15190. // See section 4.7.1 of Adobe's PDF reference.
  15191. info('Ignored XObject subtype PS');
  15192. continue;
  15193. } else {
  15194. error('Unhandled XObject subtype ' + type.name);
  15195. }
  15196. }
  15197. break;
  15198. case OPS.setFont:
  15199. var fontSize = args[1];
  15200. // eagerly collect all fonts
  15201. return self.handleSetFont(resources, args, null,
  15202. operatorList, stateManager.state).
  15203. then(function (loadedName) {
  15204. operatorList.addDependency(loadedName);
  15205. operatorList.addOp(OPS.setFont, [loadedName, fontSize]);
  15206. next(resolve, reject);
  15207. }, reject);
  15208. case OPS.endInlineImage:
  15209. var cacheKey = args[0].cacheKey;
  15210. if (cacheKey && imageCache.key === cacheKey) {
  15211. operatorList.addOp(imageCache.fn, imageCache.args);
  15212. args = [];
  15213. continue;
  15214. }
  15215. self.buildPaintImageXObject(resources, args[0], true,
  15216. operatorList, cacheKey, imageCache);
  15217. args = [];
  15218. continue;
  15219. case OPS.showText:
  15220. args[0] = self.handleText(args[0], stateManager.state);
  15221. break;
  15222. case OPS.showSpacedText:
  15223. var arr = args[0];
  15224. var combinedGlyphs = [];
  15225. var arrLength = arr.length;
  15226. for (i = 0; i < arrLength; ++i) {
  15227. var arrItem = arr[i];
  15228. if (isString(arrItem)) {
  15229. Array.prototype.push.apply(combinedGlyphs,
  15230. self.handleText(arrItem, stateManager.state));
  15231. } else if (isNum(arrItem)) {
  15232. combinedGlyphs.push(arrItem);
  15233. }
  15234. }
  15235. args[0] = combinedGlyphs;
  15236. fn = OPS.showText;
  15237. break;
  15238. case OPS.nextLineShowText:
  15239. operatorList.addOp(OPS.nextLine);
  15240. args[0] = self.handleText(args[0], stateManager.state);
  15241. fn = OPS.showText;
  15242. break;
  15243. case OPS.nextLineSetSpacingShowText:
  15244. operatorList.addOp(OPS.nextLine);
  15245. operatorList.addOp(OPS.setWordSpacing, [args.shift()]);
  15246. operatorList.addOp(OPS.setCharSpacing, [args.shift()]);
  15247. args[0] = self.handleText(args[0], stateManager.state);
  15248. fn = OPS.showText;
  15249. break;
  15250. case OPS.setTextRenderingMode:
  15251. stateManager.state.textRenderingMode = args[0];
  15252. break;
  15253. case OPS.setFillColorSpace:
  15254. stateManager.state.fillColorSpace =
  15255. ColorSpace.parse(args[0], xref, resources);
  15256. continue;
  15257. case OPS.setStrokeColorSpace:
  15258. stateManager.state.strokeColorSpace =
  15259. ColorSpace.parse(args[0], xref, resources);
  15260. continue;
  15261. case OPS.setFillColor:
  15262. cs = stateManager.state.fillColorSpace;
  15263. args = cs.getRgb(args, 0);
  15264. fn = OPS.setFillRGBColor;
  15265. break;
  15266. case OPS.setStrokeColor:
  15267. cs = stateManager.state.strokeColorSpace;
  15268. args = cs.getRgb(args, 0);
  15269. fn = OPS.setStrokeRGBColor;
  15270. break;
  15271. case OPS.setFillGray:
  15272. stateManager.state.fillColorSpace = ColorSpace.singletons.gray;
  15273. args = ColorSpace.singletons.gray.getRgb(args, 0);
  15274. fn = OPS.setFillRGBColor;
  15275. break;
  15276. case OPS.setStrokeGray:
  15277. stateManager.state.strokeColorSpace = ColorSpace.singletons.gray;
  15278. args = ColorSpace.singletons.gray.getRgb(args, 0);
  15279. fn = OPS.setStrokeRGBColor;
  15280. break;
  15281. case OPS.setFillCMYKColor:
  15282. stateManager.state.fillColorSpace = ColorSpace.singletons.cmyk;
  15283. args = ColorSpace.singletons.cmyk.getRgb(args, 0);
  15284. fn = OPS.setFillRGBColor;
  15285. break;
  15286. case OPS.setStrokeCMYKColor:
  15287. stateManager.state.strokeColorSpace = ColorSpace.singletons.cmyk;
  15288. args = ColorSpace.singletons.cmyk.getRgb(args, 0);
  15289. fn = OPS.setStrokeRGBColor;
  15290. break;
  15291. case OPS.setFillRGBColor:
  15292. stateManager.state.fillColorSpace = ColorSpace.singletons.rgb;
  15293. args = ColorSpace.singletons.rgb.getRgb(args, 0);
  15294. break;
  15295. case OPS.setStrokeRGBColor:
  15296. stateManager.state.strokeColorSpace = ColorSpace.singletons.rgb;
  15297. args = ColorSpace.singletons.rgb.getRgb(args, 0);
  15298. break;
  15299. case OPS.setFillColorN:
  15300. cs = stateManager.state.fillColorSpace;
  15301. if (cs.name === 'Pattern') {
  15302. return self.handleColorN(operatorList, OPS.setFillColorN,
  15303. args, cs, patterns, resources, xref).then(function() {
  15304. next(resolve, reject);
  15305. }, reject);
  15306. }
  15307. args = cs.getRgb(args, 0);
  15308. fn = OPS.setFillRGBColor;
  15309. break;
  15310. case OPS.setStrokeColorN:
  15311. cs = stateManager.state.strokeColorSpace;
  15312. if (cs.name === 'Pattern') {
  15313. return self.handleColorN(operatorList, OPS.setStrokeColorN,
  15314. args, cs, patterns, resources, xref).then(function() {
  15315. next(resolve, reject);
  15316. }, reject);
  15317. }
  15318. args = cs.getRgb(args, 0);
  15319. fn = OPS.setStrokeRGBColor;
  15320. break;
  15321. case OPS.shadingFill:
  15322. var shadingRes = resources.get('Shading');
  15323. if (!shadingRes) {
  15324. error('No shading resource found');
  15325. }
  15326. var shading = shadingRes.get(args[0].name);
  15327. if (!shading) {
  15328. error('No shading object found');
  15329. }
  15330. var shadingFill = Pattern.parseShading(shading, null, xref,
  15331. resources);
  15332. var patternIR = shadingFill.getIR();
  15333. args = [patternIR];
  15334. fn = OPS.shadingFill;
  15335. break;
  15336. case OPS.setGState:
  15337. var dictName = args[0];
  15338. var extGState = resources.get('ExtGState');
  15339. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15340. break;
  15341. }
  15342. var gState = extGState.get(dictName.name);
  15343. return self.setGState(resources, gState, operatorList, xref,
  15344. stateManager).then(function() {
  15345. next(resolve, reject);
  15346. }, reject);
  15347. case OPS.moveTo:
  15348. case OPS.lineTo:
  15349. case OPS.curveTo:
  15350. case OPS.curveTo2:
  15351. case OPS.curveTo3:
  15352. case OPS.closePath:
  15353. self.buildPath(operatorList, fn, args);
  15354. continue;
  15355. }
  15356. operatorList.addOp(fn, args);
  15357. }
  15358. if (stop) {
  15359. deferred.then(function () {
  15360. next(resolve, reject);
  15361. });
  15362. return;
  15363. }
  15364. // Some PDFs don't close all restores inside object/form.
  15365. // Closing those for them.
  15366. for (i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  15367. operatorList.addOp(OPS.restore, []);
  15368. }
  15369. resolve();
  15370. });
  15371. },
  15372. getTextContent: function PartialEvaluator_getTextContent(stream, resources,
  15373. stateManager) {
  15374. stateManager = (stateManager || new StateManager(new TextState()));
  15375. var textContent = {
  15376. items: [],
  15377. styles: Object.create(null)
  15378. };
  15379. var bidiTexts = textContent.items;
  15380. var SPACE_FACTOR = 0.35;
  15381. var MULTI_SPACE_FACTOR = 1.5;
  15382. var self = this;
  15383. var xref = this.xref;
  15384. resources = (xref.fetchIfRef(resources) || Dict.empty);
  15385. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  15386. var xobjs = null;
  15387. var xobjsCache = {};
  15388. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15389. var operation;
  15390. var textState;
  15391. function newTextChunk() {
  15392. var font = textState.font;
  15393. if (!(font.loadedName in textContent.styles)) {
  15394. textContent.styles[font.loadedName] = {
  15395. fontFamily: font.fallbackName,
  15396. ascent: font.ascent,
  15397. descent: font.descent,
  15398. vertical: font.vertical
  15399. };
  15400. }
  15401. return {
  15402. str: '',
  15403. dir: null,
  15404. width: 0,
  15405. height: 0,
  15406. transform: null,
  15407. fontName: font.loadedName
  15408. };
  15409. }
  15410. function runBidi(textChunk) {
  15411. var bidiResult = PDFJS.bidi(textChunk.str, -1, textState.font.vertical);
  15412. textChunk.str = bidiResult.str;
  15413. textChunk.dir = bidiResult.dir;
  15414. return textChunk;
  15415. }
  15416. function handleSetFont(fontName, fontRef) {
  15417. return self.loadFont(fontName, fontRef, xref, resources).
  15418. then(function (translated) {
  15419. textState.font = translated.font;
  15420. textState.fontMatrix = translated.font.fontMatrix ||
  15421. FONT_IDENTITY_MATRIX;
  15422. });
  15423. }
  15424. function buildTextGeometry(chars, textChunk) {
  15425. var font = textState.font;
  15426. textChunk = textChunk || newTextChunk();
  15427. if (!textChunk.transform) {
  15428. // 9.4.4 Text Space Details
  15429. var tsm = [textState.fontSize * textState.textHScale, 0,
  15430. 0, textState.fontSize,
  15431. 0, textState.textRise];
  15432. var trm = textChunk.transform = Util.transform(textState.ctm,
  15433. Util.transform(textState.textMatrix, tsm));
  15434. if (!font.vertical) {
  15435. textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);
  15436. } else {
  15437. textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);
  15438. }
  15439. }
  15440. var width = 0;
  15441. var height = 0;
  15442. var glyphs = font.charsToGlyphs(chars);
  15443. var defaultVMetrics = font.defaultVMetrics;
  15444. for (var i = 0; i < glyphs.length; i++) {
  15445. var glyph = glyphs[i];
  15446. if (!glyph) { // Previous glyph was a space.
  15447. width += textState.wordSpacing * textState.textHScale;
  15448. continue;
  15449. }
  15450. var vMetricX = null;
  15451. var vMetricY = null;
  15452. var glyphWidth = null;
  15453. if (font.vertical) {
  15454. if (glyph.vmetric) {
  15455. glyphWidth = glyph.vmetric[0];
  15456. vMetricX = glyph.vmetric[1];
  15457. vMetricY = glyph.vmetric[2];
  15458. } else {
  15459. glyphWidth = glyph.width;
  15460. vMetricX = glyph.width * 0.5;
  15461. vMetricY = defaultVMetrics[2];
  15462. }
  15463. } else {
  15464. glyphWidth = glyph.width;
  15465. }
  15466. var glyphUnicode = glyph.unicode;
  15467. if (glyphUnicode in NormalizedUnicodes) {
  15468. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  15469. }
  15470. glyphUnicode = reverseIfRtl(glyphUnicode);
  15471. // The following will calculate the x and y of the individual glyphs.
  15472. // if (font.vertical) {
  15473. // tsm[4] -= vMetricX * Math.abs(textState.fontSize) *
  15474. // textState.fontMatrix[0];
  15475. // tsm[5] -= vMetricY * textState.fontSize *
  15476. // textState.fontMatrix[0];
  15477. // }
  15478. // var trm = Util.transform(textState.textMatrix, tsm);
  15479. // var pt = Util.applyTransform([trm[4], trm[5]], textState.ctm);
  15480. // var x = pt[0];
  15481. // var y = pt[1];
  15482. var tx = 0;
  15483. var ty = 0;
  15484. if (!font.vertical) {
  15485. var w0 = glyphWidth * textState.fontMatrix[0];
  15486. tx = (w0 * textState.fontSize + textState.charSpacing) *
  15487. textState.textHScale;
  15488. width += tx;
  15489. } else {
  15490. var w1 = glyphWidth * textState.fontMatrix[0];
  15491. ty = w1 * textState.fontSize + textState.charSpacing;
  15492. height += ty;
  15493. }
  15494. textState.translateTextMatrix(tx, ty);
  15495. textChunk.str += glyphUnicode;
  15496. }
  15497. var a = textState.textLineMatrix[0];
  15498. var b = textState.textLineMatrix[1];
  15499. var scaleLineX = Math.sqrt(a * a + b * b);
  15500. a = textState.ctm[0];
  15501. b = textState.ctm[1];
  15502. var scaleCtmX = Math.sqrt(a * a + b * b);
  15503. if (!font.vertical) {
  15504. textChunk.width += width * scaleCtmX * scaleLineX;
  15505. } else {
  15506. textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);
  15507. }
  15508. return textChunk;
  15509. }
  15510. var timeSlotManager = new TimeSlotManager();
  15511. return new Promise(function next(resolve, reject) {
  15512. timeSlotManager.reset();
  15513. var stop;
  15514. while (!(stop = timeSlotManager.check()) &&
  15515. (operation = preprocessor.read())) {
  15516. textState = stateManager.state;
  15517. var fn = operation.fn;
  15518. var args = operation.args;
  15519. switch (fn | 0) {
  15520. case OPS.setFont:
  15521. textState.fontSize = args[1];
  15522. return handleSetFont(args[0].name).then(function() {
  15523. next(resolve, reject);
  15524. }, reject);
  15525. case OPS.setTextRise:
  15526. textState.textRise = args[0];
  15527. break;
  15528. case OPS.setHScale:
  15529. textState.textHScale = args[0] / 100;
  15530. break;
  15531. case OPS.setLeading:
  15532. textState.leading = args[0];
  15533. break;
  15534. case OPS.moveText:
  15535. textState.translateTextLineMatrix(args[0], args[1]);
  15536. textState.textMatrix = textState.textLineMatrix.slice();
  15537. break;
  15538. case OPS.setLeadingMoveText:
  15539. textState.leading = -args[1];
  15540. textState.translateTextLineMatrix(args[0], args[1]);
  15541. textState.textMatrix = textState.textLineMatrix.slice();
  15542. break;
  15543. case OPS.nextLine:
  15544. textState.carriageReturn();
  15545. break;
  15546. case OPS.setTextMatrix:
  15547. textState.setTextMatrix(args[0], args[1], args[2], args[3],
  15548. args[4], args[5]);
  15549. textState.setTextLineMatrix(args[0], args[1], args[2], args[3],
  15550. args[4], args[5]);
  15551. break;
  15552. case OPS.setCharSpacing:
  15553. textState.charSpacing = args[0];
  15554. break;
  15555. case OPS.setWordSpacing:
  15556. textState.wordSpacing = args[0];
  15557. break;
  15558. case OPS.beginText:
  15559. textState.textMatrix = IDENTITY_MATRIX.slice();
  15560. textState.textLineMatrix = IDENTITY_MATRIX.slice();
  15561. break;
  15562. case OPS.showSpacedText:
  15563. var items = args[0];
  15564. var textChunk = newTextChunk();
  15565. var offset;
  15566. for (var j = 0, jj = items.length; j < jj; j++) {
  15567. if (typeof items[j] === 'string') {
  15568. buildTextGeometry(items[j], textChunk);
  15569. } else {
  15570. var val = items[j] / 1000;
  15571. if (!textState.font.vertical) {
  15572. offset = -val * textState.fontSize * textState.textHScale *
  15573. textState.textMatrix[0];
  15574. textState.translateTextMatrix(offset, 0);
  15575. textChunk.width += offset;
  15576. } else {
  15577. offset = -val * textState.fontSize *
  15578. textState.textMatrix[3];
  15579. textState.translateTextMatrix(0, offset);
  15580. textChunk.height += offset;
  15581. }
  15582. if (items[j] < 0 && textState.font.spaceWidth > 0) {
  15583. var fakeSpaces = -items[j] / textState.font.spaceWidth;
  15584. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  15585. fakeSpaces = Math.round(fakeSpaces);
  15586. while (fakeSpaces--) {
  15587. textChunk.str += ' ';
  15588. }
  15589. } else if (fakeSpaces > SPACE_FACTOR) {
  15590. textChunk.str += ' ';
  15591. }
  15592. }
  15593. }
  15594. }
  15595. bidiTexts.push(runBidi(textChunk));
  15596. break;
  15597. case OPS.showText:
  15598. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15599. break;
  15600. case OPS.nextLineShowText:
  15601. textState.carriageReturn();
  15602. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15603. break;
  15604. case OPS.nextLineSetSpacingShowText:
  15605. textState.wordSpacing = args[0];
  15606. textState.charSpacing = args[1];
  15607. textState.carriageReturn();
  15608. bidiTexts.push(runBidi(buildTextGeometry(args[2])));
  15609. break;
  15610. case OPS.paintXObject:
  15611. if (args[0].code) {
  15612. break;
  15613. }
  15614. if (!xobjs) {
  15615. xobjs = (resources.get('XObject') || Dict.empty);
  15616. }
  15617. var name = args[0].name;
  15618. if (xobjsCache.key === name) {
  15619. if (xobjsCache.texts) {
  15620. Util.concatenateToArray(bidiTexts, xobjsCache.texts.items);
  15621. Util.extendObj(textContent.styles, xobjsCache.texts.styles);
  15622. }
  15623. break;
  15624. }
  15625. var xobj = xobjs.get(name);
  15626. if (!xobj) {
  15627. break;
  15628. }
  15629. assert(isStream(xobj), 'XObject should be a stream');
  15630. var type = xobj.dict.get('Subtype');
  15631. assert(isName(type),
  15632. 'XObject should have a Name subtype');
  15633. if ('Form' !== type.name) {
  15634. xobjsCache.key = name;
  15635. xobjsCache.texts = null;
  15636. break;
  15637. }
  15638. stateManager.save();
  15639. var matrix = xobj.dict.get('Matrix');
  15640. if (isArray(matrix) && matrix.length === 6) {
  15641. stateManager.transform(matrix);
  15642. }
  15643. return self.getTextContent(xobj,
  15644. xobj.dict.get('Resources') || resources, stateManager).
  15645. then(function (formTextContent) {
  15646. Util.concatenateToArray(bidiTexts, formTextContent.items);
  15647. Util.extendObj(textContent.styles, formTextContent.styles);
  15648. stateManager.restore();
  15649. xobjsCache.key = name;
  15650. xobjsCache.texts = formTextContent;
  15651. next(resolve, reject);
  15652. }, reject);
  15653. case OPS.setGState:
  15654. var dictName = args[0];
  15655. var extGState = resources.get('ExtGState');
  15656. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15657. break;
  15658. }
  15659. var gsStateMap = extGState.get(dictName.name);
  15660. var gsStateFont = null;
  15661. for (var key in gsStateMap) {
  15662. if (key === 'Font') {
  15663. assert(!gsStateFont);
  15664. gsStateFont = gsStateMap[key];
  15665. }
  15666. }
  15667. if (gsStateFont) {
  15668. textState.fontSize = gsStateFont[1];
  15669. return handleSetFont(gsStateFont[0]).then(function() {
  15670. next(resolve, reject);
  15671. }, reject);
  15672. }
  15673. break;
  15674. } // switch
  15675. } // while
  15676. if (stop) {
  15677. deferred.then(function () {
  15678. next(resolve, reject);
  15679. });
  15680. return;
  15681. }
  15682. resolve(textContent);
  15683. });
  15684. },
  15685. extractDataStructures: function
  15686. partialEvaluatorExtractDataStructures(dict, baseDict,
  15687. xref, properties) {
  15688. // 9.10.2
  15689. var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode'));
  15690. if (toUnicode) {
  15691. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  15692. }
  15693. if (properties.composite) {
  15694. // CIDSystemInfo helps to match CID to glyphs
  15695. var cidSystemInfo = dict.get('CIDSystemInfo');
  15696. if (isDict(cidSystemInfo)) {
  15697. properties.cidSystemInfo = {
  15698. registry: cidSystemInfo.get('Registry'),
  15699. ordering: cidSystemInfo.get('Ordering'),
  15700. supplement: cidSystemInfo.get('Supplement')
  15701. };
  15702. }
  15703. var cidToGidMap = dict.get('CIDToGIDMap');
  15704. if (isStream(cidToGidMap)) {
  15705. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  15706. }
  15707. }
  15708. // Based on 9.6.6 of the spec the encoding can come from multiple places
  15709. // and depends on the font type. The base encoding and differences are
  15710. // read here, but the encoding that is actually used is chosen during
  15711. // glyph mapping in the font.
  15712. // TODO: Loading the built in encoding in the font would allow the
  15713. // differences to be merged in here not require us to hold on to it.
  15714. var differences = [];
  15715. var baseEncodingName = null;
  15716. var encoding;
  15717. if (dict.has('Encoding')) {
  15718. encoding = dict.get('Encoding');
  15719. if (isDict(encoding)) {
  15720. baseEncodingName = encoding.get('BaseEncoding');
  15721. baseEncodingName = (isName(baseEncodingName) ?
  15722. baseEncodingName.name : null);
  15723. // Load the differences between the base and original
  15724. if (encoding.has('Differences')) {
  15725. var diffEncoding = encoding.get('Differences');
  15726. var index = 0;
  15727. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  15728. var data = diffEncoding[j];
  15729. if (isNum(data)) {
  15730. index = data;
  15731. } else {
  15732. differences[index++] = data.name;
  15733. }
  15734. }
  15735. }
  15736. } else if (isName(encoding)) {
  15737. baseEncodingName = encoding.name;
  15738. } else {
  15739. error('Encoding is not a Name nor a Dict');
  15740. }
  15741. // According to table 114 if the encoding is a named encoding it must be
  15742. // one of these predefined encodings.
  15743. if ((baseEncodingName !== 'MacRomanEncoding' &&
  15744. baseEncodingName !== 'MacExpertEncoding' &&
  15745. baseEncodingName !== 'WinAnsiEncoding')) {
  15746. baseEncodingName = null;
  15747. }
  15748. }
  15749. if (baseEncodingName) {
  15750. properties.defaultEncoding = Encodings[baseEncodingName].slice();
  15751. } else {
  15752. encoding = (properties.type === 'TrueType' ?
  15753. Encodings.WinAnsiEncoding : Encodings.StandardEncoding);
  15754. // The Symbolic attribute can be misused for regular fonts
  15755. // Heuristic: we have to check if the font is a standard one also
  15756. if (!!(properties.flags & FontFlags.Symbolic)) {
  15757. encoding = (!properties.file && /Symbol/i.test(properties.name) ?
  15758. Encodings.SymbolSetEncoding :
  15759. Encodings.MacRomanEncoding);
  15760. }
  15761. properties.defaultEncoding = encoding;
  15762. }
  15763. properties.differences = differences;
  15764. properties.baseEncodingName = baseEncodingName;
  15765. properties.dict = dict;
  15766. },
  15767. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) {
  15768. var cmapObj = toUnicode;
  15769. if (isName(cmapObj)) {
  15770. return CMapFactory.create(cmapObj).map;
  15771. } else if (isStream(cmapObj)) {
  15772. var cmap = CMapFactory.create(cmapObj).map;
  15773. // Convert UTF-16BE
  15774. // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
  15775. // to iterate over all keys.
  15776. cmap.forEach(function(token, i) {
  15777. var str = [];
  15778. for (var k = 0; k < token.length; k += 2) {
  15779. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15780. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  15781. str.push(w1);
  15782. continue;
  15783. }
  15784. k += 2;
  15785. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15786. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  15787. }
  15788. cmap[i] = String.fromCharCode.apply(String, str);
  15789. });
  15790. return cmap;
  15791. }
  15792. return null;
  15793. },
  15794. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  15795. // Extract the encoding from the CIDToGIDMap
  15796. var glyphsData = cidToGidStream.getBytes();
  15797. // Set encoding 0 to later verify the font has an encoding
  15798. var result = [];
  15799. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  15800. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  15801. if (glyphID === 0) {
  15802. continue;
  15803. }
  15804. var code = j >> 1;
  15805. result[code] = glyphID;
  15806. }
  15807. return result;
  15808. },
  15809. extractWidths: function PartialEvaluator_extractWidths(dict, xref,
  15810. descriptor,
  15811. properties) {
  15812. var glyphsWidths = [];
  15813. var defaultWidth = 0;
  15814. var glyphsVMetrics = [];
  15815. var defaultVMetrics;
  15816. var i, ii, j, jj, start, code, widths;
  15817. if (properties.composite) {
  15818. defaultWidth = dict.get('DW') || 1000;
  15819. widths = dict.get('W');
  15820. if (widths) {
  15821. for (i = 0, ii = widths.length; i < ii; i++) {
  15822. start = widths[i++];
  15823. code = xref.fetchIfRef(widths[i]);
  15824. if (isArray(code)) {
  15825. for (j = 0, jj = code.length; j < jj; j++) {
  15826. glyphsWidths[start++] = code[j];
  15827. }
  15828. } else {
  15829. var width = widths[++i];
  15830. for (j = start; j <= code; j++) {
  15831. glyphsWidths[j] = width;
  15832. }
  15833. }
  15834. }
  15835. }
  15836. if (properties.vertical) {
  15837. var vmetrics = (dict.get('DW2') || [880, -1000]);
  15838. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  15839. vmetrics = dict.get('W2');
  15840. if (vmetrics) {
  15841. for (i = 0, ii = vmetrics.length; i < ii; i++) {
  15842. start = vmetrics[i++];
  15843. code = xref.fetchIfRef(vmetrics[i]);
  15844. if (isArray(code)) {
  15845. for (j = 0, jj = code.length; j < jj; j++) {
  15846. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  15847. }
  15848. } else {
  15849. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  15850. for (j = start; j <= code; j++) {
  15851. glyphsVMetrics[j] = vmetric;
  15852. }
  15853. }
  15854. }
  15855. }
  15856. }
  15857. } else {
  15858. var firstChar = properties.firstChar;
  15859. widths = dict.get('Widths');
  15860. if (widths) {
  15861. j = firstChar;
  15862. for (i = 0, ii = widths.length; i < ii; i++) {
  15863. glyphsWidths[j++] = widths[i];
  15864. }
  15865. defaultWidth = (parseFloat(descriptor.get('MissingWidth')) || 0);
  15866. } else {
  15867. // Trying get the BaseFont metrics (see comment above).
  15868. var baseFontName = dict.get('BaseFont');
  15869. if (isName(baseFontName)) {
  15870. var metrics = this.getBaseFontMetrics(baseFontName.name);
  15871. glyphsWidths = this.buildCharCodeToWidth(metrics.widths,
  15872. properties);
  15873. defaultWidth = metrics.defaultWidth;
  15874. }
  15875. }
  15876. }
  15877. // Heuristic: detection of monospace font by checking all non-zero widths
  15878. var isMonospace = true;
  15879. var firstWidth = defaultWidth;
  15880. for (var glyph in glyphsWidths) {
  15881. var glyphWidth = glyphsWidths[glyph];
  15882. if (!glyphWidth) {
  15883. continue;
  15884. }
  15885. if (!firstWidth) {
  15886. firstWidth = glyphWidth;
  15887. continue;
  15888. }
  15889. if (firstWidth != glyphWidth) {
  15890. isMonospace = false;
  15891. break;
  15892. }
  15893. }
  15894. if (isMonospace) {
  15895. properties.flags |= FontFlags.FixedPitch;
  15896. }
  15897. properties.defaultWidth = defaultWidth;
  15898. properties.widths = glyphsWidths;
  15899. properties.defaultVMetrics = defaultVMetrics;
  15900. properties.vmetrics = glyphsVMetrics;
  15901. },
  15902. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  15903. // Simulating descriptor flags attribute
  15904. var fontNameWoStyle = baseFontName.split('-')[0];
  15905. return (fontNameWoStyle in serifFonts) ||
  15906. (fontNameWoStyle.search(/serif/gi) !== -1);
  15907. },
  15908. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  15909. var defaultWidth = 0;
  15910. var widths = [];
  15911. var monospace = false;
  15912. var lookupName = (stdFontMap[name] || name);
  15913. if (!(lookupName in Metrics)) {
  15914. // Use default fonts for looking up font metrics if the passed
  15915. // font is not a base font
  15916. if (this.isSerifFont(name)) {
  15917. lookupName = 'Times-Roman';
  15918. } else {
  15919. lookupName = 'Helvetica';
  15920. }
  15921. }
  15922. var glyphWidths = Metrics[lookupName];
  15923. if (isNum(glyphWidths)) {
  15924. defaultWidth = glyphWidths;
  15925. monospace = true;
  15926. } else {
  15927. widths = glyphWidths;
  15928. }
  15929. return {
  15930. defaultWidth: defaultWidth,
  15931. monospace: monospace,
  15932. widths: widths
  15933. };
  15934. },
  15935. buildCharCodeToWidth:
  15936. function PartialEvaluator_bulildCharCodeToWidth(widthsByGlyphName,
  15937. properties) {
  15938. var widths = Object.create(null);
  15939. var differences = properties.differences;
  15940. var encoding = properties.defaultEncoding;
  15941. for (var charCode = 0; charCode < 256; charCode++) {
  15942. if (charCode in differences &&
  15943. widthsByGlyphName[differences[charCode]]) {
  15944. widths[charCode] = widthsByGlyphName[differences[charCode]];
  15945. continue;
  15946. }
  15947. if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) {
  15948. widths[charCode] = widthsByGlyphName[encoding[charCode]];
  15949. continue;
  15950. }
  15951. }
  15952. return widths;
  15953. },
  15954. preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict, xref) {
  15955. var baseDict = dict;
  15956. var type = dict.get('Subtype');
  15957. assert(isName(type), 'invalid font Subtype');
  15958. var composite = false;
  15959. var uint8array;
  15960. if (type.name == 'Type0') {
  15961. // If font is a composite
  15962. // - get the descendant font
  15963. // - set the type according to the descendant font
  15964. // - get the FontDescriptor from the descendant font
  15965. var df = dict.get('DescendantFonts');
  15966. if (!df) {
  15967. error('Descendant fonts are not specified');
  15968. }
  15969. dict = (isArray(df) ? xref.fetchIfRef(df[0]) : df);
  15970. type = dict.get('Subtype');
  15971. assert(isName(type), 'invalid font Subtype');
  15972. composite = true;
  15973. }
  15974. var descriptor = dict.get('FontDescriptor');
  15975. if (descriptor) {
  15976. var hash = new MurmurHash3_64();
  15977. var encoding = baseDict.getRaw('Encoding');
  15978. if (isName(encoding)) {
  15979. hash.update(encoding.name);
  15980. } else if (isRef(encoding)) {
  15981. hash.update(encoding.num + '_' + encoding.gen);
  15982. }
  15983. var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode');
  15984. if (isStream(toUnicode)) {
  15985. var stream = toUnicode.str || toUnicode;
  15986. uint8array = stream.buffer ?
  15987. new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) :
  15988. new Uint8Array(stream.bytes.buffer,
  15989. stream.start, stream.end - stream.start);
  15990. hash.update(uint8array);
  15991. } else if (isName(toUnicode)) {
  15992. hash.update(toUnicode.name);
  15993. }
  15994. var widths = dict.get('Widths') || baseDict.get('Widths');
  15995. if (widths) {
  15996. uint8array = new Uint8Array(new Uint32Array(widths).buffer);
  15997. hash.update(uint8array);
  15998. }
  15999. }
  16000. return {
  16001. descriptor: descriptor,
  16002. dict: dict,
  16003. baseDict: baseDict,
  16004. composite: composite,
  16005. hash: hash ? hash.hexdigest() : ''
  16006. };
  16007. },
  16008. translateFont: function PartialEvaluator_translateFont(preEvaluatedFont,
  16009. xref) {
  16010. var baseDict = preEvaluatedFont.baseDict;
  16011. var dict = preEvaluatedFont.dict;
  16012. var composite = preEvaluatedFont.composite;
  16013. var descriptor = preEvaluatedFont.descriptor;
  16014. var type = dict.get('Subtype');
  16015. var maxCharIndex = (composite ? 0xFFFF : 0xFF);
  16016. var properties;
  16017. if (!descriptor) {
  16018. if (type.name == 'Type3') {
  16019. // FontDescriptor is only required for Type3 fonts when the document
  16020. // is a tagged pdf. Create a barbebones one to get by.
  16021. descriptor = new Dict(null);
  16022. descriptor.set('FontName', Name.get(type.name));
  16023. } else {
  16024. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  16025. // FontDescriptor was not required.
  16026. // This case is here for compatibility.
  16027. var baseFontName = dict.get('BaseFont');
  16028. if (!isName(baseFontName)) {
  16029. error('Base font is not specified');
  16030. }
  16031. // Using base font name as a font name.
  16032. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  16033. var metrics = this.getBaseFontMetrics(baseFontName);
  16034. // Simulating descriptor flags attribute
  16035. var fontNameWoStyle = baseFontName.split('-')[0];
  16036. var flags =
  16037. (this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  16038. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  16039. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  16040. FontFlags.Nonsymbolic);
  16041. properties = {
  16042. type: type.name,
  16043. name: baseFontName,
  16044. widths: metrics.widths,
  16045. defaultWidth: metrics.defaultWidth,
  16046. flags: flags,
  16047. firstChar: 0,
  16048. lastChar: maxCharIndex
  16049. };
  16050. this.extractDataStructures(dict, dict, xref, properties);
  16051. properties.widths = this.buildCharCodeToWidth(metrics.widths,
  16052. properties);
  16053. return new Font(baseFontName, null, properties);
  16054. }
  16055. }
  16056. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  16057. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  16058. // to ignore this rule when a variant of a standart font is used.
  16059. // TODO Fill the width array depending on which of the base font this is
  16060. // a variant.
  16061. var firstChar = (dict.get('FirstChar') || 0);
  16062. var lastChar = (dict.get('LastChar') || maxCharIndex);
  16063. var fontName = descriptor.get('FontName');
  16064. var baseFont = dict.get('BaseFont');
  16065. // Some bad PDFs have a string as the font name.
  16066. if (isString(fontName)) {
  16067. fontName = Name.get(fontName);
  16068. }
  16069. if (isString(baseFont)) {
  16070. baseFont = Name.get(baseFont);
  16071. }
  16072. if (type.name !== 'Type3') {
  16073. var fontNameStr = fontName && fontName.name;
  16074. var baseFontStr = baseFont && baseFont.name;
  16075. if (fontNameStr !== baseFontStr) {
  16076. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  16077. '" but should be the same as the Font\'s BaseFont "' +
  16078. baseFontStr + '"');
  16079. // Workaround for cases where e.g. fontNameStr = 'Arial' and
  16080. // baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
  16081. if (fontNameStr && baseFontStr &&
  16082. baseFontStr.search(fontNameStr) === 0) {
  16083. fontName = baseFont;
  16084. }
  16085. }
  16086. }
  16087. fontName = (fontName || baseFont);
  16088. assert(isName(fontName), 'invalid font name');
  16089. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  16090. if (fontFile) {
  16091. if (fontFile.dict) {
  16092. var subtype = fontFile.dict.get('Subtype');
  16093. if (subtype) {
  16094. subtype = subtype.name;
  16095. }
  16096. var length1 = fontFile.dict.get('Length1');
  16097. var length2 = fontFile.dict.get('Length2');
  16098. }
  16099. }
  16100. properties = {
  16101. type: type.name,
  16102. name: fontName.name,
  16103. subtype: subtype,
  16104. file: fontFile,
  16105. length1: length1,
  16106. length2: length2,
  16107. loadedName: baseDict.loadedName,
  16108. composite: composite,
  16109. wideChars: composite,
  16110. fixedPitch: false,
  16111. fontMatrix: (dict.get('FontMatrix') || FONT_IDENTITY_MATRIX),
  16112. firstChar: firstChar || 0,
  16113. lastChar: (lastChar || maxCharIndex),
  16114. bbox: descriptor.get('FontBBox'),
  16115. ascent: descriptor.get('Ascent'),
  16116. descent: descriptor.get('Descent'),
  16117. xHeight: descriptor.get('XHeight'),
  16118. capHeight: descriptor.get('CapHeight'),
  16119. flags: descriptor.get('Flags'),
  16120. italicAngle: descriptor.get('ItalicAngle'),
  16121. coded: false
  16122. };
  16123. if (composite) {
  16124. var cidEncoding = baseDict.get('Encoding');
  16125. if (isName(cidEncoding)) {
  16126. properties.cidEncoding = cidEncoding.name;
  16127. }
  16128. properties.cMap = CMapFactory.create(cidEncoding,
  16129. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  16130. properties.vertical = properties.cMap.vertical;
  16131. }
  16132. this.extractDataStructures(dict, baseDict, xref, properties);
  16133. this.extractWidths(dict, xref, descriptor, properties);
  16134. if (type.name === 'Type3') {
  16135. properties.isType3Font = true;
  16136. }
  16137. return new Font(fontName.name, fontFile, properties);
  16138. }
  16139. };
  16140. return PartialEvaluator;
  16141. })();
  16142. var TranslatedFont = (function TranslatedFontClosure() {
  16143. function TranslatedFont(loadedName, font, dict) {
  16144. this.loadedName = loadedName;
  16145. this.font = font;
  16146. this.dict = dict;
  16147. this.type3Loaded = null;
  16148. this.sent = false;
  16149. }
  16150. TranslatedFont.prototype = {
  16151. send: function (handler) {
  16152. if (this.sent) {
  16153. return;
  16154. }
  16155. var fontData = this.font.exportData();
  16156. handler.send('commonobj', [
  16157. this.loadedName,
  16158. 'Font',
  16159. fontData
  16160. ]);
  16161. this.sent = true;
  16162. },
  16163. loadType3Data: function (evaluator, resources, parentOperatorList) {
  16164. assert(this.font.isType3Font);
  16165. if (this.type3Loaded) {
  16166. return this.type3Loaded;
  16167. }
  16168. var translatedFont = this.font;
  16169. var loadCharProcsPromise = Promise.resolve();
  16170. var charProcs = this.dict.get('CharProcs').getAll();
  16171. var fontResources = this.dict.get('Resources') || resources;
  16172. var charProcKeys = Object.keys(charProcs);
  16173. var charProcOperatorList = {};
  16174. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  16175. loadCharProcsPromise = loadCharProcsPromise.then(function (key) {
  16176. var glyphStream = charProcs[key];
  16177. var operatorList = new OperatorList();
  16178. return evaluator.getOperatorList(glyphStream, fontResources,
  16179. operatorList).
  16180. then(function () {
  16181. charProcOperatorList[key] = operatorList.getIR();
  16182. // Add the dependencies to the parent operator list so they are
  16183. // resolved before sub operator list is executed synchronously.
  16184. parentOperatorList.addDependencies(operatorList.dependencies);
  16185. });
  16186. }.bind(this, charProcKeys[i]));
  16187. }
  16188. this.type3Loaded = loadCharProcsPromise.then(function () {
  16189. translatedFont.charProcOperatorList = charProcOperatorList;
  16190. });
  16191. return this.type3Loaded;
  16192. }
  16193. };
  16194. return TranslatedFont;
  16195. })();
  16196. var OperatorList = (function OperatorListClosure() {
  16197. var CHUNK_SIZE = 1000;
  16198. var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
  16199. function getTransfers(queue) {
  16200. var transfers = [];
  16201. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  16202. for (var i = 0, ii = queue.length; i < ii; i++) {
  16203. switch (fnArray[i]) {
  16204. case OPS.paintInlineImageXObject:
  16205. case OPS.paintInlineImageXObjectGroup:
  16206. case OPS.paintImageMaskXObject:
  16207. var arg = argsArray[i][0]; // first param in imgData
  16208. if (!arg.cached) {
  16209. transfers.push(arg.data.buffer);
  16210. }
  16211. break;
  16212. }
  16213. }
  16214. return transfers;
  16215. }
  16216. function OperatorList(intent, messageHandler, pageIndex) {
  16217. this.messageHandler = messageHandler;
  16218. this.fnArray = [];
  16219. this.argsArray = [];
  16220. this.dependencies = {};
  16221. this.pageIndex = pageIndex;
  16222. this.intent = intent;
  16223. }
  16224. OperatorList.prototype = {
  16225. get length() {
  16226. return this.argsArray.length;
  16227. },
  16228. addOp: function(fn, args) {
  16229. this.fnArray.push(fn);
  16230. this.argsArray.push(args);
  16231. if (this.messageHandler) {
  16232. if (this.fnArray.length >= CHUNK_SIZE) {
  16233. this.flush();
  16234. } else if (this.fnArray.length >= CHUNK_SIZE_ABOUT &&
  16235. (fn === OPS.restore || fn === OPS.endText)) {
  16236. // heuristic to flush on boundary of restore or endText
  16237. this.flush();
  16238. }
  16239. }
  16240. },
  16241. addDependency: function(dependency) {
  16242. if (dependency in this.dependencies) {
  16243. return;
  16244. }
  16245. this.dependencies[dependency] = true;
  16246. this.addOp(OPS.dependency, [dependency]);
  16247. },
  16248. addDependencies: function(dependencies) {
  16249. for (var key in dependencies) {
  16250. this.addDependency(key);
  16251. }
  16252. },
  16253. addOpList: function(opList) {
  16254. Util.extendObj(this.dependencies, opList.dependencies);
  16255. for (var i = 0, ii = opList.length; i < ii; i++) {
  16256. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  16257. }
  16258. },
  16259. getIR: function() {
  16260. return {
  16261. fnArray: this.fnArray,
  16262. argsArray: this.argsArray,
  16263. length: this.length
  16264. };
  16265. },
  16266. flush: function(lastChunk) {
  16267. new QueueOptimizer().optimize(this);
  16268. var transfers = getTransfers(this);
  16269. this.messageHandler.send('RenderPageChunk', {
  16270. operatorList: {
  16271. fnArray: this.fnArray,
  16272. argsArray: this.argsArray,
  16273. lastChunk: lastChunk,
  16274. length: this.length
  16275. },
  16276. pageIndex: this.pageIndex,
  16277. intent: this.intent
  16278. }, transfers);
  16279. this.dependencies = {};
  16280. this.fnArray.length = 0;
  16281. this.argsArray.length = 0;
  16282. }
  16283. };
  16284. return OperatorList;
  16285. })();
  16286. var StateManager = (function StateManagerClosure() {
  16287. function StateManager(initialState) {
  16288. this.state = initialState;
  16289. this.stateStack = [];
  16290. }
  16291. StateManager.prototype = {
  16292. save: function () {
  16293. var old = this.state;
  16294. this.stateStack.push(this.state);
  16295. this.state = old.clone();
  16296. },
  16297. restore: function () {
  16298. var prev = this.stateStack.pop();
  16299. if (prev) {
  16300. this.state = prev;
  16301. }
  16302. },
  16303. transform: function (args) {
  16304. this.state.ctm = Util.transform(this.state.ctm, args);
  16305. }
  16306. };
  16307. return StateManager;
  16308. })();
  16309. var TextState = (function TextStateClosure() {
  16310. function TextState() {
  16311. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16312. this.fontSize = 0;
  16313. this.font = null;
  16314. this.fontMatrix = FONT_IDENTITY_MATRIX;
  16315. this.textMatrix = IDENTITY_MATRIX.slice();
  16316. this.textLineMatrix = IDENTITY_MATRIX.slice();
  16317. this.charSpacing = 0;
  16318. this.wordSpacing = 0;
  16319. this.leading = 0;
  16320. this.textHScale = 1;
  16321. this.textRise = 0;
  16322. }
  16323. TextState.prototype = {
  16324. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16325. var m = this.textMatrix;
  16326. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16327. },
  16328. setTextLineMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16329. var m = this.textLineMatrix;
  16330. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16331. },
  16332. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  16333. var m = this.textMatrix;
  16334. m[4] = m[0] * x + m[2] * y + m[4];
  16335. m[5] = m[1] * x + m[3] * y + m[5];
  16336. },
  16337. translateTextLineMatrix: function TextState_translateTextMatrix(x, y) {
  16338. var m = this.textLineMatrix;
  16339. m[4] = m[0] * x + m[2] * y + m[4];
  16340. m[5] = m[1] * x + m[3] * y + m[5];
  16341. },
  16342. calcRenderMatrix: function TextState_calcRendeMatrix(ctm) {
  16343. // 9.4.4 Text Space Details
  16344. var tsm = [this.fontSize * this.textHScale, 0,
  16345. 0, this.fontSize,
  16346. 0, this.textRise];
  16347. return Util.transform(ctm, Util.transform(this.textMatrix, tsm));
  16348. },
  16349. carriageReturn: function TextState_carriageReturn() {
  16350. this.translateTextLineMatrix(0, -this.leading);
  16351. this.textMatrix = this.textLineMatrix.slice();
  16352. },
  16353. clone: function TextState_clone() {
  16354. var clone = Object.create(this);
  16355. clone.textMatrix = this.textMatrix.slice();
  16356. clone.textLineMatrix = this.textLineMatrix.slice();
  16357. clone.fontMatrix = this.fontMatrix.slice();
  16358. return clone;
  16359. }
  16360. };
  16361. return TextState;
  16362. })();
  16363. var EvalState = (function EvalStateClosure() {
  16364. function EvalState() {
  16365. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16366. this.font = null;
  16367. this.textRenderingMode = TextRenderingMode.FILL;
  16368. this.fillColorSpace = ColorSpace.singletons.gray;
  16369. this.strokeColorSpace = ColorSpace.singletons.gray;
  16370. }
  16371. EvalState.prototype = {
  16372. clone: function CanvasExtraState_clone() {
  16373. return Object.create(this);
  16374. },
  16375. };
  16376. return EvalState;
  16377. })();
  16378. var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
  16379. // Specifies properties for each command
  16380. //
  16381. // If variableArgs === true: [0, `numArgs`] expected
  16382. // If variableArgs === false: exactly `numArgs` expected
  16383. var OP_MAP = {
  16384. // Graphic state
  16385. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  16386. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  16387. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  16388. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  16389. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  16390. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  16391. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  16392. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  16393. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  16394. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  16395. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  16396. // Path
  16397. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  16398. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  16399. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  16400. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  16401. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  16402. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  16403. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  16404. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  16405. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  16406. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16407. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16408. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  16409. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  16410. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  16411. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  16412. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  16413. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  16414. // Clipping
  16415. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  16416. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  16417. // Text
  16418. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  16419. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  16420. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  16421. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  16422. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  16423. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  16424. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  16425. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  16426. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  16427. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  16428. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  16429. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  16430. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  16431. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  16432. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  16433. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  16434. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  16435. variableArgs: false },
  16436. // Type3 fonts
  16437. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  16438. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  16439. // Color
  16440. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  16441. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  16442. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  16443. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  16444. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  16445. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  16446. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  16447. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  16448. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  16449. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  16450. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  16451. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  16452. // Shading
  16453. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  16454. // Images
  16455. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  16456. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  16457. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  16458. // XObjects
  16459. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  16460. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  16461. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  16462. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  16463. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  16464. variableArgs: false },
  16465. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  16466. // Compatibility
  16467. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  16468. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  16469. // (reserved partial commands for the lexer)
  16470. BM: null,
  16471. BD: null,
  16472. 'true': null,
  16473. fa: null,
  16474. fal: null,
  16475. fals: null,
  16476. 'false': null,
  16477. nu: null,
  16478. nul: null,
  16479. 'null': null
  16480. };
  16481. function EvaluatorPreprocessor(stream, xref, stateManager) {
  16482. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  16483. // dictionary
  16484. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  16485. this.stateManager = stateManager;
  16486. this.nonProcessedArgs = [];
  16487. }
  16488. EvaluatorPreprocessor.prototype = {
  16489. get savedStatesDepth() {
  16490. return this.stateManager.stateStack.length;
  16491. },
  16492. read: function EvaluatorPreprocessor_read() {
  16493. var args = [];
  16494. while (true) {
  16495. var obj = this.parser.getObj();
  16496. if (isEOF(obj)) {
  16497. return null; // no more commands
  16498. }
  16499. if (!isCmd(obj)) {
  16500. // argument
  16501. if (obj !== null && obj !== undefined) {
  16502. args.push((obj instanceof Dict ? obj.getAll() : obj));
  16503. assert(args.length <= 33, 'Too many arguments');
  16504. }
  16505. continue;
  16506. }
  16507. var cmd = obj.cmd;
  16508. // Check that the command is valid
  16509. var opSpec = OP_MAP[cmd];
  16510. if (!opSpec) {
  16511. warn('Unknown command "' + cmd + '"');
  16512. continue;
  16513. }
  16514. var fn = opSpec.id;
  16515. // Some post script commands can be nested, e.g. /F2 /GS2 gs 5.711 Tf
  16516. if (!opSpec.variableArgs && args.length !== opSpec.numArgs) {
  16517. while (args.length > opSpec.numArgs) {
  16518. this.nonProcessedArgs.push(args.shift());
  16519. }
  16520. while (args.length < opSpec.numArgs && this.nonProcessedArgs.length) {
  16521. args.unshift(this.nonProcessedArgs.pop());
  16522. }
  16523. }
  16524. // Validate the number of arguments for the command
  16525. if (opSpec.variableArgs) {
  16526. if (args.length > opSpec.numArgs) {
  16527. info('Command ' + fn + ': expected [0,' + opSpec.numArgs +
  16528. '] args, but received ' + args.length + ' args');
  16529. }
  16530. } else {
  16531. if (args.length < opSpec.numArgs) {
  16532. // If we receive too few args, it's not possible to possible
  16533. // to execute the command, so skip the command
  16534. info('Command ' + fn + ': because expected ' +
  16535. opSpec.numArgs + ' args, but received ' + args.length +
  16536. ' args; skipping');
  16537. args = [];
  16538. continue;
  16539. } else if (args.length > opSpec.numArgs) {
  16540. info('Command ' + fn + ': expected ' + opSpec.numArgs +
  16541. ' args, but received ' + args.length + ' args');
  16542. }
  16543. }
  16544. // TODO figure out how to type-check vararg functions
  16545. this.preprocessCommand(fn, args);
  16546. return { fn: fn, args: args };
  16547. }
  16548. },
  16549. preprocessCommand:
  16550. function EvaluatorPreprocessor_preprocessCommand(fn, args) {
  16551. switch (fn | 0) {
  16552. case OPS.save:
  16553. this.stateManager.save();
  16554. break;
  16555. case OPS.restore:
  16556. this.stateManager.restore();
  16557. break;
  16558. case OPS.transform:
  16559. this.stateManager.transform(args);
  16560. break;
  16561. }
  16562. }
  16563. };
  16564. return EvaluatorPreprocessor;
  16565. })();
  16566. var QueueOptimizer = (function QueueOptimizerClosure() {
  16567. function addState(parentState, pattern, fn) {
  16568. var state = parentState;
  16569. for (var i = 0, ii = pattern.length - 1; i < ii; i++) {
  16570. var item = pattern[i];
  16571. state = (state[item] || (state[item] = []));
  16572. }
  16573. state[pattern[pattern.length - 1]] = fn;
  16574. }
  16575. function handlePaintSolidColorImageMask(index, count, fnArray, argsArray) {
  16576. // Handles special case of mainly LaTeX documents which
  16577. // use image masks to draw lines with the current fill style.
  16578. // 'count' groups of (save, transform, paintImageMaskXObject, restore)+
  16579. // have been found at index.
  16580. for (var i = 0; i < count; i++) {
  16581. var arg = argsArray[index + 4 * i + 2];
  16582. var imageMask = arg.length == 1 && arg[0];
  16583. if (imageMask && imageMask.width == 1 && imageMask.height == 1 &&
  16584. (!imageMask.data.length || (imageMask.data.length == 1 &&
  16585. imageMask.data[0] === 0))) {
  16586. fnArray[index + 4 * i + 2] = OPS.paintSolidColorImageMask;
  16587. continue;
  16588. }
  16589. break;
  16590. }
  16591. return count - i;
  16592. }
  16593. var InitialState = [];
  16594. addState(InitialState,
  16595. [OPS.save, OPS.transform, OPS.paintInlineImageXObject, OPS.restore],
  16596. function foundInlineImageGroup(context) {
  16597. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  16598. // searching for (save, transform, paintInlineImageXObject, restore)+
  16599. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  16600. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  16601. var MAX_WIDTH = 1000;
  16602. var IMAGE_PADDING = 1;
  16603. var fnArray = context.fnArray, argsArray = context.argsArray;
  16604. var j = context.currentOperation - 3, i = j + 4;
  16605. var ii = fnArray.length;
  16606. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16607. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  16608. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  16609. context.currentOperation = i - 1;
  16610. return;
  16611. }
  16612. // assuming that heights of those image is too small (~1 pixel)
  16613. // packing as much as possible by lines
  16614. var maxX = 0;
  16615. var map = [], maxLineHeight = 0;
  16616. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  16617. var q;
  16618. for (q = 0; q < count; q++) {
  16619. var transform = argsArray[j + (q << 2) + 1];
  16620. var img = argsArray[j + (q << 2) + 2][0];
  16621. if (currentX + img.width > MAX_WIDTH) {
  16622. // starting new line
  16623. maxX = Math.max(maxX, currentX);
  16624. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  16625. currentX = 0;
  16626. maxLineHeight = 0;
  16627. }
  16628. map.push({
  16629. transform: transform,
  16630. x: currentX, y: currentY,
  16631. w: img.width, h: img.height
  16632. });
  16633. currentX += img.width + 2 * IMAGE_PADDING;
  16634. maxLineHeight = Math.max(maxLineHeight, img.height);
  16635. }
  16636. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  16637. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  16638. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  16639. var imgRowSize = imgWidth << 2;
  16640. for (q = 0; q < count; q++) {
  16641. var data = argsArray[j + (q << 2) + 2][0].data;
  16642. // copy image by lines and extends pixels into padding
  16643. var rowSize = map[q].w << 2;
  16644. var dataOffset = 0;
  16645. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  16646. imgData.set(data.subarray(0, rowSize), offset - imgRowSize);
  16647. for (var k = 0, kk = map[q].h; k < kk; k++) {
  16648. imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset);
  16649. dataOffset += rowSize;
  16650. offset += imgRowSize;
  16651. }
  16652. imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset);
  16653. while (offset >= 0) {
  16654. data[offset - 4] = data[offset];
  16655. data[offset - 3] = data[offset + 1];
  16656. data[offset - 2] = data[offset + 2];
  16657. data[offset - 1] = data[offset + 3];
  16658. data[offset + rowSize] = data[offset + rowSize - 4];
  16659. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  16660. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  16661. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  16662. offset -= imgRowSize;
  16663. }
  16664. }
  16665. // replacing queue items
  16666. fnArray.splice(j, count * 4, OPS.paintInlineImageXObjectGroup);
  16667. argsArray.splice(j, count * 4,
  16668. [{ width: imgWidth, height: imgHeight, kind: ImageKind.RGBA_32BPP,
  16669. data: imgData }, map]);
  16670. context.currentOperation = j;
  16671. });
  16672. addState(InitialState,
  16673. [OPS.save, OPS.transform, OPS.paintImageMaskXObject, OPS.restore],
  16674. function foundImageMaskGroup(context) {
  16675. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  16676. // searching for (save, transform, paintImageMaskXObject, restore)+
  16677. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  16678. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  16679. var MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000;
  16680. var fnArray = context.fnArray, argsArray = context.argsArray;
  16681. var j = context.currentOperation - 3, i = j + 4;
  16682. var ii = fnArray.length, q;
  16683. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16684. var count = (i - j) >> 2;
  16685. count = handlePaintSolidColorImageMask(j, count, fnArray, argsArray);
  16686. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  16687. context.currentOperation = i - 1;
  16688. return;
  16689. }
  16690. var isSameImage = false;
  16691. var transformArgs;
  16692. if (argsArray[j + 1][1] === 0 && argsArray[j + 1][2] === 0) {
  16693. i = j + 4;
  16694. isSameImage = true;
  16695. for (q = 1; q < count; q++, i += 4) {
  16696. var prevTransformArgs = argsArray[i - 3];
  16697. transformArgs = argsArray[i + 1];
  16698. if (argsArray[i - 2][0] !== argsArray[i + 2][0] ||
  16699. prevTransformArgs[0] !== transformArgs[0] ||
  16700. prevTransformArgs[1] !== transformArgs[1] ||
  16701. prevTransformArgs[2] !== transformArgs[2] ||
  16702. prevTransformArgs[3] !== transformArgs[3]) {
  16703. if (q < MIN_IMAGES_IN_MASKS_BLOCK) {
  16704. isSameImage = false;
  16705. } else {
  16706. count = q;
  16707. }
  16708. break; // different image or transform
  16709. }
  16710. }
  16711. }
  16712. if (isSameImage) {
  16713. count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK);
  16714. var positions = new Float32Array(count * 2);
  16715. i = j + 1;
  16716. for (q = 0; q < count; q++) {
  16717. transformArgs = argsArray[i];
  16718. positions[(q << 1)] = transformArgs[4];
  16719. positions[(q << 1) + 1] = transformArgs[5];
  16720. i += 4;
  16721. }
  16722. // replacing queue items
  16723. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectRepeat);
  16724. argsArray.splice(j, count * 4, [argsArray[j + 2][0],
  16725. argsArray[j + 1][0], argsArray[j + 1][3], positions]);
  16726. context.currentOperation = j;
  16727. } else {
  16728. count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK);
  16729. var images = [];
  16730. for (q = 0; q < count; q++) {
  16731. transformArgs = argsArray[j + (q << 2) + 1];
  16732. var maskParams = argsArray[j + (q << 2) + 2][0];
  16733. images.push({ data: maskParams.data, width: maskParams.width,
  16734. height: maskParams.height,
  16735. transform: transformArgs });
  16736. }
  16737. // replacing queue items
  16738. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectGroup);
  16739. argsArray.splice(j, count * 4, [images]);
  16740. context.currentOperation = j;
  16741. }
  16742. });
  16743. addState(InitialState,
  16744. [OPS.save, OPS.transform, OPS.paintImageXObject, OPS.restore],
  16745. function (context) {
  16746. var MIN_IMAGES_IN_BLOCK = 3;
  16747. var MAX_IMAGES_IN_BLOCK = 1000;
  16748. var fnArray = context.fnArray, argsArray = context.argsArray;
  16749. var j = context.currentOperation - 3, i = j + 4;
  16750. if (argsArray[j + 1][1] !== 0 || argsArray[j + 1][2] !== 0) {
  16751. return;
  16752. }
  16753. var ii = fnArray.length;
  16754. var transformArgs;
  16755. for (; i + 3 < ii && fnArray[i - 4] === fnArray[i]; i += 4) {
  16756. if (fnArray[i - 3] !== fnArray[i + 1] ||
  16757. fnArray[i - 2] !== fnArray[i + 2] ||
  16758. fnArray[i - 1] !== fnArray[i + 3]) {
  16759. break;
  16760. }
  16761. if (argsArray[i - 2][0] !== argsArray[i + 2][0]) {
  16762. break; // different image
  16763. }
  16764. var prevTransformArgs = argsArray[i - 3];
  16765. transformArgs = argsArray[i + 1];
  16766. if (prevTransformArgs[0] !== transformArgs[0] ||
  16767. prevTransformArgs[1] !== transformArgs[1] ||
  16768. prevTransformArgs[2] !== transformArgs[2] ||
  16769. prevTransformArgs[3] !== transformArgs[3]) {
  16770. break; // different transform
  16771. }
  16772. }
  16773. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_BLOCK);
  16774. if (count < MIN_IMAGES_IN_BLOCK) {
  16775. context.currentOperation = i - 1;
  16776. return;
  16777. }
  16778. var positions = new Float32Array(count * 2);
  16779. i = j + 1;
  16780. for (var q = 0; q < count; q++) {
  16781. transformArgs = argsArray[i];
  16782. positions[(q << 1)] = transformArgs[4];
  16783. positions[(q << 1) + 1] = transformArgs[5];
  16784. i += 4;
  16785. }
  16786. var args = [argsArray[j + 2][0], argsArray[j + 1][0],
  16787. argsArray[j + 1][3], positions];
  16788. // replacing queue items
  16789. fnArray.splice(j, count * 4, OPS.paintImageXObjectRepeat);
  16790. argsArray.splice(j, count * 4, args);
  16791. context.currentOperation = j;
  16792. });
  16793. addState(InitialState,
  16794. [OPS.beginText, OPS.setFont, OPS.setTextMatrix, OPS.showText, OPS.endText],
  16795. function (context) {
  16796. // moving single chars with same font into beginText/endText groups
  16797. // searching for (beginText, setFont, setTextMatrix, showText, endText)+
  16798. var MIN_CHARS_IN_BLOCK = 3;
  16799. var MAX_CHARS_IN_BLOCK = 1000;
  16800. var fnArray = context.fnArray, argsArray = context.argsArray;
  16801. var j = context.currentOperation - 4, i = j + 5;
  16802. var ii = fnArray.length;
  16803. for (; i < ii && fnArray[i - 5] === fnArray[i]; i++) {
  16804. if (fnArray[i] === OPS.setFont) {
  16805. if (argsArray[i - 5][0] !== argsArray[i][0] ||
  16806. argsArray[i - 5][1] !== argsArray[i][1]) {
  16807. break;
  16808. }
  16809. }
  16810. }
  16811. var count = Math.min(((i - j) / 5) | 0, MAX_CHARS_IN_BLOCK);
  16812. if (count < MIN_CHARS_IN_BLOCK) {
  16813. context.currentOperation = i - 1;
  16814. return;
  16815. }
  16816. if (j >= 4 && fnArray[j - 4] === fnArray[j + 1] &&
  16817. fnArray[j - 3] === fnArray[j + 2] &&
  16818. fnArray[j - 2] === fnArray[j + 3] &&
  16819. fnArray[j - 1] === fnArray[j + 4] &&
  16820. argsArray[j - 4][0] === argsArray[j + 1][0] &&
  16821. argsArray[j - 4][1] === argsArray[j + 1][1]) {
  16822. // extending one block ahead (very first block might have 'dependency')
  16823. count++;
  16824. j -= 5;
  16825. }
  16826. var k = j + 7;
  16827. i = j + 4;
  16828. for (var q = 1; q < count; q++) {
  16829. fnArray[i] = fnArray[k];
  16830. argsArray[i] = argsArray[k];
  16831. fnArray[i + 1] = fnArray[k + 1];
  16832. argsArray[i + 1] = argsArray[k + 1];
  16833. i += 2;
  16834. k += 5;
  16835. }
  16836. var removed = (count - 1) * 3;
  16837. fnArray.splice(i, removed);
  16838. argsArray.splice(i, removed);
  16839. context.currentOperation = i;
  16840. });
  16841. function QueueOptimizer() {}
  16842. QueueOptimizer.prototype = {
  16843. optimize: function QueueOptimizer_optimize(queue) {
  16844. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  16845. var context = {
  16846. currentOperation: 0,
  16847. fnArray: fnArray,
  16848. argsArray: argsArray
  16849. };
  16850. var i, ii = argsArray.length;
  16851. var state;
  16852. for (i = 0; i < ii; i++) {
  16853. state = (state || InitialState)[fnArray[i]];
  16854. if (typeof state === 'function') { // we found some handler
  16855. context.currentOperation = i;
  16856. state = state(context);
  16857. i = context.currentOperation;
  16858. ii = context.fnArray.length;
  16859. }
  16860. }
  16861. }
  16862. };
  16863. return QueueOptimizer;
  16864. })();
  16865. var BUILT_IN_CMAPS = [
  16866. // << Start unicode maps.
  16867. 'Adobe-GB1-UCS2',
  16868. 'Adobe-CNS1-UCS2',
  16869. 'Adobe-Japan1-UCS2',
  16870. 'Adobe-Korea1-UCS2',
  16871. // >> End unicode maps.
  16872. '78-EUC-H',
  16873. '78-EUC-V',
  16874. '78-H',
  16875. '78-RKSJ-H',
  16876. '78-RKSJ-V',
  16877. '78-V',
  16878. '78ms-RKSJ-H',
  16879. '78ms-RKSJ-V',
  16880. '83pv-RKSJ-H',
  16881. '90ms-RKSJ-H',
  16882. '90ms-RKSJ-V',
  16883. '90msp-RKSJ-H',
  16884. '90msp-RKSJ-V',
  16885. '90pv-RKSJ-H',
  16886. '90pv-RKSJ-V',
  16887. 'Add-H',
  16888. 'Add-RKSJ-H',
  16889. 'Add-RKSJ-V',
  16890. 'Add-V',
  16891. 'Adobe-CNS1-0',
  16892. 'Adobe-CNS1-1',
  16893. 'Adobe-CNS1-2',
  16894. 'Adobe-CNS1-3',
  16895. 'Adobe-CNS1-4',
  16896. 'Adobe-CNS1-5',
  16897. 'Adobe-CNS1-6',
  16898. 'Adobe-GB1-0',
  16899. 'Adobe-GB1-1',
  16900. 'Adobe-GB1-2',
  16901. 'Adobe-GB1-3',
  16902. 'Adobe-GB1-4',
  16903. 'Adobe-GB1-5',
  16904. 'Adobe-Japan1-0',
  16905. 'Adobe-Japan1-1',
  16906. 'Adobe-Japan1-2',
  16907. 'Adobe-Japan1-3',
  16908. 'Adobe-Japan1-4',
  16909. 'Adobe-Japan1-5',
  16910. 'Adobe-Japan1-6',
  16911. 'Adobe-Korea1-0',
  16912. 'Adobe-Korea1-1',
  16913. 'Adobe-Korea1-2',
  16914. 'B5-H',
  16915. 'B5-V',
  16916. 'B5pc-H',
  16917. 'B5pc-V',
  16918. 'CNS-EUC-H',
  16919. 'CNS-EUC-V',
  16920. 'CNS1-H',
  16921. 'CNS1-V',
  16922. 'CNS2-H',
  16923. 'CNS2-V',
  16924. 'ETHK-B5-H',
  16925. 'ETHK-B5-V',
  16926. 'ETen-B5-H',
  16927. 'ETen-B5-V',
  16928. 'ETenms-B5-H',
  16929. 'ETenms-B5-V',
  16930. 'EUC-H',
  16931. 'EUC-V',
  16932. 'Ext-H',
  16933. 'Ext-RKSJ-H',
  16934. 'Ext-RKSJ-V',
  16935. 'Ext-V',
  16936. 'GB-EUC-H',
  16937. 'GB-EUC-V',
  16938. 'GB-H',
  16939. 'GB-V',
  16940. 'GBK-EUC-H',
  16941. 'GBK-EUC-V',
  16942. 'GBK2K-H',
  16943. 'GBK2K-V',
  16944. 'GBKp-EUC-H',
  16945. 'GBKp-EUC-V',
  16946. 'GBT-EUC-H',
  16947. 'GBT-EUC-V',
  16948. 'GBT-H',
  16949. 'GBT-V',
  16950. 'GBTpc-EUC-H',
  16951. 'GBTpc-EUC-V',
  16952. 'GBpc-EUC-H',
  16953. 'GBpc-EUC-V',
  16954. 'H',
  16955. 'HKdla-B5-H',
  16956. 'HKdla-B5-V',
  16957. 'HKdlb-B5-H',
  16958. 'HKdlb-B5-V',
  16959. 'HKgccs-B5-H',
  16960. 'HKgccs-B5-V',
  16961. 'HKm314-B5-H',
  16962. 'HKm314-B5-V',
  16963. 'HKm471-B5-H',
  16964. 'HKm471-B5-V',
  16965. 'HKscs-B5-H',
  16966. 'HKscs-B5-V',
  16967. 'Hankaku',
  16968. 'Hiragana',
  16969. 'KSC-EUC-H',
  16970. 'KSC-EUC-V',
  16971. 'KSC-H',
  16972. 'KSC-Johab-H',
  16973. 'KSC-Johab-V',
  16974. 'KSC-V',
  16975. 'KSCms-UHC-H',
  16976. 'KSCms-UHC-HW-H',
  16977. 'KSCms-UHC-HW-V',
  16978. 'KSCms-UHC-V',
  16979. 'KSCpc-EUC-H',
  16980. 'KSCpc-EUC-V',
  16981. 'Katakana',
  16982. 'NWP-H',
  16983. 'NWP-V',
  16984. 'RKSJ-H',
  16985. 'RKSJ-V',
  16986. 'Roman',
  16987. 'UniCNS-UCS2-H',
  16988. 'UniCNS-UCS2-V',
  16989. 'UniCNS-UTF16-H',
  16990. 'UniCNS-UTF16-V',
  16991. 'UniCNS-UTF32-H',
  16992. 'UniCNS-UTF32-V',
  16993. 'UniCNS-UTF8-H',
  16994. 'UniCNS-UTF8-V',
  16995. 'UniGB-UCS2-H',
  16996. 'UniGB-UCS2-V',
  16997. 'UniGB-UTF16-H',
  16998. 'UniGB-UTF16-V',
  16999. 'UniGB-UTF32-H',
  17000. 'UniGB-UTF32-V',
  17001. 'UniGB-UTF8-H',
  17002. 'UniGB-UTF8-V',
  17003. 'UniJIS-UCS2-H',
  17004. 'UniJIS-UCS2-HW-H',
  17005. 'UniJIS-UCS2-HW-V',
  17006. 'UniJIS-UCS2-V',
  17007. 'UniJIS-UTF16-H',
  17008. 'UniJIS-UTF16-V',
  17009. 'UniJIS-UTF32-H',
  17010. 'UniJIS-UTF32-V',
  17011. 'UniJIS-UTF8-H',
  17012. 'UniJIS-UTF8-V',
  17013. 'UniJIS2004-UTF16-H',
  17014. 'UniJIS2004-UTF16-V',
  17015. 'UniJIS2004-UTF32-H',
  17016. 'UniJIS2004-UTF32-V',
  17017. 'UniJIS2004-UTF8-H',
  17018. 'UniJIS2004-UTF8-V',
  17019. 'UniJISPro-UCS2-HW-V',
  17020. 'UniJISPro-UCS2-V',
  17021. 'UniJISPro-UTF8-V',
  17022. 'UniJISX0213-UTF32-H',
  17023. 'UniJISX0213-UTF32-V',
  17024. 'UniJISX02132004-UTF32-H',
  17025. 'UniJISX02132004-UTF32-V',
  17026. 'UniKS-UCS2-H',
  17027. 'UniKS-UCS2-V',
  17028. 'UniKS-UTF16-H',
  17029. 'UniKS-UTF16-V',
  17030. 'UniKS-UTF32-H',
  17031. 'UniKS-UTF32-V',
  17032. 'UniKS-UTF8-H',
  17033. 'UniKS-UTF8-V',
  17034. 'V',
  17035. 'WP-Symbol'];
  17036. // CMap, not to be confused with TrueType's cmap.
  17037. var CMap = (function CMapClosure() {
  17038. function CMap(builtInCMap) {
  17039. // Codespace ranges are stored as follows:
  17040. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  17041. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  17042. this.codespaceRanges = [[], [], [], []];
  17043. this.numCodespaceRanges = 0;
  17044. this.map = [];
  17045. this.vertical = false;
  17046. this.useCMap = null;
  17047. this.builtInCMap = builtInCMap;
  17048. }
  17049. CMap.prototype = {
  17050. addCodespaceRange: function(n, low, high) {
  17051. this.codespaceRanges[n - 1].push(low, high);
  17052. this.numCodespaceRanges++;
  17053. },
  17054. mapRange: function(low, high, dstLow) {
  17055. var lastByte = dstLow.length - 1;
  17056. while (low <= high) {
  17057. this.map[low] = dstLow;
  17058. // Only the last byte has to be incremented.
  17059. dstLow = dstLow.substr(0, lastByte) +
  17060. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  17061. ++low;
  17062. }
  17063. },
  17064. mapRangeToArray: function(low, high, array) {
  17065. var i = 0;
  17066. while (low <= high) {
  17067. this.map[low] = array[i++];
  17068. ++low;
  17069. }
  17070. },
  17071. mapOne: function(src, dst) {
  17072. this.map[src] = dst;
  17073. },
  17074. lookup: function(code) {
  17075. return this.map[code];
  17076. },
  17077. readCharCode: function(str, offset) {
  17078. var c = 0;
  17079. var codespaceRanges = this.codespaceRanges;
  17080. var codespaceRangesLen = this.codespaceRanges.length;
  17081. // 9.7.6.2 CMap Mapping
  17082. // The code length is at most 4.
  17083. for (var n = 0; n < codespaceRangesLen; n++) {
  17084. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  17085. // Check each codespace range to see if it falls within.
  17086. var codespaceRange = codespaceRanges[n];
  17087. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  17088. var low = codespaceRange[k++];
  17089. var high = codespaceRange[k++];
  17090. if (c >= low && c <= high) {
  17091. return [c, n + 1];
  17092. }
  17093. }
  17094. }
  17095. return [0, 1];
  17096. }
  17097. };
  17098. return CMap;
  17099. })();
  17100. var IdentityCMap = (function IdentityCMapClosure() {
  17101. function IdentityCMap(vertical, n) {
  17102. CMap.call(this);
  17103. this.vertical = vertical;
  17104. this.addCodespaceRange(n, 0, 0xffff);
  17105. this.mapRange(0, 0xffff, '\u0000');
  17106. }
  17107. Util.inherit(IdentityCMap, CMap, {});
  17108. return IdentityCMap;
  17109. })();
  17110. var BinaryCMapReader = (function BinaryCMapReaderClosure() {
  17111. function fetchBinaryData(url) {
  17112. var nonBinaryRequest = PDFJS.disableWorker;
  17113. var request = new XMLHttpRequest();
  17114. request.open('GET', url, false);
  17115. if (!nonBinaryRequest) {
  17116. try {
  17117. request.responseType = 'arraybuffer';
  17118. nonBinaryRequest = request.responseType !== 'arraybuffer';
  17119. } catch (e) {
  17120. nonBinaryRequest = true;
  17121. }
  17122. }
  17123. if (nonBinaryRequest && request.overrideMimeType) {
  17124. request.overrideMimeType('text/plain; charset=x-user-defined');
  17125. }
  17126. request.send(null);
  17127. if (request.status === 0 && /^https?:/i.test(url)) {
  17128. error('Unable to get binary cMap at: ' + url);
  17129. }
  17130. if (nonBinaryRequest) {
  17131. var data = Array.prototype.map.call(request.responseText, function (ch) {
  17132. return ch.charCodeAt(0) & 255;
  17133. });
  17134. return new Uint8Array(data);
  17135. }
  17136. return new Uint8Array(request.response);
  17137. }
  17138. function hexToInt(a, size) {
  17139. var n = 0;
  17140. for (var i = 0; i <= size; i++) {
  17141. n = (n << 8) | a[i];
  17142. }
  17143. return n >>> 0;
  17144. }
  17145. function hexToStr(a, size) {
  17146. return String.fromCharCode.apply(null, a.subarray(0, size + 1));
  17147. }
  17148. function addHex(a, b, size) {
  17149. var c = 0;
  17150. for (var i = size; i >= 0; i--) {
  17151. c += a[i] + b[i];
  17152. a[i] = c & 255;
  17153. c >>= 8;
  17154. }
  17155. }
  17156. function incHex(a, size) {
  17157. var c = 1;
  17158. for (var i = size; i >= 0 && c > 0; i--) {
  17159. c += a[i];
  17160. a[i] = c & 255;
  17161. c >>= 8;
  17162. }
  17163. }
  17164. var MAX_NUM_SIZE = 16;
  17165. var MAX_ENCODED_NUM_SIZE = 19; // ceil(MAX_NUM_SIZE * 7 / 8)
  17166. function BinaryCMapStream(data) {
  17167. this.buffer = data;
  17168. this.pos = 0;
  17169. this.end = data.length;
  17170. this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
  17171. }
  17172. BinaryCMapStream.prototype = {
  17173. readByte: function () {
  17174. if (this.pos >= this.end) {
  17175. return -1;
  17176. }
  17177. return this.buffer[this.pos++];
  17178. },
  17179. readNumber: function () {
  17180. var n = 0;
  17181. var last;
  17182. do {
  17183. var b = this.readByte();
  17184. if (b < 0) {
  17185. error('unexpected EOF in bcmap');
  17186. }
  17187. last = !(b & 0x80);
  17188. n = (n << 7) | (b & 0x7F);
  17189. } while (!last);
  17190. return n;
  17191. },
  17192. readSigned: function () {
  17193. var n = this.readNumber();
  17194. return (n & 1) ? ~(n >>> 1) : n >>> 1;
  17195. },
  17196. readHex: function (num, size) {
  17197. num.set(this.buffer.subarray(this.pos,
  17198. this.pos + size + 1));
  17199. this.pos += size + 1;
  17200. },
  17201. readHexNumber: function (num, size) {
  17202. var last;
  17203. var stack = this.tmpBuf, sp = 0;
  17204. do {
  17205. var b = this.readByte();
  17206. if (b < 0) {
  17207. error('unexpected EOF in bcmap');
  17208. }
  17209. last = !(b & 0x80);
  17210. stack[sp++] = b & 0x7F;
  17211. } while (!last);
  17212. var i = size, buffer = 0, bufferSize = 0;
  17213. while (i >= 0) {
  17214. while (bufferSize < 8 && stack.length > 0) {
  17215. buffer = (stack[--sp] << bufferSize) | buffer;
  17216. bufferSize += 7;
  17217. }
  17218. num[i] = buffer & 255;
  17219. i--;
  17220. buffer >>= 8;
  17221. bufferSize -= 8;
  17222. }
  17223. },
  17224. readHexSigned: function (num, size) {
  17225. this.readHexNumber(num, size);
  17226. var sign = num[size] & 1 ? 255 : 0;
  17227. var c = 0;
  17228. for (var i = 0; i <= size; i++) {
  17229. c = ((c & 1) << 8) | num[i];
  17230. num[i] = (c >> 1) ^ sign;
  17231. }
  17232. },
  17233. readString: function () {
  17234. var len = this.readNumber();
  17235. var s = '';
  17236. for (var i = 0; i < len; i++) {
  17237. s += String.fromCharCode(this.readNumber());
  17238. }
  17239. return s;
  17240. }
  17241. };
  17242. function processBinaryCMap(url, cMap, extend) {
  17243. var data = fetchBinaryData(url);
  17244. var stream = new BinaryCMapStream(data);
  17245. var header = stream.readByte();
  17246. cMap.vertical = !!(header & 1);
  17247. var useCMap = null;
  17248. var start = new Uint8Array(MAX_NUM_SIZE);
  17249. var end = new Uint8Array(MAX_NUM_SIZE);
  17250. var char = new Uint8Array(MAX_NUM_SIZE);
  17251. var charCode = new Uint8Array(MAX_NUM_SIZE);
  17252. var tmp = new Uint8Array(MAX_NUM_SIZE);
  17253. var code;
  17254. var b;
  17255. while ((b = stream.readByte()) >= 0) {
  17256. var type = b >> 5;
  17257. if (type === 7) { // metadata, e.g. comment or usecmap
  17258. switch (b & 0x1F) {
  17259. case 0:
  17260. stream.readString(); // skipping comment
  17261. break;
  17262. case 1:
  17263. useCMap = stream.readString();
  17264. break;
  17265. }
  17266. continue;
  17267. }
  17268. var sequence = !!(b & 0x10);
  17269. var dataSize = b & 15;
  17270. assert(dataSize + 1 <= MAX_NUM_SIZE);
  17271. var ucs2DataSize = 1;
  17272. var subitemsCount = stream.readNumber();
  17273. var i;
  17274. switch (type) {
  17275. case 0: // codespacerange
  17276. stream.readHex(start, dataSize);
  17277. stream.readHexNumber(end, dataSize);
  17278. addHex(end, start, dataSize);
  17279. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  17280. hexToInt(end, dataSize));
  17281. for (i = 1; i < subitemsCount; i++) {
  17282. incHex(end, dataSize);
  17283. stream.readHexNumber(start, dataSize);
  17284. addHex(start, end, dataSize);
  17285. stream.readHexNumber(end, dataSize);
  17286. addHex(end, start, dataSize);
  17287. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  17288. hexToInt(end, dataSize));
  17289. }
  17290. break;
  17291. case 1: // notdefrange
  17292. stream.readHex(start, dataSize);
  17293. stream.readHexNumber(end, dataSize);
  17294. addHex(end, start, dataSize);
  17295. code = stream.readNumber();
  17296. // undefined range, skipping
  17297. for (i = 1; i < subitemsCount; i++) {
  17298. incHex(end, dataSize);
  17299. stream.readHexNumber(start, dataSize);
  17300. addHex(start, end, dataSize);
  17301. stream.readHexNumber(end, dataSize);
  17302. addHex(end, start, dataSize);
  17303. code = stream.readNumber();
  17304. // nop
  17305. }
  17306. break;
  17307. case 2: // cidchar
  17308. stream.readHex(char, dataSize);
  17309. code = stream.readNumber();
  17310. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17311. for (i = 1; i < subitemsCount; i++) {
  17312. incHex(char, dataSize);
  17313. if (!sequence) {
  17314. stream.readHexNumber(tmp, dataSize);
  17315. addHex(char, tmp, dataSize);
  17316. }
  17317. code = stream.readSigned() + (code + 1);
  17318. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17319. }
  17320. break;
  17321. case 3: // cidrange
  17322. stream.readHex(start, dataSize);
  17323. stream.readHexNumber(end, dataSize);
  17324. addHex(end, start, dataSize);
  17325. code = stream.readNumber();
  17326. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17327. String.fromCharCode(code));
  17328. for (i = 1; i < subitemsCount; i++) {
  17329. incHex(end, dataSize);
  17330. if (!sequence) {
  17331. stream.readHexNumber(start, dataSize);
  17332. addHex(start, end, dataSize);
  17333. } else {
  17334. start.set(end);
  17335. }
  17336. stream.readHexNumber(end, dataSize);
  17337. addHex(end, start, dataSize);
  17338. code = stream.readNumber();
  17339. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17340. String.fromCharCode(code));
  17341. }
  17342. break;
  17343. case 4: // bfchar
  17344. stream.readHex(char, ucs2DataSize);
  17345. stream.readHex(charCode, dataSize);
  17346. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17347. hexToStr(charCode, dataSize));
  17348. for (i = 1; i < subitemsCount; i++) {
  17349. incHex(char, ucs2DataSize);
  17350. if (!sequence) {
  17351. stream.readHexNumber(tmp, ucs2DataSize);
  17352. addHex(char, tmp, ucs2DataSize);
  17353. }
  17354. incHex(charCode, dataSize);
  17355. stream.readHexSigned(tmp, dataSize);
  17356. addHex(charCode, tmp, dataSize);
  17357. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17358. hexToStr(charCode, dataSize));
  17359. }
  17360. break;
  17361. case 5: // bfrange
  17362. stream.readHex(start, ucs2DataSize);
  17363. stream.readHexNumber(end, ucs2DataSize);
  17364. addHex(end, start, ucs2DataSize);
  17365. stream.readHex(charCode, dataSize);
  17366. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17367. hexToInt(end, ucs2DataSize),
  17368. hexToStr(charCode, dataSize));
  17369. for (i = 1; i < subitemsCount; i++) {
  17370. incHex(end, ucs2DataSize);
  17371. if (!sequence) {
  17372. stream.readHexNumber(start, ucs2DataSize);
  17373. addHex(start, end, ucs2DataSize);
  17374. } else {
  17375. start.set(end);
  17376. }
  17377. stream.readHexNumber(end, ucs2DataSize);
  17378. addHex(end, start, ucs2DataSize);
  17379. stream.readHex(charCode, dataSize);
  17380. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17381. hexToInt(end, ucs2DataSize),
  17382. hexToStr(charCode, dataSize));
  17383. }
  17384. break;
  17385. default:
  17386. error('Unknown type: ' + type);
  17387. break;
  17388. }
  17389. }
  17390. if (useCMap) {
  17391. extend(useCMap);
  17392. }
  17393. return cMap;
  17394. }
  17395. function BinaryCMapReader() {}
  17396. BinaryCMapReader.prototype = {
  17397. read: processBinaryCMap
  17398. };
  17399. return BinaryCMapReader;
  17400. })();
  17401. var CMapFactory = (function CMapFactoryClosure() {
  17402. function strToInt(str) {
  17403. var a = 0;
  17404. for (var i = 0; i < str.length; i++) {
  17405. a = (a << 8) | str.charCodeAt(i);
  17406. }
  17407. return a >>> 0;
  17408. }
  17409. function expectString(obj) {
  17410. if (!isString(obj)) {
  17411. error('Malformed CMap: expected string.');
  17412. }
  17413. }
  17414. function expectInt(obj) {
  17415. if (!isInt(obj)) {
  17416. error('Malformed CMap: expected int.');
  17417. }
  17418. }
  17419. function parseBfChar(cMap, lexer) {
  17420. while (true) {
  17421. var obj = lexer.getObj();
  17422. if (isEOF(obj)) {
  17423. break;
  17424. }
  17425. if (isCmd(obj, 'endbfchar')) {
  17426. return;
  17427. }
  17428. expectString(obj);
  17429. var src = strToInt(obj);
  17430. obj = lexer.getObj();
  17431. // TODO are /dstName used?
  17432. expectString(obj);
  17433. var dst = obj;
  17434. cMap.mapOne(src, dst);
  17435. }
  17436. }
  17437. function parseBfRange(cMap, lexer) {
  17438. while (true) {
  17439. var obj = lexer.getObj();
  17440. if (isEOF(obj)) {
  17441. break;
  17442. }
  17443. if (isCmd(obj, 'endbfrange')) {
  17444. return;
  17445. }
  17446. expectString(obj);
  17447. var low = strToInt(obj);
  17448. obj = lexer.getObj();
  17449. expectString(obj);
  17450. var high = strToInt(obj);
  17451. obj = lexer.getObj();
  17452. if (isInt(obj) || isString(obj)) {
  17453. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  17454. cMap.mapRange(low, high, dstLow);
  17455. } else if (isCmd(obj, '[')) {
  17456. obj = lexer.getObj();
  17457. var array = [];
  17458. while (!isCmd(obj, ']') && !isEOF(obj)) {
  17459. array.push(obj);
  17460. obj = lexer.getObj();
  17461. }
  17462. cMap.mapRangeToArray(low, high, array);
  17463. } else {
  17464. break;
  17465. }
  17466. }
  17467. error('Invalid bf range.');
  17468. }
  17469. function parseCidChar(cMap, lexer) {
  17470. while (true) {
  17471. var obj = lexer.getObj();
  17472. if (isEOF(obj)) {
  17473. break;
  17474. }
  17475. if (isCmd(obj, 'endcidchar')) {
  17476. return;
  17477. }
  17478. expectString(obj);
  17479. var src = strToInt(obj);
  17480. obj = lexer.getObj();
  17481. expectInt(obj);
  17482. var dst = String.fromCharCode(obj);
  17483. cMap.mapOne(src, dst);
  17484. }
  17485. }
  17486. function parseCidRange(cMap, lexer) {
  17487. while (true) {
  17488. var obj = lexer.getObj();
  17489. if (isEOF(obj)) {
  17490. break;
  17491. }
  17492. if (isCmd(obj, 'endcidrange')) {
  17493. return;
  17494. }
  17495. expectString(obj);
  17496. var low = strToInt(obj);
  17497. obj = lexer.getObj();
  17498. expectString(obj);
  17499. var high = strToInt(obj);
  17500. obj = lexer.getObj();
  17501. expectInt(obj);
  17502. var dstLow = String.fromCharCode(obj);
  17503. cMap.mapRange(low, high, dstLow);
  17504. }
  17505. }
  17506. function parseCodespaceRange(cMap, lexer) {
  17507. while (true) {
  17508. var obj = lexer.getObj();
  17509. if (isEOF(obj)) {
  17510. break;
  17511. }
  17512. if (isCmd(obj, 'endcodespacerange')) {
  17513. return;
  17514. }
  17515. if (!isString(obj)) {
  17516. break;
  17517. }
  17518. var low = strToInt(obj);
  17519. obj = lexer.getObj();
  17520. if (!isString(obj)) {
  17521. break;
  17522. }
  17523. var high = strToInt(obj);
  17524. cMap.addCodespaceRange(obj.length, low, high);
  17525. }
  17526. error('Invalid codespace range.');
  17527. }
  17528. function parseWMode(cMap, lexer) {
  17529. var obj = lexer.getObj();
  17530. if (isInt(obj)) {
  17531. cMap.vertical = !!obj;
  17532. }
  17533. }
  17534. function parseCMap(cMap, lexer, builtInCMapParams, useCMap) {
  17535. var previous;
  17536. var embededUseCMap;
  17537. objLoop: while (true) {
  17538. var obj = lexer.getObj();
  17539. if (isEOF(obj)) {
  17540. break;
  17541. } else if (isName(obj)) {
  17542. if (obj.name === 'WMode') {
  17543. parseWMode(cMap, lexer);
  17544. }
  17545. previous = obj;
  17546. } else if (isCmd(obj)) {
  17547. switch (obj.cmd) {
  17548. case 'endcmap':
  17549. break objLoop;
  17550. case 'usecmap':
  17551. if (isName(previous)) {
  17552. embededUseCMap = previous.name;
  17553. }
  17554. break;
  17555. case 'begincodespacerange':
  17556. parseCodespaceRange(cMap, lexer);
  17557. break;
  17558. case 'beginbfchar':
  17559. parseBfChar(cMap, lexer);
  17560. break;
  17561. case 'begincidchar':
  17562. parseCidChar(cMap, lexer);
  17563. break;
  17564. case 'beginbfrange':
  17565. parseBfRange(cMap, lexer);
  17566. break;
  17567. case 'begincidrange':
  17568. parseCidRange(cMap, lexer);
  17569. break;
  17570. }
  17571. }
  17572. }
  17573. if (!useCMap && embededUseCMap) {
  17574. // Load the usecmap definition from the file only if there wasn't one
  17575. // specified.
  17576. useCMap = embededUseCMap;
  17577. }
  17578. if (useCMap) {
  17579. extendCMap(cMap, builtInCMapParams, useCMap);
  17580. }
  17581. }
  17582. function extendCMap(cMap, builtInCMapParams, useCMap) {
  17583. cMap.useCMap = createBuiltInCMap(useCMap, builtInCMapParams);
  17584. // If there aren't any code space ranges defined clone all the parent ones
  17585. // into this cMap.
  17586. if (cMap.numCodespaceRanges === 0) {
  17587. var useCodespaceRanges = cMap.useCMap.codespaceRanges;
  17588. for (var i = 0; i < useCodespaceRanges.length; i++) {
  17589. cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
  17590. }
  17591. cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
  17592. }
  17593. // Merge the map into the current one, making sure not to override
  17594. // any previously defined entries.
  17595. for (var key in cMap.useCMap.map) {
  17596. if (key in cMap.map) {
  17597. continue;
  17598. }
  17599. cMap.map[key] = cMap.useCMap.map[key];
  17600. }
  17601. }
  17602. function parseBinaryCMap(name, builtInCMapParams) {
  17603. var url = builtInCMapParams.url + name + '.bcmap';
  17604. var cMap = new CMap(true);
  17605. new BinaryCMapReader().read(url, cMap, function (useCMap) {
  17606. extendCMap(cMap, builtInCMapParams, useCMap);
  17607. });
  17608. return cMap;
  17609. }
  17610. function createBuiltInCMap(name, builtInCMapParams) {
  17611. if (name === 'Identity-H') {
  17612. return new IdentityCMap(false, 2);
  17613. } else if (name === 'Identity-V') {
  17614. return new IdentityCMap(true, 2);
  17615. }
  17616. if (BUILT_IN_CMAPS.indexOf(name) === -1) {
  17617. error('Unknown cMap name: ' + name);
  17618. }
  17619. assert (builtInCMapParams, 'buildin cmap parameters are not provided');
  17620. if (builtInCMapParams.packed) {
  17621. return parseBinaryCMap(name, builtInCMapParams);
  17622. }
  17623. var request = new XMLHttpRequest();
  17624. var url = builtInCMapParams.url + name;
  17625. request.open('GET', url, false);
  17626. request.send(null);
  17627. if (request.status === 0 && /^https?:/i.test(url)) {
  17628. error('Unable to get cMap at: ' + url);
  17629. }
  17630. var cMap = new CMap(true);
  17631. var lexer = new Lexer(new StringStream(request.responseText));
  17632. parseCMap(cMap, lexer, builtInCMapParams, null);
  17633. return cMap;
  17634. }
  17635. return {
  17636. create: function (encoding, builtInCMapParams, useCMap) {
  17637. if (isName(encoding)) {
  17638. return createBuiltInCMap(encoding.name, builtInCMapParams);
  17639. } else if (isStream(encoding)) {
  17640. var cMap = new CMap();
  17641. var lexer = new Lexer(encoding);
  17642. try {
  17643. parseCMap(cMap, lexer, builtInCMapParams, useCMap);
  17644. } catch (e) {
  17645. warn('Invalid CMap data. ' + e);
  17646. }
  17647. return cMap;
  17648. }
  17649. error('Encoding required.');
  17650. }
  17651. };
  17652. })();
  17653. // Unicode Private Use Area
  17654. var PRIVATE_USE_OFFSET_START = 0xE000;
  17655. var PRIVATE_USE_OFFSET_END = 0xF8FF;
  17656. var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
  17657. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  17658. // except for Type 3 fonts
  17659. var PDF_GLYPH_SPACE_UNITS = 1000;
  17660. // Hinting is currently disabled due to unknown problems on windows
  17661. // in tracemonkey and various other pdfs with type1 fonts.
  17662. var HINTING_ENABLED = false;
  17663. // Accented charactars are not displayed properly on windows, using this flag
  17664. // to control analysis of seac charstrings.
  17665. var SEAC_ANALYSIS_ENABLED = false;
  17666. var FontFlags = {
  17667. FixedPitch: 1,
  17668. Serif: 2,
  17669. Symbolic: 4,
  17670. Script: 8,
  17671. Nonsymbolic: 32,
  17672. Italic: 64,
  17673. AllCap: 65536,
  17674. SmallCap: 131072,
  17675. ForceBold: 262144
  17676. };
  17677. var Encodings = {
  17678. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17679. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17680. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  17681. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  17682. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  17683. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  17684. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  17685. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  17686. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  17687. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  17688. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  17689. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  17690. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  17691. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  17692. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  17693. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  17694. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  17695. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  17696. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  17697. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17698. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  17699. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  17700. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  17701. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  17702. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  17703. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  17704. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  17705. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  17706. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  17707. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  17708. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  17709. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  17710. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  17711. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  17712. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  17713. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  17714. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  17715. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  17716. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  17717. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  17718. 'Ydieresissmall'],
  17719. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17720. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17721. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  17722. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  17723. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  17724. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  17725. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  17726. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  17727. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  17728. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  17729. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  17730. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  17731. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  17732. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  17733. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  17734. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  17735. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  17736. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  17737. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  17738. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  17739. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  17740. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  17741. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  17742. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  17743. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  17744. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  17745. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  17746. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  17747. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  17748. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  17749. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  17750. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  17751. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  17752. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  17753. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  17754. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  17755. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  17756. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  17757. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  17758. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  17759. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17760. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17761. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17762. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17763. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17764. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17765. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17766. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17767. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17768. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17769. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17770. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  17771. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  17772. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  17773. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  17774. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  17775. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  17776. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  17777. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  17778. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  17779. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  17780. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  17781. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  17782. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  17783. 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE',
  17784. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  17785. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  17786. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  17787. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  17788. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  17789. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  17790. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  17791. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  17792. 'ogonek', 'caron'],
  17793. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17794. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17795. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17796. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  17797. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17798. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17799. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17800. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17801. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17802. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  17803. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  17804. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17805. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17806. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  17807. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  17808. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  17809. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  17810. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  17811. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  17812. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  17813. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  17814. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  17815. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  17816. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  17817. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  17818. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17819. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17820. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17821. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17822. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17823. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17824. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17825. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17826. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17827. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17828. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17829. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17830. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  17831. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  17832. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  17833. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  17834. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  17835. 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling',
  17836. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  17837. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  17838. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  17839. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  17840. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  17841. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  17842. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  17843. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  17844. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  17845. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  17846. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  17847. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  17848. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  17849. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  17850. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  17851. 'ydieresis'],
  17852. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17853. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17854. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  17855. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  17856. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  17857. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  17858. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  17859. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  17860. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  17861. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  17862. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  17863. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  17864. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  17865. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  17866. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  17867. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17868. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  17869. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  17870. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  17871. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  17872. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  17873. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  17874. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  17875. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  17876. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  17877. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  17878. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  17879. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  17880. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  17881. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  17882. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  17883. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  17884. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  17885. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  17886. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  17887. 'bracerightbt'],
  17888. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17889. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17890. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  17891. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  17892. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  17893. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  17894. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  17895. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  17896. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  17897. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  17898. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  17899. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17900. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17901. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  17902. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  17903. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  17904. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  17905. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  17906. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  17907. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  17908. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  17909. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  17910. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  17911. 'a188', 'a189', 'a190', 'a191']
  17912. };
  17913. /**
  17914. * Hold a map of decoded fonts and of the standard fourteen Type1
  17915. * fonts and their acronyms.
  17916. */
  17917. var stdFontMap = {
  17918. 'ArialNarrow': 'Helvetica',
  17919. 'ArialNarrow-Bold': 'Helvetica-Bold',
  17920. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  17921. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  17922. 'ArialBlack': 'Helvetica',
  17923. 'ArialBlack-Bold': 'Helvetica-Bold',
  17924. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  17925. 'ArialBlack-Italic': 'Helvetica-Oblique',
  17926. 'Arial': 'Helvetica',
  17927. 'Arial-Bold': 'Helvetica-Bold',
  17928. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  17929. 'Arial-Italic': 'Helvetica-Oblique',
  17930. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  17931. 'Arial-BoldMT': 'Helvetica-Bold',
  17932. 'Arial-ItalicMT': 'Helvetica-Oblique',
  17933. 'ArialMT': 'Helvetica',
  17934. 'Courier-Bold': 'Courier-Bold',
  17935. 'Courier-BoldItalic': 'Courier-BoldOblique',
  17936. 'Courier-Italic': 'Courier-Oblique',
  17937. 'CourierNew': 'Courier',
  17938. 'CourierNew-Bold': 'Courier-Bold',
  17939. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  17940. 'CourierNew-Italic': 'Courier-Oblique',
  17941. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  17942. 'CourierNewPS-BoldMT': 'Courier-Bold',
  17943. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  17944. 'CourierNewPSMT': 'Courier',
  17945. 'Helvetica-Bold': 'Helvetica-Bold',
  17946. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  17947. 'Helvetica-Italic': 'Helvetica-Oblique',
  17948. 'Symbol-Bold': 'Symbol',
  17949. 'Symbol-BoldItalic': 'Symbol',
  17950. 'Symbol-Italic': 'Symbol',
  17951. 'TimesNewRoman': 'Times-Roman',
  17952. 'TimesNewRoman-Bold': 'Times-Bold',
  17953. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  17954. 'TimesNewRoman-Italic': 'Times-Italic',
  17955. 'TimesNewRomanPS': 'Times-Roman',
  17956. 'TimesNewRomanPS-Bold': 'Times-Bold',
  17957. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  17958. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  17959. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  17960. 'TimesNewRomanPS-Italic': 'Times-Italic',
  17961. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  17962. 'TimesNewRomanPSMT': 'Times-Roman',
  17963. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  17964. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  17965. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  17966. };
  17967. /**
  17968. * Holds the map of the non-standard fonts that might be included as a standard
  17969. * fonts without glyph data.
  17970. */
  17971. var nonStdFontMap = {
  17972. 'ComicSansMS': 'Comic Sans MS',
  17973. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  17974. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  17975. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  17976. 'LucidaConsole': 'Courier',
  17977. 'LucidaConsole-Bold': 'Courier-Bold',
  17978. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  17979. 'LucidaConsole-Italic': 'Courier-Oblique',
  17980. 'MS-Gothic': 'MS Gothic',
  17981. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  17982. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  17983. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  17984. 'MS-Mincho': 'MS Mincho',
  17985. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  17986. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  17987. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  17988. 'MS-PGothic': 'MS PGothic',
  17989. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  17990. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  17991. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  17992. 'MS-PMincho': 'MS PMincho',
  17993. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  17994. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  17995. 'MS-PMincho-Italic': 'MS PMincho-Italic'
  17996. };
  17997. var serifFonts = {
  17998. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  17999. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  18000. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  18001. 'Arno': true, 'Aster': true, 'Aurora': true,
  18002. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  18003. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  18004. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  18005. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  18006. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  18007. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  18008. 'Cartier': true, 'Caslon': true, 'Catull': true,
  18009. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  18010. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  18011. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  18012. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  18013. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  18014. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  18015. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  18016. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  18017. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  18018. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  18019. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  18020. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  18021. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  18022. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  18023. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  18024. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  18025. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  18026. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  18027. 'Miller': true, 'Minion': true, 'Modern': true,
  18028. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  18029. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  18030. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  18031. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  18032. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  18033. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  18034. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  18035. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  18036. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  18037. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  18038. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  18039. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  18040. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  18041. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  18042. };
  18043. var symbolsFonts = {
  18044. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  18045. };
  18046. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  18047. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  18048. // glyphs, but common for some set of the standard fonts.
  18049. var GlyphMapForStandardFonts = {
  18050. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  18051. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 45,
  18052. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  18053. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  18054. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  18055. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  18056. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  18057. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  18058. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  18059. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  18060. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  18061. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  18062. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  18063. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  18064. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  18065. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  18066. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  18067. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  18068. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  18069. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  18070. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  18071. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  18072. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  18073. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  18074. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  18075. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '223': 711,
  18076. '227': 353, '229': 382, '234': 253, '253': 268, '254': 269, '258': 258,
  18077. '268': 283, '269': 313, '278': 328, '284': 345, '292': 367, '305': 963,
  18078. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  18079. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  18080. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  18081. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  18082. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  18083. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  18084. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  18085. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  18086. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  18087. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  18088. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  18089. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  18090. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  18091. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  18092. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  18093. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  18094. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  18095. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  18096. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  18097. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  18098. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  18099. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  18100. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  18101. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  18102. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  18103. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  18104. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  18105. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  18106. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  18107. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  18108. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  18109. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  18110. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  18111. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  18112. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  18113. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  18114. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  18115. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  18116. };
  18117. // Some characters, e.g. copyrightserif, mapped to the private use area and
  18118. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  18119. // to the similar equivalents in the normal characters range.
  18120. function mapSpecialUnicodeValues(code) {
  18121. if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials unicode block.
  18122. return 0;
  18123. }
  18124. switch (code) {
  18125. case 0xF8E9: // copyrightsans
  18126. case 0xF6D9: // copyrightserif
  18127. return 0x00A9; // copyright
  18128. case 0xF8E8: // registersans
  18129. case 0xF6DA: // registerserif
  18130. return 0x00AE; // registered
  18131. case 0xF8EA: // trademarksans
  18132. case 0xF6DB: // trademarkserif
  18133. return 0x2122; // trademark
  18134. default:
  18135. return code;
  18136. }
  18137. }
  18138. var UnicodeRanges = [
  18139. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  18140. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  18141. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  18142. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  18143. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  18144. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  18145. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  18146. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  18147. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  18148. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  18149. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  18150. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  18151. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  18152. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  18153. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  18154. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  18155. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  18156. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  18157. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  18158. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  18159. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  18160. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  18161. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  18162. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  18163. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  18164. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  18165. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  18166. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  18167. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  18168. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  18169. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  18170. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  18171. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  18172. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  18173. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  18174. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  18175. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  18176. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  18177. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  18178. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  18179. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  18180. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  18181. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  18182. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  18183. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  18184. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  18185. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  18186. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  18187. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  18188. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  18189. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  18190. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  18191. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  18192. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  18193. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  18194. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  18195. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  18196. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  18197. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  18198. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  18199. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  18200. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  18201. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  18202. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  18203. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  18204. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  18205. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  18206. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  18207. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  18208. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  18209. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  18210. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  18211. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  18212. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  18213. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  18214. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  18215. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  18216. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  18217. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  18218. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  18219. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  18220. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  18221. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  18222. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  18223. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  18224. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  18225. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  18226. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  18227. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  18228. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  18229. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  18230. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  18231. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  18232. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  18233. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  18234. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  18235. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  18236. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  18237. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  18238. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  18239. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  18240. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  18241. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  18242. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  18243. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  18244. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  18245. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  18246. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  18247. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  18248. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  18249. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  18250. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  18251. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  18252. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  18253. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  18254. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  18255. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  18256. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  18257. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  18258. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  18259. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  18260. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  18261. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  18262. ];
  18263. var MacStandardGlyphOrdering = [
  18264. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  18265. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  18266. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  18267. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  18268. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  18269. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  18270. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  18271. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  18272. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  18273. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  18274. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  18275. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  18276. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  18277. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  18278. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  18279. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  18280. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  18281. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  18282. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  18283. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  18284. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  18285. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  18286. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  18287. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  18288. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  18289. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  18290. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  18291. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  18292. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  18293. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  18294. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  18295. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  18296. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  18297. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  18298. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  18299. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  18300. function getUnicodeRangeFor(value) {
  18301. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  18302. var range = UnicodeRanges[i];
  18303. if (value >= range.begin && value < range.end) {
  18304. return i;
  18305. }
  18306. }
  18307. return -1;
  18308. }
  18309. function isRTLRangeFor(value) {
  18310. var range = UnicodeRanges[13];
  18311. if (value >= range.begin && value < range.end) {
  18312. return true;
  18313. }
  18314. range = UnicodeRanges[11];
  18315. if (value >= range.begin && value < range.end) {
  18316. return true;
  18317. }
  18318. return false;
  18319. }
  18320. // The normalization table is obtained by filtering the Unicode characters
  18321. // database with <compat> entries.
  18322. var NormalizedUnicodes = {
  18323. '\u00A8': '\u0020\u0308',
  18324. '\u00AF': '\u0020\u0304',
  18325. '\u00B4': '\u0020\u0301',
  18326. '\u00B5': '\u03BC',
  18327. '\u00B8': '\u0020\u0327',
  18328. '\u0132': '\u0049\u004A',
  18329. '\u0133': '\u0069\u006A',
  18330. '\u013F': '\u004C\u00B7',
  18331. '\u0140': '\u006C\u00B7',
  18332. '\u0149': '\u02BC\u006E',
  18333. '\u017F': '\u0073',
  18334. '\u01C4': '\u0044\u017D',
  18335. '\u01C5': '\u0044\u017E',
  18336. '\u01C6': '\u0064\u017E',
  18337. '\u01C7': '\u004C\u004A',
  18338. '\u01C8': '\u004C\u006A',
  18339. '\u01C9': '\u006C\u006A',
  18340. '\u01CA': '\u004E\u004A',
  18341. '\u01CB': '\u004E\u006A',
  18342. '\u01CC': '\u006E\u006A',
  18343. '\u01F1': '\u0044\u005A',
  18344. '\u01F2': '\u0044\u007A',
  18345. '\u01F3': '\u0064\u007A',
  18346. '\u02D8': '\u0020\u0306',
  18347. '\u02D9': '\u0020\u0307',
  18348. '\u02DA': '\u0020\u030A',
  18349. '\u02DB': '\u0020\u0328',
  18350. '\u02DC': '\u0020\u0303',
  18351. '\u02DD': '\u0020\u030B',
  18352. '\u037A': '\u0020\u0345',
  18353. '\u0384': '\u0020\u0301',
  18354. '\u03D0': '\u03B2',
  18355. '\u03D1': '\u03B8',
  18356. '\u03D2': '\u03A5',
  18357. '\u03D5': '\u03C6',
  18358. '\u03D6': '\u03C0',
  18359. '\u03F0': '\u03BA',
  18360. '\u03F1': '\u03C1',
  18361. '\u03F2': '\u03C2',
  18362. '\u03F4': '\u0398',
  18363. '\u03F5': '\u03B5',
  18364. '\u03F9': '\u03A3',
  18365. '\u0587': '\u0565\u0582',
  18366. '\u0675': '\u0627\u0674',
  18367. '\u0676': '\u0648\u0674',
  18368. '\u0677': '\u06C7\u0674',
  18369. '\u0678': '\u064A\u0674',
  18370. '\u0E33': '\u0E4D\u0E32',
  18371. '\u0EB3': '\u0ECD\u0EB2',
  18372. '\u0EDC': '\u0EAB\u0E99',
  18373. '\u0EDD': '\u0EAB\u0EA1',
  18374. '\u0F77': '\u0FB2\u0F81',
  18375. '\u0F79': '\u0FB3\u0F81',
  18376. '\u1E9A': '\u0061\u02BE',
  18377. '\u1FBD': '\u0020\u0313',
  18378. '\u1FBF': '\u0020\u0313',
  18379. '\u1FC0': '\u0020\u0342',
  18380. '\u1FFE': '\u0020\u0314',
  18381. '\u2002': '\u0020',
  18382. '\u2003': '\u0020',
  18383. '\u2004': '\u0020',
  18384. '\u2005': '\u0020',
  18385. '\u2006': '\u0020',
  18386. '\u2008': '\u0020',
  18387. '\u2009': '\u0020',
  18388. '\u200A': '\u0020',
  18389. '\u2017': '\u0020\u0333',
  18390. '\u2024': '\u002E',
  18391. '\u2025': '\u002E\u002E',
  18392. '\u2026': '\u002E\u002E\u002E',
  18393. '\u2033': '\u2032\u2032',
  18394. '\u2034': '\u2032\u2032\u2032',
  18395. '\u2036': '\u2035\u2035',
  18396. '\u2037': '\u2035\u2035\u2035',
  18397. '\u203C': '\u0021\u0021',
  18398. '\u203E': '\u0020\u0305',
  18399. '\u2047': '\u003F\u003F',
  18400. '\u2048': '\u003F\u0021',
  18401. '\u2049': '\u0021\u003F',
  18402. '\u2057': '\u2032\u2032\u2032\u2032',
  18403. '\u205F': '\u0020',
  18404. '\u20A8': '\u0052\u0073',
  18405. '\u2100': '\u0061\u002F\u0063',
  18406. '\u2101': '\u0061\u002F\u0073',
  18407. '\u2103': '\u00B0\u0043',
  18408. '\u2105': '\u0063\u002F\u006F',
  18409. '\u2106': '\u0063\u002F\u0075',
  18410. '\u2107': '\u0190',
  18411. '\u2109': '\u00B0\u0046',
  18412. '\u2116': '\u004E\u006F',
  18413. '\u2121': '\u0054\u0045\u004C',
  18414. '\u2135': '\u05D0',
  18415. '\u2136': '\u05D1',
  18416. '\u2137': '\u05D2',
  18417. '\u2138': '\u05D3',
  18418. '\u213B': '\u0046\u0041\u0058',
  18419. '\u2160': '\u0049',
  18420. '\u2161': '\u0049\u0049',
  18421. '\u2162': '\u0049\u0049\u0049',
  18422. '\u2163': '\u0049\u0056',
  18423. '\u2164': '\u0056',
  18424. '\u2165': '\u0056\u0049',
  18425. '\u2166': '\u0056\u0049\u0049',
  18426. '\u2167': '\u0056\u0049\u0049\u0049',
  18427. '\u2168': '\u0049\u0058',
  18428. '\u2169': '\u0058',
  18429. '\u216A': '\u0058\u0049',
  18430. '\u216B': '\u0058\u0049\u0049',
  18431. '\u216C': '\u004C',
  18432. '\u216D': '\u0043',
  18433. '\u216E': '\u0044',
  18434. '\u216F': '\u004D',
  18435. '\u2170': '\u0069',
  18436. '\u2171': '\u0069\u0069',
  18437. '\u2172': '\u0069\u0069\u0069',
  18438. '\u2173': '\u0069\u0076',
  18439. '\u2174': '\u0076',
  18440. '\u2175': '\u0076\u0069',
  18441. '\u2176': '\u0076\u0069\u0069',
  18442. '\u2177': '\u0076\u0069\u0069\u0069',
  18443. '\u2178': '\u0069\u0078',
  18444. '\u2179': '\u0078',
  18445. '\u217A': '\u0078\u0069',
  18446. '\u217B': '\u0078\u0069\u0069',
  18447. '\u217C': '\u006C',
  18448. '\u217D': '\u0063',
  18449. '\u217E': '\u0064',
  18450. '\u217F': '\u006D',
  18451. '\u222C': '\u222B\u222B',
  18452. '\u222D': '\u222B\u222B\u222B',
  18453. '\u222F': '\u222E\u222E',
  18454. '\u2230': '\u222E\u222E\u222E',
  18455. '\u2474': '\u0028\u0031\u0029',
  18456. '\u2475': '\u0028\u0032\u0029',
  18457. '\u2476': '\u0028\u0033\u0029',
  18458. '\u2477': '\u0028\u0034\u0029',
  18459. '\u2478': '\u0028\u0035\u0029',
  18460. '\u2479': '\u0028\u0036\u0029',
  18461. '\u247A': '\u0028\u0037\u0029',
  18462. '\u247B': '\u0028\u0038\u0029',
  18463. '\u247C': '\u0028\u0039\u0029',
  18464. '\u247D': '\u0028\u0031\u0030\u0029',
  18465. '\u247E': '\u0028\u0031\u0031\u0029',
  18466. '\u247F': '\u0028\u0031\u0032\u0029',
  18467. '\u2480': '\u0028\u0031\u0033\u0029',
  18468. '\u2481': '\u0028\u0031\u0034\u0029',
  18469. '\u2482': '\u0028\u0031\u0035\u0029',
  18470. '\u2483': '\u0028\u0031\u0036\u0029',
  18471. '\u2484': '\u0028\u0031\u0037\u0029',
  18472. '\u2485': '\u0028\u0031\u0038\u0029',
  18473. '\u2486': '\u0028\u0031\u0039\u0029',
  18474. '\u2487': '\u0028\u0032\u0030\u0029',
  18475. '\u2488': '\u0031\u002E',
  18476. '\u2489': '\u0032\u002E',
  18477. '\u248A': '\u0033\u002E',
  18478. '\u248B': '\u0034\u002E',
  18479. '\u248C': '\u0035\u002E',
  18480. '\u248D': '\u0036\u002E',
  18481. '\u248E': '\u0037\u002E',
  18482. '\u248F': '\u0038\u002E',
  18483. '\u2490': '\u0039\u002E',
  18484. '\u2491': '\u0031\u0030\u002E',
  18485. '\u2492': '\u0031\u0031\u002E',
  18486. '\u2493': '\u0031\u0032\u002E',
  18487. '\u2494': '\u0031\u0033\u002E',
  18488. '\u2495': '\u0031\u0034\u002E',
  18489. '\u2496': '\u0031\u0035\u002E',
  18490. '\u2497': '\u0031\u0036\u002E',
  18491. '\u2498': '\u0031\u0037\u002E',
  18492. '\u2499': '\u0031\u0038\u002E',
  18493. '\u249A': '\u0031\u0039\u002E',
  18494. '\u249B': '\u0032\u0030\u002E',
  18495. '\u249C': '\u0028\u0061\u0029',
  18496. '\u249D': '\u0028\u0062\u0029',
  18497. '\u249E': '\u0028\u0063\u0029',
  18498. '\u249F': '\u0028\u0064\u0029',
  18499. '\u24A0': '\u0028\u0065\u0029',
  18500. '\u24A1': '\u0028\u0066\u0029',
  18501. '\u24A2': '\u0028\u0067\u0029',
  18502. '\u24A3': '\u0028\u0068\u0029',
  18503. '\u24A4': '\u0028\u0069\u0029',
  18504. '\u24A5': '\u0028\u006A\u0029',
  18505. '\u24A6': '\u0028\u006B\u0029',
  18506. '\u24A7': '\u0028\u006C\u0029',
  18507. '\u24A8': '\u0028\u006D\u0029',
  18508. '\u24A9': '\u0028\u006E\u0029',
  18509. '\u24AA': '\u0028\u006F\u0029',
  18510. '\u24AB': '\u0028\u0070\u0029',
  18511. '\u24AC': '\u0028\u0071\u0029',
  18512. '\u24AD': '\u0028\u0072\u0029',
  18513. '\u24AE': '\u0028\u0073\u0029',
  18514. '\u24AF': '\u0028\u0074\u0029',
  18515. '\u24B0': '\u0028\u0075\u0029',
  18516. '\u24B1': '\u0028\u0076\u0029',
  18517. '\u24B2': '\u0028\u0077\u0029',
  18518. '\u24B3': '\u0028\u0078\u0029',
  18519. '\u24B4': '\u0028\u0079\u0029',
  18520. '\u24B5': '\u0028\u007A\u0029',
  18521. '\u2A0C': '\u222B\u222B\u222B\u222B',
  18522. '\u2A74': '\u003A\u003A\u003D',
  18523. '\u2A75': '\u003D\u003D',
  18524. '\u2A76': '\u003D\u003D\u003D',
  18525. '\u2E9F': '\u6BCD',
  18526. '\u2EF3': '\u9F9F',
  18527. '\u2F00': '\u4E00',
  18528. '\u2F01': '\u4E28',
  18529. '\u2F02': '\u4E36',
  18530. '\u2F03': '\u4E3F',
  18531. '\u2F04': '\u4E59',
  18532. '\u2F05': '\u4E85',
  18533. '\u2F06': '\u4E8C',
  18534. '\u2F07': '\u4EA0',
  18535. '\u2F08': '\u4EBA',
  18536. '\u2F09': '\u513F',
  18537. '\u2F0A': '\u5165',
  18538. '\u2F0B': '\u516B',
  18539. '\u2F0C': '\u5182',
  18540. '\u2F0D': '\u5196',
  18541. '\u2F0E': '\u51AB',
  18542. '\u2F0F': '\u51E0',
  18543. '\u2F10': '\u51F5',
  18544. '\u2F11': '\u5200',
  18545. '\u2F12': '\u529B',
  18546. '\u2F13': '\u52F9',
  18547. '\u2F14': '\u5315',
  18548. '\u2F15': '\u531A',
  18549. '\u2F16': '\u5338',
  18550. '\u2F17': '\u5341',
  18551. '\u2F18': '\u535C',
  18552. '\u2F19': '\u5369',
  18553. '\u2F1A': '\u5382',
  18554. '\u2F1B': '\u53B6',
  18555. '\u2F1C': '\u53C8',
  18556. '\u2F1D': '\u53E3',
  18557. '\u2F1E': '\u56D7',
  18558. '\u2F1F': '\u571F',
  18559. '\u2F20': '\u58EB',
  18560. '\u2F21': '\u5902',
  18561. '\u2F22': '\u590A',
  18562. '\u2F23': '\u5915',
  18563. '\u2F24': '\u5927',
  18564. '\u2F25': '\u5973',
  18565. '\u2F26': '\u5B50',
  18566. '\u2F27': '\u5B80',
  18567. '\u2F28': '\u5BF8',
  18568. '\u2F29': '\u5C0F',
  18569. '\u2F2A': '\u5C22',
  18570. '\u2F2B': '\u5C38',
  18571. '\u2F2C': '\u5C6E',
  18572. '\u2F2D': '\u5C71',
  18573. '\u2F2E': '\u5DDB',
  18574. '\u2F2F': '\u5DE5',
  18575. '\u2F30': '\u5DF1',
  18576. '\u2F31': '\u5DFE',
  18577. '\u2F32': '\u5E72',
  18578. '\u2F33': '\u5E7A',
  18579. '\u2F34': '\u5E7F',
  18580. '\u2F35': '\u5EF4',
  18581. '\u2F36': '\u5EFE',
  18582. '\u2F37': '\u5F0B',
  18583. '\u2F38': '\u5F13',
  18584. '\u2F39': '\u5F50',
  18585. '\u2F3A': '\u5F61',
  18586. '\u2F3B': '\u5F73',
  18587. '\u2F3C': '\u5FC3',
  18588. '\u2F3D': '\u6208',
  18589. '\u2F3E': '\u6236',
  18590. '\u2F3F': '\u624B',
  18591. '\u2F40': '\u652F',
  18592. '\u2F41': '\u6534',
  18593. '\u2F42': '\u6587',
  18594. '\u2F43': '\u6597',
  18595. '\u2F44': '\u65A4',
  18596. '\u2F45': '\u65B9',
  18597. '\u2F46': '\u65E0',
  18598. '\u2F47': '\u65E5',
  18599. '\u2F48': '\u66F0',
  18600. '\u2F49': '\u6708',
  18601. '\u2F4A': '\u6728',
  18602. '\u2F4B': '\u6B20',
  18603. '\u2F4C': '\u6B62',
  18604. '\u2F4D': '\u6B79',
  18605. '\u2F4E': '\u6BB3',
  18606. '\u2F4F': '\u6BCB',
  18607. '\u2F50': '\u6BD4',
  18608. '\u2F51': '\u6BDB',
  18609. '\u2F52': '\u6C0F',
  18610. '\u2F53': '\u6C14',
  18611. '\u2F54': '\u6C34',
  18612. '\u2F55': '\u706B',
  18613. '\u2F56': '\u722A',
  18614. '\u2F57': '\u7236',
  18615. '\u2F58': '\u723B',
  18616. '\u2F59': '\u723F',
  18617. '\u2F5A': '\u7247',
  18618. '\u2F5B': '\u7259',
  18619. '\u2F5C': '\u725B',
  18620. '\u2F5D': '\u72AC',
  18621. '\u2F5E': '\u7384',
  18622. '\u2F5F': '\u7389',
  18623. '\u2F60': '\u74DC',
  18624. '\u2F61': '\u74E6',
  18625. '\u2F62': '\u7518',
  18626. '\u2F63': '\u751F',
  18627. '\u2F64': '\u7528',
  18628. '\u2F65': '\u7530',
  18629. '\u2F66': '\u758B',
  18630. '\u2F67': '\u7592',
  18631. '\u2F68': '\u7676',
  18632. '\u2F69': '\u767D',
  18633. '\u2F6A': '\u76AE',
  18634. '\u2F6B': '\u76BF',
  18635. '\u2F6C': '\u76EE',
  18636. '\u2F6D': '\u77DB',
  18637. '\u2F6E': '\u77E2',
  18638. '\u2F6F': '\u77F3',
  18639. '\u2F70': '\u793A',
  18640. '\u2F71': '\u79B8',
  18641. '\u2F72': '\u79BE',
  18642. '\u2F73': '\u7A74',
  18643. '\u2F74': '\u7ACB',
  18644. '\u2F75': '\u7AF9',
  18645. '\u2F76': '\u7C73',
  18646. '\u2F77': '\u7CF8',
  18647. '\u2F78': '\u7F36',
  18648. '\u2F79': '\u7F51',
  18649. '\u2F7A': '\u7F8A',
  18650. '\u2F7B': '\u7FBD',
  18651. '\u2F7C': '\u8001',
  18652. '\u2F7D': '\u800C',
  18653. '\u2F7E': '\u8012',
  18654. '\u2F7F': '\u8033',
  18655. '\u2F80': '\u807F',
  18656. '\u2F81': '\u8089',
  18657. '\u2F82': '\u81E3',
  18658. '\u2F83': '\u81EA',
  18659. '\u2F84': '\u81F3',
  18660. '\u2F85': '\u81FC',
  18661. '\u2F86': '\u820C',
  18662. '\u2F87': '\u821B',
  18663. '\u2F88': '\u821F',
  18664. '\u2F89': '\u826E',
  18665. '\u2F8A': '\u8272',
  18666. '\u2F8B': '\u8278',
  18667. '\u2F8C': '\u864D',
  18668. '\u2F8D': '\u866B',
  18669. '\u2F8E': '\u8840',
  18670. '\u2F8F': '\u884C',
  18671. '\u2F90': '\u8863',
  18672. '\u2F91': '\u897E',
  18673. '\u2F92': '\u898B',
  18674. '\u2F93': '\u89D2',
  18675. '\u2F94': '\u8A00',
  18676. '\u2F95': '\u8C37',
  18677. '\u2F96': '\u8C46',
  18678. '\u2F97': '\u8C55',
  18679. '\u2F98': '\u8C78',
  18680. '\u2F99': '\u8C9D',
  18681. '\u2F9A': '\u8D64',
  18682. '\u2F9B': '\u8D70',
  18683. '\u2F9C': '\u8DB3',
  18684. '\u2F9D': '\u8EAB',
  18685. '\u2F9E': '\u8ECA',
  18686. '\u2F9F': '\u8F9B',
  18687. '\u2FA0': '\u8FB0',
  18688. '\u2FA1': '\u8FB5',
  18689. '\u2FA2': '\u9091',
  18690. '\u2FA3': '\u9149',
  18691. '\u2FA4': '\u91C6',
  18692. '\u2FA5': '\u91CC',
  18693. '\u2FA6': '\u91D1',
  18694. '\u2FA7': '\u9577',
  18695. '\u2FA8': '\u9580',
  18696. '\u2FA9': '\u961C',
  18697. '\u2FAA': '\u96B6',
  18698. '\u2FAB': '\u96B9',
  18699. '\u2FAC': '\u96E8',
  18700. '\u2FAD': '\u9751',
  18701. '\u2FAE': '\u975E',
  18702. '\u2FAF': '\u9762',
  18703. '\u2FB0': '\u9769',
  18704. '\u2FB1': '\u97CB',
  18705. '\u2FB2': '\u97ED',
  18706. '\u2FB3': '\u97F3',
  18707. '\u2FB4': '\u9801',
  18708. '\u2FB5': '\u98A8',
  18709. '\u2FB6': '\u98DB',
  18710. '\u2FB7': '\u98DF',
  18711. '\u2FB8': '\u9996',
  18712. '\u2FB9': '\u9999',
  18713. '\u2FBA': '\u99AC',
  18714. '\u2FBB': '\u9AA8',
  18715. '\u2FBC': '\u9AD8',
  18716. '\u2FBD': '\u9ADF',
  18717. '\u2FBE': '\u9B25',
  18718. '\u2FBF': '\u9B2F',
  18719. '\u2FC0': '\u9B32',
  18720. '\u2FC1': '\u9B3C',
  18721. '\u2FC2': '\u9B5A',
  18722. '\u2FC3': '\u9CE5',
  18723. '\u2FC4': '\u9E75',
  18724. '\u2FC5': '\u9E7F',
  18725. '\u2FC6': '\u9EA5',
  18726. '\u2FC7': '\u9EBB',
  18727. '\u2FC8': '\u9EC3',
  18728. '\u2FC9': '\u9ECD',
  18729. '\u2FCA': '\u9ED1',
  18730. '\u2FCB': '\u9EF9',
  18731. '\u2FCC': '\u9EFD',
  18732. '\u2FCD': '\u9F0E',
  18733. '\u2FCE': '\u9F13',
  18734. '\u2FCF': '\u9F20',
  18735. '\u2FD0': '\u9F3B',
  18736. '\u2FD1': '\u9F4A',
  18737. '\u2FD2': '\u9F52',
  18738. '\u2FD3': '\u9F8D',
  18739. '\u2FD4': '\u9F9C',
  18740. '\u2FD5': '\u9FA0',
  18741. '\u3036': '\u3012',
  18742. '\u3038': '\u5341',
  18743. '\u3039': '\u5344',
  18744. '\u303A': '\u5345',
  18745. '\u309B': '\u0020\u3099',
  18746. '\u309C': '\u0020\u309A',
  18747. '\u3131': '\u1100',
  18748. '\u3132': '\u1101',
  18749. '\u3133': '\u11AA',
  18750. '\u3134': '\u1102',
  18751. '\u3135': '\u11AC',
  18752. '\u3136': '\u11AD',
  18753. '\u3137': '\u1103',
  18754. '\u3138': '\u1104',
  18755. '\u3139': '\u1105',
  18756. '\u313A': '\u11B0',
  18757. '\u313B': '\u11B1',
  18758. '\u313C': '\u11B2',
  18759. '\u313D': '\u11B3',
  18760. '\u313E': '\u11B4',
  18761. '\u313F': '\u11B5',
  18762. '\u3140': '\u111A',
  18763. '\u3141': '\u1106',
  18764. '\u3142': '\u1107',
  18765. '\u3143': '\u1108',
  18766. '\u3144': '\u1121',
  18767. '\u3145': '\u1109',
  18768. '\u3146': '\u110A',
  18769. '\u3147': '\u110B',
  18770. '\u3148': '\u110C',
  18771. '\u3149': '\u110D',
  18772. '\u314A': '\u110E',
  18773. '\u314B': '\u110F',
  18774. '\u314C': '\u1110',
  18775. '\u314D': '\u1111',
  18776. '\u314E': '\u1112',
  18777. '\u314F': '\u1161',
  18778. '\u3150': '\u1162',
  18779. '\u3151': '\u1163',
  18780. '\u3152': '\u1164',
  18781. '\u3153': '\u1165',
  18782. '\u3154': '\u1166',
  18783. '\u3155': '\u1167',
  18784. '\u3156': '\u1168',
  18785. '\u3157': '\u1169',
  18786. '\u3158': '\u116A',
  18787. '\u3159': '\u116B',
  18788. '\u315A': '\u116C',
  18789. '\u315B': '\u116D',
  18790. '\u315C': '\u116E',
  18791. '\u315D': '\u116F',
  18792. '\u315E': '\u1170',
  18793. '\u315F': '\u1171',
  18794. '\u3160': '\u1172',
  18795. '\u3161': '\u1173',
  18796. '\u3162': '\u1174',
  18797. '\u3163': '\u1175',
  18798. '\u3164': '\u1160',
  18799. '\u3165': '\u1114',
  18800. '\u3166': '\u1115',
  18801. '\u3167': '\u11C7',
  18802. '\u3168': '\u11C8',
  18803. '\u3169': '\u11CC',
  18804. '\u316A': '\u11CE',
  18805. '\u316B': '\u11D3',
  18806. '\u316C': '\u11D7',
  18807. '\u316D': '\u11D9',
  18808. '\u316E': '\u111C',
  18809. '\u316F': '\u11DD',
  18810. '\u3170': '\u11DF',
  18811. '\u3171': '\u111D',
  18812. '\u3172': '\u111E',
  18813. '\u3173': '\u1120',
  18814. '\u3174': '\u1122',
  18815. '\u3175': '\u1123',
  18816. '\u3176': '\u1127',
  18817. '\u3177': '\u1129',
  18818. '\u3178': '\u112B',
  18819. '\u3179': '\u112C',
  18820. '\u317A': '\u112D',
  18821. '\u317B': '\u112E',
  18822. '\u317C': '\u112F',
  18823. '\u317D': '\u1132',
  18824. '\u317E': '\u1136',
  18825. '\u317F': '\u1140',
  18826. '\u3180': '\u1147',
  18827. '\u3181': '\u114C',
  18828. '\u3182': '\u11F1',
  18829. '\u3183': '\u11F2',
  18830. '\u3184': '\u1157',
  18831. '\u3185': '\u1158',
  18832. '\u3186': '\u1159',
  18833. '\u3187': '\u1184',
  18834. '\u3188': '\u1185',
  18835. '\u3189': '\u1188',
  18836. '\u318A': '\u1191',
  18837. '\u318B': '\u1192',
  18838. '\u318C': '\u1194',
  18839. '\u318D': '\u119E',
  18840. '\u318E': '\u11A1',
  18841. '\u3200': '\u0028\u1100\u0029',
  18842. '\u3201': '\u0028\u1102\u0029',
  18843. '\u3202': '\u0028\u1103\u0029',
  18844. '\u3203': '\u0028\u1105\u0029',
  18845. '\u3204': '\u0028\u1106\u0029',
  18846. '\u3205': '\u0028\u1107\u0029',
  18847. '\u3206': '\u0028\u1109\u0029',
  18848. '\u3207': '\u0028\u110B\u0029',
  18849. '\u3208': '\u0028\u110C\u0029',
  18850. '\u3209': '\u0028\u110E\u0029',
  18851. '\u320A': '\u0028\u110F\u0029',
  18852. '\u320B': '\u0028\u1110\u0029',
  18853. '\u320C': '\u0028\u1111\u0029',
  18854. '\u320D': '\u0028\u1112\u0029',
  18855. '\u320E': '\u0028\u1100\u1161\u0029',
  18856. '\u320F': '\u0028\u1102\u1161\u0029',
  18857. '\u3210': '\u0028\u1103\u1161\u0029',
  18858. '\u3211': '\u0028\u1105\u1161\u0029',
  18859. '\u3212': '\u0028\u1106\u1161\u0029',
  18860. '\u3213': '\u0028\u1107\u1161\u0029',
  18861. '\u3214': '\u0028\u1109\u1161\u0029',
  18862. '\u3215': '\u0028\u110B\u1161\u0029',
  18863. '\u3216': '\u0028\u110C\u1161\u0029',
  18864. '\u3217': '\u0028\u110E\u1161\u0029',
  18865. '\u3218': '\u0028\u110F\u1161\u0029',
  18866. '\u3219': '\u0028\u1110\u1161\u0029',
  18867. '\u321A': '\u0028\u1111\u1161\u0029',
  18868. '\u321B': '\u0028\u1112\u1161\u0029',
  18869. '\u321C': '\u0028\u110C\u116E\u0029',
  18870. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  18871. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  18872. '\u3220': '\u0028\u4E00\u0029',
  18873. '\u3221': '\u0028\u4E8C\u0029',
  18874. '\u3222': '\u0028\u4E09\u0029',
  18875. '\u3223': '\u0028\u56DB\u0029',
  18876. '\u3224': '\u0028\u4E94\u0029',
  18877. '\u3225': '\u0028\u516D\u0029',
  18878. '\u3226': '\u0028\u4E03\u0029',
  18879. '\u3227': '\u0028\u516B\u0029',
  18880. '\u3228': '\u0028\u4E5D\u0029',
  18881. '\u3229': '\u0028\u5341\u0029',
  18882. '\u322A': '\u0028\u6708\u0029',
  18883. '\u322B': '\u0028\u706B\u0029',
  18884. '\u322C': '\u0028\u6C34\u0029',
  18885. '\u322D': '\u0028\u6728\u0029',
  18886. '\u322E': '\u0028\u91D1\u0029',
  18887. '\u322F': '\u0028\u571F\u0029',
  18888. '\u3230': '\u0028\u65E5\u0029',
  18889. '\u3231': '\u0028\u682A\u0029',
  18890. '\u3232': '\u0028\u6709\u0029',
  18891. '\u3233': '\u0028\u793E\u0029',
  18892. '\u3234': '\u0028\u540D\u0029',
  18893. '\u3235': '\u0028\u7279\u0029',
  18894. '\u3236': '\u0028\u8CA1\u0029',
  18895. '\u3237': '\u0028\u795D\u0029',
  18896. '\u3238': '\u0028\u52B4\u0029',
  18897. '\u3239': '\u0028\u4EE3\u0029',
  18898. '\u323A': '\u0028\u547C\u0029',
  18899. '\u323B': '\u0028\u5B66\u0029',
  18900. '\u323C': '\u0028\u76E3\u0029',
  18901. '\u323D': '\u0028\u4F01\u0029',
  18902. '\u323E': '\u0028\u8CC7\u0029',
  18903. '\u323F': '\u0028\u5354\u0029',
  18904. '\u3240': '\u0028\u796D\u0029',
  18905. '\u3241': '\u0028\u4F11\u0029',
  18906. '\u3242': '\u0028\u81EA\u0029',
  18907. '\u3243': '\u0028\u81F3\u0029',
  18908. '\u32C0': '\u0031\u6708',
  18909. '\u32C1': '\u0032\u6708',
  18910. '\u32C2': '\u0033\u6708',
  18911. '\u32C3': '\u0034\u6708',
  18912. '\u32C4': '\u0035\u6708',
  18913. '\u32C5': '\u0036\u6708',
  18914. '\u32C6': '\u0037\u6708',
  18915. '\u32C7': '\u0038\u6708',
  18916. '\u32C8': '\u0039\u6708',
  18917. '\u32C9': '\u0031\u0030\u6708',
  18918. '\u32CA': '\u0031\u0031\u6708',
  18919. '\u32CB': '\u0031\u0032\u6708',
  18920. '\u3358': '\u0030\u70B9',
  18921. '\u3359': '\u0031\u70B9',
  18922. '\u335A': '\u0032\u70B9',
  18923. '\u335B': '\u0033\u70B9',
  18924. '\u335C': '\u0034\u70B9',
  18925. '\u335D': '\u0035\u70B9',
  18926. '\u335E': '\u0036\u70B9',
  18927. '\u335F': '\u0037\u70B9',
  18928. '\u3360': '\u0038\u70B9',
  18929. '\u3361': '\u0039\u70B9',
  18930. '\u3362': '\u0031\u0030\u70B9',
  18931. '\u3363': '\u0031\u0031\u70B9',
  18932. '\u3364': '\u0031\u0032\u70B9',
  18933. '\u3365': '\u0031\u0033\u70B9',
  18934. '\u3366': '\u0031\u0034\u70B9',
  18935. '\u3367': '\u0031\u0035\u70B9',
  18936. '\u3368': '\u0031\u0036\u70B9',
  18937. '\u3369': '\u0031\u0037\u70B9',
  18938. '\u336A': '\u0031\u0038\u70B9',
  18939. '\u336B': '\u0031\u0039\u70B9',
  18940. '\u336C': '\u0032\u0030\u70B9',
  18941. '\u336D': '\u0032\u0031\u70B9',
  18942. '\u336E': '\u0032\u0032\u70B9',
  18943. '\u336F': '\u0032\u0033\u70B9',
  18944. '\u3370': '\u0032\u0034\u70B9',
  18945. '\u33E0': '\u0031\u65E5',
  18946. '\u33E1': '\u0032\u65E5',
  18947. '\u33E2': '\u0033\u65E5',
  18948. '\u33E3': '\u0034\u65E5',
  18949. '\u33E4': '\u0035\u65E5',
  18950. '\u33E5': '\u0036\u65E5',
  18951. '\u33E6': '\u0037\u65E5',
  18952. '\u33E7': '\u0038\u65E5',
  18953. '\u33E8': '\u0039\u65E5',
  18954. '\u33E9': '\u0031\u0030\u65E5',
  18955. '\u33EA': '\u0031\u0031\u65E5',
  18956. '\u33EB': '\u0031\u0032\u65E5',
  18957. '\u33EC': '\u0031\u0033\u65E5',
  18958. '\u33ED': '\u0031\u0034\u65E5',
  18959. '\u33EE': '\u0031\u0035\u65E5',
  18960. '\u33EF': '\u0031\u0036\u65E5',
  18961. '\u33F0': '\u0031\u0037\u65E5',
  18962. '\u33F1': '\u0031\u0038\u65E5',
  18963. '\u33F2': '\u0031\u0039\u65E5',
  18964. '\u33F3': '\u0032\u0030\u65E5',
  18965. '\u33F4': '\u0032\u0031\u65E5',
  18966. '\u33F5': '\u0032\u0032\u65E5',
  18967. '\u33F6': '\u0032\u0033\u65E5',
  18968. '\u33F7': '\u0032\u0034\u65E5',
  18969. '\u33F8': '\u0032\u0035\u65E5',
  18970. '\u33F9': '\u0032\u0036\u65E5',
  18971. '\u33FA': '\u0032\u0037\u65E5',
  18972. '\u33FB': '\u0032\u0038\u65E5',
  18973. '\u33FC': '\u0032\u0039\u65E5',
  18974. '\u33FD': '\u0033\u0030\u65E5',
  18975. '\u33FE': '\u0033\u0031\u65E5',
  18976. '\uFB00': '\u0066\u0066',
  18977. '\uFB01': '\u0066\u0069',
  18978. '\uFB02': '\u0066\u006C',
  18979. '\uFB03': '\u0066\u0066\u0069',
  18980. '\uFB04': '\u0066\u0066\u006C',
  18981. '\uFB05': '\u017F\u0074',
  18982. '\uFB06': '\u0073\u0074',
  18983. '\uFB13': '\u0574\u0576',
  18984. '\uFB14': '\u0574\u0565',
  18985. '\uFB15': '\u0574\u056B',
  18986. '\uFB16': '\u057E\u0576',
  18987. '\uFB17': '\u0574\u056D',
  18988. '\uFB4F': '\u05D0\u05DC',
  18989. '\uFB50': '\u0671',
  18990. '\uFB51': '\u0671',
  18991. '\uFB52': '\u067B',
  18992. '\uFB53': '\u067B',
  18993. '\uFB54': '\u067B',
  18994. '\uFB55': '\u067B',
  18995. '\uFB56': '\u067E',
  18996. '\uFB57': '\u067E',
  18997. '\uFB58': '\u067E',
  18998. '\uFB59': '\u067E',
  18999. '\uFB5A': '\u0680',
  19000. '\uFB5B': '\u0680',
  19001. '\uFB5C': '\u0680',
  19002. '\uFB5D': '\u0680',
  19003. '\uFB5E': '\u067A',
  19004. '\uFB5F': '\u067A',
  19005. '\uFB60': '\u067A',
  19006. '\uFB61': '\u067A',
  19007. '\uFB62': '\u067F',
  19008. '\uFB63': '\u067F',
  19009. '\uFB64': '\u067F',
  19010. '\uFB65': '\u067F',
  19011. '\uFB66': '\u0679',
  19012. '\uFB67': '\u0679',
  19013. '\uFB68': '\u0679',
  19014. '\uFB69': '\u0679',
  19015. '\uFB6A': '\u06A4',
  19016. '\uFB6B': '\u06A4',
  19017. '\uFB6C': '\u06A4',
  19018. '\uFB6D': '\u06A4',
  19019. '\uFB6E': '\u06A6',
  19020. '\uFB6F': '\u06A6',
  19021. '\uFB70': '\u06A6',
  19022. '\uFB71': '\u06A6',
  19023. '\uFB72': '\u0684',
  19024. '\uFB73': '\u0684',
  19025. '\uFB74': '\u0684',
  19026. '\uFB75': '\u0684',
  19027. '\uFB76': '\u0683',
  19028. '\uFB77': '\u0683',
  19029. '\uFB78': '\u0683',
  19030. '\uFB79': '\u0683',
  19031. '\uFB7A': '\u0686',
  19032. '\uFB7B': '\u0686',
  19033. '\uFB7C': '\u0686',
  19034. '\uFB7D': '\u0686',
  19035. '\uFB7E': '\u0687',
  19036. '\uFB7F': '\u0687',
  19037. '\uFB80': '\u0687',
  19038. '\uFB81': '\u0687',
  19039. '\uFB82': '\u068D',
  19040. '\uFB83': '\u068D',
  19041. '\uFB84': '\u068C',
  19042. '\uFB85': '\u068C',
  19043. '\uFB86': '\u068E',
  19044. '\uFB87': '\u068E',
  19045. '\uFB88': '\u0688',
  19046. '\uFB89': '\u0688',
  19047. '\uFB8A': '\u0698',
  19048. '\uFB8B': '\u0698',
  19049. '\uFB8C': '\u0691',
  19050. '\uFB8D': '\u0691',
  19051. '\uFB8E': '\u06A9',
  19052. '\uFB8F': '\u06A9',
  19053. '\uFB90': '\u06A9',
  19054. '\uFB91': '\u06A9',
  19055. '\uFB92': '\u06AF',
  19056. '\uFB93': '\u06AF',
  19057. '\uFB94': '\u06AF',
  19058. '\uFB95': '\u06AF',
  19059. '\uFB96': '\u06B3',
  19060. '\uFB97': '\u06B3',
  19061. '\uFB98': '\u06B3',
  19062. '\uFB99': '\u06B3',
  19063. '\uFB9A': '\u06B1',
  19064. '\uFB9B': '\u06B1',
  19065. '\uFB9C': '\u06B1',
  19066. '\uFB9D': '\u06B1',
  19067. '\uFB9E': '\u06BA',
  19068. '\uFB9F': '\u06BA',
  19069. '\uFBA0': '\u06BB',
  19070. '\uFBA1': '\u06BB',
  19071. '\uFBA2': '\u06BB',
  19072. '\uFBA3': '\u06BB',
  19073. '\uFBA4': '\u06C0',
  19074. '\uFBA5': '\u06C0',
  19075. '\uFBA6': '\u06C1',
  19076. '\uFBA7': '\u06C1',
  19077. '\uFBA8': '\u06C1',
  19078. '\uFBA9': '\u06C1',
  19079. '\uFBAA': '\u06BE',
  19080. '\uFBAB': '\u06BE',
  19081. '\uFBAC': '\u06BE',
  19082. '\uFBAD': '\u06BE',
  19083. '\uFBAE': '\u06D2',
  19084. '\uFBAF': '\u06D2',
  19085. '\uFBB0': '\u06D3',
  19086. '\uFBB1': '\u06D3',
  19087. '\uFBD3': '\u06AD',
  19088. '\uFBD4': '\u06AD',
  19089. '\uFBD5': '\u06AD',
  19090. '\uFBD6': '\u06AD',
  19091. '\uFBD7': '\u06C7',
  19092. '\uFBD8': '\u06C7',
  19093. '\uFBD9': '\u06C6',
  19094. '\uFBDA': '\u06C6',
  19095. '\uFBDB': '\u06C8',
  19096. '\uFBDC': '\u06C8',
  19097. '\uFBDD': '\u0677',
  19098. '\uFBDE': '\u06CB',
  19099. '\uFBDF': '\u06CB',
  19100. '\uFBE0': '\u06C5',
  19101. '\uFBE1': '\u06C5',
  19102. '\uFBE2': '\u06C9',
  19103. '\uFBE3': '\u06C9',
  19104. '\uFBE4': '\u06D0',
  19105. '\uFBE5': '\u06D0',
  19106. '\uFBE6': '\u06D0',
  19107. '\uFBE7': '\u06D0',
  19108. '\uFBE8': '\u0649',
  19109. '\uFBE9': '\u0649',
  19110. '\uFBEA': '\u0626\u0627',
  19111. '\uFBEB': '\u0626\u0627',
  19112. '\uFBEC': '\u0626\u06D5',
  19113. '\uFBED': '\u0626\u06D5',
  19114. '\uFBEE': '\u0626\u0648',
  19115. '\uFBEF': '\u0626\u0648',
  19116. '\uFBF0': '\u0626\u06C7',
  19117. '\uFBF1': '\u0626\u06C7',
  19118. '\uFBF2': '\u0626\u06C6',
  19119. '\uFBF3': '\u0626\u06C6',
  19120. '\uFBF4': '\u0626\u06C8',
  19121. '\uFBF5': '\u0626\u06C8',
  19122. '\uFBF6': '\u0626\u06D0',
  19123. '\uFBF7': '\u0626\u06D0',
  19124. '\uFBF8': '\u0626\u06D0',
  19125. '\uFBF9': '\u0626\u0649',
  19126. '\uFBFA': '\u0626\u0649',
  19127. '\uFBFB': '\u0626\u0649',
  19128. '\uFBFC': '\u06CC',
  19129. '\uFBFD': '\u06CC',
  19130. '\uFBFE': '\u06CC',
  19131. '\uFBFF': '\u06CC',
  19132. '\uFC00': '\u0626\u062C',
  19133. '\uFC01': '\u0626\u062D',
  19134. '\uFC02': '\u0626\u0645',
  19135. '\uFC03': '\u0626\u0649',
  19136. '\uFC04': '\u0626\u064A',
  19137. '\uFC05': '\u0628\u062C',
  19138. '\uFC06': '\u0628\u062D',
  19139. '\uFC07': '\u0628\u062E',
  19140. '\uFC08': '\u0628\u0645',
  19141. '\uFC09': '\u0628\u0649',
  19142. '\uFC0A': '\u0628\u064A',
  19143. '\uFC0B': '\u062A\u062C',
  19144. '\uFC0C': '\u062A\u062D',
  19145. '\uFC0D': '\u062A\u062E',
  19146. '\uFC0E': '\u062A\u0645',
  19147. '\uFC0F': '\u062A\u0649',
  19148. '\uFC10': '\u062A\u064A',
  19149. '\uFC11': '\u062B\u062C',
  19150. '\uFC12': '\u062B\u0645',
  19151. '\uFC13': '\u062B\u0649',
  19152. '\uFC14': '\u062B\u064A',
  19153. '\uFC15': '\u062C\u062D',
  19154. '\uFC16': '\u062C\u0645',
  19155. '\uFC17': '\u062D\u062C',
  19156. '\uFC18': '\u062D\u0645',
  19157. '\uFC19': '\u062E\u062C',
  19158. '\uFC1A': '\u062E\u062D',
  19159. '\uFC1B': '\u062E\u0645',
  19160. '\uFC1C': '\u0633\u062C',
  19161. '\uFC1D': '\u0633\u062D',
  19162. '\uFC1E': '\u0633\u062E',
  19163. '\uFC1F': '\u0633\u0645',
  19164. '\uFC20': '\u0635\u062D',
  19165. '\uFC21': '\u0635\u0645',
  19166. '\uFC22': '\u0636\u062C',
  19167. '\uFC23': '\u0636\u062D',
  19168. '\uFC24': '\u0636\u062E',
  19169. '\uFC25': '\u0636\u0645',
  19170. '\uFC26': '\u0637\u062D',
  19171. '\uFC27': '\u0637\u0645',
  19172. '\uFC28': '\u0638\u0645',
  19173. '\uFC29': '\u0639\u062C',
  19174. '\uFC2A': '\u0639\u0645',
  19175. '\uFC2B': '\u063A\u062C',
  19176. '\uFC2C': '\u063A\u0645',
  19177. '\uFC2D': '\u0641\u062C',
  19178. '\uFC2E': '\u0641\u062D',
  19179. '\uFC2F': '\u0641\u062E',
  19180. '\uFC30': '\u0641\u0645',
  19181. '\uFC31': '\u0641\u0649',
  19182. '\uFC32': '\u0641\u064A',
  19183. '\uFC33': '\u0642\u062D',
  19184. '\uFC34': '\u0642\u0645',
  19185. '\uFC35': '\u0642\u0649',
  19186. '\uFC36': '\u0642\u064A',
  19187. '\uFC37': '\u0643\u0627',
  19188. '\uFC38': '\u0643\u062C',
  19189. '\uFC39': '\u0643\u062D',
  19190. '\uFC3A': '\u0643\u062E',
  19191. '\uFC3B': '\u0643\u0644',
  19192. '\uFC3C': '\u0643\u0645',
  19193. '\uFC3D': '\u0643\u0649',
  19194. '\uFC3E': '\u0643\u064A',
  19195. '\uFC3F': '\u0644\u062C',
  19196. '\uFC40': '\u0644\u062D',
  19197. '\uFC41': '\u0644\u062E',
  19198. '\uFC42': '\u0644\u0645',
  19199. '\uFC43': '\u0644\u0649',
  19200. '\uFC44': '\u0644\u064A',
  19201. '\uFC45': '\u0645\u062C',
  19202. '\uFC46': '\u0645\u062D',
  19203. '\uFC47': '\u0645\u062E',
  19204. '\uFC48': '\u0645\u0645',
  19205. '\uFC49': '\u0645\u0649',
  19206. '\uFC4A': '\u0645\u064A',
  19207. '\uFC4B': '\u0646\u062C',
  19208. '\uFC4C': '\u0646\u062D',
  19209. '\uFC4D': '\u0646\u062E',
  19210. '\uFC4E': '\u0646\u0645',
  19211. '\uFC4F': '\u0646\u0649',
  19212. '\uFC50': '\u0646\u064A',
  19213. '\uFC51': '\u0647\u062C',
  19214. '\uFC52': '\u0647\u0645',
  19215. '\uFC53': '\u0647\u0649',
  19216. '\uFC54': '\u0647\u064A',
  19217. '\uFC55': '\u064A\u062C',
  19218. '\uFC56': '\u064A\u062D',
  19219. '\uFC57': '\u064A\u062E',
  19220. '\uFC58': '\u064A\u0645',
  19221. '\uFC59': '\u064A\u0649',
  19222. '\uFC5A': '\u064A\u064A',
  19223. '\uFC5B': '\u0630\u0670',
  19224. '\uFC5C': '\u0631\u0670',
  19225. '\uFC5D': '\u0649\u0670',
  19226. '\uFC5E': '\u0020\u064C\u0651',
  19227. '\uFC5F': '\u0020\u064D\u0651',
  19228. '\uFC60': '\u0020\u064E\u0651',
  19229. '\uFC61': '\u0020\u064F\u0651',
  19230. '\uFC62': '\u0020\u0650\u0651',
  19231. '\uFC63': '\u0020\u0651\u0670',
  19232. '\uFC64': '\u0626\u0631',
  19233. '\uFC65': '\u0626\u0632',
  19234. '\uFC66': '\u0626\u0645',
  19235. '\uFC67': '\u0626\u0646',
  19236. '\uFC68': '\u0626\u0649',
  19237. '\uFC69': '\u0626\u064A',
  19238. '\uFC6A': '\u0628\u0631',
  19239. '\uFC6B': '\u0628\u0632',
  19240. '\uFC6C': '\u0628\u0645',
  19241. '\uFC6D': '\u0628\u0646',
  19242. '\uFC6E': '\u0628\u0649',
  19243. '\uFC6F': '\u0628\u064A',
  19244. '\uFC70': '\u062A\u0631',
  19245. '\uFC71': '\u062A\u0632',
  19246. '\uFC72': '\u062A\u0645',
  19247. '\uFC73': '\u062A\u0646',
  19248. '\uFC74': '\u062A\u0649',
  19249. '\uFC75': '\u062A\u064A',
  19250. '\uFC76': '\u062B\u0631',
  19251. '\uFC77': '\u062B\u0632',
  19252. '\uFC78': '\u062B\u0645',
  19253. '\uFC79': '\u062B\u0646',
  19254. '\uFC7A': '\u062B\u0649',
  19255. '\uFC7B': '\u062B\u064A',
  19256. '\uFC7C': '\u0641\u0649',
  19257. '\uFC7D': '\u0641\u064A',
  19258. '\uFC7E': '\u0642\u0649',
  19259. '\uFC7F': '\u0642\u064A',
  19260. '\uFC80': '\u0643\u0627',
  19261. '\uFC81': '\u0643\u0644',
  19262. '\uFC82': '\u0643\u0645',
  19263. '\uFC83': '\u0643\u0649',
  19264. '\uFC84': '\u0643\u064A',
  19265. '\uFC85': '\u0644\u0645',
  19266. '\uFC86': '\u0644\u0649',
  19267. '\uFC87': '\u0644\u064A',
  19268. '\uFC88': '\u0645\u0627',
  19269. '\uFC89': '\u0645\u0645',
  19270. '\uFC8A': '\u0646\u0631',
  19271. '\uFC8B': '\u0646\u0632',
  19272. '\uFC8C': '\u0646\u0645',
  19273. '\uFC8D': '\u0646\u0646',
  19274. '\uFC8E': '\u0646\u0649',
  19275. '\uFC8F': '\u0646\u064A',
  19276. '\uFC90': '\u0649\u0670',
  19277. '\uFC91': '\u064A\u0631',
  19278. '\uFC92': '\u064A\u0632',
  19279. '\uFC93': '\u064A\u0645',
  19280. '\uFC94': '\u064A\u0646',
  19281. '\uFC95': '\u064A\u0649',
  19282. '\uFC96': '\u064A\u064A',
  19283. '\uFC97': '\u0626\u062C',
  19284. '\uFC98': '\u0626\u062D',
  19285. '\uFC99': '\u0626\u062E',
  19286. '\uFC9A': '\u0626\u0645',
  19287. '\uFC9B': '\u0626\u0647',
  19288. '\uFC9C': '\u0628\u062C',
  19289. '\uFC9D': '\u0628\u062D',
  19290. '\uFC9E': '\u0628\u062E',
  19291. '\uFC9F': '\u0628\u0645',
  19292. '\uFCA0': '\u0628\u0647',
  19293. '\uFCA1': '\u062A\u062C',
  19294. '\uFCA2': '\u062A\u062D',
  19295. '\uFCA3': '\u062A\u062E',
  19296. '\uFCA4': '\u062A\u0645',
  19297. '\uFCA5': '\u062A\u0647',
  19298. '\uFCA6': '\u062B\u0645',
  19299. '\uFCA7': '\u062C\u062D',
  19300. '\uFCA8': '\u062C\u0645',
  19301. '\uFCA9': '\u062D\u062C',
  19302. '\uFCAA': '\u062D\u0645',
  19303. '\uFCAB': '\u062E\u062C',
  19304. '\uFCAC': '\u062E\u0645',
  19305. '\uFCAD': '\u0633\u062C',
  19306. '\uFCAE': '\u0633\u062D',
  19307. '\uFCAF': '\u0633\u062E',
  19308. '\uFCB0': '\u0633\u0645',
  19309. '\uFCB1': '\u0635\u062D',
  19310. '\uFCB2': '\u0635\u062E',
  19311. '\uFCB3': '\u0635\u0645',
  19312. '\uFCB4': '\u0636\u062C',
  19313. '\uFCB5': '\u0636\u062D',
  19314. '\uFCB6': '\u0636\u062E',
  19315. '\uFCB7': '\u0636\u0645',
  19316. '\uFCB8': '\u0637\u062D',
  19317. '\uFCB9': '\u0638\u0645',
  19318. '\uFCBA': '\u0639\u062C',
  19319. '\uFCBB': '\u0639\u0645',
  19320. '\uFCBC': '\u063A\u062C',
  19321. '\uFCBD': '\u063A\u0645',
  19322. '\uFCBE': '\u0641\u062C',
  19323. '\uFCBF': '\u0641\u062D',
  19324. '\uFCC0': '\u0641\u062E',
  19325. '\uFCC1': '\u0641\u0645',
  19326. '\uFCC2': '\u0642\u062D',
  19327. '\uFCC3': '\u0642\u0645',
  19328. '\uFCC4': '\u0643\u062C',
  19329. '\uFCC5': '\u0643\u062D',
  19330. '\uFCC6': '\u0643\u062E',
  19331. '\uFCC7': '\u0643\u0644',
  19332. '\uFCC8': '\u0643\u0645',
  19333. '\uFCC9': '\u0644\u062C',
  19334. '\uFCCA': '\u0644\u062D',
  19335. '\uFCCB': '\u0644\u062E',
  19336. '\uFCCC': '\u0644\u0645',
  19337. '\uFCCD': '\u0644\u0647',
  19338. '\uFCCE': '\u0645\u062C',
  19339. '\uFCCF': '\u0645\u062D',
  19340. '\uFCD0': '\u0645\u062E',
  19341. '\uFCD1': '\u0645\u0645',
  19342. '\uFCD2': '\u0646\u062C',
  19343. '\uFCD3': '\u0646\u062D',
  19344. '\uFCD4': '\u0646\u062E',
  19345. '\uFCD5': '\u0646\u0645',
  19346. '\uFCD6': '\u0646\u0647',
  19347. '\uFCD7': '\u0647\u062C',
  19348. '\uFCD8': '\u0647\u0645',
  19349. '\uFCD9': '\u0647\u0670',
  19350. '\uFCDA': '\u064A\u062C',
  19351. '\uFCDB': '\u064A\u062D',
  19352. '\uFCDC': '\u064A\u062E',
  19353. '\uFCDD': '\u064A\u0645',
  19354. '\uFCDE': '\u064A\u0647',
  19355. '\uFCDF': '\u0626\u0645',
  19356. '\uFCE0': '\u0626\u0647',
  19357. '\uFCE1': '\u0628\u0645',
  19358. '\uFCE2': '\u0628\u0647',
  19359. '\uFCE3': '\u062A\u0645',
  19360. '\uFCE4': '\u062A\u0647',
  19361. '\uFCE5': '\u062B\u0645',
  19362. '\uFCE6': '\u062B\u0647',
  19363. '\uFCE7': '\u0633\u0645',
  19364. '\uFCE8': '\u0633\u0647',
  19365. '\uFCE9': '\u0634\u0645',
  19366. '\uFCEA': '\u0634\u0647',
  19367. '\uFCEB': '\u0643\u0644',
  19368. '\uFCEC': '\u0643\u0645',
  19369. '\uFCED': '\u0644\u0645',
  19370. '\uFCEE': '\u0646\u0645',
  19371. '\uFCEF': '\u0646\u0647',
  19372. '\uFCF0': '\u064A\u0645',
  19373. '\uFCF1': '\u064A\u0647',
  19374. '\uFCF2': '\u0640\u064E\u0651',
  19375. '\uFCF3': '\u0640\u064F\u0651',
  19376. '\uFCF4': '\u0640\u0650\u0651',
  19377. '\uFCF5': '\u0637\u0649',
  19378. '\uFCF6': '\u0637\u064A',
  19379. '\uFCF7': '\u0639\u0649',
  19380. '\uFCF8': '\u0639\u064A',
  19381. '\uFCF9': '\u063A\u0649',
  19382. '\uFCFA': '\u063A\u064A',
  19383. '\uFCFB': '\u0633\u0649',
  19384. '\uFCFC': '\u0633\u064A',
  19385. '\uFCFD': '\u0634\u0649',
  19386. '\uFCFE': '\u0634\u064A',
  19387. '\uFCFF': '\u062D\u0649',
  19388. '\uFD00': '\u062D\u064A',
  19389. '\uFD01': '\u062C\u0649',
  19390. '\uFD02': '\u062C\u064A',
  19391. '\uFD03': '\u062E\u0649',
  19392. '\uFD04': '\u062E\u064A',
  19393. '\uFD05': '\u0635\u0649',
  19394. '\uFD06': '\u0635\u064A',
  19395. '\uFD07': '\u0636\u0649',
  19396. '\uFD08': '\u0636\u064A',
  19397. '\uFD09': '\u0634\u062C',
  19398. '\uFD0A': '\u0634\u062D',
  19399. '\uFD0B': '\u0634\u062E',
  19400. '\uFD0C': '\u0634\u0645',
  19401. '\uFD0D': '\u0634\u0631',
  19402. '\uFD0E': '\u0633\u0631',
  19403. '\uFD0F': '\u0635\u0631',
  19404. '\uFD10': '\u0636\u0631',
  19405. '\uFD11': '\u0637\u0649',
  19406. '\uFD12': '\u0637\u064A',
  19407. '\uFD13': '\u0639\u0649',
  19408. '\uFD14': '\u0639\u064A',
  19409. '\uFD15': '\u063A\u0649',
  19410. '\uFD16': '\u063A\u064A',
  19411. '\uFD17': '\u0633\u0649',
  19412. '\uFD18': '\u0633\u064A',
  19413. '\uFD19': '\u0634\u0649',
  19414. '\uFD1A': '\u0634\u064A',
  19415. '\uFD1B': '\u062D\u0649',
  19416. '\uFD1C': '\u062D\u064A',
  19417. '\uFD1D': '\u062C\u0649',
  19418. '\uFD1E': '\u062C\u064A',
  19419. '\uFD1F': '\u062E\u0649',
  19420. '\uFD20': '\u062E\u064A',
  19421. '\uFD21': '\u0635\u0649',
  19422. '\uFD22': '\u0635\u064A',
  19423. '\uFD23': '\u0636\u0649',
  19424. '\uFD24': '\u0636\u064A',
  19425. '\uFD25': '\u0634\u062C',
  19426. '\uFD26': '\u0634\u062D',
  19427. '\uFD27': '\u0634\u062E',
  19428. '\uFD28': '\u0634\u0645',
  19429. '\uFD29': '\u0634\u0631',
  19430. '\uFD2A': '\u0633\u0631',
  19431. '\uFD2B': '\u0635\u0631',
  19432. '\uFD2C': '\u0636\u0631',
  19433. '\uFD2D': '\u0634\u062C',
  19434. '\uFD2E': '\u0634\u062D',
  19435. '\uFD2F': '\u0634\u062E',
  19436. '\uFD30': '\u0634\u0645',
  19437. '\uFD31': '\u0633\u0647',
  19438. '\uFD32': '\u0634\u0647',
  19439. '\uFD33': '\u0637\u0645',
  19440. '\uFD34': '\u0633\u062C',
  19441. '\uFD35': '\u0633\u062D',
  19442. '\uFD36': '\u0633\u062E',
  19443. '\uFD37': '\u0634\u062C',
  19444. '\uFD38': '\u0634\u062D',
  19445. '\uFD39': '\u0634\u062E',
  19446. '\uFD3A': '\u0637\u0645',
  19447. '\uFD3B': '\u0638\u0645',
  19448. '\uFD3C': '\u0627\u064B',
  19449. '\uFD3D': '\u0627\u064B',
  19450. '\uFD50': '\u062A\u062C\u0645',
  19451. '\uFD51': '\u062A\u062D\u062C',
  19452. '\uFD52': '\u062A\u062D\u062C',
  19453. '\uFD53': '\u062A\u062D\u0645',
  19454. '\uFD54': '\u062A\u062E\u0645',
  19455. '\uFD55': '\u062A\u0645\u062C',
  19456. '\uFD56': '\u062A\u0645\u062D',
  19457. '\uFD57': '\u062A\u0645\u062E',
  19458. '\uFD58': '\u062C\u0645\u062D',
  19459. '\uFD59': '\u062C\u0645\u062D',
  19460. '\uFD5A': '\u062D\u0645\u064A',
  19461. '\uFD5B': '\u062D\u0645\u0649',
  19462. '\uFD5C': '\u0633\u062D\u062C',
  19463. '\uFD5D': '\u0633\u062C\u062D',
  19464. '\uFD5E': '\u0633\u062C\u0649',
  19465. '\uFD5F': '\u0633\u0645\u062D',
  19466. '\uFD60': '\u0633\u0645\u062D',
  19467. '\uFD61': '\u0633\u0645\u062C',
  19468. '\uFD62': '\u0633\u0645\u0645',
  19469. '\uFD63': '\u0633\u0645\u0645',
  19470. '\uFD64': '\u0635\u062D\u062D',
  19471. '\uFD65': '\u0635\u062D\u062D',
  19472. '\uFD66': '\u0635\u0645\u0645',
  19473. '\uFD67': '\u0634\u062D\u0645',
  19474. '\uFD68': '\u0634\u062D\u0645',
  19475. '\uFD69': '\u0634\u062C\u064A',
  19476. '\uFD6A': '\u0634\u0645\u062E',
  19477. '\uFD6B': '\u0634\u0645\u062E',
  19478. '\uFD6C': '\u0634\u0645\u0645',
  19479. '\uFD6D': '\u0634\u0645\u0645',
  19480. '\uFD6E': '\u0636\u062D\u0649',
  19481. '\uFD6F': '\u0636\u062E\u0645',
  19482. '\uFD70': '\u0636\u062E\u0645',
  19483. '\uFD71': '\u0637\u0645\u062D',
  19484. '\uFD72': '\u0637\u0645\u062D',
  19485. '\uFD73': '\u0637\u0645\u0645',
  19486. '\uFD74': '\u0637\u0645\u064A',
  19487. '\uFD75': '\u0639\u062C\u0645',
  19488. '\uFD76': '\u0639\u0645\u0645',
  19489. '\uFD77': '\u0639\u0645\u0645',
  19490. '\uFD78': '\u0639\u0645\u0649',
  19491. '\uFD79': '\u063A\u0645\u0645',
  19492. '\uFD7A': '\u063A\u0645\u064A',
  19493. '\uFD7B': '\u063A\u0645\u0649',
  19494. '\uFD7C': '\u0641\u062E\u0645',
  19495. '\uFD7D': '\u0641\u062E\u0645',
  19496. '\uFD7E': '\u0642\u0645\u062D',
  19497. '\uFD7F': '\u0642\u0645\u0645',
  19498. '\uFD80': '\u0644\u062D\u0645',
  19499. '\uFD81': '\u0644\u062D\u064A',
  19500. '\uFD82': '\u0644\u062D\u0649',
  19501. '\uFD83': '\u0644\u062C\u062C',
  19502. '\uFD84': '\u0644\u062C\u062C',
  19503. '\uFD85': '\u0644\u062E\u0645',
  19504. '\uFD86': '\u0644\u062E\u0645',
  19505. '\uFD87': '\u0644\u0645\u062D',
  19506. '\uFD88': '\u0644\u0645\u062D',
  19507. '\uFD89': '\u0645\u062D\u062C',
  19508. '\uFD8A': '\u0645\u062D\u0645',
  19509. '\uFD8B': '\u0645\u062D\u064A',
  19510. '\uFD8C': '\u0645\u062C\u062D',
  19511. '\uFD8D': '\u0645\u062C\u0645',
  19512. '\uFD8E': '\u0645\u062E\u062C',
  19513. '\uFD8F': '\u0645\u062E\u0645',
  19514. '\uFD92': '\u0645\u062C\u062E',
  19515. '\uFD93': '\u0647\u0645\u062C',
  19516. '\uFD94': '\u0647\u0645\u0645',
  19517. '\uFD95': '\u0646\u062D\u0645',
  19518. '\uFD96': '\u0646\u062D\u0649',
  19519. '\uFD97': '\u0646\u062C\u0645',
  19520. '\uFD98': '\u0646\u062C\u0645',
  19521. '\uFD99': '\u0646\u062C\u0649',
  19522. '\uFD9A': '\u0646\u0645\u064A',
  19523. '\uFD9B': '\u0646\u0645\u0649',
  19524. '\uFD9C': '\u064A\u0645\u0645',
  19525. '\uFD9D': '\u064A\u0645\u0645',
  19526. '\uFD9E': '\u0628\u062E\u064A',
  19527. '\uFD9F': '\u062A\u062C\u064A',
  19528. '\uFDA0': '\u062A\u062C\u0649',
  19529. '\uFDA1': '\u062A\u062E\u064A',
  19530. '\uFDA2': '\u062A\u062E\u0649',
  19531. '\uFDA3': '\u062A\u0645\u064A',
  19532. '\uFDA4': '\u062A\u0645\u0649',
  19533. '\uFDA5': '\u062C\u0645\u064A',
  19534. '\uFDA6': '\u062C\u062D\u0649',
  19535. '\uFDA7': '\u062C\u0645\u0649',
  19536. '\uFDA8': '\u0633\u062E\u0649',
  19537. '\uFDA9': '\u0635\u062D\u064A',
  19538. '\uFDAA': '\u0634\u062D\u064A',
  19539. '\uFDAB': '\u0636\u062D\u064A',
  19540. '\uFDAC': '\u0644\u062C\u064A',
  19541. '\uFDAD': '\u0644\u0645\u064A',
  19542. '\uFDAE': '\u064A\u062D\u064A',
  19543. '\uFDAF': '\u064A\u062C\u064A',
  19544. '\uFDB0': '\u064A\u0645\u064A',
  19545. '\uFDB1': '\u0645\u0645\u064A',
  19546. '\uFDB2': '\u0642\u0645\u064A',
  19547. '\uFDB3': '\u0646\u062D\u064A',
  19548. '\uFDB4': '\u0642\u0645\u062D',
  19549. '\uFDB5': '\u0644\u062D\u0645',
  19550. '\uFDB6': '\u0639\u0645\u064A',
  19551. '\uFDB7': '\u0643\u0645\u064A',
  19552. '\uFDB8': '\u0646\u062C\u062D',
  19553. '\uFDB9': '\u0645\u062E\u064A',
  19554. '\uFDBA': '\u0644\u062C\u0645',
  19555. '\uFDBB': '\u0643\u0645\u0645',
  19556. '\uFDBC': '\u0644\u062C\u0645',
  19557. '\uFDBD': '\u0646\u062C\u062D',
  19558. '\uFDBE': '\u062C\u062D\u064A',
  19559. '\uFDBF': '\u062D\u062C\u064A',
  19560. '\uFDC0': '\u0645\u062C\u064A',
  19561. '\uFDC1': '\u0641\u0645\u064A',
  19562. '\uFDC2': '\u0628\u062D\u064A',
  19563. '\uFDC3': '\u0643\u0645\u0645',
  19564. '\uFDC4': '\u0639\u062C\u0645',
  19565. '\uFDC5': '\u0635\u0645\u0645',
  19566. '\uFDC6': '\u0633\u062E\u064A',
  19567. '\uFDC7': '\u0646\u062C\u064A',
  19568. '\uFE49': '\u203E',
  19569. '\uFE4A': '\u203E',
  19570. '\uFE4B': '\u203E',
  19571. '\uFE4C': '\u203E',
  19572. '\uFE4D': '\u005F',
  19573. '\uFE4E': '\u005F',
  19574. '\uFE4F': '\u005F',
  19575. '\uFE80': '\u0621',
  19576. '\uFE81': '\u0622',
  19577. '\uFE82': '\u0622',
  19578. '\uFE83': '\u0623',
  19579. '\uFE84': '\u0623',
  19580. '\uFE85': '\u0624',
  19581. '\uFE86': '\u0624',
  19582. '\uFE87': '\u0625',
  19583. '\uFE88': '\u0625',
  19584. '\uFE89': '\u0626',
  19585. '\uFE8A': '\u0626',
  19586. '\uFE8B': '\u0626',
  19587. '\uFE8C': '\u0626',
  19588. '\uFE8D': '\u0627',
  19589. '\uFE8E': '\u0627',
  19590. '\uFE8F': '\u0628',
  19591. '\uFE90': '\u0628',
  19592. '\uFE91': '\u0628',
  19593. '\uFE92': '\u0628',
  19594. '\uFE93': '\u0629',
  19595. '\uFE94': '\u0629',
  19596. '\uFE95': '\u062A',
  19597. '\uFE96': '\u062A',
  19598. '\uFE97': '\u062A',
  19599. '\uFE98': '\u062A',
  19600. '\uFE99': '\u062B',
  19601. '\uFE9A': '\u062B',
  19602. '\uFE9B': '\u062B',
  19603. '\uFE9C': '\u062B',
  19604. '\uFE9D': '\u062C',
  19605. '\uFE9E': '\u062C',
  19606. '\uFE9F': '\u062C',
  19607. '\uFEA0': '\u062C',
  19608. '\uFEA1': '\u062D',
  19609. '\uFEA2': '\u062D',
  19610. '\uFEA3': '\u062D',
  19611. '\uFEA4': '\u062D',
  19612. '\uFEA5': '\u062E',
  19613. '\uFEA6': '\u062E',
  19614. '\uFEA7': '\u062E',
  19615. '\uFEA8': '\u062E',
  19616. '\uFEA9': '\u062F',
  19617. '\uFEAA': '\u062F',
  19618. '\uFEAB': '\u0630',
  19619. '\uFEAC': '\u0630',
  19620. '\uFEAD': '\u0631',
  19621. '\uFEAE': '\u0631',
  19622. '\uFEAF': '\u0632',
  19623. '\uFEB0': '\u0632',
  19624. '\uFEB1': '\u0633',
  19625. '\uFEB2': '\u0633',
  19626. '\uFEB3': '\u0633',
  19627. '\uFEB4': '\u0633',
  19628. '\uFEB5': '\u0634',
  19629. '\uFEB6': '\u0634',
  19630. '\uFEB7': '\u0634',
  19631. '\uFEB8': '\u0634',
  19632. '\uFEB9': '\u0635',
  19633. '\uFEBA': '\u0635',
  19634. '\uFEBB': '\u0635',
  19635. '\uFEBC': '\u0635',
  19636. '\uFEBD': '\u0636',
  19637. '\uFEBE': '\u0636',
  19638. '\uFEBF': '\u0636',
  19639. '\uFEC0': '\u0636',
  19640. '\uFEC1': '\u0637',
  19641. '\uFEC2': '\u0637',
  19642. '\uFEC3': '\u0637',
  19643. '\uFEC4': '\u0637',
  19644. '\uFEC5': '\u0638',
  19645. '\uFEC6': '\u0638',
  19646. '\uFEC7': '\u0638',
  19647. '\uFEC8': '\u0638',
  19648. '\uFEC9': '\u0639',
  19649. '\uFECA': '\u0639',
  19650. '\uFECB': '\u0639',
  19651. '\uFECC': '\u0639',
  19652. '\uFECD': '\u063A',
  19653. '\uFECE': '\u063A',
  19654. '\uFECF': '\u063A',
  19655. '\uFED0': '\u063A',
  19656. '\uFED1': '\u0641',
  19657. '\uFED2': '\u0641',
  19658. '\uFED3': '\u0641',
  19659. '\uFED4': '\u0641',
  19660. '\uFED5': '\u0642',
  19661. '\uFED6': '\u0642',
  19662. '\uFED7': '\u0642',
  19663. '\uFED8': '\u0642',
  19664. '\uFED9': '\u0643',
  19665. '\uFEDA': '\u0643',
  19666. '\uFEDB': '\u0643',
  19667. '\uFEDC': '\u0643',
  19668. '\uFEDD': '\u0644',
  19669. '\uFEDE': '\u0644',
  19670. '\uFEDF': '\u0644',
  19671. '\uFEE0': '\u0644',
  19672. '\uFEE1': '\u0645',
  19673. '\uFEE2': '\u0645',
  19674. '\uFEE3': '\u0645',
  19675. '\uFEE4': '\u0645',
  19676. '\uFEE5': '\u0646',
  19677. '\uFEE6': '\u0646',
  19678. '\uFEE7': '\u0646',
  19679. '\uFEE8': '\u0646',
  19680. '\uFEE9': '\u0647',
  19681. '\uFEEA': '\u0647',
  19682. '\uFEEB': '\u0647',
  19683. '\uFEEC': '\u0647',
  19684. '\uFEED': '\u0648',
  19685. '\uFEEE': '\u0648',
  19686. '\uFEEF': '\u0649',
  19687. '\uFEF0': '\u0649',
  19688. '\uFEF1': '\u064A',
  19689. '\uFEF2': '\u064A',
  19690. '\uFEF3': '\u064A',
  19691. '\uFEF4': '\u064A',
  19692. '\uFEF5': '\u0644\u0622',
  19693. '\uFEF6': '\u0644\u0622',
  19694. '\uFEF7': '\u0644\u0623',
  19695. '\uFEF8': '\u0644\u0623',
  19696. '\uFEF9': '\u0644\u0625',
  19697. '\uFEFA': '\u0644\u0625',
  19698. '\uFEFB': '\u0644\u0627',
  19699. '\uFEFC': '\u0644\u0627'
  19700. };
  19701. function reverseIfRtl(chars) {
  19702. var charsLength = chars.length;
  19703. //reverse an arabic ligature
  19704. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) {
  19705. return chars;
  19706. }
  19707. var s = '';
  19708. for (var ii = charsLength - 1; ii >= 0; ii--) {
  19709. s += chars[ii];
  19710. }
  19711. return s;
  19712. }
  19713. function adjustWidths(properties) {
  19714. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  19715. return;
  19716. }
  19717. // adjusting width to fontMatrix scale
  19718. var scale = 0.001 / properties.fontMatrix[0];
  19719. var glyphsWidths = properties.widths;
  19720. for (var glyph in glyphsWidths) {
  19721. glyphsWidths[glyph] *= scale;
  19722. }
  19723. properties.defaultWidth *= scale;
  19724. }
  19725. var Glyph = (function GlyphClosure() {
  19726. function Glyph(fontChar, unicode, accent, width, vmetric, operatorListId) {
  19727. this.fontChar = fontChar;
  19728. this.unicode = unicode;
  19729. this.accent = accent;
  19730. this.width = width;
  19731. this.vmetric = vmetric;
  19732. this.operatorListId = operatorListId;
  19733. }
  19734. Glyph.prototype.matchesForCache =
  19735. function(fontChar, unicode, accent, width, vmetric, operatorListId) {
  19736. return this.fontChar === fontChar &&
  19737. this.unicode === unicode &&
  19738. this.accent === accent &&
  19739. this.width === width &&
  19740. this.vmetric === vmetric &&
  19741. this.operatorListId === operatorListId;
  19742. };
  19743. return Glyph;
  19744. })();
  19745. /**
  19746. * 'Font' is the class the outside world should use, it encapsulate all the font
  19747. * decoding logics whatever type it is (assuming the font type is supported).
  19748. *
  19749. * For example to read a Type1 font and to attach it to the document:
  19750. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  19751. * type1Font.bind();
  19752. */
  19753. var Font = (function FontClosure() {
  19754. function Font(name, file, properties) {
  19755. var charCode;
  19756. this.name = name;
  19757. this.loadedName = properties.loadedName;
  19758. this.isType3Font = properties.isType3Font;
  19759. this.sizes = [];
  19760. this.glyphCache = {};
  19761. var names = name.split('+');
  19762. names = names.length > 1 ? names[1] : names[0];
  19763. names = names.split(/[-,_]/g)[0];
  19764. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  19765. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  19766. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  19767. var type = properties.type;
  19768. this.type = type;
  19769. this.fallbackName = (this.isMonospace ? 'monospace' :
  19770. (this.isSerifFont ? 'serif' : 'sans-serif'));
  19771. this.differences = properties.differences;
  19772. this.widths = properties.widths;
  19773. this.defaultWidth = properties.defaultWidth;
  19774. this.composite = properties.composite;
  19775. this.wideChars = properties.wideChars;
  19776. this.cMap = properties.cMap;
  19777. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  19778. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  19779. this.fontMatrix = properties.fontMatrix;
  19780. var unicode = this.buildToUnicode(properties);
  19781. this.toUnicode = properties.toUnicode = unicode.toUnicode;
  19782. this.isIdentityUnicode = properties.isIdentityUnicode = unicode.isIdentity;
  19783. this.toFontChar = [];
  19784. if (properties.type == 'Type3') {
  19785. for (charCode = 0; charCode < 256; charCode++) {
  19786. this.toFontChar[charCode] = (this.differences[charCode] ||
  19787. properties.defaultEncoding[charCode]);
  19788. }
  19789. return;
  19790. }
  19791. this.cidEncoding = properties.cidEncoding;
  19792. this.vertical = properties.vertical;
  19793. if (this.vertical) {
  19794. this.vmetrics = properties.vmetrics;
  19795. this.defaultVMetrics = properties.defaultVMetrics;
  19796. }
  19797. if (!file || file.isEmpty) {
  19798. if (file) {
  19799. // Some bad PDF generators will include empty font files,
  19800. // attempting to recover by assuming that no file exists.
  19801. warn('Font file is empty in "' + name + '" (' + this.loadedName + ')');
  19802. }
  19803. this.missingFile = true;
  19804. // The file data is not specified. Trying to fix the font name
  19805. // to be used with the canvas.font.
  19806. var fontName = name.replace(/[,_]/g, '-');
  19807. var isStandardFont = fontName in stdFontMap;
  19808. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  19809. this.bold = (fontName.search(/bold/gi) != -1);
  19810. this.italic = ((fontName.search(/oblique/gi) != -1) ||
  19811. (fontName.search(/italic/gi) != -1));
  19812. // Use 'name' instead of 'fontName' here because the original
  19813. // name ArialBlack for example will be replaced by Helvetica.
  19814. this.black = (name.search(/Black/g) != -1);
  19815. // if at least one width is present, remeasure all chars when exists
  19816. this.remeasure = Object.keys(this.widths).length > 0;
  19817. if (isStandardFont && type === 'CIDFontType2' &&
  19818. properties.cidEncoding.indexOf('Identity-') === 0) {
  19819. // Standard fonts might be embedded as CID font without glyph mapping.
  19820. // Building one based on GlyphMapForStandardFonts.
  19821. var map = [];
  19822. for (var code in GlyphMapForStandardFonts) {
  19823. map[+code] = GlyphMapForStandardFonts[code];
  19824. }
  19825. this.toFontChar = map;
  19826. this.toUnicode = map;
  19827. } else if (/Symbol/i.test(fontName)) {
  19828. var symbols = Encodings.SymbolSetEncoding;
  19829. for (charCode in symbols) {
  19830. var fontChar = GlyphsUnicode[symbols[charCode]];
  19831. if (!fontChar) {
  19832. continue;
  19833. }
  19834. this.toFontChar[charCode] = fontChar;
  19835. }
  19836. } else if (isStandardFont) {
  19837. this.toFontChar = [];
  19838. for (charCode in properties.defaultEncoding) {
  19839. var glyphName = properties.differences[charCode] ||
  19840. properties.defaultEncoding[charCode];
  19841. this.toFontChar[charCode] = GlyphsUnicode[glyphName];
  19842. }
  19843. } else {
  19844. for (charCode in this.toUnicode) {
  19845. this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);
  19846. }
  19847. }
  19848. this.loadedName = fontName.split('-')[0];
  19849. this.loading = false;
  19850. return;
  19851. }
  19852. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  19853. var subtype = properties.subtype;
  19854. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1')) {
  19855. // Some TrueType fonts by mistake claim Type1C
  19856. if (isTrueTypeFile(file)) {
  19857. subtype = 'TrueType';
  19858. } else {
  19859. type = 'Type1';
  19860. }
  19861. }
  19862. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') {
  19863. type = 'CIDFontType0';
  19864. }
  19865. // XXX: Temporarily change the type for open type so we trigger a warning.
  19866. // This should be removed when we add support for open type.
  19867. if (subtype === 'OpenType') {
  19868. type = 'OpenType';
  19869. }
  19870. var data;
  19871. switch (type) {
  19872. case 'Type1':
  19873. case 'CIDFontType0':
  19874. this.mimetype = 'font/opentype';
  19875. var cff = (subtype == 'Type1C' || subtype == 'CIDFontType0C') ?
  19876. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  19877. adjustWidths(properties);
  19878. // Wrap the CFF data inside an OTF font file
  19879. data = this.convert(name, cff, properties);
  19880. break;
  19881. case 'OpenType':
  19882. case 'TrueType':
  19883. case 'CIDFontType2':
  19884. this.mimetype = 'font/opentype';
  19885. // Repair the TrueType file. It is can be damaged in the point of
  19886. // view of the sanitizer
  19887. data = this.checkAndRepair(name, file, properties);
  19888. break;
  19889. default:
  19890. error('Font ' + type + ' is not supported');
  19891. break;
  19892. }
  19893. this.data = data;
  19894. // Transfer some properties again that could change during font conversion
  19895. this.fontMatrix = properties.fontMatrix;
  19896. this.widths = properties.widths;
  19897. this.defaultWidth = properties.defaultWidth;
  19898. this.encoding = properties.baseEncoding;
  19899. this.seacMap = properties.seacMap;
  19900. this.loading = true;
  19901. }
  19902. Font.getFontID = (function () {
  19903. var ID = 1;
  19904. return function Font_getFontID() {
  19905. return String(ID++);
  19906. };
  19907. })();
  19908. function int16(b0, b1) {
  19909. return (b0 << 8) + b1;
  19910. }
  19911. function int32(b0, b1, b2, b3) {
  19912. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  19913. }
  19914. function getMaxPower2(number) {
  19915. var maxPower = 0;
  19916. var value = number;
  19917. while (value >= 2) {
  19918. value /= 2;
  19919. maxPower++;
  19920. }
  19921. value = 2;
  19922. for (var i = 1; i < maxPower; i++) {
  19923. value *= 2;
  19924. }
  19925. return value;
  19926. }
  19927. function string16(value) {
  19928. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19929. }
  19930. function safeString16(value) {
  19931. // clamp value to the 16-bit int range
  19932. value = (value > 0x7FFF ? 0x7FFF : (value < -0x8000 ? -0x8000 : value));
  19933. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19934. }
  19935. function createOpenTypeHeader(sfnt, file, numTables) {
  19936. // Windows hates the Mac TrueType sfnt version number
  19937. if (sfnt == 'true') {
  19938. sfnt = string32(0x00010000);
  19939. }
  19940. // sfnt version (4 bytes)
  19941. var header = sfnt;
  19942. // numTables (2 bytes)
  19943. header += string16(numTables);
  19944. // searchRange (2 bytes)
  19945. var tablesMaxPower2 = getMaxPower2(numTables);
  19946. var searchRange = tablesMaxPower2 * 16;
  19947. header += string16(searchRange);
  19948. // entrySelector (2 bytes)
  19949. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  19950. // rangeShift (2 bytes)
  19951. header += string16(numTables * 16 - searchRange);
  19952. file.file += header;
  19953. file.virtualOffset += header.length;
  19954. }
  19955. function createTableEntry(file, tag, data) {
  19956. // offset
  19957. var offset = file.virtualOffset;
  19958. // length
  19959. var length = data.length;
  19960. // Per spec tables must be 4-bytes align so add padding as needed
  19961. while (data.length & 3) {
  19962. data.push(0x00);
  19963. }
  19964. while (file.virtualOffset & 3) {
  19965. file.virtualOffset++;
  19966. }
  19967. // checksum
  19968. var checksum = 0, n = data.length;
  19969. for (var i = 0; i < n; i += 4) {
  19970. checksum = (checksum + int32(data[i], data[i + 1], data[i + 2],
  19971. data[i + 3])) | 0;
  19972. }
  19973. var tableEntry = (tag + string32(checksum) +
  19974. string32(offset) + string32(length));
  19975. file.file += tableEntry;
  19976. file.virtualOffset += data.length;
  19977. }
  19978. function isTrueTypeFile(file) {
  19979. var header = file.peekBytes(4);
  19980. return readUint32(header, 0) === 0x00010000;
  19981. }
  19982. /**
  19983. * Rebuilds the char code to glyph ID map by trying to replace the char codes
  19984. * with their unicode value. It also moves char codes that are in known
  19985. * problematic locations.
  19986. * @return {Object} Two properties:
  19987. * 'toFontChar' - maps original char codes(the value that will be read
  19988. * from commands such as show text) to the char codes that will be used in the
  19989. * font that we build
  19990. * 'charCodeToGlyphId' - maps the new font char codes to glyph ids
  19991. */
  19992. function adjustMapping(charCodeToGlyphId, properties) {
  19993. var toUnicode = properties.toUnicode;
  19994. var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
  19995. var isIdentityUnicode = properties.isIdentityUnicode;
  19996. var newMap = Object.create(null);
  19997. var toFontChar = [];
  19998. var usedFontCharCodes = [];
  19999. var nextAvailableFontCharCode = PRIVATE_USE_OFFSET_START;
  20000. for (var originalCharCode in charCodeToGlyphId) {
  20001. originalCharCode |= 0;
  20002. var glyphId = charCodeToGlyphId[originalCharCode];
  20003. var fontCharCode = originalCharCode;
  20004. // First try to map the value to a unicode position if a non identity map
  20005. // was created.
  20006. if (!isIdentityUnicode && originalCharCode in toUnicode) {
  20007. var unicode = toUnicode[fontCharCode];
  20008. // TODO: Try to map ligatures to the correct spot.
  20009. if (unicode.length === 1) {
  20010. fontCharCode = unicode.charCodeAt(0);
  20011. }
  20012. }
  20013. // Try to move control characters, special characters and already mapped
  20014. // characters to the private use area since they will not be drawn by
  20015. // canvas if left in their current position. Also, move characters if the
  20016. // font was symbolic and there is only an identity unicode map since the
  20017. // characters probably aren't in the correct position (fixes an issue
  20018. // with firefox and thuluthfont).
  20019. if ((fontCharCode in usedFontCharCodes ||
  20020. fontCharCode <= 0x1f || // Control chars
  20021. fontCharCode === 0x7F || // Control char
  20022. fontCharCode === 0xAD || // Soft hyphen
  20023. (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
  20024. // Prevent drawing characters in the specials unicode block.
  20025. (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
  20026. (isSymbolic && isIdentityUnicode)) &&
  20027. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
  20028. // Loop to try and find a free spot in the private use area.
  20029. do {
  20030. fontCharCode = nextAvailableFontCharCode++;
  20031. if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
  20032. fontCharCode = 0xF020;
  20033. nextAvailableFontCharCode = fontCharCode + 1;
  20034. }
  20035. } while (fontCharCode in usedFontCharCodes &&
  20036. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END);
  20037. }
  20038. newMap[fontCharCode] = glyphId;
  20039. toFontChar[originalCharCode] = fontCharCode;
  20040. usedFontCharCodes[fontCharCode] = true;
  20041. }
  20042. return {
  20043. toFontChar: toFontChar,
  20044. charCodeToGlyphId: newMap,
  20045. nextAvailableFontCharCode: nextAvailableFontCharCode
  20046. };
  20047. }
  20048. function getRanges(glyphs) {
  20049. // Array.sort() sorts by characters, not numerically, so convert to an
  20050. // array of characters.
  20051. var codes = [];
  20052. for (var charCode in glyphs) {
  20053. codes.push({ fontCharCode: charCode | 0, glyphId: glyphs[charCode] });
  20054. }
  20055. codes.sort(function fontGetRangesSort(a, b) {
  20056. return a.fontCharCode - b.fontCharCode;
  20057. });
  20058. // Split the sorted codes into ranges.
  20059. var ranges = [];
  20060. var length = codes.length;
  20061. for (var n = 0; n < length; ) {
  20062. var start = codes[n].fontCharCode;
  20063. var codeIndices = [codes[n].glyphId];
  20064. ++n;
  20065. var end = start;
  20066. while (n < length && end + 1 == codes[n].fontCharCode) {
  20067. codeIndices.push(codes[n].glyphId);
  20068. ++end;
  20069. ++n;
  20070. if (end === 0xFFFF) {
  20071. break;
  20072. }
  20073. }
  20074. ranges.push([start, end, codeIndices]);
  20075. }
  20076. return ranges;
  20077. }
  20078. function createCmapTable(glyphs) {
  20079. var ranges = getRanges(glyphs);
  20080. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  20081. var cmap = '\x00\x00' + // version
  20082. string16(numTables) + // numTables
  20083. '\x00\x03' + // platformID
  20084. '\x00\x01' + // encodingID
  20085. string32(4 + numTables * 8); // start of the table record
  20086. var i, ii, j, jj;
  20087. for (i = ranges.length - 1; i >= 0; --i) {
  20088. if (ranges[i][0] <= 0xFFFF) { break; }
  20089. }
  20090. var bmpLength = i + 1;
  20091. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  20092. ranges[i][1] = 0xFFFE;
  20093. }
  20094. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  20095. var segCount = bmpLength + trailingRangesCount;
  20096. var segCount2 = segCount * 2;
  20097. var searchRange = getMaxPower2(segCount) * 2;
  20098. var searchEntry = Math.log(segCount) / Math.log(2);
  20099. var rangeShift = 2 * segCount - searchRange;
  20100. // Fill up the 4 parallel arrays describing the segments.
  20101. var startCount = '';
  20102. var endCount = '';
  20103. var idDeltas = '';
  20104. var idRangeOffsets = '';
  20105. var glyphsIds = '';
  20106. var bias = 0;
  20107. var range, start, end, codes;
  20108. for (i = 0, ii = bmpLength; i < ii; i++) {
  20109. range = ranges[i];
  20110. start = range[0];
  20111. end = range[1];
  20112. startCount += string16(start);
  20113. endCount += string16(end);
  20114. codes = range[2];
  20115. var contiguous = true;
  20116. for (j = 1, jj = codes.length; j < jj; ++j) {
  20117. if (codes[j] !== codes[j - 1] + 1) {
  20118. contiguous = false;
  20119. break;
  20120. }
  20121. }
  20122. if (!contiguous) {
  20123. var offset = (segCount - i) * 2 + bias * 2;
  20124. bias += (end - start + 1);
  20125. idDeltas += string16(0);
  20126. idRangeOffsets += string16(offset);
  20127. for (j = 0, jj = codes.length; j < jj; ++j) {
  20128. glyphsIds += string16(codes[j]);
  20129. }
  20130. } else {
  20131. var startCode = codes[0];
  20132. idDeltas += string16((startCode - start) & 0xFFFF);
  20133. idRangeOffsets += string16(0);
  20134. }
  20135. }
  20136. if (trailingRangesCount > 0) {
  20137. endCount += '\xFF\xFF';
  20138. startCount += '\xFF\xFF';
  20139. idDeltas += '\x00\x01';
  20140. idRangeOffsets += '\x00\x00';
  20141. }
  20142. var format314 = '\x00\x00' + // language
  20143. string16(segCount2) +
  20144. string16(searchRange) +
  20145. string16(searchEntry) +
  20146. string16(rangeShift) +
  20147. endCount + '\x00\x00' + startCount +
  20148. idDeltas + idRangeOffsets + glyphsIds;
  20149. var format31012 = '';
  20150. var header31012 = '';
  20151. if (numTables > 1) {
  20152. cmap += '\x00\x03' + // platformID
  20153. '\x00\x0A' + // encodingID
  20154. string32(4 + numTables * 8 +
  20155. 4 + format314.length); // start of the table record
  20156. format31012 = '';
  20157. for (i = 0, ii = ranges.length; i < ii; i++) {
  20158. range = ranges[i];
  20159. start = range[0];
  20160. codes = range[2];
  20161. var code = codes[0];
  20162. for (j = 1, jj = codes.length; j < jj; ++j) {
  20163. if (codes[j] !== codes[j - 1] + 1) {
  20164. end = range[0] + j - 1;
  20165. format31012 += string32(start) + // startCharCode
  20166. string32(end) + // endCharCode
  20167. string32(code); // startGlyphID
  20168. start = end + 1;
  20169. code = codes[j];
  20170. }
  20171. }
  20172. format31012 += string32(start) + // startCharCode
  20173. string32(range[1]) + // endCharCode
  20174. string32(code); // startGlyphID
  20175. }
  20176. header31012 = '\x00\x0C' + // format
  20177. '\x00\x00' + // reserved
  20178. string32(format31012.length + 16) + // length
  20179. '\x00\x00\x00\x00' + // language
  20180. string32(format31012.length / 12); // nGroups
  20181. }
  20182. return stringToArray(cmap +
  20183. '\x00\x04' + // format
  20184. string16(format314.length + 4) + // length
  20185. format314 + header31012 + format31012);
  20186. }
  20187. function validateOS2Table(os2) {
  20188. var stream = new Stream(os2.data);
  20189. var version = stream.getUint16();
  20190. // TODO verify all OS/2 tables fields, but currently we validate only those
  20191. // that give us issues
  20192. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  20193. var selection = stream.getUint16();
  20194. if (version < 4 && (selection & 0x0300)) {
  20195. return false;
  20196. }
  20197. var firstChar = stream.getUint16();
  20198. var lastChar = stream.getUint16();
  20199. if (firstChar > lastChar) {
  20200. return false;
  20201. }
  20202. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  20203. var usWinAscent = stream.getUint16();
  20204. if (usWinAscent === 0) { // makes font unreadable by windows
  20205. return false;
  20206. }
  20207. // OS/2 appears to be valid, resetting some fields
  20208. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  20209. return true;
  20210. }
  20211. function createOS2Table(properties, charstrings, override) {
  20212. override = override || {
  20213. unitsPerEm: 0,
  20214. yMax: 0,
  20215. yMin: 0,
  20216. ascent: 0,
  20217. descent: 0
  20218. };
  20219. var ulUnicodeRange1 = 0;
  20220. var ulUnicodeRange2 = 0;
  20221. var ulUnicodeRange3 = 0;
  20222. var ulUnicodeRange4 = 0;
  20223. var firstCharIndex = null;
  20224. var lastCharIndex = 0;
  20225. if (charstrings) {
  20226. for (var code in charstrings) {
  20227. code |= 0;
  20228. if (firstCharIndex > code || !firstCharIndex) {
  20229. firstCharIndex = code;
  20230. }
  20231. if (lastCharIndex < code) {
  20232. lastCharIndex = code;
  20233. }
  20234. var position = getUnicodeRangeFor(code);
  20235. if (position < 32) {
  20236. ulUnicodeRange1 |= 1 << position;
  20237. } else if (position < 64) {
  20238. ulUnicodeRange2 |= 1 << position - 32;
  20239. } else if (position < 96) {
  20240. ulUnicodeRange3 |= 1 << position - 64;
  20241. } else if (position < 123) {
  20242. ulUnicodeRange4 |= 1 << position - 96;
  20243. } else {
  20244. error('Unicode ranges Bits > 123 are reserved for internal usage');
  20245. }
  20246. }
  20247. } else {
  20248. // TODO
  20249. firstCharIndex = 0;
  20250. lastCharIndex = 255;
  20251. }
  20252. var bbox = properties.bbox || [0, 0, 0, 0];
  20253. var unitsPerEm = (override.unitsPerEm ||
  20254. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0]);
  20255. // if the font units differ to the PDF glyph space units
  20256. // then scale up the values
  20257. var scale = (properties.ascentScaled ? 1.0 :
  20258. unitsPerEm / PDF_GLYPH_SPACE_UNITS);
  20259. var typoAscent = (override.ascent ||
  20260. Math.round(scale * (properties.ascent || bbox[3])));
  20261. var typoDescent = (override.descent ||
  20262. Math.round(scale * (properties.descent || bbox[1])));
  20263. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  20264. typoDescent = -typoDescent; // fixing incorrect descent
  20265. }
  20266. var winAscent = override.yMax || typoAscent;
  20267. var winDescent = -override.yMin || -typoDescent;
  20268. return '\x00\x03' + // version
  20269. '\x02\x24' + // xAvgCharWidth
  20270. '\x01\xF4' + // usWeightClass
  20271. '\x00\x05' + // usWidthClass
  20272. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  20273. '\x02\x8A' + // ySubscriptXSize
  20274. '\x02\xBB' + // ySubscriptYSize
  20275. '\x00\x00' + // ySubscriptXOffset
  20276. '\x00\x8C' + // ySubscriptYOffset
  20277. '\x02\x8A' + // ySuperScriptXSize
  20278. '\x02\xBB' + // ySuperScriptYSize
  20279. '\x00\x00' + // ySuperScriptXOffset
  20280. '\x01\xDF' + // ySuperScriptYOffset
  20281. '\x00\x31' + // yStrikeOutSize
  20282. '\x01\x02' + // yStrikeOutPosition
  20283. '\x00\x00' + // sFamilyClass
  20284. '\x00\x00\x06' +
  20285. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  20286. '\x00\x00\x00\x00\x00\x00' + // Panose
  20287. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  20288. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  20289. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  20290. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  20291. '\x2A\x32\x31\x2A' + // achVendID
  20292. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  20293. string16(firstCharIndex ||
  20294. properties.firstChar) + // usFirstCharIndex
  20295. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  20296. string16(typoAscent) + // sTypoAscender
  20297. string16(typoDescent) + // sTypoDescender
  20298. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  20299. string16(winAscent) + // usWinAscent
  20300. string16(winDescent) + // usWinDescent
  20301. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  20302. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  20303. string16(properties.xHeight) + // sxHeight
  20304. string16(properties.capHeight) + // sCapHeight
  20305. string16(0) + // usDefaultChar
  20306. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  20307. '\x00\x03'; // usMaxContext
  20308. }
  20309. function createPostTable(properties) {
  20310. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  20311. return ('\x00\x03\x00\x00' + // Version number
  20312. string32(angle) + // italicAngle
  20313. '\x00\x00' + // underlinePosition
  20314. '\x00\x00' + // underlineThickness
  20315. string32(properties.fixedPitch) + // isFixedPitch
  20316. '\x00\x00\x00\x00' + // minMemType42
  20317. '\x00\x00\x00\x00' + // maxMemType42
  20318. '\x00\x00\x00\x00' + // minMemType1
  20319. '\x00\x00\x00\x00'); // maxMemType1
  20320. }
  20321. function createNameTable(name, proto) {
  20322. if (!proto) {
  20323. proto = [[], []]; // no strings and unicode strings
  20324. }
  20325. var strings = [
  20326. proto[0][0] || 'Original licence', // 0.Copyright
  20327. proto[0][1] || name, // 1.Font family
  20328. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  20329. proto[0][3] || 'uniqueID', // 3.Unique ID
  20330. proto[0][4] || name, // 4.Full font name
  20331. proto[0][5] || 'Version 0.11', // 5.Version
  20332. proto[0][6] || '', // 6.Postscript name
  20333. proto[0][7] || 'Unknown', // 7.Trademark
  20334. proto[0][8] || 'Unknown', // 8.Manufacturer
  20335. proto[0][9] || 'Unknown' // 9.Designer
  20336. ];
  20337. // Mac want 1-byte per character strings while Windows want
  20338. // 2-bytes per character, so duplicate the names table
  20339. var stringsUnicode = [];
  20340. var i, ii, j, jj, str;
  20341. for (i = 0, ii = strings.length; i < ii; i++) {
  20342. str = proto[1][i] || strings[i];
  20343. var strBufUnicode = [];
  20344. for (j = 0, jj = str.length; j < jj; j++) {
  20345. strBufUnicode.push(string16(str.charCodeAt(j)));
  20346. }
  20347. stringsUnicode.push(strBufUnicode.join(''));
  20348. }
  20349. var names = [strings, stringsUnicode];
  20350. var platforms = ['\x00\x01', '\x00\x03'];
  20351. var encodings = ['\x00\x00', '\x00\x01'];
  20352. var languages = ['\x00\x00', '\x04\x09'];
  20353. var namesRecordCount = strings.length * platforms.length;
  20354. var nameTable =
  20355. '\x00\x00' + // format
  20356. string16(namesRecordCount) + // Number of names Record
  20357. string16(namesRecordCount * 12 + 6); // Storage
  20358. // Build the name records field
  20359. var strOffset = 0;
  20360. for (i = 0, ii = platforms.length; i < ii; i++) {
  20361. var strs = names[i];
  20362. for (j = 0, jj = strs.length; j < jj; j++) {
  20363. str = strs[j];
  20364. var nameRecord =
  20365. platforms[i] + // platform ID
  20366. encodings[i] + // encoding ID
  20367. languages[i] + // language ID
  20368. string16(j) + // name ID
  20369. string16(str.length) +
  20370. string16(strOffset);
  20371. nameTable += nameRecord;
  20372. strOffset += str.length;
  20373. }
  20374. }
  20375. nameTable += strings.join('') + stringsUnicode.join('');
  20376. return nameTable;
  20377. }
  20378. Font.prototype = {
  20379. name: null,
  20380. font: null,
  20381. mimetype: null,
  20382. encoding: null,
  20383. get renderer() {
  20384. var renderer = FontRendererFactory.create(this);
  20385. return shadow(this, 'renderer', renderer);
  20386. },
  20387. exportData: function Font_exportData() {
  20388. var data = {};
  20389. for (var i in this) {
  20390. if (this.hasOwnProperty(i)) {
  20391. data[i] = this[i];
  20392. }
  20393. }
  20394. return data;
  20395. },
  20396. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  20397. function readTableEntry(file) {
  20398. var tag = bytesToString(file.getBytes(4));
  20399. var checksum = file.getInt32();
  20400. var offset = file.getInt32() >>> 0;
  20401. var length = file.getInt32() >>> 0;
  20402. // Read the table associated data
  20403. var previousPosition = file.pos;
  20404. file.pos = file.start ? file.start : 0;
  20405. file.skip(offset);
  20406. var data = file.getBytes(length);
  20407. file.pos = previousPosition;
  20408. if (tag == 'head') {
  20409. // clearing checksum adjustment
  20410. data[8] = data[9] = data[10] = data[11] = 0;
  20411. data[17] |= 0x20; //Set font optimized for cleartype flag
  20412. }
  20413. return {
  20414. tag: tag,
  20415. checksum: checksum,
  20416. length: length,
  20417. offset: offset,
  20418. data: data
  20419. };
  20420. }
  20421. function readOpenTypeHeader(ttf) {
  20422. return {
  20423. version: bytesToString(ttf.getBytes(4)),
  20424. numTables: ttf.getUint16(),
  20425. searchRange: ttf.getUint16(),
  20426. entrySelector: ttf.getUint16(),
  20427. rangeShift: ttf.getUint16()
  20428. };
  20429. }
  20430. /**
  20431. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  20432. * PDF spec
  20433. */
  20434. function readCmapTable(cmap, font, isSymbolicFont) {
  20435. var segment;
  20436. var start = (font.start ? font.start : 0) + cmap.offset;
  20437. font.pos = start;
  20438. var version = font.getUint16();
  20439. var numTables = font.getUint16();
  20440. var potentialTable;
  20441. var canBreak = false;
  20442. // There's an order of preference in terms of which cmap subtable to
  20443. // use:
  20444. // - non-symbolic fonts the preference is a 3,1 table then a 1,0 table
  20445. // - symbolic fonts the preference is a 3,0 table then a 1,0 table
  20446. // The following takes advantage of the fact that the tables are sorted
  20447. // to work.
  20448. for (var i = 0; i < numTables; i++) {
  20449. var platformId = font.getUint16();
  20450. var encodingId = font.getUint16();
  20451. var offset = font.getInt32() >>> 0;
  20452. var useTable = false;
  20453. if (platformId == 1 && encodingId === 0) {
  20454. useTable = true;
  20455. // Continue the loop since there still may be a higher priority
  20456. // table.
  20457. } else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
  20458. useTable = true;
  20459. canBreak = true;
  20460. } else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  20461. useTable = true;
  20462. canBreak = true;
  20463. }
  20464. if (useTable) {
  20465. potentialTable = {
  20466. platformId: platformId,
  20467. encodingId: encodingId,
  20468. offset: offset
  20469. };
  20470. }
  20471. if (canBreak) {
  20472. break;
  20473. }
  20474. }
  20475. if (!potentialTable) {
  20476. warn('Could not find a preferred cmap table.');
  20477. return [];
  20478. }
  20479. font.pos = start + potentialTable.offset;
  20480. var format = font.getUint16();
  20481. var length = font.getUint16();
  20482. var language = font.getUint16();
  20483. var hasShortCmap = false;
  20484. var mappings = [];
  20485. var j, glyphId;
  20486. // TODO(mack): refactor this cmap subtable reading logic out
  20487. if (format === 0) {
  20488. for (j = 0; j < 256; j++) {
  20489. var index = font.getByte();
  20490. if (!index) {
  20491. continue;
  20492. }
  20493. mappings.push({
  20494. charCode: j,
  20495. glyphId: index
  20496. });
  20497. }
  20498. hasShortCmap = true;
  20499. } else if (format === 4) {
  20500. // re-creating the table in format 4 since the encoding
  20501. // might be changed
  20502. var segCount = (font.getUint16() >> 1);
  20503. font.getBytes(6); // skipping range fields
  20504. var segIndex, segments = [];
  20505. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20506. segments.push({ end: font.getUint16() });
  20507. }
  20508. font.getUint16();
  20509. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20510. segments[segIndex].start = font.getUint16();
  20511. }
  20512. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20513. segments[segIndex].delta = font.getUint16();
  20514. }
  20515. var offsetsCount = 0;
  20516. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20517. segment = segments[segIndex];
  20518. var rangeOffset = font.getUint16();
  20519. if (!rangeOffset) {
  20520. segment.offsetIndex = -1;
  20521. continue;
  20522. }
  20523. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  20524. segment.offsetIndex = offsetIndex;
  20525. offsetsCount = Math.max(offsetsCount, offsetIndex +
  20526. segment.end - segment.start + 1);
  20527. }
  20528. var offsets = [];
  20529. for (j = 0; j < offsetsCount; j++) {
  20530. offsets.push(font.getUint16());
  20531. }
  20532. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20533. segment = segments[segIndex];
  20534. start = segment.start;
  20535. var end = segment.end;
  20536. var delta = segment.delta;
  20537. offsetIndex = segment.offsetIndex;
  20538. for (j = start; j <= end; j++) {
  20539. if (j == 0xFFFF) {
  20540. continue;
  20541. }
  20542. glyphId = (offsetIndex < 0 ?
  20543. j : offsets[offsetIndex + j - start]);
  20544. glyphId = (glyphId + delta) & 0xFFFF;
  20545. if (glyphId === 0) {
  20546. continue;
  20547. }
  20548. mappings.push({
  20549. charCode: j,
  20550. glyphId: glyphId
  20551. });
  20552. }
  20553. }
  20554. } else if (format == 6) {
  20555. // Format 6 is a 2-bytes dense mapping, which means the font data
  20556. // lives glue together even if they are pretty far in the unicode
  20557. // table. (This looks weird, so I can have missed something), this
  20558. // works on Linux but seems to fails on Mac so let's rewrite the
  20559. // cmap table to a 3-1-4 style
  20560. var firstCode = font.getUint16();
  20561. var entryCount = font.getUint16();
  20562. for (j = 0; j < entryCount; j++) {
  20563. glyphId = font.getUint16();
  20564. var charCode = firstCode + j;
  20565. mappings.push({
  20566. charCode: charCode,
  20567. glyphId: glyphId
  20568. });
  20569. }
  20570. } else {
  20571. error('cmap table has unsupported format: ' + format);
  20572. }
  20573. // removing duplicate entries
  20574. mappings.sort(function (a, b) {
  20575. return a.charCode - b.charCode;
  20576. });
  20577. for (i = 1; i < mappings.length; i++) {
  20578. if (mappings[i - 1].charCode === mappings[i].charCode) {
  20579. mappings.splice(i, 1);
  20580. i--;
  20581. }
  20582. }
  20583. return {
  20584. platformId: potentialTable.platformId,
  20585. encodingId: potentialTable.encodingId,
  20586. mappings: mappings,
  20587. hasShortCmap: hasShortCmap
  20588. };
  20589. }
  20590. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  20591. if (!header) {
  20592. if (metrics) {
  20593. metrics.data = null;
  20594. }
  20595. return;
  20596. }
  20597. font.pos = (font.start ? font.start : 0) + header.offset;
  20598. font.pos += header.length - 2;
  20599. var numOfMetrics = font.getUint16();
  20600. if (numOfMetrics > numGlyphs) {
  20601. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  20602. 'greater than the numGlyphs (' + numGlyphs + ')');
  20603. // Reduce numOfMetrics if it is greater than numGlyphs
  20604. numOfMetrics = numGlyphs;
  20605. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  20606. header.data[35] = numOfMetrics & 0x00ff;
  20607. }
  20608. var numOfSidebearings = numGlyphs - numOfMetrics;
  20609. var numMissing = numOfSidebearings -
  20610. ((metrics.length - numOfMetrics * 4) >> 1);
  20611. var i, ii;
  20612. if (numMissing > 0) {
  20613. font.pos = (font.start ? font.start : 0) + metrics.offset;
  20614. var entries = '';
  20615. for (i = 0, ii = metrics.length; i < ii; i++) {
  20616. entries += String.fromCharCode(font.getByte());
  20617. }
  20618. for (i = 0; i < numMissing; i++) {
  20619. entries += '\x00\x00';
  20620. }
  20621. metrics.data = stringToArray(entries);
  20622. }
  20623. }
  20624. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  20625. hintsValid) {
  20626. if (sourceEnd - sourceStart <= 12) {
  20627. // glyph with data less than 12 is invalid one
  20628. return 0;
  20629. }
  20630. var glyf = source.subarray(sourceStart, sourceEnd);
  20631. var contoursCount = (glyf[0] << 8) | glyf[1];
  20632. if (contoursCount & 0x8000) {
  20633. // complex glyph, writing as is
  20634. dest.set(glyf, destStart);
  20635. return glyf.length;
  20636. }
  20637. var i, j = 10, flagsCount = 0;
  20638. for (i = 0; i < contoursCount; i++) {
  20639. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  20640. flagsCount = endPoint + 1;
  20641. j += 2;
  20642. }
  20643. // skipping instructions
  20644. var instructionsStart = j;
  20645. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  20646. j += 2 + instructionsLength;
  20647. var instructionsEnd = j;
  20648. // validating flags
  20649. var coordinatesLength = 0;
  20650. for (i = 0; i < flagsCount; i++) {
  20651. var flag = glyf[j++];
  20652. if (flag & 0xC0) {
  20653. // reserved flags must be zero, cleaning up
  20654. glyf[j - 1] = flag & 0x3F;
  20655. }
  20656. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  20657. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  20658. coordinatesLength += xyLength;
  20659. if (flag & 8) {
  20660. var repeat = glyf[j++];
  20661. i += repeat;
  20662. coordinatesLength += repeat * xyLength;
  20663. }
  20664. }
  20665. // glyph without coordinates will be rejected
  20666. if (coordinatesLength === 0) {
  20667. return 0;
  20668. }
  20669. var glyphDataLength = j + coordinatesLength;
  20670. if (glyphDataLength > glyf.length) {
  20671. // not enough data for coordinates
  20672. return 0;
  20673. }
  20674. if (!hintsValid && instructionsLength > 0) {
  20675. dest.set(glyf.subarray(0, instructionsStart), destStart);
  20676. dest.set([0, 0], destStart + instructionsStart);
  20677. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  20678. destStart + instructionsStart + 2);
  20679. glyphDataLength -= instructionsLength;
  20680. if (glyf.length - glyphDataLength > 3) {
  20681. glyphDataLength = (glyphDataLength + 3) & ~3;
  20682. }
  20683. return glyphDataLength;
  20684. }
  20685. if (glyf.length - glyphDataLength > 3) {
  20686. // truncating and aligning to 4 bytes the long glyph data
  20687. glyphDataLength = (glyphDataLength + 3) & ~3;
  20688. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  20689. return glyphDataLength;
  20690. }
  20691. // glyph data is fine
  20692. dest.set(glyf, destStart);
  20693. return glyf.length;
  20694. }
  20695. function sanitizeHead(head, numGlyphs, locaLength) {
  20696. var data = head.data;
  20697. // Validate version:
  20698. // Should always be 0x00010000
  20699. var version = int32(data[0], data[1], data[2], data[3]);
  20700. if (version >> 16 !== 1) {
  20701. info('Attempting to fix invalid version in head table: ' + version);
  20702. data[0] = 0;
  20703. data[1] = 1;
  20704. data[2] = 0;
  20705. data[3] = 0;
  20706. }
  20707. var indexToLocFormat = int16(data[50], data[51]);
  20708. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  20709. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  20710. indexToLocFormat);
  20711. // The value of indexToLocFormat should be 0 if the loca table
  20712. // consists of short offsets, and should be 1 if the loca table
  20713. // consists of long offsets.
  20714. //
  20715. // The number of entries in the loca table should be numGlyphs + 1.
  20716. //
  20717. // Using this information, we can work backwards to deduce if the
  20718. // size of each offset in the loca table, and thus figure out the
  20719. // appropriate value for indexToLocFormat.
  20720. var numGlyphsPlusOne = numGlyphs + 1;
  20721. if (locaLength === numGlyphsPlusOne << 1) {
  20722. // 0x0000 indicates the loca table consists of short offsets
  20723. data[50] = 0;
  20724. data[51] = 0;
  20725. } else if (locaLength === numGlyphsPlusOne << 2) {
  20726. // 0x0001 indicates the loca table consists of long offsets
  20727. data[50] = 0;
  20728. data[51] = 1;
  20729. } else {
  20730. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  20731. }
  20732. }
  20733. }
  20734. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  20735. isGlyphLocationsLong, hintsValid,
  20736. dupFirstEntry) {
  20737. var itemSize, itemDecode, itemEncode;
  20738. if (isGlyphLocationsLong) {
  20739. itemSize = 4;
  20740. itemDecode = function fontItemDecodeLong(data, offset) {
  20741. return (data[offset] << 24) | (data[offset + 1] << 16) |
  20742. (data[offset + 2] << 8) | data[offset + 3];
  20743. };
  20744. itemEncode = function fontItemEncodeLong(data, offset, value) {
  20745. data[offset] = (value >>> 24) & 0xFF;
  20746. data[offset + 1] = (value >> 16) & 0xFF;
  20747. data[offset + 2] = (value >> 8) & 0xFF;
  20748. data[offset + 3] = value & 0xFF;
  20749. };
  20750. } else {
  20751. itemSize = 2;
  20752. itemDecode = function fontItemDecode(data, offset) {
  20753. return (data[offset] << 9) | (data[offset + 1] << 1);
  20754. };
  20755. itemEncode = function fontItemEncode(data, offset, value) {
  20756. data[offset] = (value >> 9) & 0xFF;
  20757. data[offset + 1] = (value >> 1) & 0xFF;
  20758. };
  20759. }
  20760. var locaData = loca.data;
  20761. var locaDataSize = itemSize * (1 + numGlyphs);
  20762. // is loca.data too short or long?
  20763. if (locaData.length !== locaDataSize) {
  20764. locaData = new Uint8Array(locaDataSize);
  20765. locaData.set(loca.data.subarray(0, locaDataSize));
  20766. loca.data = locaData;
  20767. }
  20768. // removing the invalid glyphs
  20769. var oldGlyfData = glyf.data;
  20770. var oldGlyfDataLength = oldGlyfData.length;
  20771. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  20772. var startOffset = itemDecode(locaData, 0);
  20773. var writeOffset = 0;
  20774. itemEncode(locaData, 0, writeOffset);
  20775. var i, j;
  20776. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20777. var endOffset = itemDecode(locaData, j);
  20778. if (endOffset > oldGlyfDataLength &&
  20779. ((oldGlyfDataLength + 3) & ~3) === endOffset) {
  20780. // Aspose breaks fonts by aligning the glyphs to the qword, but not
  20781. // the glyf table size, which makes last glyph out of range.
  20782. endOffset = oldGlyfDataLength;
  20783. }
  20784. if (endOffset > oldGlyfDataLength) {
  20785. // glyph end offset points outside glyf data, rejecting the glyph
  20786. itemEncode(locaData, j, writeOffset);
  20787. startOffset = endOffset;
  20788. continue;
  20789. }
  20790. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  20791. newGlyfData, writeOffset, hintsValid);
  20792. writeOffset += newLength;
  20793. itemEncode(locaData, j, writeOffset);
  20794. startOffset = endOffset;
  20795. }
  20796. if (writeOffset === 0) {
  20797. // glyf table cannot be empty -- redoing the glyf and loca tables
  20798. // to have single glyph with one point
  20799. var simpleGlyph = new Uint8Array(
  20800. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  20801. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20802. itemEncode(locaData, j, simpleGlyph.length);
  20803. }
  20804. glyf.data = simpleGlyph;
  20805. return;
  20806. }
  20807. if (dupFirstEntry) {
  20808. var firstEntryLength = itemDecode(locaData, itemSize);
  20809. if (newGlyfData.length > firstEntryLength + writeOffset) {
  20810. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  20811. } else {
  20812. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  20813. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  20814. }
  20815. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  20816. itemEncode(loca.data, locaData.length - itemSize,
  20817. writeOffset + firstEntryLength);
  20818. } else {
  20819. glyf.data = newGlyfData.subarray(0, writeOffset);
  20820. }
  20821. }
  20822. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  20823. var start = (font.start ? font.start : 0) + post.offset;
  20824. font.pos = start;
  20825. var length = post.length, end = start + length;
  20826. var version = font.getInt32();
  20827. // skip rest to the tables
  20828. font.getBytes(28);
  20829. var glyphNames;
  20830. var valid = true;
  20831. var i;
  20832. switch (version) {
  20833. case 0x00010000:
  20834. glyphNames = MacStandardGlyphOrdering;
  20835. break;
  20836. case 0x00020000:
  20837. var numGlyphs = font.getUint16();
  20838. if (numGlyphs != maxpNumGlyphs) {
  20839. valid = false;
  20840. break;
  20841. }
  20842. var glyphNameIndexes = [];
  20843. for (i = 0; i < numGlyphs; ++i) {
  20844. var index = font.getUint16();
  20845. if (index >= 32768) {
  20846. valid = false;
  20847. break;
  20848. }
  20849. glyphNameIndexes.push(index);
  20850. }
  20851. if (!valid) {
  20852. break;
  20853. }
  20854. var customNames = [];
  20855. while (font.pos < end) {
  20856. var stringLength = font.getByte();
  20857. var string = '';
  20858. for (i = 0; i < stringLength; ++i) {
  20859. string += String.fromCharCode(font.getByte());
  20860. }
  20861. customNames.push(string);
  20862. }
  20863. glyphNames = [];
  20864. for (i = 0; i < numGlyphs; ++i) {
  20865. var j = glyphNameIndexes[i];
  20866. if (j < 258) {
  20867. glyphNames.push(MacStandardGlyphOrdering[j]);
  20868. continue;
  20869. }
  20870. glyphNames.push(customNames[j - 258]);
  20871. }
  20872. break;
  20873. case 0x00030000:
  20874. break;
  20875. default:
  20876. warn('Unknown/unsupported post table version ' + version);
  20877. valid = false;
  20878. break;
  20879. }
  20880. properties.glyphNames = glyphNames;
  20881. return valid;
  20882. }
  20883. function readNameTable(nameTable) {
  20884. var start = (font.start ? font.start : 0) + nameTable.offset;
  20885. font.pos = start;
  20886. var names = [[], []];
  20887. var length = nameTable.length, end = start + length;
  20888. var format = font.getUint16();
  20889. var FORMAT_0_HEADER_LENGTH = 6;
  20890. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  20891. // unsupported name table format or table "too" small
  20892. return names;
  20893. }
  20894. var numRecords = font.getUint16();
  20895. var stringsStart = font.getUint16();
  20896. var records = [];
  20897. var NAME_RECORD_LENGTH = 12;
  20898. var i, ii;
  20899. for (i = 0; i < numRecords &&
  20900. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  20901. var r = {
  20902. platform: font.getUint16(),
  20903. encoding: font.getUint16(),
  20904. language: font.getUint16(),
  20905. name: font.getUint16(),
  20906. length: font.getUint16(),
  20907. offset: font.getUint16()
  20908. };
  20909. // using only Macintosh and Windows platform/encoding names
  20910. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  20911. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  20912. records.push(r);
  20913. }
  20914. }
  20915. for (i = 0, ii = records.length; i < ii; i++) {
  20916. var record = records[i];
  20917. var pos = start + stringsStart + record.offset;
  20918. if (pos + record.length > end) {
  20919. continue; // outside of name table, ignoring
  20920. }
  20921. font.pos = pos;
  20922. var nameIndex = record.name;
  20923. if (record.encoding) {
  20924. // unicode
  20925. var str = '';
  20926. for (var j = 0, jj = record.length; j < jj; j += 2) {
  20927. str += String.fromCharCode(font.getUint16());
  20928. }
  20929. names[1][nameIndex] = str;
  20930. } else {
  20931. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  20932. }
  20933. }
  20934. return names;
  20935. }
  20936. var TTOpsStackDeltas = [
  20937. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  20938. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  20939. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  20940. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  20941. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  20942. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  20943. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  20944. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  20945. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  20946. // 0xC0-DF == -1 and 0xE0-FF == -2
  20947. function sanitizeTTProgram(table, ttContext) {
  20948. var data = table.data;
  20949. var i = 0, j, n, b, funcId, pc, lastEndf = 0, lastDeff = 0;
  20950. var stack = [];
  20951. var callstack = [];
  20952. var functionsCalled = [];
  20953. var tooComplexToFollowFunctions =
  20954. ttContext.tooComplexToFollowFunctions;
  20955. var inFDEF = false, ifLevel = 0, inELSE = 0;
  20956. for (var ii = data.length; i < ii;) {
  20957. var op = data[i++];
  20958. // The TrueType instruction set docs can be found at
  20959. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  20960. if (op === 0x40) { // NPUSHB - pushes n bytes
  20961. n = data[i++];
  20962. if (inFDEF || inELSE) {
  20963. i += n;
  20964. } else {
  20965. for (j = 0; j < n; j++) {
  20966. stack.push(data[i++]);
  20967. }
  20968. }
  20969. } else if (op === 0x41) { // NPUSHW - pushes n words
  20970. n = data[i++];
  20971. if (inFDEF || inELSE) {
  20972. i += n * 2;
  20973. } else {
  20974. for (j = 0; j < n; j++) {
  20975. b = data[i++];
  20976. stack.push((b << 8) | data[i++]);
  20977. }
  20978. }
  20979. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  20980. n = op - 0xB0 + 1;
  20981. if (inFDEF || inELSE) {
  20982. i += n;
  20983. } else {
  20984. for (j = 0; j < n; j++) {
  20985. stack.push(data[i++]);
  20986. }
  20987. }
  20988. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  20989. n = op - 0xB8 + 1;
  20990. if (inFDEF || inELSE) {
  20991. i += n * 2;
  20992. } else {
  20993. for (j = 0; j < n; j++) {
  20994. b = data[i++];
  20995. stack.push((b << 8) | data[i++]);
  20996. }
  20997. }
  20998. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  20999. if (!inFDEF && !inELSE) {
  21000. // collecting inforamtion about which functions are used
  21001. funcId = stack[stack.length - 1];
  21002. ttContext.functionsUsed[funcId] = true;
  21003. if (funcId in ttContext.functionsStackDeltas) {
  21004. stack.length += ttContext.functionsStackDeltas[funcId];
  21005. } else if (funcId in ttContext.functionsDefined &&
  21006. functionsCalled.indexOf(funcId) < 0) {
  21007. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  21008. functionsCalled.push(funcId);
  21009. pc = ttContext.functionsDefined[funcId];
  21010. if (!pc) {
  21011. warn('TT: CALL non-existent function');
  21012. ttContext.hintsValid = false;
  21013. return;
  21014. }
  21015. data = pc.data;
  21016. i = pc.i;
  21017. }
  21018. }
  21019. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  21020. if (inFDEF || inELSE) {
  21021. warn('TT: nested FDEFs not allowed');
  21022. tooComplexToFollowFunctions = true;
  21023. }
  21024. inFDEF = true;
  21025. // collecting inforamtion about which functions are defined
  21026. lastDeff = i;
  21027. funcId = stack.pop();
  21028. ttContext.functionsDefined[funcId] = {data: data, i: i};
  21029. } else if (op === 0x2D) { // ENDF - end of function
  21030. if (inFDEF) {
  21031. inFDEF = false;
  21032. lastEndf = i;
  21033. } else {
  21034. pc = callstack.pop();
  21035. if (!pc) {
  21036. warn('TT: ENDF bad stack');
  21037. ttContext.hintsValid = false;
  21038. return;
  21039. }
  21040. funcId = functionsCalled.pop();
  21041. data = pc.data;
  21042. i = pc.i;
  21043. ttContext.functionsStackDeltas[funcId] =
  21044. stack.length - pc.stackTop;
  21045. }
  21046. } else if (op === 0x89) { // IDEF - instruction definition
  21047. if (inFDEF || inELSE) {
  21048. warn('TT: nested IDEFs not allowed');
  21049. tooComplexToFollowFunctions = true;
  21050. }
  21051. inFDEF = true;
  21052. // recording it as a function to track ENDF
  21053. lastDeff = i;
  21054. } else if (op === 0x58) { // IF
  21055. ++ifLevel;
  21056. } else if (op === 0x1B) { // ELSE
  21057. inELSE = ifLevel;
  21058. } else if (op === 0x59) { // EIF
  21059. if (inELSE === ifLevel) {
  21060. inELSE = 0;
  21061. }
  21062. --ifLevel;
  21063. } else if (op === 0x1C) { // JMPR
  21064. if (!inFDEF && !inELSE) {
  21065. var offset = stack[stack.length - 1];
  21066. // only jumping forward to prevent infinite loop
  21067. if (offset > 0) {
  21068. i += offset - 1;
  21069. }
  21070. }
  21071. }
  21072. // Adjusting stack not extactly, but just enough to get function id
  21073. if (!inFDEF && !inELSE) {
  21074. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  21075. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  21076. if (op >= 0x71 && op <= 0x75) {
  21077. n = stack.pop();
  21078. if (n === n) {
  21079. stackDelta = -n * 2;
  21080. }
  21081. }
  21082. while (stackDelta < 0 && stack.length > 0) {
  21083. stack.pop();
  21084. stackDelta++;
  21085. }
  21086. while (stackDelta > 0) {
  21087. stack.push(NaN); // pushing any number into stack
  21088. stackDelta--;
  21089. }
  21090. }
  21091. }
  21092. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  21093. var content = [data];
  21094. if (i > data.length) {
  21095. content.push(new Uint8Array(i - data.length));
  21096. }
  21097. if (lastDeff > lastEndf) {
  21098. warn('TT: complementing a missing function tail');
  21099. // new function definition started, but not finished
  21100. // complete function by [CLEAR, ENDF]
  21101. content.push(new Uint8Array([0x22, 0x2D]));
  21102. }
  21103. foldTTTable(table, content);
  21104. }
  21105. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  21106. if (ttContext.tooComplexToFollowFunctions) {
  21107. return;
  21108. }
  21109. if (ttContext.functionsDefined.length > maxFunctionDefs) {
  21110. warn('TT: more functions defined than expected');
  21111. ttContext.hintsValid = false;
  21112. return;
  21113. }
  21114. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  21115. if (j > maxFunctionDefs) {
  21116. warn('TT: invalid function id: ' + j);
  21117. ttContext.hintsValid = false;
  21118. return;
  21119. }
  21120. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  21121. warn('TT: undefined function: ' + j);
  21122. ttContext.hintsValid = false;
  21123. return;
  21124. }
  21125. }
  21126. }
  21127. function foldTTTable(table, content) {
  21128. if (content.length > 1) {
  21129. // concatenating the content items
  21130. var newLength = 0;
  21131. var j, jj;
  21132. for (j = 0, jj = content.length; j < jj; j++) {
  21133. newLength += content[j].length;
  21134. }
  21135. newLength = (newLength + 3) & ~3;
  21136. var result = new Uint8Array(newLength);
  21137. var pos = 0;
  21138. for (j = 0, jj = content.length; j < jj; j++) {
  21139. result.set(content[j], pos);
  21140. pos += content[j].length;
  21141. }
  21142. table.data = result;
  21143. table.length = newLength;
  21144. }
  21145. }
  21146. function sanitizeTTPrograms(fpgm, prep, cvt) {
  21147. var ttContext = {
  21148. functionsDefined: [],
  21149. functionsUsed: [],
  21150. functionsStackDeltas: [],
  21151. tooComplexToFollowFunctions: false,
  21152. hintsValid: true
  21153. };
  21154. if (fpgm) {
  21155. sanitizeTTProgram(fpgm, ttContext);
  21156. }
  21157. if (prep) {
  21158. sanitizeTTProgram(prep, ttContext);
  21159. }
  21160. if (fpgm) {
  21161. checkInvalidFunctions(ttContext, maxFunctionDefs);
  21162. }
  21163. if (cvt && (cvt.length & 1)) {
  21164. var cvtData = new Uint8Array(cvt.length + 1);
  21165. cvtData.set(cvt.data);
  21166. cvt.data = cvtData;
  21167. }
  21168. return ttContext.hintsValid;
  21169. }
  21170. // The following steps modify the original font data, making copy
  21171. font = new Stream(new Uint8Array(font.getBytes()));
  21172. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  21173. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  21174. var header = readOpenTypeHeader(font);
  21175. var numTables = header.numTables;
  21176. var cff, cffFile;
  21177. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  21178. hmtx: null, maxp: null, name: null, post: null };
  21179. var table, tableData;
  21180. for (var i = 0; i < numTables; i++) {
  21181. table = readTableEntry(font);
  21182. if (VALID_TABLES.indexOf(table.tag) < 0) {
  21183. continue; // skipping table if it's not a required or optional table
  21184. }
  21185. if (table.length === 0) {
  21186. continue; // skipping empty tables
  21187. }
  21188. tables[table.tag] = table;
  21189. }
  21190. var isTrueType = !tables['CFF '];
  21191. if (!isTrueType) {
  21192. // OpenType font
  21193. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  21194. // no major tables: throwing everything at CFFFont
  21195. cffFile = new Stream(tables['CFF '].data);
  21196. cff = new CFFFont(cffFile, properties);
  21197. return this.convert(name, cff, properties);
  21198. }
  21199. delete tables.glyf;
  21200. delete tables.loca;
  21201. delete tables.fpgm;
  21202. delete tables.prep;
  21203. delete tables['cvt '];
  21204. } else {
  21205. if (!tables.glyf || !tables.loca) {
  21206. error('Required "glyf" or "loca" tables are not found');
  21207. }
  21208. }
  21209. if (!tables.maxp) {
  21210. error('Required "maxp" table is not found');
  21211. }
  21212. font.pos = (font.start || 0) + tables.maxp.offset;
  21213. var version = font.getInt32();
  21214. var numGlyphs = font.getUint16();
  21215. var maxFunctionDefs = 0;
  21216. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  21217. // maxZones can be invalid
  21218. font.pos += 8;
  21219. var maxZones = font.getUint16();
  21220. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  21221. tables.maxp.data[14] = 0;
  21222. tables.maxp.data[15] = 2;
  21223. }
  21224. font.pos += 4;
  21225. maxFunctionDefs = font.getUint16();
  21226. }
  21227. var dupFirstEntry = false;
  21228. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  21229. properties.toUnicode[0] > '\u0000') {
  21230. // oracle's defect (see 3427), duplicating first entry
  21231. dupFirstEntry = true;
  21232. numGlyphs++;
  21233. tables.maxp.data[4] = numGlyphs >> 8;
  21234. tables.maxp.data[5] = numGlyphs & 255;
  21235. }
  21236. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  21237. tables['cvt '], maxFunctionDefs);
  21238. if (!hintsValid) {
  21239. delete tables.fpgm;
  21240. delete tables.prep;
  21241. delete tables['cvt '];
  21242. }
  21243. // Tables needs to be written by ascendant alphabetic order
  21244. var tablesNames = Object.keys(tables);
  21245. tablesNames.sort();
  21246. numTables = tablesNames.length;
  21247. // header and new offsets. Table entry information is appended to the
  21248. // end of file. The virtualOffset represents where to put the actual
  21249. // data of a particular table;
  21250. var ttf = {
  21251. file: '',
  21252. virtualOffset: numTables * (4 * 4)
  21253. };
  21254. // The new numbers of tables will be the last one plus the num
  21255. // of missing tables
  21256. createOpenTypeHeader(header.version, ttf, numTables);
  21257. // Ensure the hmtx table contains the advance width and
  21258. // sidebearings information for numGlyphs in the maxp table
  21259. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  21260. if (!tables.head) {
  21261. error('Required "head" table is not found');
  21262. }
  21263. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  21264. if (isTrueType) {
  21265. var isGlyphLocationsLong = int16(tables.head.data[50],
  21266. tables.head.data[51]);
  21267. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  21268. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  21269. }
  21270. if (!tables.hhea) {
  21271. error('Required "hhea" table is not found');
  21272. }
  21273. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  21274. // Sometimes it's 0. That needs to be fixed
  21275. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  21276. tables.hhea.data[10] = 0xFF;
  21277. tables.hhea.data[11] = 0xFF;
  21278. }
  21279. // The 'post' table has glyphs names.
  21280. if (tables.post) {
  21281. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  21282. if (!valid) {
  21283. tables.post = null;
  21284. }
  21285. }
  21286. var charCodeToGlyphId = [], charCode;
  21287. if (properties.type == 'CIDFontType2') {
  21288. var cidToGidMap = properties.cidToGidMap || [];
  21289. var cMap = properties.cMap.map;
  21290. for (charCode in cMap) {
  21291. charCode |= 0;
  21292. var cid = cMap[charCode];
  21293. assert(cid.length === 1, 'Max size of CID is 65,535');
  21294. cid = cid.charCodeAt(0);
  21295. var glyphId = -1;
  21296. if (cidToGidMap.length === 0) {
  21297. glyphId = charCode;
  21298. } else if (cid in cidToGidMap) {
  21299. glyphId = cidToGidMap[cid];
  21300. }
  21301. if (glyphId >= 0 && glyphId < numGlyphs) {
  21302. charCodeToGlyphId[charCode] = glyphId;
  21303. }
  21304. }
  21305. if (dupFirstEntry) {
  21306. charCodeToGlyphId[0] = numGlyphs - 1;
  21307. }
  21308. } else {
  21309. // Most of the following logic in this code branch is based on the
  21310. // 9.6.6.4 of the PDF spec.
  21311. var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);
  21312. var cmapPlatformId = cmapTable.platformId;
  21313. var cmapEncodingId = cmapTable.encodingId;
  21314. var cmapMappings = cmapTable.mappings;
  21315. var cmapMappingsLength = cmapMappings.length;
  21316. var hasEncoding = properties.differences.length ||
  21317. !!properties.baseEncodingName;
  21318. // The spec seems to imply that if the font is symbolic the encoding
  21319. // should be ignored, this doesn't appear to work for 'preistabelle.pdf'
  21320. // where the the font is symbolic and it has an encoding.
  21321. if (hasEncoding &&
  21322. (cmapPlatformId === 3 && cmapEncodingId === 1 ||
  21323. cmapPlatformId === 1 && cmapEncodingId === 0)) {
  21324. var baseEncoding = [];
  21325. if (properties.baseEncodingName === 'MacRomanEncoding' ||
  21326. properties.baseEncodingName === 'WinAnsiEncoding') {
  21327. baseEncoding = Encodings[properties.baseEncodingName];
  21328. }
  21329. for (charCode = 0; charCode < 256; charCode++) {
  21330. var glyphName;
  21331. if (this.differences && charCode in this.differences) {
  21332. glyphName = this.differences[charCode];
  21333. } else if (charCode in baseEncoding &&
  21334. baseEncoding[charCode] !== '') {
  21335. glyphName = baseEncoding[charCode];
  21336. } else {
  21337. glyphName = Encodings.StandardEncoding[charCode];
  21338. }
  21339. if (!glyphName) {
  21340. continue;
  21341. }
  21342. var unicodeOrCharCode;
  21343. if (cmapPlatformId === 3 && cmapEncodingId === 1) {
  21344. unicodeOrCharCode = GlyphsUnicode[glyphName];
  21345. } else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
  21346. // TODO: the encoding needs to be updated with mac os table.
  21347. unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);
  21348. }
  21349. var found = false;
  21350. for (i = 0; i < cmapMappingsLength; ++i) {
  21351. if (cmapMappings[i].charCode === unicodeOrCharCode) {
  21352. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21353. found = true;
  21354. break;
  21355. }
  21356. }
  21357. if (!found && properties.glyphNames) {
  21358. // Try to map using the post table. There are currently no known
  21359. // pdfs that this fixes.
  21360. glyphId = properties.glyphNames.indexOf(glyphName);
  21361. if (glyphId > 0) {
  21362. charCodeToGlyphId[charCode] = glyphId;
  21363. }
  21364. }
  21365. }
  21366. } else {
  21367. // For (3, 0) cmap tables:
  21368. // The charcode key being stored in charCodeToGlyphId is the lower
  21369. // byte of the two-byte charcodes of the cmap table since according to
  21370. // the spec: 'each byte from the string shall be prepended with the
  21371. // high byte of the range [of charcodes in the cmap table], to form
  21372. // a two-byte character, which shall be used to select the
  21373. // associated glyph description from the subtable'.
  21374. //
  21375. // For (1, 0) cmap tables:
  21376. // 'single bytes from the string shall be used to look up the
  21377. // associated glyph descriptions from the subtable'. This means
  21378. // charcodes in the cmap will be single bytes, so no-op since
  21379. // glyph.charCode & 0xFF === glyph.charCode
  21380. for (i = 0; i < cmapMappingsLength; ++i) {
  21381. charCode = cmapMappings[i].charCode & 0xFF;
  21382. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21383. }
  21384. }
  21385. }
  21386. if (charCodeToGlyphId.length === 0) {
  21387. // defines at least one glyph
  21388. charCodeToGlyphId[0] = 0;
  21389. }
  21390. // Converting glyphs and ids into font's cmap table
  21391. var newMapping = adjustMapping(charCodeToGlyphId, properties);
  21392. this.toFontChar = newMapping.toFontChar;
  21393. tables.cmap = {
  21394. tag: 'cmap',
  21395. data: createCmapTable(newMapping.charCodeToGlyphId)
  21396. };
  21397. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  21398. // extract some more font properties from the OpenType head and
  21399. // hhea tables; yMin and descent value are always negative
  21400. var override = {
  21401. unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),
  21402. yMax: int16(tables.head.data[42], tables.head.data[43]),
  21403. yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,
  21404. ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),
  21405. descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000
  21406. };
  21407. tables['OS/2'] = {
  21408. tag: 'OS/2',
  21409. data: stringToArray(createOS2Table(properties,
  21410. newMapping.charCodeToGlyphId,
  21411. override))
  21412. };
  21413. }
  21414. // Rewrite the 'post' table if needed
  21415. if (!tables.post) {
  21416. tables.post = {
  21417. tag: 'post',
  21418. data: stringToArray(createPostTable(properties))
  21419. };
  21420. }
  21421. if (!isTrueType) {
  21422. try {
  21423. // Trying to repair CFF file
  21424. cffFile = new Stream(tables['CFF '].data);
  21425. var parser = new CFFParser(cffFile, properties);
  21426. cff = parser.parse();
  21427. var compiler = new CFFCompiler(cff);
  21428. tables['CFF '].data = compiler.compile();
  21429. } catch (e) {
  21430. warn('Failed to compile font ' + properties.loadedName);
  21431. }
  21432. }
  21433. // Re-creating 'name' table
  21434. if (!tables.name) {
  21435. tables.name = {
  21436. tag: 'name',
  21437. data: stringToArray(createNameTable(this.name))
  21438. };
  21439. } else {
  21440. // ... using existing 'name' table as prototype
  21441. var namePrototype = readNameTable(tables.name);
  21442. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  21443. }
  21444. // rewrite the tables but tweak offsets
  21445. for (i = 0; i < numTables; i++) {
  21446. table = tables[tablesNames[i]];
  21447. var data = [];
  21448. tableData = table.data;
  21449. for (var j = 0, jj = tableData.length; j < jj; j++) {
  21450. data.push(tableData[j]);
  21451. }
  21452. createTableEntry(ttf, table.tag, data);
  21453. }
  21454. // Add the table datas
  21455. for (i = 0; i < numTables; i++) {
  21456. table = tables[tablesNames[i]];
  21457. tableData = table.data;
  21458. ttf.file += bytesToString(new Uint8Array(tableData));
  21459. // 4-byte aligned data
  21460. while (ttf.file.length & 3) {
  21461. ttf.file += String.fromCharCode(0);
  21462. }
  21463. }
  21464. return stringToArray(ttf.file);
  21465. },
  21466. convert: function Font_convert(fontName, font, properties) {
  21467. // The offsets object holds at the same time a representation of where
  21468. // to write the table entry information about a table and another offset
  21469. // representing the offset where to draw the actual data of a particular
  21470. // table
  21471. var otf = {
  21472. file: '',
  21473. virtualOffset: 9 * (4 * 4)
  21474. };
  21475. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  21476. // TODO: Check the charstring widths to determine this.
  21477. properties.fixedPitch = false;
  21478. var mapping = font.getGlyphMapping(properties);
  21479. var newMapping = adjustMapping(mapping, properties);
  21480. this.toFontChar = newMapping.toFontChar;
  21481. var numGlyphs = font.numGlyphs;
  21482. function getCharCode(charCodeToGlyphId, glyphId, addMap) {
  21483. for (var charCode in charCodeToGlyphId) {
  21484. if (glyphId === charCodeToGlyphId[charCode]) {
  21485. return charCode | 0;
  21486. }
  21487. }
  21488. if (addMap) {
  21489. newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
  21490. glyphId;
  21491. return newMapping.nextAvailableFontCharCode++;
  21492. }
  21493. return null;
  21494. }
  21495. var seacs = font.seacs;
  21496. if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
  21497. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  21498. var charset = font.getCharset();
  21499. var seacMap = Object.create(null);
  21500. for (var glyphId in seacs) {
  21501. glyphId |= 0;
  21502. var seac = seacs[glyphId];
  21503. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  21504. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  21505. var baseGlyphId = charset.indexOf(baseGlyphName);
  21506. var accentGlyphId = charset.indexOf(accentGlyphName);
  21507. if (baseGlyphId < 0 || accentGlyphId < 0) {
  21508. continue;
  21509. }
  21510. var accentOffset = {
  21511. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  21512. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  21513. };
  21514. var charCode = getCharCode(mapping, glyphId);
  21515. if (charCode === null) {
  21516. // There's no point in mapping it if the char code was never mapped
  21517. // to begin with.
  21518. continue;
  21519. }
  21520. // Find a fontCharCode that maps to the base and accent glyphs. If one
  21521. // doesn't exists, create it.
  21522. var charCodeToGlyphId = newMapping.charCodeToGlyphId;
  21523. var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId,
  21524. true);
  21525. var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId,
  21526. true);
  21527. seacMap[charCode] = {
  21528. baseFontCharCode: baseFontCharCode,
  21529. accentFontCharCode: accentFontCharCode,
  21530. accentOffset: accentOffset
  21531. };
  21532. }
  21533. properties.seacMap = seacMap;
  21534. }
  21535. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  21536. var fields = {
  21537. // PostScript Font Program
  21538. 'CFF ': font.data,
  21539. // OS/2 and Windows Specific metrics
  21540. 'OS/2': stringToArray(createOS2Table(properties,
  21541. newMapping.charCodeToGlyphId)),
  21542. // Character to glyphs mapping
  21543. 'cmap': createCmapTable(newMapping.charCodeToGlyphId),
  21544. // Font header
  21545. 'head': (function fontFieldsHead() {
  21546. return stringToArray(
  21547. '\x00\x01\x00\x00' + // Version number
  21548. '\x00\x00\x10\x00' + // fontRevision
  21549. '\x00\x00\x00\x00' + // checksumAdjustement
  21550. '\x5F\x0F\x3C\xF5' + // magicNumber
  21551. '\x00\x00' + // Flags
  21552. safeString16(unitsPerEm) + // unitsPerEM
  21553. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  21554. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  21555. '\x00\x00' + // xMin
  21556. safeString16(properties.descent) + // yMin
  21557. '\x0F\xFF' + // xMax
  21558. safeString16(properties.ascent) + // yMax
  21559. string16(properties.italicAngle ? 2 : 0) + // macStyle
  21560. '\x00\x11' + // lowestRecPPEM
  21561. '\x00\x00' + // fontDirectionHint
  21562. '\x00\x00' + // indexToLocFormat
  21563. '\x00\x00'); // glyphDataFormat
  21564. })(),
  21565. // Horizontal header
  21566. 'hhea': (function fontFieldsHhea() {
  21567. return stringToArray(
  21568. '\x00\x01\x00\x00' + // Version number
  21569. safeString16(properties.ascent) + // Typographic Ascent
  21570. safeString16(properties.descent) + // Typographic Descent
  21571. '\x00\x00' + // Line Gap
  21572. '\xFF\xFF' + // advanceWidthMax
  21573. '\x00\x00' + // minLeftSidebearing
  21574. '\x00\x00' + // minRightSidebearing
  21575. '\x00\x00' + // xMaxExtent
  21576. safeString16(properties.capHeight) + // caretSlopeRise
  21577. safeString16(Math.tan(properties.italicAngle) *
  21578. properties.xHeight) + // caretSlopeRun
  21579. '\x00\x00' + // caretOffset
  21580. '\x00\x00' + // -reserved-
  21581. '\x00\x00' + // -reserved-
  21582. '\x00\x00' + // -reserved-
  21583. '\x00\x00' + // -reserved-
  21584. '\x00\x00' + // metricDataFormat
  21585. string16(numGlyphs)); // Number of HMetrics
  21586. })(),
  21587. // Horizontal metrics
  21588. 'hmtx': (function fontFieldsHmtx() {
  21589. var charstrings = font.charstrings;
  21590. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  21591. for (var i = 1, ii = numGlyphs; i < ii; i++) {
  21592. // TODO: For CFF fonts the width should technically match th x in
  21593. // the glyph, but it doesn't seem to matter.
  21594. var charstring = charstrings ? charstrings[i - 1] : {};
  21595. var width = 'width' in charstring ? charstring.width : 0;
  21596. hmtx += string16(width) + string16(0);
  21597. }
  21598. return stringToArray(hmtx);
  21599. })(),
  21600. // Maximum profile
  21601. 'maxp': (function fontFieldsMaxp() {
  21602. return stringToArray(
  21603. '\x00\x00\x50\x00' + // Version number
  21604. string16(numGlyphs)); // Num of glyphs
  21605. })(),
  21606. // Naming tables
  21607. 'name': stringToArray(createNameTable(fontName)),
  21608. // PostScript informations
  21609. 'post': stringToArray(createPostTable(properties))
  21610. };
  21611. var field;
  21612. for (field in fields) {
  21613. createTableEntry(otf, field, fields[field]);
  21614. }
  21615. for (field in fields) {
  21616. var table = fields[field];
  21617. otf.file += bytesToString(new Uint8Array(table));
  21618. }
  21619. return stringToArray(otf.file);
  21620. },
  21621. /**
  21622. * Builds a char code to unicode map based on section 9.10 of the spec.
  21623. * @param {Object} properties Font properties object.
  21624. * @return {Object} Has two properties: 'toUnicode' which maps char codes to
  21625. * unicode (string) values and 'isIdentity' which is true if an identity map
  21626. * is used.
  21627. */
  21628. buildToUnicode: function Font_buildToUnicode(properties) {
  21629. var map = {
  21630. isIdentity: false,
  21631. toUnicode: null
  21632. };
  21633. // Section 9.10.2 Mapping Character Codes to Unicode Values
  21634. if (properties.toUnicode && properties.toUnicode.length !== 0) {
  21635. map.toUnicode = properties.toUnicode;
  21636. return map;
  21637. }
  21638. // According to the spec if the font is a simple font we should only map
  21639. // to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
  21640. // the differences array only contains adobe standard or symbol set names,
  21641. // in pratice it seems better to always try to create a toUnicode
  21642. // map based of the default encoding.
  21643. var toUnicode, charcode;
  21644. if (!properties.composite /* is simple font */) {
  21645. toUnicode = [];
  21646. var encoding = properties.defaultEncoding.slice();
  21647. // Merge in the differences array.
  21648. var differences = properties.differences;
  21649. for (charcode in differences) {
  21650. encoding[charcode] = differences[charcode];
  21651. }
  21652. for (charcode in encoding) {
  21653. // a) Map the character code to a character name.
  21654. var glyphName = encoding[charcode];
  21655. // b) Look up the character name in the Adobe Glyph List (see the
  21656. // Bibliography) to obtain the corresponding Unicode value.
  21657. if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
  21658. // (undocumented) c) Few heuristics to recognize unknown glyphs
  21659. // NOTE: Adobe Reader does not do this step, but OSX Preview does
  21660. var code;
  21661. // Gxx glyph
  21662. if (glyphName.length === 3 &&
  21663. glyphName[0] === 'G' &&
  21664. (code = parseInt(glyphName.substr(1), 16))) {
  21665. toUnicode[charcode] = String.fromCharCode(code);
  21666. }
  21667. // Cddd glyph
  21668. if (glyphName.length >= 3 &&
  21669. glyphName[0] === 'C' &&
  21670. (code = +glyphName.substr(1))) {
  21671. toUnicode[charcode] = String.fromCharCode(code);
  21672. }
  21673. continue;
  21674. }
  21675. toUnicode[charcode] = String.fromCharCode(GlyphsUnicode[glyphName]);
  21676. }
  21677. map.toUnicode = toUnicode;
  21678. return map;
  21679. }
  21680. // If the font is a composite font that uses one of the predefined CMaps
  21681. // listed in Table 118 (except Identity–H and Identity–V) or whose
  21682. // descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1, or
  21683. // Adobe-Korea1 character collection:
  21684. if (properties.composite && (
  21685. (properties.cMap.builtInCMap &&
  21686. !(properties.cMap instanceof IdentityCMap)) ||
  21687. (properties.cidSystemInfo.registry === 'Adobe' &&
  21688. (properties.cidSystemInfo.ordering === 'GB1' ||
  21689. properties.cidSystemInfo.ordering === 'CNS1' ||
  21690. properties.cidSystemInfo.ordering === 'Japan1' ||
  21691. properties.cidSystemInfo.ordering === 'Korea1')))) {
  21692. // Then:
  21693. // a) Map the character code to a character identifier (CID) according
  21694. // to the font’s CMap.
  21695. // b) Obtain the registry and ordering of the character collection used
  21696. // by the font’s CMap (for example, Adobe and Japan1) from its
  21697. // CIDSystemInfo dictionary.
  21698. var registry = properties.cidSystemInfo.registry;
  21699. var ordering = properties.cidSystemInfo.ordering;
  21700. // c) Construct a second CMap name by concatenating the registry and
  21701. // ordering obtained in step (b) in the format registry–ordering–UCS2
  21702. // (for example, Adobe–Japan1–UCS2).
  21703. var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
  21704. // d) Obtain the CMap with the name constructed in step (c) (available
  21705. // from the ASN Web site; see the Bibliography).
  21706. var ucs2CMap = CMapFactory.create(ucs2CMapName,
  21707. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  21708. var cMap = properties.cMap;
  21709. toUnicode = [];
  21710. for (charcode in cMap.map) {
  21711. var cid = cMap.map[charcode];
  21712. assert(cid.length === 1, 'Max size of CID is 65,535');
  21713. // e) Map the CID obtained in step (a) according to the CMap obtained
  21714. // in step (d), producing a Unicode value.
  21715. var ucs2 = ucs2CMap.map[cid.charCodeAt(0)];
  21716. if (!ucs2) {
  21717. continue;
  21718. }
  21719. toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) +
  21720. ucs2.charCodeAt(1));
  21721. }
  21722. map.toUnicode = toUnicode;
  21723. return map;
  21724. }
  21725. // The viewer's choice, just use an identity map.
  21726. toUnicode = [];
  21727. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  21728. for (var i = firstChar; i <= lastChar; i++) {
  21729. toUnicode[i] = String.fromCharCode(i);
  21730. }
  21731. map.isIdentity = true;
  21732. map.toUnicode = toUnicode;
  21733. return map;
  21734. },
  21735. get spaceWidth() {
  21736. if ('_shadowWidth' in this) {
  21737. return this._shadowWidth;
  21738. }
  21739. // trying to estimate space character width
  21740. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  21741. var width;
  21742. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  21743. var glyphName = possibleSpaceReplacements[i];
  21744. // if possible, getting width by glyph name
  21745. if (glyphName in this.widths) {
  21746. width = this.widths[glyphName];
  21747. break;
  21748. }
  21749. var glyphUnicode = GlyphsUnicode[glyphName];
  21750. // finding the charcode via unicodeToCID map
  21751. var charcode = 0;
  21752. if (this.composite) {
  21753. if (glyphUnicode in this.cMap.map) {
  21754. charcode = this.cMap.lookup(glyphUnicode).charCodeAt(0);
  21755. }
  21756. }
  21757. // ... via toUnicode map
  21758. if (!charcode && 'toUnicode' in this) {
  21759. charcode = this.toUnicode.indexOf(glyphUnicode);
  21760. }
  21761. // setting it to unicode if negative or undefined
  21762. if (charcode <= 0) {
  21763. charcode = glyphUnicode;
  21764. }
  21765. // trying to get width via charcode
  21766. width = this.widths[charcode];
  21767. if (width) {
  21768. break; // the non-zero width found
  21769. }
  21770. }
  21771. width = width || this.defaultWidth;
  21772. // Do not shadow the property here. See discussion:
  21773. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  21774. this._shadowWidth = width;
  21775. return width;
  21776. },
  21777. charToGlyph: function Font_charToGlyph(charcode) {
  21778. var fontCharCode, width, operatorListId;
  21779. var widthCode = charcode;
  21780. if (this.cMap && charcode in this.cMap.map) {
  21781. widthCode = this.cMap.map[charcode].charCodeAt(0);
  21782. }
  21783. width = this.widths[widthCode];
  21784. width = isNum(width) ? width : this.defaultWidth;
  21785. var vmetric = this.vmetrics && this.vmetrics[widthCode];
  21786. var unicode = this.toUnicode[charcode] || charcode;
  21787. if (typeof unicode === 'number') {
  21788. unicode = String.fromCharCode(unicode);
  21789. }
  21790. // First try the toFontChar map, if it's not there then try falling
  21791. // back to the char code.
  21792. fontCharCode = this.toFontChar[charcode] || charcode;
  21793. if (this.missingFile) {
  21794. fontCharCode = mapSpecialUnicodeValues(fontCharCode);
  21795. }
  21796. if (this.isType3Font) {
  21797. // Font char code in this case is actually a glyph name.
  21798. operatorListId = fontCharCode;
  21799. }
  21800. var accent = null;
  21801. if (this.seacMap && this.seacMap[charcode]) {
  21802. var seac = this.seacMap[charcode];
  21803. fontCharCode = seac.baseFontCharCode;
  21804. accent = {
  21805. fontChar: String.fromCharCode(seac.accentFontCharCode),
  21806. offset: seac.accentOffset
  21807. };
  21808. }
  21809. var fontChar = String.fromCharCode(fontCharCode);
  21810. var glyph = this.glyphCache[charcode];
  21811. if (!glyph ||
  21812. !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,
  21813. operatorListId)) {
  21814. glyph = new Glyph(fontChar, unicode, accent, width, vmetric,
  21815. operatorListId);
  21816. this.glyphCache[charcode] = glyph;
  21817. }
  21818. return glyph;
  21819. },
  21820. charsToGlyphs: function Font_charsToGlyphs(chars) {
  21821. var charsCache = this.charsCache;
  21822. var glyphs, glyph, charcode;
  21823. // if we translated this string before, just grab it from the cache
  21824. if (charsCache) {
  21825. glyphs = charsCache[chars];
  21826. if (glyphs) {
  21827. return glyphs;
  21828. }
  21829. }
  21830. // lazily create the translation cache
  21831. if (!charsCache) {
  21832. charsCache = this.charsCache = Object.create(null);
  21833. }
  21834. glyphs = [];
  21835. var charsCacheKey = chars;
  21836. var i = 0, ii;
  21837. if (this.cMap) {
  21838. // composite fonts have multi-byte strings convert the string from
  21839. // single-byte to multi-byte
  21840. while (i < chars.length) {
  21841. var c = this.cMap.readCharCode(chars, i);
  21842. charcode = c[0];
  21843. var length = c[1];
  21844. i += length;
  21845. glyph = this.charToGlyph(charcode);
  21846. glyphs.push(glyph);
  21847. // placing null after each word break charcode (ASCII SPACE)
  21848. // Ignore occurences of 0x20 in multiple-byte codes.
  21849. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  21850. glyphs.push(null);
  21851. }
  21852. }
  21853. } else {
  21854. for (i = 0, ii = chars.length; i < ii; ++i) {
  21855. charcode = chars.charCodeAt(i);
  21856. glyph = this.charToGlyph(charcode);
  21857. glyphs.push(glyph);
  21858. if (charcode == 0x20) {
  21859. glyphs.push(null);
  21860. }
  21861. }
  21862. }
  21863. // Enter the translated string into the cache
  21864. return (charsCache[charsCacheKey] = glyphs);
  21865. }
  21866. };
  21867. return Font;
  21868. })();
  21869. var ErrorFont = (function ErrorFontClosure() {
  21870. function ErrorFont(error) {
  21871. this.error = error;
  21872. this.loadedName = 'g_font_error';
  21873. this.loading = false;
  21874. }
  21875. ErrorFont.prototype = {
  21876. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  21877. return [];
  21878. },
  21879. exportData: function ErrorFont_exportData() {
  21880. return {error: this.error};
  21881. }
  21882. };
  21883. return ErrorFont;
  21884. })();
  21885. /**
  21886. * Shared logic for building a char code to glyph id mapping for Type1 and
  21887. * simple CFF fonts. See section 9.6.6.2 of the spec.
  21888. * @param {Object} properties Font properties object.
  21889. * @param {Object} builtInEncoding The encoding contained within the actual font
  21890. * data.
  21891. * @param {Array} Array of glyph names where the index is the glyph ID.
  21892. * @returns {Object} A char code to glyph ID map.
  21893. */
  21894. function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
  21895. var charCodeToGlyphId = Object.create(null);
  21896. var glyphId, charCode, baseEncoding;
  21897. if (properties.baseEncodingName) {
  21898. // If a valid base encoding name was used, the mapping is initialized with
  21899. // that.
  21900. baseEncoding = Encodings[properties.baseEncodingName];
  21901. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21902. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21903. if (glyphId >= 0) {
  21904. charCodeToGlyphId[charCode] = glyphId;
  21905. }
  21906. }
  21907. } else if (!!(properties.flags & FontFlags.Symbolic)) {
  21908. // For a symbolic font the encoding should be the fonts built-in
  21909. // encoding.
  21910. for (charCode in builtInEncoding) {
  21911. charCodeToGlyphId[charCode] = builtInEncoding[charCode];
  21912. }
  21913. } else {
  21914. // For non-symbolic fonts that don't have a base encoding the standard
  21915. // encoding should be used.
  21916. baseEncoding = Encodings.StandardEncoding;
  21917. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21918. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21919. if (glyphId >= 0) {
  21920. charCodeToGlyphId[charCode] = glyphId;
  21921. }
  21922. }
  21923. }
  21924. // Lastly, merge in the differences.
  21925. var differences = properties.differences;
  21926. if (differences) {
  21927. for (charCode in differences) {
  21928. var glyphName = differences[charCode];
  21929. glyphId = glyphNames.indexOf(glyphName);
  21930. if (glyphId >= 0) {
  21931. charCodeToGlyphId[charCode] = glyphId;
  21932. }
  21933. }
  21934. }
  21935. return charCodeToGlyphId;
  21936. }
  21937. /*
  21938. * CharStrings are encoded following the the CharString Encoding sequence
  21939. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  21940. * The value in a byte indicates a command, a number, or subsequent bytes
  21941. * that are to be interpreted in a special way.
  21942. *
  21943. * CharString Number Encoding:
  21944. * A CharString byte containing the values from 32 through 255 inclusive
  21945. * indicate an integer. These values are decoded in four ranges.
  21946. *
  21947. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  21948. * indicate the integer v - 139. Thus, the integer values from -107 through
  21949. * 107 inclusive may be encoded in single byte.
  21950. *
  21951. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  21952. * indicates an integer involving the next byte, w, according to the formula:
  21953. * [(v - 247) x 256] + w + 108
  21954. *
  21955. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  21956. * indicates an integer involving the next byte, w, according to the formula:
  21957. * -[(v - 251) * 256] - w - 108
  21958. *
  21959. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  21960. * are a two complement signed integer. The first of these bytes contains the
  21961. * highest order bits, the second byte contains the next higher order bits
  21962. * and the fourth byte contain the lowest order bits.
  21963. *
  21964. *
  21965. * CharString Command Encoding:
  21966. * CharStrings commands are encoded in 1 or 2 bytes.
  21967. *
  21968. * Single byte commands are encoded in 1 byte that contains a value between
  21969. * 0 and 31 inclusive.
  21970. * If a command byte contains the value 12, then the value in the next byte
  21971. * indicates a command. This "escape" mechanism allows many extra commands
  21972. * to be encoded and this encoding technique helps to minimize the length of
  21973. * the charStrings.
  21974. */
  21975. var Type1CharString = (function Type1CharStringClosure() {
  21976. var COMMAND_MAP = {
  21977. 'hstem': [1],
  21978. 'vstem': [3],
  21979. 'vmoveto': [4],
  21980. 'rlineto': [5],
  21981. 'hlineto': [6],
  21982. 'vlineto': [7],
  21983. 'rrcurveto': [8],
  21984. 'callsubr': [10],
  21985. 'flex': [12, 35],
  21986. 'drop' : [12, 18],
  21987. 'endchar': [14],
  21988. 'rmoveto': [21],
  21989. 'hmoveto': [22],
  21990. 'vhcurveto': [30],
  21991. 'hvcurveto': [31]
  21992. };
  21993. function Type1CharString() {
  21994. this.width = 0;
  21995. this.lsb = 0;
  21996. this.flexing = false;
  21997. this.output = [];
  21998. this.stack = [];
  21999. }
  22000. Type1CharString.prototype = {
  22001. convert: function Type1CharString_convert(encoded, subrs) {
  22002. var count = encoded.length;
  22003. var error = false;
  22004. var wx, sbx, subrNumber;
  22005. for (var i = 0; i < count; i++) {
  22006. var value = encoded[i];
  22007. if (value < 32) {
  22008. if (value === 12) {
  22009. value = (value << 8) + encoded[++i];
  22010. }
  22011. switch (value) {
  22012. case 1: // hstem
  22013. if (!HINTING_ENABLED) {
  22014. this.stack = [];
  22015. break;
  22016. }
  22017. error = this.executeCommand(2, COMMAND_MAP.hstem);
  22018. break;
  22019. case 3: // vstem
  22020. if (!HINTING_ENABLED) {
  22021. this.stack = [];
  22022. break;
  22023. }
  22024. error = this.executeCommand(2, COMMAND_MAP.vstem);
  22025. break;
  22026. case 4: // vmoveto
  22027. if (this.flexing) {
  22028. if (this.stack.length < 1) {
  22029. error = true;
  22030. break;
  22031. }
  22032. // Add the dx for flex and but also swap the values so they are
  22033. // the right order.
  22034. var dy = this.stack.pop();
  22035. this.stack.push(0, dy);
  22036. break;
  22037. }
  22038. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  22039. break;
  22040. case 5: // rlineto
  22041. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  22042. break;
  22043. case 6: // hlineto
  22044. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  22045. break;
  22046. case 7: // vlineto
  22047. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  22048. break;
  22049. case 8: // rrcurveto
  22050. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  22051. break;
  22052. case 9: // closepath
  22053. // closepath is a Type1 command that does not take argument and is
  22054. // useless in Type2 and it can simply be ignored.
  22055. this.stack = [];
  22056. break;
  22057. case 10: // callsubr
  22058. if (this.stack.length < 1) {
  22059. error = true;
  22060. break;
  22061. }
  22062. subrNumber = this.stack.pop();
  22063. error = this.convert(subrs[subrNumber], subrs);
  22064. break;
  22065. case 11: // return
  22066. return error;
  22067. case 13: // hsbw
  22068. if (this.stack.length < 2) {
  22069. error = true;
  22070. break;
  22071. }
  22072. // To convert to type2 we have to move the width value to the
  22073. // first part of the charstring and then use hmoveto with lsb.
  22074. wx = this.stack.pop();
  22075. sbx = this.stack.pop();
  22076. this.lsb = sbx;
  22077. this.width = wx;
  22078. this.stack.push(sbx);
  22079. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  22080. break;
  22081. case 14: // endchar
  22082. this.output.push(COMMAND_MAP.endchar[0]);
  22083. break;
  22084. case 21: // rmoveto
  22085. if (this.flexing) {
  22086. break;
  22087. }
  22088. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  22089. break;
  22090. case 22: // hmoveto
  22091. if (this.flexing) {
  22092. // Add the dy for flex.
  22093. this.stack.push(0);
  22094. break;
  22095. }
  22096. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  22097. break;
  22098. case 30: // vhcurveto
  22099. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  22100. break;
  22101. case 31: // hvcurveto
  22102. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  22103. break;
  22104. case (12 << 8) + 0: // dotsection
  22105. // dotsection is a Type1 command to specify some hinting feature
  22106. // for dots that do not take a parameter and it can safely be
  22107. // ignored for Type2.
  22108. this.stack = [];
  22109. break;
  22110. case (12 << 8) + 1: // vstem3
  22111. if (!HINTING_ENABLED) {
  22112. this.stack = [];
  22113. break;
  22114. }
  22115. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  22116. // multiple parameters, so instead of returning [vh]stem3 take a
  22117. // shortcut and return [vhstem] instead.
  22118. error = this.executeCommand(2, COMMAND_MAP.vstem);
  22119. break;
  22120. case (12 << 8) + 2: // hstem3
  22121. if (!HINTING_ENABLED) {
  22122. this.stack = [];
  22123. break;
  22124. }
  22125. // See vstem3.
  22126. error = this.executeCommand(2, COMMAND_MAP.hstem);
  22127. break;
  22128. case (12 << 8) + 6: // seac
  22129. // seac is like type 2's special endchar but it doesn't use the
  22130. // first argument asb, so remove it.
  22131. if (SEAC_ANALYSIS_ENABLED) {
  22132. this.seac = this.stack.splice(-4, 4);
  22133. error = this.executeCommand(0, COMMAND_MAP.endchar);
  22134. } else {
  22135. error = this.executeCommand(4, COMMAND_MAP.endchar);
  22136. }
  22137. break;
  22138. case (12 << 8) + 7: // sbw
  22139. if (this.stack.length < 4) {
  22140. error = true;
  22141. break;
  22142. }
  22143. // To convert to type2 we have to move the width value to the
  22144. // first part of the charstring and then use rmoveto with
  22145. // (dx, dy). The height argument will not be used for vmtx and
  22146. // vhea tables reconstruction -- ignoring it.
  22147. var wy = this.stack.pop();
  22148. wx = this.stack.pop();
  22149. var sby = this.stack.pop();
  22150. sbx = this.stack.pop();
  22151. this.lsb = sbx;
  22152. this.width = wx;
  22153. this.stack.push(sbx, sby);
  22154. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  22155. break;
  22156. case (12 << 8) + 12: // div
  22157. if (this.stack.length < 2) {
  22158. error = true;
  22159. break;
  22160. }
  22161. var num2 = this.stack.pop();
  22162. var num1 = this.stack.pop();
  22163. this.stack.push(num1 / num2);
  22164. break;
  22165. case (12 << 8) + 16: // callothersubr
  22166. if (this.stack.length < 2) {
  22167. error = true;
  22168. break;
  22169. }
  22170. subrNumber = this.stack.pop();
  22171. var numArgs = this.stack.pop();
  22172. if (subrNumber === 0 && numArgs === 3) {
  22173. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  22174. this.stack.push(
  22175. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  22176. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  22177. flexArgs[4], // bcp2x
  22178. flexArgs[5], // bcp2y
  22179. flexArgs[6], // p2x
  22180. flexArgs[7], // p2y
  22181. flexArgs[8], // bcp3x
  22182. flexArgs[9], // bcp3y
  22183. flexArgs[10], // bcp4x
  22184. flexArgs[11], // bcp4y
  22185. flexArgs[12], // p3x
  22186. flexArgs[13], // p3y
  22187. flexArgs[14] // flexDepth
  22188. // 15 = finalx unused by flex
  22189. // 16 = finaly unused by flex
  22190. );
  22191. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  22192. this.flexing = false;
  22193. this.stack.push(flexArgs[15], flexArgs[16]);
  22194. } else if (subrNumber === 1 && numArgs === 0) {
  22195. this.flexing = true;
  22196. }
  22197. break;
  22198. case (12 << 8) + 17: // pop
  22199. // Ignore this since it is only used with othersubr.
  22200. break;
  22201. case (12 << 8) + 33: // setcurrentpoint
  22202. // Ignore for now.
  22203. this.stack = [];
  22204. break;
  22205. default:
  22206. warn('Unknown type 1 charstring command of "' + value + '"');
  22207. break;
  22208. }
  22209. if (error) {
  22210. break;
  22211. }
  22212. continue;
  22213. } else if (value <= 246) {
  22214. value = value - 139;
  22215. } else if (value <= 250) {
  22216. value = ((value - 247) * 256) + encoded[++i] + 108;
  22217. } else if (value <= 254) {
  22218. value = -((value - 251) * 256) - encoded[++i] - 108;
  22219. } else {
  22220. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  22221. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  22222. }
  22223. this.stack.push(value);
  22224. }
  22225. return error;
  22226. },
  22227. executeCommand: function(howManyArgs, command, keepStack) {
  22228. var stackLength = this.stack.length;
  22229. if (howManyArgs > stackLength) {
  22230. return true;
  22231. }
  22232. var start = stackLength - howManyArgs;
  22233. for (var i = start; i < stackLength; i++) {
  22234. var value = this.stack[i];
  22235. if (value === (value | 0)) { // int
  22236. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  22237. } else { // fixed point
  22238. value = (65536 * value) | 0;
  22239. this.output.push(255,
  22240. (value >> 24) & 0xFF,
  22241. (value >> 16) & 0xFF,
  22242. (value >> 8) & 0xFF,
  22243. value & 0xFF);
  22244. }
  22245. }
  22246. this.output.push.apply(this.output, command);
  22247. if (keepStack) {
  22248. this.stack.splice(start, howManyArgs);
  22249. } else {
  22250. this.stack.length = 0;
  22251. }
  22252. return false;
  22253. }
  22254. };
  22255. return Type1CharString;
  22256. })();
  22257. /*
  22258. * Type1Parser encapsulate the needed code for parsing a Type1 font
  22259. * program. Some of its logic depends on the Type2 charstrings
  22260. * structure.
  22261. * Note: this doesn't really parse the font since that would require evaluation
  22262. * of PostScript, but it is possible in most cases to extract what we need
  22263. * without a full parse.
  22264. */
  22265. var Type1Parser = (function Type1ParserClosure() {
  22266. /*
  22267. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  22268. * of Plaintext Bytes. The function took a key as a parameter which can be
  22269. * for decrypting the eexec block of for decoding charStrings.
  22270. */
  22271. var EEXEC_ENCRYPT_KEY = 55665;
  22272. var CHAR_STRS_ENCRYPT_KEY = 4330;
  22273. function isHexDigit(code) {
  22274. return code >= 48 && code <= 57 || // '0'-'9'
  22275. code >= 65 && code <= 70 || // 'A'-'F'
  22276. code >= 97 && code <= 102; // 'a'-'f'
  22277. }
  22278. function decrypt(data, key, discardNumber) {
  22279. var r = key | 0, c1 = 52845, c2 = 22719;
  22280. var count = data.length;
  22281. var decrypted = new Uint8Array(count);
  22282. for (var i = 0; i < count; i++) {
  22283. var value = data[i];
  22284. decrypted[i] = value ^ (r >> 8);
  22285. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  22286. }
  22287. return Array.prototype.slice.call(decrypted, discardNumber);
  22288. }
  22289. function decryptAscii(data, key, discardNumber) {
  22290. var r = key | 0, c1 = 52845, c2 = 22719;
  22291. var count = data.length, maybeLength = count >>> 1;
  22292. var decrypted = new Uint8Array(maybeLength);
  22293. var i, j;
  22294. for (i = 0, j = 0; i < count; i++) {
  22295. var digit1 = data[i];
  22296. if (!isHexDigit(digit1)) {
  22297. continue;
  22298. }
  22299. i++;
  22300. var digit2;
  22301. while (i < count && !isHexDigit(digit2 = data[i])) {
  22302. i++;
  22303. }
  22304. if (i < count) {
  22305. var value = parseInt(String.fromCharCode(digit1, digit2), 16);
  22306. decrypted[j++] = value ^ (r >> 8);
  22307. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  22308. }
  22309. }
  22310. return Array.prototype.slice.call(decrypted, discardNumber, j);
  22311. }
  22312. function isSpecial(c) {
  22313. return c === 0x2F || // '/'
  22314. c === 0x5B || c === 0x5D || // '[', ']'
  22315. c === 0x7B || c === 0x7D || // '{', '}'
  22316. c === 0x28 || c === 0x29; // '(', ')'
  22317. }
  22318. function Type1Parser(stream, encrypted) {
  22319. if (encrypted) {
  22320. var data = stream.getBytes();
  22321. var isBinary = !(isHexDigit(data[0]) && isHexDigit(data[1]) &&
  22322. isHexDigit(data[2]) && isHexDigit(data[3]));
  22323. stream = new Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) :
  22324. decryptAscii(data, EEXEC_ENCRYPT_KEY, 4));
  22325. }
  22326. this.stream = stream;
  22327. this.nextChar();
  22328. }
  22329. Type1Parser.prototype = {
  22330. readNumberArray: function Type1Parser_readNumberArray() {
  22331. this.getToken(); // read '[' or '{' (arrays can start with either)
  22332. var array = [];
  22333. while (true) {
  22334. var token = this.getToken();
  22335. if (token === null || token === ']' || token === '}') {
  22336. break;
  22337. }
  22338. array.push(parseFloat(token || 0));
  22339. }
  22340. return array;
  22341. },
  22342. readNumber: function Type1Parser_readNumber() {
  22343. var token = this.getToken();
  22344. return parseFloat(token || 0);
  22345. },
  22346. readInt: function Type1Parser_readInt() {
  22347. // Use '| 0' to prevent setting a double into length such as the double
  22348. // does not flow into the loop variable.
  22349. var token = this.getToken();
  22350. return parseInt(token || 0, 10) | 0;
  22351. },
  22352. readBoolean: function Type1Parser_readBoolean() {
  22353. var token = this.getToken();
  22354. // Use 1 and 0 since that's what type2 charstrings use.
  22355. return token === 'true' ? 1 : 0;
  22356. },
  22357. nextChar : function Type1_nextChar() {
  22358. return (this.currentChar = this.stream.getByte());
  22359. },
  22360. getToken: function Type1Parser_getToken() {
  22361. // Eat whitespace and comments.
  22362. var comment = false;
  22363. var ch = this.currentChar;
  22364. while (true) {
  22365. if (ch === -1) {
  22366. return null;
  22367. }
  22368. if (comment) {
  22369. if (ch === 0x0A || ch === 0x0D) {
  22370. comment = false;
  22371. }
  22372. } else if (ch === 0x25) { // '%'
  22373. comment = true;
  22374. } else if (!Lexer.isSpace(ch)) {
  22375. break;
  22376. }
  22377. ch = this.nextChar();
  22378. }
  22379. if (isSpecial(ch)) {
  22380. this.nextChar();
  22381. return String.fromCharCode(ch);
  22382. }
  22383. var token = '';
  22384. do {
  22385. token += String.fromCharCode(ch);
  22386. ch = this.nextChar();
  22387. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  22388. return token;
  22389. },
  22390. /*
  22391. * Returns an object containing a Subrs array and a CharStrings
  22392. * array extracted from and eexec encrypted block of data
  22393. */
  22394. extractFontProgram: function Type1Parser_extractFontProgram() {
  22395. var stream = this.stream;
  22396. var subrs = [], charstrings = [];
  22397. var program = {
  22398. subrs: [],
  22399. charstrings: [],
  22400. properties: {
  22401. 'privateData': {
  22402. 'lenIV': 4
  22403. }
  22404. }
  22405. };
  22406. var token, length, data, lenIV, encoded;
  22407. while ((token = this.getToken()) !== null) {
  22408. if (token !== '/') {
  22409. continue;
  22410. }
  22411. token = this.getToken();
  22412. switch (token) {
  22413. case 'CharStrings':
  22414. // The number immediately following CharStrings must be greater or
  22415. // equal to the number of CharStrings.
  22416. this.getToken();
  22417. this.getToken(); // read in 'dict'
  22418. this.getToken(); // read in 'dup'
  22419. this.getToken(); // read in 'begin'
  22420. while(true) {
  22421. token = this.getToken();
  22422. if (token === null || token === 'end') {
  22423. break;
  22424. }
  22425. if (token !== '/') {
  22426. continue;
  22427. }
  22428. var glyph = this.getToken();
  22429. length = this.readInt();
  22430. this.getToken(); // read in 'RD' or '-|'
  22431. data = stream.makeSubStream(stream.pos, length);
  22432. lenIV = program.properties.privateData['lenIV'];
  22433. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22434. // Skip past the required space and binary data.
  22435. stream.skip(length);
  22436. this.nextChar();
  22437. token = this.getToken(); // read in 'ND' or '|-'
  22438. if (token === 'noaccess') {
  22439. this.getToken(); // read in 'def'
  22440. }
  22441. charstrings.push({
  22442. glyph: glyph,
  22443. encoded: encoded
  22444. });
  22445. }
  22446. break;
  22447. case 'Subrs':
  22448. var num = this.readInt();
  22449. this.getToken(); // read in 'array'
  22450. while ((token = this.getToken()) === 'dup') {
  22451. var index = this.readInt();
  22452. length = this.readInt();
  22453. this.getToken(); // read in 'RD' or '-|'
  22454. data = stream.makeSubStream(stream.pos, length);
  22455. lenIV = program.properties.privateData['lenIV'];
  22456. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22457. // Skip past the required space and binary data.
  22458. stream.skip(length);
  22459. this.nextChar();
  22460. token = this.getToken(); // read in 'NP' or '|'
  22461. if (token === 'noaccess') {
  22462. this.getToken(); // read in 'put'
  22463. }
  22464. subrs[index] = encoded;
  22465. }
  22466. break;
  22467. case 'BlueValues':
  22468. case 'OtherBlues':
  22469. case 'FamilyBlues':
  22470. case 'FamilyOtherBlues':
  22471. var blueArray = this.readNumberArray();
  22472. // *Blue* values may contain invalid data: disables reading of
  22473. // those values when hinting is disabled.
  22474. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  22475. HINTING_ENABLED) {
  22476. program.properties.privateData[token] = blueArray;
  22477. }
  22478. break;
  22479. case 'StemSnapH':
  22480. case 'StemSnapV':
  22481. program.properties.privateData[token] = this.readNumberArray();
  22482. break;
  22483. case 'StdHW':
  22484. case 'StdVW':
  22485. program.properties.privateData[token] =
  22486. this.readNumberArray()[0];
  22487. break;
  22488. case 'BlueShift':
  22489. case 'lenIV':
  22490. case 'BlueFuzz':
  22491. case 'BlueScale':
  22492. case 'LanguageGroup':
  22493. case 'ExpansionFactor':
  22494. program.properties.privateData[token] = this.readNumber();
  22495. break;
  22496. case 'ForceBold':
  22497. program.properties.privateData[token] = this.readBoolean();
  22498. break;
  22499. }
  22500. }
  22501. for (var i = 0; i < charstrings.length; i++) {
  22502. glyph = charstrings[i].glyph;
  22503. encoded = charstrings[i].encoded;
  22504. var charString = new Type1CharString();
  22505. var error = charString.convert(encoded, subrs);
  22506. var output = charString.output;
  22507. if (error) {
  22508. // It seems when FreeType encounters an error while evaluating a glyph
  22509. // that it completely ignores the glyph so we'll mimic that behaviour
  22510. // here and put an endchar to make the validator happy.
  22511. output = [14];
  22512. }
  22513. program.charstrings.push({
  22514. glyphName: glyph,
  22515. charstring: output,
  22516. width: charString.width,
  22517. lsb: charString.lsb,
  22518. seac: charString.seac
  22519. });
  22520. }
  22521. return program;
  22522. },
  22523. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  22524. var token;
  22525. while ((token = this.getToken()) !== null) {
  22526. if (token !== '/') {
  22527. continue;
  22528. }
  22529. token = this.getToken();
  22530. switch (token) {
  22531. case 'FontMatrix':
  22532. var matrix = this.readNumberArray();
  22533. properties.fontMatrix = matrix;
  22534. break;
  22535. case 'Encoding':
  22536. var encodingArg = this.getToken();
  22537. var encoding;
  22538. if (!/^\d+$/.test(encodingArg)) {
  22539. // encoding name is specified
  22540. encoding = Encodings[encodingArg];
  22541. } else {
  22542. encoding = [];
  22543. var size = parseInt(encodingArg, 10) | 0;
  22544. this.getToken(); // read in 'array'
  22545. for (var j = 0; j < size; j++) {
  22546. token = this.getToken();
  22547. // skipping till first dup or def (e.g. ignoring for statement)
  22548. while (token !== 'dup' && token !== 'def') {
  22549. token = this.getToken();
  22550. if (token === null) {
  22551. return; // invalid header
  22552. }
  22553. }
  22554. if (token === 'def') {
  22555. break; // read all array data
  22556. }
  22557. var index = this.readInt();
  22558. this.getToken(); // read in '/'
  22559. var glyph = this.getToken();
  22560. encoding[index] = glyph;
  22561. this.getToken(); // read the in 'put'
  22562. }
  22563. }
  22564. properties.builtInEncoding = encoding;
  22565. break;
  22566. case 'FontBBox':
  22567. var fontBBox = this.readNumberArray();
  22568. // adjusting ascent/descent
  22569. properties.ascent = fontBBox[3];
  22570. properties.descent = fontBBox[1];
  22571. properties.ascentScaled = true;
  22572. break;
  22573. }
  22574. }
  22575. }
  22576. };
  22577. return Type1Parser;
  22578. })();
  22579. /**
  22580. * The CFF class takes a Type1 file and wrap it into a
  22581. * 'Compact Font Format' which itself embed Type2 charstrings.
  22582. */
  22583. var CFFStandardStrings = [
  22584. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  22585. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  22586. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  22587. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  22588. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  22589. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  22590. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  22591. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  22592. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  22593. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  22594. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  22595. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  22596. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  22597. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  22598. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  22599. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  22600. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  22601. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  22602. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  22603. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  22604. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  22605. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  22606. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  22607. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  22608. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  22609. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  22610. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  22611. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  22612. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  22613. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  22614. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  22615. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  22616. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  22617. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  22618. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  22619. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  22620. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  22621. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  22622. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  22623. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  22624. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  22625. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  22626. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  22627. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  22628. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  22629. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  22630. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  22631. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  22632. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  22633. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  22634. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  22635. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  22636. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  22637. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  22638. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  22639. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  22640. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  22641. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  22642. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  22643. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  22644. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  22645. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  22646. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  22647. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  22648. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  22649. ];
  22650. // Type1Font is also a CIDFontType0.
  22651. var Type1Font = function Type1Font(name, file, properties) {
  22652. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  22653. // Also, length1 and length2 might be off by 6 bytes as well.
  22654. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  22655. var PFB_HEADER_SIZE = 6;
  22656. var headerBlockLength = properties.length1;
  22657. var eexecBlockLength = properties.length2;
  22658. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  22659. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  22660. if (pfbHeaderPresent) {
  22661. file.skip(PFB_HEADER_SIZE);
  22662. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22663. (pfbHeader[3] << 8) | pfbHeader[2];
  22664. }
  22665. // Get the data block containing glyphs and subrs informations
  22666. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  22667. var headerBlockParser = new Type1Parser(headerBlock);
  22668. headerBlockParser.extractFontHeader(properties);
  22669. if (pfbHeaderPresent) {
  22670. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  22671. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22672. (pfbHeader[3] << 8) | pfbHeader[2];
  22673. }
  22674. // Decrypt the data blocks and retrieve it's content
  22675. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  22676. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  22677. var data = eexecBlockParser.extractFontProgram();
  22678. for (var info in data.properties) {
  22679. properties[info] = data.properties[info];
  22680. }
  22681. var charstrings = data.charstrings;
  22682. var type2Charstrings = this.getType2Charstrings(charstrings);
  22683. var subrs = this.getType2Subrs(data.subrs);
  22684. this.charstrings = charstrings;
  22685. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  22686. subrs, properties);
  22687. this.seacs = this.getSeacs(data.charstrings);
  22688. };
  22689. Type1Font.prototype = {
  22690. get numGlyphs() {
  22691. return this.charstrings.length + 1;
  22692. },
  22693. getCharset: function Type1Font_getCharset() {
  22694. var charset = ['.notdef'];
  22695. var charstrings = this.charstrings;
  22696. for (var glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22697. charset.push(charstrings[glyphId].glyphName);
  22698. }
  22699. return charset;
  22700. },
  22701. getGlyphMapping: function Type1Font_getGlyphMapping(properties) {
  22702. var charstrings = this.charstrings;
  22703. var glyphNames = ['.notdef'], glyphId;
  22704. for (glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22705. glyphNames.push(charstrings[glyphId].glyphName);
  22706. }
  22707. var encoding = properties.builtInEncoding;
  22708. if (encoding) {
  22709. var builtInEncoding = {};
  22710. for (var charCode in encoding) {
  22711. glyphId = glyphNames.indexOf(encoding[charCode]);
  22712. if (glyphId >= 0) {
  22713. builtInEncoding[charCode] = glyphId;
  22714. }
  22715. }
  22716. }
  22717. return type1FontGlyphMapping(properties, builtInEncoding, glyphNames);
  22718. },
  22719. getSeacs: function Type1Font_getSeacs(charstrings) {
  22720. var i, ii;
  22721. var seacMap = [];
  22722. for (i = 0, ii = charstrings.length; i < ii; i++) {
  22723. var charstring = charstrings[i];
  22724. if (charstring.seac) {
  22725. // Offset by 1 for .notdef
  22726. seacMap[i + 1] = charstring.seac;
  22727. }
  22728. }
  22729. return seacMap;
  22730. },
  22731. getType2Charstrings: function Type1Font_getType2Charstrings(
  22732. type1Charstrings) {
  22733. var type2Charstrings = [];
  22734. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  22735. type2Charstrings.push(type1Charstrings[i].charstring);
  22736. }
  22737. return type2Charstrings;
  22738. },
  22739. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  22740. var bias = 0;
  22741. var count = type1Subrs.length;
  22742. if (count < 1133) {
  22743. bias = 107;
  22744. } else if (count < 33769) {
  22745. bias = 1131;
  22746. } else {
  22747. bias = 32768;
  22748. }
  22749. // Add a bunch of empty subrs to deal with the Type2 bias
  22750. var type2Subrs = [];
  22751. var i;
  22752. for (i = 0; i < bias; i++) {
  22753. type2Subrs.push([0x0B]);
  22754. }
  22755. for (i = 0; i < count; i++) {
  22756. type2Subrs.push(type1Subrs[i]);
  22757. }
  22758. return type2Subrs;
  22759. },
  22760. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  22761. var cff = new CFF();
  22762. cff.header = new CFFHeader(1, 0, 4, 4);
  22763. cff.names = [name];
  22764. var topDict = new CFFTopDict();
  22765. // CFF strings IDs 0...390 are predefined names, so refering
  22766. // to entries in our own String INDEX starts at SID 391.
  22767. topDict.setByName('version', 391);
  22768. topDict.setByName('Notice', 392);
  22769. topDict.setByName('FullName', 393);
  22770. topDict.setByName('FamilyName', 394);
  22771. topDict.setByName('Weight', 395);
  22772. topDict.setByName('Encoding', null); // placeholder
  22773. topDict.setByName('FontMatrix', properties.fontMatrix);
  22774. topDict.setByName('FontBBox', properties.bbox);
  22775. topDict.setByName('charset', null); // placeholder
  22776. topDict.setByName('CharStrings', null); // placeholder
  22777. topDict.setByName('Private', null); // placeholder
  22778. cff.topDict = topDict;
  22779. var strings = new CFFStrings();
  22780. strings.add('Version 0.11'); // Version
  22781. strings.add('See original notice'); // Notice
  22782. strings.add(name); // FullName
  22783. strings.add(name); // FamilyName
  22784. strings.add('Medium'); // Weight
  22785. cff.strings = strings;
  22786. cff.globalSubrIndex = new CFFIndex();
  22787. var count = glyphs.length;
  22788. var charsetArray = [0];
  22789. var i, ii;
  22790. for (i = 0; i < count; i++) {
  22791. var index = CFFStandardStrings.indexOf(charstrings[i].glyphName);
  22792. // TODO: Insert the string and correctly map it. Previously it was
  22793. // thought mapping names that aren't in the standard strings to .notdef
  22794. // was fine, however in issue818 when mapping them all to .notdef the
  22795. // adieresis glyph no longer worked.
  22796. if (index == -1) {
  22797. index = 0;
  22798. }
  22799. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  22800. }
  22801. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  22802. var charStringsIndex = new CFFIndex();
  22803. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  22804. for (i = 0; i < count; i++) {
  22805. charStringsIndex.add(glyphs[i]);
  22806. }
  22807. cff.charStrings = charStringsIndex;
  22808. var privateDict = new CFFPrivateDict();
  22809. privateDict.setByName('Subrs', null); // placeholder
  22810. var fields = [
  22811. 'BlueValues',
  22812. 'OtherBlues',
  22813. 'FamilyBlues',
  22814. 'FamilyOtherBlues',
  22815. 'StemSnapH',
  22816. 'StemSnapV',
  22817. 'BlueShift',
  22818. 'BlueFuzz',
  22819. 'BlueScale',
  22820. 'LanguageGroup',
  22821. 'ExpansionFactor',
  22822. 'ForceBold',
  22823. 'StdHW',
  22824. 'StdVW'
  22825. ];
  22826. for (i = 0, ii = fields.length; i < ii; i++) {
  22827. var field = fields[i];
  22828. if (!properties.privateData.hasOwnProperty(field)) {
  22829. continue;
  22830. }
  22831. var value = properties.privateData[field];
  22832. if (isArray(value)) {
  22833. // All of the private dictionary array data in CFF must be stored as
  22834. // "delta-encoded" numbers.
  22835. for (var j = value.length - 1; j > 0; j--) {
  22836. value[j] -= value[j - 1]; // ... difference from previous value
  22837. }
  22838. }
  22839. privateDict.setByName(field, value);
  22840. }
  22841. cff.topDict.privateDict = privateDict;
  22842. var subrIndex = new CFFIndex();
  22843. for (i = 0, ii = subrs.length; i < ii; i++) {
  22844. subrIndex.add(subrs[i]);
  22845. }
  22846. privateDict.subrsIndex = subrIndex;
  22847. var compiler = new CFFCompiler(cff);
  22848. return compiler.compile();
  22849. }
  22850. };
  22851. var CFFFont = (function CFFFontClosure() {
  22852. function CFFFont(file, properties) {
  22853. this.properties = properties;
  22854. var parser = new CFFParser(file, properties);
  22855. this.cff = parser.parse();
  22856. var compiler = new CFFCompiler(this.cff);
  22857. this.seacs = this.cff.seacs;
  22858. try {
  22859. this.data = compiler.compile();
  22860. } catch (e) {
  22861. warn('Failed to compile font ' + properties.loadedName);
  22862. // There may have just been an issue with the compiler, set the data
  22863. // anyway and hope the font loaded.
  22864. this.data = file;
  22865. }
  22866. }
  22867. CFFFont.prototype = {
  22868. get numGlyphs() {
  22869. return this.cff.charStrings.count;
  22870. },
  22871. getCharset: function CFFFont_getCharset() {
  22872. return this.cff.charset.charset;
  22873. },
  22874. getGlyphMapping: function CFFFont_getGlyphMapping() {
  22875. var cff = this.cff;
  22876. var properties = this.properties;
  22877. var charsets = cff.charset.charset;
  22878. var charCodeToGlyphId;
  22879. var glyphId;
  22880. if (properties.composite) {
  22881. charCodeToGlyphId = Object.create(null);
  22882. if (cff.isCIDFont) {
  22883. // If the font is actually a CID font then we should use the charset
  22884. // to map CIDs to GIDs.
  22885. for (glyphId = 0; glyphId < charsets.length; glyphId++) {
  22886. var cidString = String.fromCharCode(charsets[glyphId]);
  22887. var charCode = properties.cMap.map.indexOf(cidString);
  22888. charCodeToGlyphId[charCode] = glyphId;
  22889. }
  22890. } else {
  22891. // If it is NOT actually a CID font then CIDs should be mapped
  22892. // directly to GIDs.
  22893. for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) {
  22894. charCodeToGlyphId[glyphId] = glyphId;
  22895. }
  22896. }
  22897. return charCodeToGlyphId;
  22898. }
  22899. var encoding = cff.encoding ? cff.encoding.encoding : null;
  22900. charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
  22901. return charCodeToGlyphId;
  22902. }
  22903. };
  22904. return CFFFont;
  22905. })();
  22906. var CFFParser = (function CFFParserClosure() {
  22907. var CharstringValidationData = [
  22908. null,
  22909. { id: 'hstem', min: 2, resetStack: true, stem: true },
  22910. null,
  22911. { id: 'vstem', min: 2, resetStack: true, stem: true },
  22912. { id: 'vmoveto', min: 1, resetStack: true },
  22913. { id: 'rlineto', min: 2, resetStack: true },
  22914. { id: 'hlineto', min: 1, resetStack: true },
  22915. { id: 'vlineto', min: 1, resetStack: true },
  22916. { id: 'rrcurveto', min: 6, resetStack: true },
  22917. null,
  22918. { id: 'callsubr', min: 1, undefStack: true },
  22919. { id: 'return', min: 0, undefStack: true },
  22920. null, // 12
  22921. null,
  22922. null, // endchar
  22923. null,
  22924. null,
  22925. null,
  22926. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  22927. null, // hintmask
  22928. null, // cntrmask
  22929. { id: 'rmoveto', min: 2, resetStack: true },
  22930. { id: 'hmoveto', min: 1, resetStack: true },
  22931. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  22932. { id: 'rcurveline', min: 8, resetStack: true },
  22933. { id: 'rlinecurve', min: 8, resetStack: true },
  22934. { id: 'vvcurveto', min: 4, resetStack: true },
  22935. { id: 'hhcurveto', min: 4, resetStack: true },
  22936. null, // shortint
  22937. { id: 'callgsubr', min: 1, undefStack: true },
  22938. { id: 'vhcurveto', min: 4, resetStack: true },
  22939. { id: 'hvcurveto', min: 4, resetStack: true }
  22940. ];
  22941. var CharstringValidationData12 = [
  22942. null,
  22943. null,
  22944. null,
  22945. { id: 'and', min: 2, stackDelta: -1 },
  22946. { id: 'or', min: 2, stackDelta: -1 },
  22947. { id: 'not', min: 1, stackDelta: 0 },
  22948. null,
  22949. null,
  22950. null,
  22951. { id: 'abs', min: 1, stackDelta: 0 },
  22952. { id: 'add', min: 2, stackDelta: -1,
  22953. stackFn: function stack_div(stack, index) {
  22954. stack[index - 2] = stack[index - 2] + stack[index - 1];
  22955. }
  22956. },
  22957. { id: 'sub', min: 2, stackDelta: -1,
  22958. stackFn: function stack_div(stack, index) {
  22959. stack[index - 2] = stack[index - 2] - stack[index - 1];
  22960. }
  22961. },
  22962. { id: 'div', min: 2, stackDelta: -1,
  22963. stackFn: function stack_div(stack, index) {
  22964. stack[index - 2] = stack[index - 2] / stack[index - 1];
  22965. }
  22966. },
  22967. null,
  22968. { id: 'neg', min: 1, stackDelta: 0,
  22969. stackFn: function stack_div(stack, index) {
  22970. stack[index - 1] = -stack[index - 1];
  22971. }
  22972. },
  22973. { id: 'eq', min: 2, stackDelta: -1 },
  22974. null,
  22975. null,
  22976. { id: 'drop', min: 1, stackDelta: -1 },
  22977. null,
  22978. { id: 'put', min: 2, stackDelta: -2 },
  22979. { id: 'get', min: 1, stackDelta: 0 },
  22980. { id: 'ifelse', min: 4, stackDelta: -3 },
  22981. { id: 'random', min: 0, stackDelta: 1 },
  22982. { id: 'mul', min: 2, stackDelta: -1,
  22983. stackFn: function stack_div(stack, index) {
  22984. stack[index - 2] = stack[index - 2] * stack[index - 1];
  22985. }
  22986. },
  22987. null,
  22988. { id: 'sqrt', min: 1, stackDelta: 0 },
  22989. { id: 'dup', min: 1, stackDelta: 1 },
  22990. { id: 'exch', min: 2, stackDelta: 0 },
  22991. { id: 'index', min: 2, stackDelta: 0 },
  22992. { id: 'roll', min: 3, stackDelta: -2 },
  22993. null,
  22994. null,
  22995. null,
  22996. { id: 'hflex', min: 7, resetStack: true },
  22997. { id: 'flex', min: 13, resetStack: true },
  22998. { id: 'hflex1', min: 9, resetStack: true },
  22999. { id: 'flex1', min: 11, resetStack: true }
  23000. ];
  23001. function CFFParser(file, properties) {
  23002. this.bytes = file.getBytes();
  23003. this.properties = properties;
  23004. }
  23005. CFFParser.prototype = {
  23006. parse: function CFFParser_parse() {
  23007. var properties = this.properties;
  23008. var cff = new CFF();
  23009. this.cff = cff;
  23010. // The first five sections must be in order, all the others are reached
  23011. // via offsets contained in one of the below.
  23012. var header = this.parseHeader();
  23013. var nameIndex = this.parseIndex(header.endPos);
  23014. var topDictIndex = this.parseIndex(nameIndex.endPos);
  23015. var stringIndex = this.parseIndex(topDictIndex.endPos);
  23016. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  23017. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  23018. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  23019. cff.header = header.obj;
  23020. cff.names = this.parseNameIndex(nameIndex.obj);
  23021. cff.strings = this.parseStringIndex(stringIndex.obj);
  23022. cff.topDict = topDict;
  23023. cff.globalSubrIndex = globalSubrIndex.obj;
  23024. this.parsePrivateDict(cff.topDict);
  23025. cff.isCIDFont = topDict.hasName('ROS');
  23026. var charStringOffset = topDict.getByName('CharStrings');
  23027. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  23028. cff.charStrings = charStringsAndSeacs.charStrings;
  23029. cff.seacs = charStringsAndSeacs.seacs;
  23030. var fontMatrix = topDict.getByName('FontMatrix');
  23031. if (fontMatrix) {
  23032. properties.fontMatrix = fontMatrix;
  23033. }
  23034. var fontBBox = topDict.getByName('FontBBox');
  23035. if (fontBBox) {
  23036. // adjusting ascent/descent
  23037. properties.ascent = fontBBox[3];
  23038. properties.descent = fontBBox[1];
  23039. properties.ascentScaled = true;
  23040. }
  23041. var charset, encoding;
  23042. if (cff.isCIDFont) {
  23043. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  23044. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  23045. var dictRaw = fdArrayIndex.get(i);
  23046. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  23047. cff.strings);
  23048. this.parsePrivateDict(fontDict);
  23049. cff.fdArray.push(fontDict);
  23050. }
  23051. // cid fonts don't have an encoding
  23052. encoding = null;
  23053. charset = this.parseCharsets(topDict.getByName('charset'),
  23054. cff.charStrings.count, cff.strings, true);
  23055. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  23056. cff.charStrings.count);
  23057. } else {
  23058. charset = this.parseCharsets(topDict.getByName('charset'),
  23059. cff.charStrings.count, cff.strings, false);
  23060. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  23061. properties,
  23062. cff.strings, charset.charset);
  23063. }
  23064. cff.charset = charset;
  23065. cff.encoding = encoding;
  23066. return cff;
  23067. },
  23068. parseHeader: function CFFParser_parseHeader() {
  23069. var bytes = this.bytes;
  23070. var bytesLength = bytes.length;
  23071. var offset = 0;
  23072. // Prevent an infinite loop, by checking that the offset is within the
  23073. // bounds of the bytes array. Necessary in empty, or invalid, font files.
  23074. while (offset < bytesLength && bytes[offset] !== 1) {
  23075. ++offset;
  23076. }
  23077. if (offset >= bytesLength) {
  23078. error('Invalid CFF header');
  23079. } else if (offset !== 0) {
  23080. info('cff data is shifted');
  23081. bytes = bytes.subarray(offset);
  23082. this.bytes = bytes;
  23083. }
  23084. var major = bytes[0];
  23085. var minor = bytes[1];
  23086. var hdrSize = bytes[2];
  23087. var offSize = bytes[3];
  23088. var header = new CFFHeader(major, minor, hdrSize, offSize);
  23089. return { obj: header, endPos: hdrSize };
  23090. },
  23091. parseDict: function CFFParser_parseDict(dict) {
  23092. var pos = 0;
  23093. function parseOperand() {
  23094. var value = dict[pos++];
  23095. if (value === 30) {
  23096. return parseFloatOperand(pos);
  23097. } else if (value === 28) {
  23098. value = dict[pos++];
  23099. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  23100. return value;
  23101. } else if (value === 29) {
  23102. value = dict[pos++];
  23103. value = (value << 8) | dict[pos++];
  23104. value = (value << 8) | dict[pos++];
  23105. value = (value << 8) | dict[pos++];
  23106. return value;
  23107. } else if (value >= 32 && value <= 246) {
  23108. return value - 139;
  23109. } else if (value >= 247 && value <= 250) {
  23110. return ((value - 247) * 256) + dict[pos++] + 108;
  23111. } else if (value >= 251 && value <= 254) {
  23112. return -((value - 251) * 256) - dict[pos++] - 108;
  23113. } else {
  23114. error('255 is not a valid DICT command');
  23115. }
  23116. return -1;
  23117. }
  23118. function parseFloatOperand() {
  23119. var str = '';
  23120. var eof = 15;
  23121. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  23122. '9', '.', 'E', 'E-', null, '-'];
  23123. var length = dict.length;
  23124. while (pos < length) {
  23125. var b = dict[pos++];
  23126. var b1 = b >> 4;
  23127. var b2 = b & 15;
  23128. if (b1 == eof) {
  23129. break;
  23130. }
  23131. str += lookup[b1];
  23132. if (b2 == eof) {
  23133. break;
  23134. }
  23135. str += lookup[b2];
  23136. }
  23137. return parseFloat(str);
  23138. }
  23139. var operands = [];
  23140. var entries = [];
  23141. pos = 0;
  23142. var end = dict.length;
  23143. while (pos < end) {
  23144. var b = dict[pos];
  23145. if (b <= 21) {
  23146. if (b === 12) {
  23147. b = (b << 8) | dict[++pos];
  23148. }
  23149. entries.push([b, operands]);
  23150. operands = [];
  23151. ++pos;
  23152. } else {
  23153. operands.push(parseOperand());
  23154. }
  23155. }
  23156. return entries;
  23157. },
  23158. parseIndex: function CFFParser_parseIndex(pos) {
  23159. var cffIndex = new CFFIndex();
  23160. var bytes = this.bytes;
  23161. var count = (bytes[pos++] << 8) | bytes[pos++];
  23162. var offsets = [];
  23163. var end = pos;
  23164. var i, ii;
  23165. if (count !== 0) {
  23166. var offsetSize = bytes[pos++];
  23167. // add 1 for offset to determine size of last object
  23168. var startPos = pos + ((count + 1) * offsetSize) - 1;
  23169. for (i = 0, ii = count + 1; i < ii; ++i) {
  23170. var offset = 0;
  23171. for (var j = 0; j < offsetSize; ++j) {
  23172. offset <<= 8;
  23173. offset += bytes[pos++];
  23174. }
  23175. offsets.push(startPos + offset);
  23176. }
  23177. end = offsets[count];
  23178. }
  23179. for (i = 0, ii = offsets.length - 1; i < ii; ++i) {
  23180. var offsetStart = offsets[i];
  23181. var offsetEnd = offsets[i + 1];
  23182. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  23183. }
  23184. return {obj: cffIndex, endPos: end};
  23185. },
  23186. parseNameIndex: function CFFParser_parseNameIndex(index) {
  23187. var names = [];
  23188. for (var i = 0, ii = index.count; i < ii; ++i) {
  23189. var name = index.get(i);
  23190. // OTS doesn't allow names to be over 127 characters.
  23191. var length = Math.min(name.length, 127);
  23192. var data = [];
  23193. // OTS also only permits certain characters in the name.
  23194. for (var j = 0; j < length; ++j) {
  23195. var c = name[j];
  23196. if (j === 0 && c === 0) {
  23197. data[j] = c;
  23198. continue;
  23199. }
  23200. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  23201. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  23202. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  23203. c === 47 /* / */ || c === 37 /* % */ || c === 35 /* # */) {
  23204. data[j] = 95;
  23205. continue;
  23206. }
  23207. data[j] = c;
  23208. }
  23209. names.push(bytesToString(data));
  23210. }
  23211. return names;
  23212. },
  23213. parseStringIndex: function CFFParser_parseStringIndex(index) {
  23214. var strings = new CFFStrings();
  23215. for (var i = 0, ii = index.count; i < ii; ++i) {
  23216. var data = index.get(i);
  23217. strings.add(bytesToString(data));
  23218. }
  23219. return strings;
  23220. },
  23221. createDict: function CFFParser_createDict(Type, dict, strings) {
  23222. var cffDict = new Type(strings);
  23223. for (var i = 0, ii = dict.length; i < ii; ++i) {
  23224. var pair = dict[i];
  23225. var key = pair[0];
  23226. var value = pair[1];
  23227. cffDict.setByKey(key, value);
  23228. }
  23229. return cffDict;
  23230. },
  23231. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  23232. var charStrings = this.parseIndex(charStringOffset).obj;
  23233. var seacs = [];
  23234. var count = charStrings.count;
  23235. for (var i = 0; i < count; i++) {
  23236. var charstring = charStrings.get(i);
  23237. var stackSize = 0;
  23238. var stack = [];
  23239. var undefStack = true;
  23240. var hints = 0;
  23241. var valid = true;
  23242. var data = charstring;
  23243. var length = data.length;
  23244. for (var j = 0; j < length;) {
  23245. var value = data[j++];
  23246. var validationCommand = null;
  23247. if (value == 12) {
  23248. var q = data[j++];
  23249. if (q === 0) {
  23250. // The CFF specification state that the 'dotsection' command
  23251. // (12, 0) is deprecated and treated as a no-op, but all Type2
  23252. // charstrings processors should support them. Unfortunately
  23253. // the font sanitizer don't. As a workaround the sequence (12, 0)
  23254. // is replaced by a useless (0, hmoveto).
  23255. data[j - 2] = 139;
  23256. data[j - 1] = 22;
  23257. stackSize = 0;
  23258. } else {
  23259. validationCommand = CharstringValidationData12[q];
  23260. }
  23261. } else if (value === 28) { // number (16 bit)
  23262. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  23263. j += 2;
  23264. stackSize++;
  23265. } else if (value == 14) {
  23266. if (stackSize >= 4) {
  23267. stackSize -= 4;
  23268. if (SEAC_ANALYSIS_ENABLED) {
  23269. seacs[i] = stack.slice(stackSize, stackSize + 4);
  23270. valid = false;
  23271. }
  23272. }
  23273. } else if (value >= 32 && value <= 246) { // number
  23274. stack[stackSize] = value - 139;
  23275. stackSize++;
  23276. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  23277. stack[stackSize] = (value < 251 ?
  23278. ((value - 247) << 8) + data[j] + 108 :
  23279. -((value - 251) << 8) - data[j] - 108);
  23280. j++;
  23281. stackSize++;
  23282. } else if (value == 255) { // number (32 bit)
  23283. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  23284. (data[j + 2] << 8) | data[j + 3]) / 65536;
  23285. j += 4;
  23286. stackSize++;
  23287. } else if (value == 19 || value == 20) {
  23288. hints += stackSize >> 1;
  23289. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  23290. stackSize = 0;
  23291. } else {
  23292. validationCommand = CharstringValidationData[value];
  23293. }
  23294. if (validationCommand) {
  23295. if (validationCommand.stem) {
  23296. hints += stackSize >> 1;
  23297. }
  23298. if ('min' in validationCommand) {
  23299. if (!undefStack && stackSize < validationCommand.min) {
  23300. warn('Not enough parameters for ' + validationCommand.id +
  23301. '; actual: ' + stackSize +
  23302. ', expected: ' + validationCommand.min);
  23303. valid = false;
  23304. break;
  23305. }
  23306. }
  23307. if ('stackDelta' in validationCommand) {
  23308. if ('stackFn' in validationCommand) {
  23309. validationCommand.stackFn(stack, stackSize);
  23310. }
  23311. stackSize += validationCommand.stackDelta;
  23312. } else if (validationCommand.resetStack) {
  23313. stackSize = 0;
  23314. undefStack = false;
  23315. } else if (validationCommand.undefStack) {
  23316. stackSize = 0;
  23317. undefStack = true;
  23318. }
  23319. }
  23320. }
  23321. if (!valid) {
  23322. // resetting invalid charstring to single 'endchar'
  23323. charStrings.set(i, new Uint8Array([14]));
  23324. }
  23325. }
  23326. return { charStrings: charStrings, seacs: seacs };
  23327. },
  23328. emptyPrivateDictionary:
  23329. function CFFParser_emptyPrivateDictionary(parentDict) {
  23330. var privateDict = this.createDict(CFFPrivateDict, [],
  23331. parentDict.strings);
  23332. parentDict.setByKey(18, [0, 0]);
  23333. parentDict.privateDict = privateDict;
  23334. },
  23335. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  23336. // no private dict, do nothing
  23337. if (!parentDict.hasName('Private')) {
  23338. this.emptyPrivateDictionary(parentDict);
  23339. return;
  23340. }
  23341. var privateOffset = parentDict.getByName('Private');
  23342. // make sure the params are formatted correctly
  23343. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  23344. parentDict.removeByName('Private');
  23345. return;
  23346. }
  23347. var size = privateOffset[0];
  23348. var offset = privateOffset[1];
  23349. // remove empty dicts or ones that refer to invalid location
  23350. if (size === 0 || offset >= this.bytes.length) {
  23351. this.emptyPrivateDictionary(parentDict);
  23352. return;
  23353. }
  23354. var privateDictEnd = offset + size;
  23355. var dictData = this.bytes.subarray(offset, privateDictEnd);
  23356. var dict = this.parseDict(dictData);
  23357. var privateDict = this.createDict(CFFPrivateDict, dict,
  23358. parentDict.strings);
  23359. parentDict.privateDict = privateDict;
  23360. // Parse the Subrs index also since it's relative to the private dict.
  23361. if (!privateDict.getByName('Subrs')) {
  23362. return;
  23363. }
  23364. var subrsOffset = privateDict.getByName('Subrs');
  23365. var relativeOffset = offset + subrsOffset;
  23366. // Validate the offset.
  23367. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  23368. this.emptyPrivateDictionary(parentDict);
  23369. return;
  23370. }
  23371. var subrsIndex = this.parseIndex(relativeOffset);
  23372. privateDict.subrsIndex = subrsIndex.obj;
  23373. },
  23374. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  23375. if (pos === 0) {
  23376. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  23377. ISOAdobeCharset);
  23378. } else if (pos == 1) {
  23379. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  23380. ExpertCharset);
  23381. } else if (pos == 2) {
  23382. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  23383. ExpertSubsetCharset);
  23384. }
  23385. var bytes = this.bytes;
  23386. var start = pos;
  23387. var format = bytes[pos++];
  23388. var charset = ['.notdef'];
  23389. var id, count, i;
  23390. // subtract 1 for the .notdef glyph
  23391. length -= 1;
  23392. switch (format) {
  23393. case 0:
  23394. for (i = 0; i < length; i++) {
  23395. id = (bytes[pos++] << 8) | bytes[pos++];
  23396. charset.push(cid ? id : strings.get(id));
  23397. }
  23398. break;
  23399. case 1:
  23400. while (charset.length <= length) {
  23401. id = (bytes[pos++] << 8) | bytes[pos++];
  23402. count = bytes[pos++];
  23403. for (i = 0; i <= count; i++) {
  23404. charset.push(cid ? id++ : strings.get(id++));
  23405. }
  23406. }
  23407. break;
  23408. case 2:
  23409. while (charset.length <= length) {
  23410. id = (bytes[pos++] << 8) | bytes[pos++];
  23411. count = (bytes[pos++] << 8) | bytes[pos++];
  23412. for (i = 0; i <= count; i++) {
  23413. charset.push(cid ? id++ : strings.get(id++));
  23414. }
  23415. }
  23416. break;
  23417. default:
  23418. error('Unknown charset format');
  23419. }
  23420. // Raw won't be needed if we actually compile the charset.
  23421. var end = pos;
  23422. var raw = bytes.subarray(start, end);
  23423. return new CFFCharset(false, format, charset, raw);
  23424. },
  23425. parseEncoding: function CFFParser_parseEncoding(pos,
  23426. properties,
  23427. strings,
  23428. charset) {
  23429. var encoding = {};
  23430. var bytes = this.bytes;
  23431. var predefined = false;
  23432. var hasSupplement = false;
  23433. var format, i, ii;
  23434. var raw = null;
  23435. function readSupplement() {
  23436. var supplementsCount = bytes[pos++];
  23437. for (i = 0; i < supplementsCount; i++) {
  23438. var code = bytes[pos++];
  23439. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  23440. encoding[code] = charset.indexOf(strings.get(sid));
  23441. }
  23442. }
  23443. if (pos === 0 || pos == 1) {
  23444. predefined = true;
  23445. format = pos;
  23446. var baseEncoding = pos ? Encodings.ExpertEncoding :
  23447. Encodings.StandardEncoding;
  23448. for (i = 0, ii = charset.length; i < ii; i++) {
  23449. var index = baseEncoding.indexOf(charset[i]);
  23450. if (index != -1) {
  23451. encoding[index] = i;
  23452. }
  23453. }
  23454. } else {
  23455. var dataStart = pos;
  23456. format = bytes[pos++];
  23457. switch (format & 0x7f) {
  23458. case 0:
  23459. var glyphsCount = bytes[pos++];
  23460. for (i = 1; i <= glyphsCount; i++) {
  23461. encoding[bytes[pos++]] = i;
  23462. }
  23463. break;
  23464. case 1:
  23465. var rangesCount = bytes[pos++];
  23466. var gid = 1;
  23467. for (i = 0; i < rangesCount; i++) {
  23468. var start = bytes[pos++];
  23469. var left = bytes[pos++];
  23470. for (var j = start; j <= start + left; j++) {
  23471. encoding[j] = gid++;
  23472. }
  23473. }
  23474. break;
  23475. default:
  23476. error('Unknow encoding format: ' + format + ' in CFF');
  23477. break;
  23478. }
  23479. var dataEnd = pos;
  23480. if (format & 0x80) {
  23481. // The font sanitizer does not support CFF encoding with a
  23482. // supplement, since the encoding is not really used to map
  23483. // between gid to glyph, let's overwrite what is declared in
  23484. // the top dictionary to let the sanitizer think the font use
  23485. // StandardEncoding, that's a lie but that's ok.
  23486. bytes[dataStart] &= 0x7f;
  23487. readSupplement();
  23488. hasSupplement = true;
  23489. }
  23490. raw = bytes.subarray(dataStart, dataEnd);
  23491. }
  23492. format = format & 0x7f;
  23493. return new CFFEncoding(predefined, format, encoding, raw);
  23494. },
  23495. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  23496. var start = pos;
  23497. var bytes = this.bytes;
  23498. var format = bytes[pos++];
  23499. var fdSelect = [];
  23500. var i;
  23501. switch (format) {
  23502. case 0:
  23503. for (i = 0; i < length; ++i) {
  23504. var id = bytes[pos++];
  23505. fdSelect.push(id);
  23506. }
  23507. break;
  23508. case 3:
  23509. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  23510. for (i = 0; i < rangesCount; ++i) {
  23511. var first = (bytes[pos++] << 8) | bytes[pos++];
  23512. var fdIndex = bytes[pos++];
  23513. var next = (bytes[pos] << 8) | bytes[pos + 1];
  23514. for (var j = first; j < next; ++j) {
  23515. fdSelect.push(fdIndex);
  23516. }
  23517. }
  23518. // Advance past the sentinel(next).
  23519. pos += 2;
  23520. break;
  23521. default:
  23522. error('Unknown fdselect format ' + format);
  23523. break;
  23524. }
  23525. var end = pos;
  23526. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  23527. }
  23528. };
  23529. return CFFParser;
  23530. })();
  23531. // Compact Font Format
  23532. var CFF = (function CFFClosure() {
  23533. function CFF() {
  23534. this.header = null;
  23535. this.names = [];
  23536. this.topDict = null;
  23537. this.strings = new CFFStrings();
  23538. this.globalSubrIndex = null;
  23539. // The following could really be per font, but since we only have one font
  23540. // store them here.
  23541. this.encoding = null;
  23542. this.charset = null;
  23543. this.charStrings = null;
  23544. this.fdArray = [];
  23545. this.fdSelect = null;
  23546. this.isCIDFont = false;
  23547. }
  23548. return CFF;
  23549. })();
  23550. var CFFHeader = (function CFFHeaderClosure() {
  23551. function CFFHeader(major, minor, hdrSize, offSize) {
  23552. this.major = major;
  23553. this.minor = minor;
  23554. this.hdrSize = hdrSize;
  23555. this.offSize = offSize;
  23556. }
  23557. return CFFHeader;
  23558. })();
  23559. var CFFStrings = (function CFFStringsClosure() {
  23560. function CFFStrings() {
  23561. this.strings = [];
  23562. }
  23563. CFFStrings.prototype = {
  23564. get: function CFFStrings_get(index) {
  23565. if (index >= 0 && index <= 390) {
  23566. return CFFStandardStrings[index];
  23567. }
  23568. if (index - 391 <= this.strings.length) {
  23569. return this.strings[index - 391];
  23570. }
  23571. return CFFStandardStrings[0];
  23572. },
  23573. add: function CFFStrings_add(value) {
  23574. this.strings.push(value);
  23575. },
  23576. get count() {
  23577. return this.strings.length;
  23578. }
  23579. };
  23580. return CFFStrings;
  23581. })();
  23582. var CFFIndex = (function CFFIndexClosure() {
  23583. function CFFIndex() {
  23584. this.objects = [];
  23585. this.length = 0;
  23586. }
  23587. CFFIndex.prototype = {
  23588. add: function CFFIndex_add(data) {
  23589. this.length += data.length;
  23590. this.objects.push(data);
  23591. },
  23592. set: function CFFIndex_set(index, data) {
  23593. this.length += data.length - this.objects[index].length;
  23594. this.objects[index] = data;
  23595. },
  23596. get: function CFFIndex_get(index) {
  23597. return this.objects[index];
  23598. },
  23599. get count() {
  23600. return this.objects.length;
  23601. }
  23602. };
  23603. return CFFIndex;
  23604. })();
  23605. var CFFDict = (function CFFDictClosure() {
  23606. function CFFDict(tables, strings) {
  23607. this.keyToNameMap = tables.keyToNameMap;
  23608. this.nameToKeyMap = tables.nameToKeyMap;
  23609. this.defaults = tables.defaults;
  23610. this.types = tables.types;
  23611. this.opcodes = tables.opcodes;
  23612. this.order = tables.order;
  23613. this.strings = strings;
  23614. this.values = {};
  23615. }
  23616. CFFDict.prototype = {
  23617. // value should always be an array
  23618. setByKey: function CFFDict_setByKey(key, value) {
  23619. if (!(key in this.keyToNameMap)) {
  23620. return false;
  23621. }
  23622. // ignore empty values
  23623. if (value.length === 0) {
  23624. return true;
  23625. }
  23626. var type = this.types[key];
  23627. // remove the array wrapping these types of values
  23628. if (type === 'num' || type === 'sid' || type === 'offset') {
  23629. value = value[0];
  23630. }
  23631. this.values[key] = value;
  23632. return true;
  23633. },
  23634. setByName: function CFFDict_setByName(name, value) {
  23635. if (!(name in this.nameToKeyMap)) {
  23636. error('Invalid dictionary name "' + name + '"');
  23637. }
  23638. this.values[this.nameToKeyMap[name]] = value;
  23639. },
  23640. hasName: function CFFDict_hasName(name) {
  23641. return this.nameToKeyMap[name] in this.values;
  23642. },
  23643. getByName: function CFFDict_getByName(name) {
  23644. if (!(name in this.nameToKeyMap)) {
  23645. error('Invalid dictionary name "' + name + '"');
  23646. }
  23647. var key = this.nameToKeyMap[name];
  23648. if (!(key in this.values)) {
  23649. return this.defaults[key];
  23650. }
  23651. return this.values[key];
  23652. },
  23653. removeByName: function CFFDict_removeByName(name) {
  23654. delete this.values[this.nameToKeyMap[name]];
  23655. }
  23656. };
  23657. CFFDict.createTables = function CFFDict_createTables(layout) {
  23658. var tables = {
  23659. keyToNameMap: {},
  23660. nameToKeyMap: {},
  23661. defaults: {},
  23662. types: {},
  23663. opcodes: {},
  23664. order: []
  23665. };
  23666. for (var i = 0, ii = layout.length; i < ii; ++i) {
  23667. var entry = layout[i];
  23668. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  23669. tables.keyToNameMap[key] = entry[1];
  23670. tables.nameToKeyMap[entry[1]] = key;
  23671. tables.types[key] = entry[2];
  23672. tables.defaults[key] = entry[3];
  23673. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  23674. tables.order.push(key);
  23675. }
  23676. return tables;
  23677. };
  23678. return CFFDict;
  23679. })();
  23680. var CFFTopDict = (function CFFTopDictClosure() {
  23681. var layout = [
  23682. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  23683. [[12, 20], 'SyntheticBase', 'num', null],
  23684. [0, 'version', 'sid', null],
  23685. [1, 'Notice', 'sid', null],
  23686. [[12, 0], 'Copyright', 'sid', null],
  23687. [2, 'FullName', 'sid', null],
  23688. [3, 'FamilyName', 'sid', null],
  23689. [4, 'Weight', 'sid', null],
  23690. [[12, 1], 'isFixedPitch', 'num', 0],
  23691. [[12, 2], 'ItalicAngle', 'num', 0],
  23692. [[12, 3], 'UnderlinePosition', 'num', -100],
  23693. [[12, 4], 'UnderlineThickness', 'num', 50],
  23694. [[12, 5], 'PaintType', 'num', 0],
  23695. [[12, 6], 'CharstringType', 'num', 2],
  23696. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  23697. [0.001, 0, 0, 0.001, 0, 0]],
  23698. [13, 'UniqueID', 'num', null],
  23699. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  23700. [[12, 8], 'StrokeWidth', 'num', 0],
  23701. [14, 'XUID', 'array', null],
  23702. [15, 'charset', 'offset', 0],
  23703. [16, 'Encoding', 'offset', 0],
  23704. [17, 'CharStrings', 'offset', 0],
  23705. [18, 'Private', ['offset', 'offset'], null],
  23706. [[12, 21], 'PostScript', 'sid', null],
  23707. [[12, 22], 'BaseFontName', 'sid', null],
  23708. [[12, 23], 'BaseFontBlend', 'delta', null],
  23709. [[12, 31], 'CIDFontVersion', 'num', 0],
  23710. [[12, 32], 'CIDFontRevision', 'num', 0],
  23711. [[12, 33], 'CIDFontType', 'num', 0],
  23712. [[12, 34], 'CIDCount', 'num', 8720],
  23713. [[12, 35], 'UIDBase', 'num', null],
  23714. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  23715. // before FDArray.
  23716. [[12, 37], 'FDSelect', 'offset', null],
  23717. [[12, 36], 'FDArray', 'offset', null],
  23718. [[12, 38], 'FontName', 'sid', null]
  23719. ];
  23720. var tables = null;
  23721. function CFFTopDict(strings) {
  23722. if (tables === null) {
  23723. tables = CFFDict.createTables(layout);
  23724. }
  23725. CFFDict.call(this, tables, strings);
  23726. this.privateDict = null;
  23727. }
  23728. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  23729. return CFFTopDict;
  23730. })();
  23731. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  23732. var layout = [
  23733. [6, 'BlueValues', 'delta', null],
  23734. [7, 'OtherBlues', 'delta', null],
  23735. [8, 'FamilyBlues', 'delta', null],
  23736. [9, 'FamilyOtherBlues', 'delta', null],
  23737. [[12, 9], 'BlueScale', 'num', 0.039625],
  23738. [[12, 10], 'BlueShift', 'num', 7],
  23739. [[12, 11], 'BlueFuzz', 'num', 1],
  23740. [10, 'StdHW', 'num', null],
  23741. [11, 'StdVW', 'num', null],
  23742. [[12, 12], 'StemSnapH', 'delta', null],
  23743. [[12, 13], 'StemSnapV', 'delta', null],
  23744. [[12, 14], 'ForceBold', 'num', 0],
  23745. [[12, 17], 'LanguageGroup', 'num', 0],
  23746. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  23747. [[12, 19], 'initialRandomSeed', 'num', 0],
  23748. [20, 'defaultWidthX', 'num', 0],
  23749. [21, 'nominalWidthX', 'num', 0],
  23750. [19, 'Subrs', 'offset', null]
  23751. ];
  23752. var tables = null;
  23753. function CFFPrivateDict(strings) {
  23754. if (tables === null) {
  23755. tables = CFFDict.createTables(layout);
  23756. }
  23757. CFFDict.call(this, tables, strings);
  23758. this.subrsIndex = null;
  23759. }
  23760. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  23761. return CFFPrivateDict;
  23762. })();
  23763. var CFFCharsetPredefinedTypes = {
  23764. ISO_ADOBE: 0,
  23765. EXPERT: 1,
  23766. EXPERT_SUBSET: 2
  23767. };
  23768. var CFFCharset = (function CFFCharsetClosure() {
  23769. function CFFCharset(predefined, format, charset, raw) {
  23770. this.predefined = predefined;
  23771. this.format = format;
  23772. this.charset = charset;
  23773. this.raw = raw;
  23774. }
  23775. return CFFCharset;
  23776. })();
  23777. var CFFEncoding = (function CFFEncodingClosure() {
  23778. function CFFEncoding(predefined, format, encoding, raw) {
  23779. this.predefined = predefined;
  23780. this.format = format;
  23781. this.encoding = encoding;
  23782. this.raw = raw;
  23783. }
  23784. return CFFEncoding;
  23785. })();
  23786. var CFFFDSelect = (function CFFFDSelectClosure() {
  23787. function CFFFDSelect(fdSelect, raw) {
  23788. this.fdSelect = fdSelect;
  23789. this.raw = raw;
  23790. }
  23791. return CFFFDSelect;
  23792. })();
  23793. // Helper class to keep track of where an offset is within the data and helps
  23794. // filling in that offset once it's known.
  23795. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  23796. function CFFOffsetTracker() {
  23797. this.offsets = {};
  23798. }
  23799. CFFOffsetTracker.prototype = {
  23800. isTracking: function CFFOffsetTracker_isTracking(key) {
  23801. return key in this.offsets;
  23802. },
  23803. track: function CFFOffsetTracker_track(key, location) {
  23804. if (key in this.offsets) {
  23805. error('Already tracking location of ' + key);
  23806. }
  23807. this.offsets[key] = location;
  23808. },
  23809. offset: function CFFOffsetTracker_offset(value) {
  23810. for (var key in this.offsets) {
  23811. this.offsets[key] += value;
  23812. }
  23813. },
  23814. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  23815. values,
  23816. output) {
  23817. if (!(key in this.offsets)) {
  23818. error('Not tracking location of ' + key);
  23819. }
  23820. var data = output.data;
  23821. var dataOffset = this.offsets[key];
  23822. var size = 5;
  23823. for (var i = 0, ii = values.length; i < ii; ++i) {
  23824. var offset0 = i * size + dataOffset;
  23825. var offset1 = offset0 + 1;
  23826. var offset2 = offset0 + 2;
  23827. var offset3 = offset0 + 3;
  23828. var offset4 = offset0 + 4;
  23829. // It's easy to screw up offsets so perform this sanity check.
  23830. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  23831. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) {
  23832. error('writing to an offset that is not empty');
  23833. }
  23834. var value = values[i];
  23835. data[offset0] = 0x1d;
  23836. data[offset1] = (value >> 24) & 0xFF;
  23837. data[offset2] = (value >> 16) & 0xFF;
  23838. data[offset3] = (value >> 8) & 0xFF;
  23839. data[offset4] = value & 0xFF;
  23840. }
  23841. }
  23842. };
  23843. return CFFOffsetTracker;
  23844. })();
  23845. // Takes a CFF and converts it to the binary representation.
  23846. var CFFCompiler = (function CFFCompilerClosure() {
  23847. function CFFCompiler(cff) {
  23848. this.cff = cff;
  23849. }
  23850. CFFCompiler.prototype = {
  23851. compile: function CFFCompiler_compile() {
  23852. var cff = this.cff;
  23853. var output = {
  23854. data: [],
  23855. length: 0,
  23856. add: function CFFCompiler_add(data) {
  23857. this.data = this.data.concat(data);
  23858. this.length = this.data.length;
  23859. }
  23860. };
  23861. // Compile the five entries that must be in order.
  23862. var header = this.compileHeader(cff.header);
  23863. output.add(header);
  23864. var nameIndex = this.compileNameIndex(cff.names);
  23865. output.add(nameIndex);
  23866. if (cff.isCIDFont) {
  23867. // The spec is unclear on how font matrices should relate to each other
  23868. // when there is one in the main top dict and the sub top dicts.
  23869. // Windows handles this differently than linux and osx so we have to
  23870. // normalize to work on all.
  23871. // Rules based off of some mailing list discussions:
  23872. // - If main font has a matrix and subfont doesn't, use the main matrix.
  23873. // - If no main font matrix and there is a subfont matrix, use the
  23874. // subfont matrix.
  23875. // - If both have matrices, concat together.
  23876. // - If neither have matrices, use default.
  23877. // To make this work on all platforms we move the top matrix into each
  23878. // sub top dict and concat if necessary.
  23879. if (cff.topDict.hasName('FontMatrix')) {
  23880. var base = cff.topDict.getByName('FontMatrix');
  23881. cff.topDict.removeByName('FontMatrix');
  23882. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  23883. var subDict = cff.fdArray[i];
  23884. var matrix = base.slice(0);
  23885. if (subDict.hasName('FontMatrix')) {
  23886. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  23887. }
  23888. subDict.setByName('FontMatrix', matrix);
  23889. }
  23890. }
  23891. }
  23892. var compiled = this.compileTopDicts([cff.topDict],
  23893. output.length,
  23894. cff.isCIDFont);
  23895. output.add(compiled.output);
  23896. var topDictTracker = compiled.trackers[0];
  23897. var stringIndex = this.compileStringIndex(cff.strings.strings);
  23898. output.add(stringIndex);
  23899. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  23900. output.add(globalSubrIndex);
  23901. // Now start on the other entries that have no specfic order.
  23902. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  23903. if (cff.encoding.predefined) {
  23904. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  23905. output);
  23906. } else {
  23907. var encoding = this.compileEncoding(cff.encoding);
  23908. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  23909. output.add(encoding);
  23910. }
  23911. }
  23912. if (cff.charset && cff.topDict.hasName('charset')) {
  23913. if (cff.charset.predefined) {
  23914. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  23915. output);
  23916. } else {
  23917. var charset = this.compileCharset(cff.charset);
  23918. topDictTracker.setEntryLocation('charset', [output.length], output);
  23919. output.add(charset);
  23920. }
  23921. }
  23922. var charStrings = this.compileCharStrings(cff.charStrings);
  23923. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  23924. output.add(charStrings);
  23925. if (cff.isCIDFont) {
  23926. // For some reason FDSelect must be in front of FDArray on windows. OSX
  23927. // and linux don't seem to care.
  23928. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  23929. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  23930. output.add(fdSelect);
  23931. // It is unclear if the sub font dictionary can have CID related
  23932. // dictionary keys, but the sanitizer doesn't like them so remove them.
  23933. compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  23934. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  23935. output.add(compiled.output);
  23936. var fontDictTrackers = compiled.trackers;
  23937. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  23938. }
  23939. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  23940. // If the font data ends with INDEX whose object data is zero-length,
  23941. // the sanitizer will bail out. Add a dummy byte to avoid that.
  23942. output.add([0]);
  23943. return output.data;
  23944. },
  23945. encodeNumber: function CFFCompiler_encodeNumber(value) {
  23946. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) { // isInt
  23947. return this.encodeInteger(value);
  23948. } else {
  23949. return this.encodeFloat(value);
  23950. }
  23951. },
  23952. encodeFloat: function CFFCompiler_encodeFloat(num) {
  23953. var value = num.toString();
  23954. // rounding inaccurate doubles
  23955. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  23956. if (m) {
  23957. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  23958. value = (Math.round(num * epsilon) / epsilon).toString();
  23959. }
  23960. var nibbles = '';
  23961. var i, ii;
  23962. for (i = 0, ii = value.length; i < ii; ++i) {
  23963. var a = value[i];
  23964. if (a === 'e') {
  23965. nibbles += value[++i] === '-' ? 'c' : 'b';
  23966. } else if (a === '.') {
  23967. nibbles += 'a';
  23968. } else if (a === '-') {
  23969. nibbles += 'e';
  23970. } else {
  23971. nibbles += a;
  23972. }
  23973. }
  23974. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  23975. var out = [30];
  23976. for (i = 0, ii = nibbles.length; i < ii; i += 2) {
  23977. out.push(parseInt(nibbles.substr(i, 2), 16));
  23978. }
  23979. return out;
  23980. },
  23981. encodeInteger: function CFFCompiler_encodeInteger(value) {
  23982. var code;
  23983. if (value >= -107 && value <= 107) {
  23984. code = [value + 139];
  23985. } else if (value >= 108 && value <= 1131) {
  23986. value = [value - 108];
  23987. code = [(value >> 8) + 247, value & 0xFF];
  23988. } else if (value >= -1131 && value <= -108) {
  23989. value = -value - 108;
  23990. code = [(value >> 8) + 251, value & 0xFF];
  23991. } else if (value >= -32768 && value <= 32767) {
  23992. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  23993. } else {
  23994. code = [0x1d,
  23995. (value >> 24) & 0xFF,
  23996. (value >> 16) & 0xFF,
  23997. (value >> 8) & 0xFF,
  23998. value & 0xFF];
  23999. }
  24000. return code;
  24001. },
  24002. compileHeader: function CFFCompiler_compileHeader(header) {
  24003. return [
  24004. header.major,
  24005. header.minor,
  24006. header.hdrSize,
  24007. header.offSize
  24008. ];
  24009. },
  24010. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  24011. var nameIndex = new CFFIndex();
  24012. for (var i = 0, ii = names.length; i < ii; ++i) {
  24013. nameIndex.add(stringToArray(names[i]));
  24014. }
  24015. return this.compileIndex(nameIndex);
  24016. },
  24017. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  24018. length,
  24019. removeCidKeys) {
  24020. var fontDictTrackers = [];
  24021. var fdArrayIndex = new CFFIndex();
  24022. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  24023. var fontDict = dicts[i];
  24024. if (removeCidKeys) {
  24025. fontDict.removeByName('CIDFontVersion');
  24026. fontDict.removeByName('CIDFontRevision');
  24027. fontDict.removeByName('CIDFontType');
  24028. fontDict.removeByName('CIDCount');
  24029. fontDict.removeByName('UIDBase');
  24030. }
  24031. var fontDictTracker = new CFFOffsetTracker();
  24032. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  24033. fontDictTrackers.push(fontDictTracker);
  24034. fdArrayIndex.add(fontDictData);
  24035. fontDictTracker.offset(length);
  24036. }
  24037. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  24038. return {
  24039. trackers: fontDictTrackers,
  24040. output: fdArrayIndex
  24041. };
  24042. },
  24043. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  24044. trackers,
  24045. output) {
  24046. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  24047. var fontDict = dicts[i];
  24048. assert(fontDict.privateDict && fontDict.hasName('Private'),
  24049. 'There must be an private dictionary.');
  24050. var privateDict = fontDict.privateDict;
  24051. var privateDictTracker = new CFFOffsetTracker();
  24052. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  24053. var outputLength = output.length;
  24054. privateDictTracker.offset(outputLength);
  24055. if (!privateDictData.length) {
  24056. // The private dictionary was empty, set the output length to zero to
  24057. // ensure the offset length isn't out of bounds in the eyes of the
  24058. // sanitizer.
  24059. outputLength = 0;
  24060. }
  24061. trackers[i].setEntryLocation('Private',
  24062. [privateDictData.length, outputLength],
  24063. output);
  24064. output.add(privateDictData);
  24065. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  24066. var subrs = this.compileIndex(privateDict.subrsIndex);
  24067. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  24068. output);
  24069. output.add(subrs);
  24070. }
  24071. }
  24072. },
  24073. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  24074. var out = [];
  24075. // The dictionary keys must be in a certain order.
  24076. var order = dict.order;
  24077. for (var i = 0; i < order.length; ++i) {
  24078. var key = order[i];
  24079. if (!(key in dict.values)) {
  24080. continue;
  24081. }
  24082. var values = dict.values[key];
  24083. var types = dict.types[key];
  24084. if (!isArray(types)) {
  24085. types = [types];
  24086. }
  24087. if (!isArray(values)) {
  24088. values = [values];
  24089. }
  24090. // Remove any empty dict values.
  24091. if (values.length === 0) {
  24092. continue;
  24093. }
  24094. for (var j = 0, jj = types.length; j < jj; ++j) {
  24095. var type = types[j];
  24096. var value = values[j];
  24097. switch (type) {
  24098. case 'num':
  24099. case 'sid':
  24100. out = out.concat(this.encodeNumber(value));
  24101. break;
  24102. case 'offset':
  24103. // For offsets we just insert a 32bit integer so we don't have to
  24104. // deal with figuring out the length of the offset when it gets
  24105. // replaced later on by the compiler.
  24106. var name = dict.keyToNameMap[key];
  24107. // Some offsets have the offset and the length, so just record the
  24108. // position of the first one.
  24109. if (!offsetTracker.isTracking(name)) {
  24110. offsetTracker.track(name, out.length);
  24111. }
  24112. out = out.concat([0x1d, 0, 0, 0, 0]);
  24113. break;
  24114. case 'array':
  24115. case 'delta':
  24116. out = out.concat(this.encodeNumber(value));
  24117. for (var k = 1, kk = values.length; k < kk; ++k) {
  24118. out = out.concat(this.encodeNumber(values[k]));
  24119. }
  24120. break;
  24121. default:
  24122. error('Unknown data type of ' + type);
  24123. break;
  24124. }
  24125. }
  24126. out = out.concat(dict.opcodes[key]);
  24127. }
  24128. return out;
  24129. },
  24130. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  24131. var stringIndex = new CFFIndex();
  24132. for (var i = 0, ii = strings.length; i < ii; ++i) {
  24133. stringIndex.add(stringToArray(strings[i]));
  24134. }
  24135. return this.compileIndex(stringIndex);
  24136. },
  24137. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  24138. var globalSubrIndex = this.cff.globalSubrIndex;
  24139. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  24140. },
  24141. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  24142. return this.compileIndex(charStrings);
  24143. },
  24144. compileCharset: function CFFCompiler_compileCharset(charset) {
  24145. return this.compileTypedArray(charset.raw);
  24146. },
  24147. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  24148. return this.compileTypedArray(encoding.raw);
  24149. },
  24150. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  24151. return this.compileTypedArray(fdSelect);
  24152. },
  24153. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  24154. var out = [];
  24155. for (var i = 0, ii = data.length; i < ii; ++i) {
  24156. out[i] = data[i];
  24157. }
  24158. return out;
  24159. },
  24160. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  24161. trackers = trackers || [];
  24162. var objects = index.objects;
  24163. // First 2 bytes contains the number of objects contained into this index
  24164. var count = objects.length;
  24165. // If there is no object, just create an index. This technically
  24166. // should just be [0, 0] but OTS has an issue with that.
  24167. if (count === 0) {
  24168. return [0, 0, 0];
  24169. }
  24170. var data = [(count >> 8) & 0xFF, count & 0xff];
  24171. var lastOffset = 1, i;
  24172. for (i = 0; i < count; ++i) {
  24173. lastOffset += objects[i].length;
  24174. }
  24175. var offsetSize;
  24176. if (lastOffset < 0x100) {
  24177. offsetSize = 1;
  24178. } else if (lastOffset < 0x10000) {
  24179. offsetSize = 2;
  24180. } else if (lastOffset < 0x1000000) {
  24181. offsetSize = 3;
  24182. } else {
  24183. offsetSize = 4;
  24184. }
  24185. // Next byte contains the offset size use to reference object in the file
  24186. data.push(offsetSize);
  24187. // Add another offset after this one because we need a new offset
  24188. var relativeOffset = 1;
  24189. for (i = 0; i < count + 1; i++) {
  24190. if (offsetSize === 1) {
  24191. data.push(relativeOffset & 0xFF);
  24192. } else if (offsetSize === 2) {
  24193. data.push((relativeOffset >> 8) & 0xFF,
  24194. relativeOffset & 0xFF);
  24195. } else if (offsetSize === 3) {
  24196. data.push((relativeOffset >> 16) & 0xFF,
  24197. (relativeOffset >> 8) & 0xFF,
  24198. relativeOffset & 0xFF);
  24199. } else {
  24200. data.push((relativeOffset >>> 24) & 0xFF,
  24201. (relativeOffset >> 16) & 0xFF,
  24202. (relativeOffset >> 8) & 0xFF,
  24203. relativeOffset & 0xFF);
  24204. }
  24205. if (objects[i]) {
  24206. relativeOffset += objects[i].length;
  24207. }
  24208. }
  24209. for (i = 0; i < count; i++) {
  24210. // Notify the tracker where the object will be offset in the data.
  24211. if (trackers[i]) {
  24212. trackers[i].offset(data.length);
  24213. }
  24214. for (var j = 0, jj = objects[i].length; j < jj; j++) {
  24215. data.push(objects[i][j]);
  24216. }
  24217. }
  24218. return data;
  24219. }
  24220. };
  24221. return CFFCompiler;
  24222. })();
  24223. // Workaround for seac on Windows.
  24224. (function checkSeacSupport() {
  24225. if (/Windows/.test(navigator.userAgent)) {
  24226. SEAC_ANALYSIS_ENABLED = true;
  24227. }
  24228. })();
  24229. // Workaround for Private Use Area characters in Chrome on Windows
  24230. // http://code.google.com/p/chromium/issues/detail?id=122465
  24231. // https://github.com/mozilla/pdf.js/issues/1689
  24232. (function checkChromeWindows() {
  24233. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  24234. SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  24235. }
  24236. })();
  24237. var FontRendererFactory = (function FontRendererFactoryClosure() {
  24238. function getLong(data, offset) {
  24239. return (data[offset] << 24) | (data[offset + 1] << 16) |
  24240. (data[offset + 2] << 8) | data[offset + 3];
  24241. }
  24242. function getUshort(data, offset) {
  24243. return (data[offset] << 8) | data[offset + 1];
  24244. }
  24245. function parseCmap(data, start, end) {
  24246. var offset = (getUshort(data, start + 2) === 1 ?
  24247. getLong(data, start + 8) : getLong(data, start + 16));
  24248. var format = getUshort(data, start + offset);
  24249. var length, ranges, p, i;
  24250. if (format === 4) {
  24251. length = getUshort(data, start + offset + 2);
  24252. var segCount = getUshort(data, start + offset + 6) >> 1;
  24253. p = start + offset + 14;
  24254. ranges = [];
  24255. for (i = 0; i < segCount; i++, p += 2) {
  24256. ranges[i] = {end: getUshort(data, p)};
  24257. }
  24258. p += 2;
  24259. for (i = 0; i < segCount; i++, p += 2) {
  24260. ranges[i].start = getUshort(data, p);
  24261. }
  24262. for (i = 0; i < segCount; i++, p += 2) {
  24263. ranges[i].idDelta = getUshort(data, p);
  24264. }
  24265. for (i = 0; i < segCount; i++, p += 2) {
  24266. var idOffset = getUshort(data, p);
  24267. if (idOffset === 0) {
  24268. continue;
  24269. }
  24270. ranges[i].ids = [];
  24271. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  24272. ranges[i].ids[j] = getUshort(data, p + idOffset);
  24273. idOffset += 2;
  24274. }
  24275. }
  24276. return ranges;
  24277. } else if (format === 12) {
  24278. length = getLong(data, start + offset + 4);
  24279. var groups = getLong(data, start + offset + 12);
  24280. p = start + offset + 16;
  24281. ranges = [];
  24282. for (i = 0; i < groups; i++) {
  24283. ranges.push({
  24284. start: getLong(data, p),
  24285. end: getLong(data, p + 4),
  24286. idDelta: getLong(data, p + 8) - getLong(data, p)
  24287. });
  24288. p += 12;
  24289. }
  24290. return ranges;
  24291. }
  24292. error('not supported cmap: ' + format);
  24293. }
  24294. function parseCff(data, start, end) {
  24295. var properties = {};
  24296. var parser = new CFFParser(new Stream(data, start, end - start),
  24297. properties);
  24298. var cff = parser.parse();
  24299. return {
  24300. glyphs: cff.charStrings.objects,
  24301. subrs: (cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  24302. cff.topDict.privateDict.subrsIndex.objects),
  24303. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  24304. };
  24305. }
  24306. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  24307. var itemSize, itemDecode;
  24308. if (isGlyphLocationsLong) {
  24309. itemSize = 4;
  24310. itemDecode = function fontItemDecodeLong(data, offset) {
  24311. return (data[offset] << 24) | (data[offset + 1] << 16) |
  24312. (data[offset + 2] << 8) | data[offset + 3];
  24313. };
  24314. } else {
  24315. itemSize = 2;
  24316. itemDecode = function fontItemDecode(data, offset) {
  24317. return (data[offset] << 9) | (data[offset + 1] << 1);
  24318. };
  24319. }
  24320. var glyphs = [];
  24321. var startOffset = itemDecode(loca, 0);
  24322. for (var j = itemSize; j < loca.length; j += itemSize) {
  24323. var endOffset = itemDecode(loca, j);
  24324. glyphs.push(glyf.subarray(startOffset, endOffset));
  24325. startOffset = endOffset;
  24326. }
  24327. return glyphs;
  24328. }
  24329. function lookupCmap(ranges, unicode) {
  24330. var code = unicode.charCodeAt(0);
  24331. var l = 0, r = ranges.length - 1;
  24332. while (l < r) {
  24333. var c = (l + r + 1) >> 1;
  24334. if (code < ranges[c].start) {
  24335. r = c - 1;
  24336. } else {
  24337. l = c;
  24338. }
  24339. }
  24340. if (ranges[l].start <= code && code <= ranges[l].end) {
  24341. return (ranges[l].idDelta + (ranges[l].ids ?
  24342. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  24343. }
  24344. return 0;
  24345. }
  24346. function compileGlyf(code, js, font) {
  24347. function moveTo(x, y) {
  24348. js.push('c.moveTo(' + x + ',' + y + ');');
  24349. }
  24350. function lineTo(x, y) {
  24351. js.push('c.lineTo(' + x + ',' + y + ');');
  24352. }
  24353. function quadraticCurveTo(xa, ya, x, y) {
  24354. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  24355. x + ',' + y + ');');
  24356. }
  24357. var i = 0;
  24358. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24359. var flags;
  24360. var x = 0, y = 0;
  24361. i += 10;
  24362. if (numberOfContours < 0) {
  24363. // composite glyph
  24364. do {
  24365. flags = (code[i] << 8) | code[i + 1];
  24366. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  24367. i += 4;
  24368. var arg1, arg2;
  24369. if ((flags & 0x01)) {
  24370. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24371. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  24372. i += 4;
  24373. } else {
  24374. arg1 = code[i++]; arg2 = code[i++];
  24375. }
  24376. if ((flags & 0x02)) {
  24377. x = arg1;
  24378. y = arg2;
  24379. } else {
  24380. x = 0; y = 0; // TODO "they are points" ?
  24381. }
  24382. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  24383. if ((flags & 0x08)) {
  24384. scaleX =
  24385. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24386. i += 2;
  24387. } else if ((flags & 0x40)) {
  24388. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24389. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24390. i += 4;
  24391. } else if ((flags & 0x80)) {
  24392. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24393. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24394. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  24395. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  24396. i += 8;
  24397. }
  24398. var subglyph = font.glyphs[glyphIndex];
  24399. if (subglyph) {
  24400. js.push('c.save();');
  24401. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  24402. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  24403. compileGlyf(subglyph, js, font);
  24404. js.push('c.restore();');
  24405. }
  24406. } while ((flags & 0x20));
  24407. } else {
  24408. // simple glyph
  24409. var endPtsOfContours = [];
  24410. var j, jj;
  24411. for (j = 0; j < numberOfContours; j++) {
  24412. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  24413. i += 2;
  24414. }
  24415. var instructionLength = (code[i] << 8) | code[i + 1];
  24416. i += 2 + instructionLength; // skipping the instructions
  24417. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  24418. var points = [];
  24419. while (points.length < numberOfPoints) {
  24420. flags = code[i++];
  24421. var repeat = 1;
  24422. if ((flags & 0x08)) {
  24423. repeat += code[i++];
  24424. }
  24425. while (repeat-- > 0) {
  24426. points.push({flags: flags});
  24427. }
  24428. }
  24429. for (j = 0; j < numberOfPoints; j++) {
  24430. switch (points[j].flags & 0x12) {
  24431. case 0x00:
  24432. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24433. i += 2;
  24434. break;
  24435. case 0x02:
  24436. x -= code[i++];
  24437. break;
  24438. case 0x12:
  24439. x += code[i++];
  24440. break;
  24441. }
  24442. points[j].x = x;
  24443. }
  24444. for (j = 0; j < numberOfPoints; j++) {
  24445. switch (points[j].flags & 0x24) {
  24446. case 0x00:
  24447. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24448. i += 2;
  24449. break;
  24450. case 0x04:
  24451. y -= code[i++];
  24452. break;
  24453. case 0x24:
  24454. y += code[i++];
  24455. break;
  24456. }
  24457. points[j].y = y;
  24458. }
  24459. var startPoint = 0;
  24460. for (i = 0; i < numberOfContours; i++) {
  24461. var endPoint = endPtsOfContours[i];
  24462. // contours might have implicit points, which is located in the middle
  24463. // between two neighboring off-curve points
  24464. var contour = points.slice(startPoint, endPoint + 1);
  24465. if ((contour[0].flags & 1)) {
  24466. contour.push(contour[0]); // using start point at the contour end
  24467. } else if ((contour[contour.length - 1].flags & 1)) {
  24468. // first is off-curve point, trying to use one from the end
  24469. contour.unshift(contour[contour.length - 1]);
  24470. } else {
  24471. // start and end are off-curve points, creating implicit one
  24472. var p = {
  24473. flags: 1,
  24474. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  24475. y: (contour[0].y + contour[contour.length - 1].y) / 2
  24476. };
  24477. contour.unshift(p);
  24478. contour.push(p);
  24479. }
  24480. moveTo(contour[0].x, contour[0].y);
  24481. for (j = 1, jj = contour.length; j < jj; j++) {
  24482. if ((contour[j].flags & 1)) {
  24483. lineTo(contour[j].x, contour[j].y);
  24484. } else if ((contour[j + 1].flags & 1)){
  24485. quadraticCurveTo(contour[j].x, contour[j].y,
  24486. contour[j + 1].x, contour[j + 1].y);
  24487. j++;
  24488. } else {
  24489. quadraticCurveTo(contour[j].x, contour[j].y,
  24490. (contour[j].x + contour[j + 1].x) / 2,
  24491. (contour[j].y + contour[j + 1].y) / 2);
  24492. }
  24493. }
  24494. startPoint = endPoint + 1;
  24495. }
  24496. }
  24497. }
  24498. function compileCharString(code, js, font) {
  24499. var stack = [];
  24500. var x = 0, y = 0;
  24501. var stems = 0;
  24502. function moveTo(x, y) {
  24503. js.push('c.moveTo(' + x + ',' + y + ');');
  24504. }
  24505. function lineTo(x, y) {
  24506. js.push('c.lineTo(' + x + ',' + y + ');');
  24507. }
  24508. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  24509. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  24510. x + ',' + y + ');');
  24511. }
  24512. function parse(code) {
  24513. var i = 0;
  24514. while (i < code.length) {
  24515. var stackClean = false;
  24516. var v = code[i++];
  24517. var xa, xb, ya, yb, y1, y2, y3, n, subrCode;
  24518. switch (v) {
  24519. case 1: // hstem
  24520. stems += stack.length >> 1;
  24521. stackClean = true;
  24522. break;
  24523. case 3: // vstem
  24524. stems += stack.length >> 1;
  24525. stackClean = true;
  24526. break;
  24527. case 4: // vmoveto
  24528. y += stack.pop();
  24529. moveTo(x, y);
  24530. stackClean = true;
  24531. break;
  24532. case 5: // rlineto
  24533. while (stack.length > 0) {
  24534. x += stack.shift();
  24535. y += stack.shift();
  24536. lineTo(x, y);
  24537. }
  24538. break;
  24539. case 6: // hlineto
  24540. while (stack.length > 0) {
  24541. x += stack.shift();
  24542. lineTo(x, y);
  24543. if (stack.length === 0) {
  24544. break;
  24545. }
  24546. y += stack.shift();
  24547. lineTo(x, y);
  24548. }
  24549. break;
  24550. case 7: // vlineto
  24551. while (stack.length > 0) {
  24552. y += stack.shift();
  24553. lineTo(x, y);
  24554. if (stack.length === 0) {
  24555. break;
  24556. }
  24557. x += stack.shift();
  24558. lineTo(x, y);
  24559. }
  24560. break;
  24561. case 8: // rrcurveto
  24562. while (stack.length > 0) {
  24563. xa = x + stack.shift(); ya = y + stack.shift();
  24564. xb = xa + stack.shift(); yb = ya + stack.shift();
  24565. x = xb + stack.shift(); y = yb + stack.shift();
  24566. bezierCurveTo(xa, ya, xb, yb, x, y);
  24567. }
  24568. break;
  24569. case 10: // callsubr
  24570. n = stack.pop() + font.subrsBias;
  24571. subrCode = font.subrs[n];
  24572. if (subrCode) {
  24573. parse(subrCode);
  24574. }
  24575. break;
  24576. case 11: // return
  24577. return;
  24578. case 12:
  24579. v = code[i++];
  24580. switch (v) {
  24581. case 34: // flex
  24582. xa = x + stack.shift();
  24583. xb = xa + stack.shift(); y1 = y + stack.shift();
  24584. x = xb + stack.shift();
  24585. bezierCurveTo(xa, y, xb, y1, x, y1);
  24586. xa = x + stack.shift();
  24587. xb = xa + stack.shift();
  24588. x = xb + stack.shift();
  24589. bezierCurveTo(xa, y1, xb, y, x, y);
  24590. break;
  24591. case 35: // flex
  24592. xa = x + stack.shift(); ya = y + stack.shift();
  24593. xb = xa + stack.shift(); yb = ya + stack.shift();
  24594. x = xb + stack.shift(); y = yb + stack.shift();
  24595. bezierCurveTo(xa, ya, xb, yb, x, y);
  24596. xa = x + stack.shift(); ya = y + stack.shift();
  24597. xb = xa + stack.shift(); yb = ya + stack.shift();
  24598. x = xb + stack.shift(); y = yb + stack.shift();
  24599. bezierCurveTo(xa, ya, xb, yb, x, y);
  24600. stack.pop(); // fd
  24601. break;
  24602. case 36: // hflex1
  24603. xa = x + stack.shift(); y1 = y + stack.shift();
  24604. xb = xa + stack.shift(); y2 = y1 + stack.shift();
  24605. x = xb + stack.shift();
  24606. bezierCurveTo(xa, y1, xb, y2, x, y2);
  24607. xa = x + stack.shift();
  24608. xb = xa + stack.shift(); y3 = y2 + stack.shift();
  24609. x = xb + stack.shift();
  24610. bezierCurveTo(xa, y2, xb, y3, x, y);
  24611. break;
  24612. case 37: // flex1
  24613. var x0 = x, y0 = y;
  24614. xa = x + stack.shift(); ya = y + stack.shift();
  24615. xb = xa + stack.shift(); yb = ya + stack.shift();
  24616. x = xb + stack.shift(); y = yb + stack.shift();
  24617. bezierCurveTo(xa, ya, xb, yb, x, y);
  24618. xa = x + stack.shift(); ya = y + stack.shift();
  24619. xb = xa + stack.shift(); yb = ya + stack.shift();
  24620. x = xb; y = yb;
  24621. if (Math.abs(x - x0) > Math.abs(y - y0)) {
  24622. x += stack.shift();
  24623. } else {
  24624. y += stack.shift();
  24625. }
  24626. bezierCurveTo(xa, ya, xb, yb, x, y);
  24627. break;
  24628. default:
  24629. error('unknown operator: 12 ' + v);
  24630. }
  24631. break;
  24632. case 14: // endchar
  24633. if (stack.length >= 4) {
  24634. var achar = stack.pop();
  24635. var bchar = stack.pop();
  24636. y = stack.pop();
  24637. x = stack.pop();
  24638. js.push('c.save();');
  24639. js.push('c.translate('+ x + ',' + y + ');');
  24640. var gid = lookupCmap(font.cmap, String.fromCharCode(
  24641. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  24642. compileCharString(font.glyphs[gid], js, font);
  24643. js.push('c.restore();');
  24644. gid = lookupCmap(font.cmap, String.fromCharCode(
  24645. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  24646. compileCharString(font.glyphs[gid], js, font);
  24647. }
  24648. return;
  24649. case 18: // hstemhm
  24650. stems += stack.length >> 1;
  24651. stackClean = true;
  24652. break;
  24653. case 19: // hintmask
  24654. stems += stack.length >> 1;
  24655. i += (stems + 7) >> 3;
  24656. stackClean = true;
  24657. break;
  24658. case 20: // cntrmask
  24659. stems += stack.length >> 1;
  24660. i += (stems + 7) >> 3;
  24661. stackClean = true;
  24662. break;
  24663. case 21: // rmoveto
  24664. y += stack.pop();
  24665. x += stack.pop();
  24666. moveTo(x, y);
  24667. stackClean = true;
  24668. break;
  24669. case 22: // hmoveto
  24670. x += stack.pop();
  24671. moveTo(x, y);
  24672. stackClean = true;
  24673. break;
  24674. case 23: // vstemhm
  24675. stems += stack.length >> 1;
  24676. stackClean = true;
  24677. break;
  24678. case 24: // rcurveline
  24679. while (stack.length > 2) {
  24680. xa = x + stack.shift(); ya = y + stack.shift();
  24681. xb = xa + stack.shift(); yb = ya + stack.shift();
  24682. x = xb + stack.shift(); y = yb + stack.shift();
  24683. bezierCurveTo(xa, ya, xb, yb, x, y);
  24684. }
  24685. x += stack.shift();
  24686. y += stack.shift();
  24687. lineTo(x, y);
  24688. break;
  24689. case 25: // rlinecurve
  24690. while (stack.length > 6) {
  24691. x += stack.shift();
  24692. y += stack.shift();
  24693. lineTo(x, y);
  24694. }
  24695. xa = x + stack.shift(); ya = y + stack.shift();
  24696. xb = xa + stack.shift(); yb = ya + stack.shift();
  24697. x = xb + stack.shift(); y = yb + stack.shift();
  24698. bezierCurveTo(xa, ya, xb, yb, x, y);
  24699. break;
  24700. case 26: // vvcurveto
  24701. if (stack.length % 2) {
  24702. x += stack.shift();
  24703. }
  24704. while (stack.length > 0) {
  24705. xa = x; ya = y + stack.shift();
  24706. xb = xa + stack.shift(); yb = ya + stack.shift();
  24707. x = xb; y = yb + stack.shift();
  24708. bezierCurveTo(xa, ya, xb, yb, x, y);
  24709. }
  24710. break;
  24711. case 27: // hhcurveto
  24712. if (stack.length % 2) {
  24713. y += stack.shift();
  24714. }
  24715. while (stack.length > 0) {
  24716. xa = x + stack.shift(); ya = y;
  24717. xb = xa + stack.shift(); yb = ya + stack.shift();
  24718. x = xb + stack.shift(); y = yb;
  24719. bezierCurveTo(xa, ya, xb, yb, x, y);
  24720. }
  24721. break;
  24722. case 28:
  24723. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  24724. i += 2;
  24725. break;
  24726. case 29: // callgsubr
  24727. n = stack.pop() + font.gsubrsBias;
  24728. subrCode = font.gsubrs[n];
  24729. if (subrCode) {
  24730. parse(subrCode);
  24731. }
  24732. break;
  24733. case 30: // vhcurveto
  24734. while (stack.length > 0) {
  24735. xa = x; ya = y + stack.shift();
  24736. xb = xa + stack.shift(); yb = ya + stack.shift();
  24737. x = xb + stack.shift();
  24738. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24739. bezierCurveTo(xa, ya, xb, yb, x, y);
  24740. if (stack.length === 0) {
  24741. break;
  24742. }
  24743. xa = x + stack.shift(); ya = y;
  24744. xb = xa + stack.shift(); yb = ya + stack.shift();
  24745. y = yb + stack.shift();
  24746. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24747. bezierCurveTo(xa, ya, xb, yb, x, y);
  24748. }
  24749. break;
  24750. case 31: // hvcurveto
  24751. while (stack.length > 0) {
  24752. xa = x + stack.shift(); ya = y;
  24753. xb = xa + stack.shift(); yb = ya + stack.shift();
  24754. y = yb + stack.shift();
  24755. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24756. bezierCurveTo(xa, ya, xb, yb, x, y);
  24757. if (stack.length === 0) {
  24758. break;
  24759. }
  24760. xa = x; ya = y + stack.shift();
  24761. xb = xa + stack.shift(); yb = ya + stack.shift();
  24762. x = xb + stack.shift();
  24763. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24764. bezierCurveTo(xa, ya, xb, yb, x, y);
  24765. }
  24766. break;
  24767. default:
  24768. if (v < 32) {
  24769. error('unknown operator: ' + v);
  24770. }
  24771. if (v < 247) {
  24772. stack.push(v - 139);
  24773. } else if (v < 251) {
  24774. stack.push((v - 247) * 256 + code[i++] + 108);
  24775. } else if (v < 255) {
  24776. stack.push(-(v - 251) * 256 - code[i++] - 108);
  24777. } else {
  24778. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  24779. (code[i + 2] << 8) | code[i + 3]) / 65536);
  24780. i += 4;
  24781. }
  24782. break;
  24783. }
  24784. if (stackClean) {
  24785. stack.length = 0;
  24786. }
  24787. }
  24788. }
  24789. parse(code);
  24790. }
  24791. var noop = '';
  24792. function CompiledFont(fontMatrix) {
  24793. this.compiledGlyphs = {};
  24794. this.fontMatrix = fontMatrix;
  24795. }
  24796. CompiledFont.prototype = {
  24797. getPathJs: function (unicode) {
  24798. var gid = lookupCmap(this.cmap, unicode);
  24799. var fn = this.compiledGlyphs[gid];
  24800. if (!fn) {
  24801. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  24802. }
  24803. return fn;
  24804. },
  24805. compileGlyph: function (code) {
  24806. if (!code || code.length === 0 || code[0] === 14) {
  24807. return noop;
  24808. }
  24809. var js = [];
  24810. js.push('c.save();');
  24811. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  24812. js.push('c.scale(size, -size);');
  24813. this.compileGlyphImpl(code, js);
  24814. js.push('c.restore();');
  24815. return js.join('\n');
  24816. },
  24817. compileGlyphImpl: function () {
  24818. error('Children classes should implement this.');
  24819. },
  24820. hasBuiltPath: function (unicode) {
  24821. var gid = lookupCmap(this.cmap, unicode);
  24822. return gid in this.compiledGlyphs;
  24823. }
  24824. };
  24825. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  24826. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  24827. CompiledFont.call(this, fontMatrix);
  24828. this.glyphs = glyphs;
  24829. this.cmap = cmap;
  24830. this.compiledGlyphs = [];
  24831. }
  24832. Util.inherit(TrueTypeCompiled, CompiledFont, {
  24833. compileGlyphImpl: function (code, js) {
  24834. compileGlyf(code, js, this);
  24835. }
  24836. });
  24837. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  24838. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  24839. CompiledFont.call(this, fontMatrix);
  24840. this.glyphs = cffInfo.glyphs;
  24841. this.gsubrs = cffInfo.gsubrs || [];
  24842. this.subrs = cffInfo.subrs || [];
  24843. this.cmap = cmap;
  24844. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  24845. this.compiledGlyphs = [];
  24846. this.gsubrsBias = (this.gsubrs.length < 1240 ?
  24847. 107 : (this.gsubrs.length < 33900 ? 1131 : 32768));
  24848. this.subrsBias = (this.subrs.length < 1240 ?
  24849. 107 : (this.subrs.length < 33900 ? 1131 : 32768));
  24850. }
  24851. Util.inherit(Type2Compiled, CompiledFont, {
  24852. compileGlyphImpl: function (code, js) {
  24853. compileCharString(code, js, this);
  24854. }
  24855. });
  24856. return {
  24857. create: function FontRendererFactory_create(font) {
  24858. var data = new Uint8Array(font.data);
  24859. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  24860. var numTables = getUshort(data, 4);
  24861. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  24862. var tag = bytesToString(data.subarray(p, p + 4));
  24863. var offset = getLong(data, p + 8);
  24864. var length = getLong(data, p + 12);
  24865. switch (tag) {
  24866. case 'cmap':
  24867. cmap = parseCmap(data, offset, offset + length);
  24868. break;
  24869. case 'glyf':
  24870. glyf = data.subarray(offset, offset + length);
  24871. break;
  24872. case 'loca':
  24873. loca = data.subarray(offset, offset + length);
  24874. break;
  24875. case 'head':
  24876. unitsPerEm = getUshort(data, offset + 18);
  24877. indexToLocFormat = getUshort(data, offset + 50);
  24878. break;
  24879. case 'CFF ':
  24880. cff = parseCff(data, offset, offset + length);
  24881. break;
  24882. }
  24883. }
  24884. if (glyf) {
  24885. var fontMatrix = (!unitsPerEm ? font.fontMatrix :
  24886. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]);
  24887. return new TrueTypeCompiled(
  24888. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  24889. } else {
  24890. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  24891. }
  24892. }
  24893. };
  24894. })();
  24895. var GlyphsUnicode = {
  24896. A: 0x0041,
  24897. AE: 0x00C6,
  24898. AEacute: 0x01FC,
  24899. AEmacron: 0x01E2,
  24900. AEsmall: 0xF7E6,
  24901. Aacute: 0x00C1,
  24902. Aacutesmall: 0xF7E1,
  24903. Abreve: 0x0102,
  24904. Abreveacute: 0x1EAE,
  24905. Abrevecyrillic: 0x04D0,
  24906. Abrevedotbelow: 0x1EB6,
  24907. Abrevegrave: 0x1EB0,
  24908. Abrevehookabove: 0x1EB2,
  24909. Abrevetilde: 0x1EB4,
  24910. Acaron: 0x01CD,
  24911. Acircle: 0x24B6,
  24912. Acircumflex: 0x00C2,
  24913. Acircumflexacute: 0x1EA4,
  24914. Acircumflexdotbelow: 0x1EAC,
  24915. Acircumflexgrave: 0x1EA6,
  24916. Acircumflexhookabove: 0x1EA8,
  24917. Acircumflexsmall: 0xF7E2,
  24918. Acircumflextilde: 0x1EAA,
  24919. Acute: 0xF6C9,
  24920. Acutesmall: 0xF7B4,
  24921. Acyrillic: 0x0410,
  24922. Adblgrave: 0x0200,
  24923. Adieresis: 0x00C4,
  24924. Adieresiscyrillic: 0x04D2,
  24925. Adieresismacron: 0x01DE,
  24926. Adieresissmall: 0xF7E4,
  24927. Adotbelow: 0x1EA0,
  24928. Adotmacron: 0x01E0,
  24929. Agrave: 0x00C0,
  24930. Agravesmall: 0xF7E0,
  24931. Ahookabove: 0x1EA2,
  24932. Aiecyrillic: 0x04D4,
  24933. Ainvertedbreve: 0x0202,
  24934. Alpha: 0x0391,
  24935. Alphatonos: 0x0386,
  24936. Amacron: 0x0100,
  24937. Amonospace: 0xFF21,
  24938. Aogonek: 0x0104,
  24939. Aring: 0x00C5,
  24940. Aringacute: 0x01FA,
  24941. Aringbelow: 0x1E00,
  24942. Aringsmall: 0xF7E5,
  24943. Asmall: 0xF761,
  24944. Atilde: 0x00C3,
  24945. Atildesmall: 0xF7E3,
  24946. Aybarmenian: 0x0531,
  24947. B: 0x0042,
  24948. Bcircle: 0x24B7,
  24949. Bdotaccent: 0x1E02,
  24950. Bdotbelow: 0x1E04,
  24951. Becyrillic: 0x0411,
  24952. Benarmenian: 0x0532,
  24953. Beta: 0x0392,
  24954. Bhook: 0x0181,
  24955. Blinebelow: 0x1E06,
  24956. Bmonospace: 0xFF22,
  24957. Brevesmall: 0xF6F4,
  24958. Bsmall: 0xF762,
  24959. Btopbar: 0x0182,
  24960. C: 0x0043,
  24961. Caarmenian: 0x053E,
  24962. Cacute: 0x0106,
  24963. Caron: 0xF6CA,
  24964. Caronsmall: 0xF6F5,
  24965. Ccaron: 0x010C,
  24966. Ccedilla: 0x00C7,
  24967. Ccedillaacute: 0x1E08,
  24968. Ccedillasmall: 0xF7E7,
  24969. Ccircle: 0x24B8,
  24970. Ccircumflex: 0x0108,
  24971. Cdot: 0x010A,
  24972. Cdotaccent: 0x010A,
  24973. Cedillasmall: 0xF7B8,
  24974. Chaarmenian: 0x0549,
  24975. Cheabkhasiancyrillic: 0x04BC,
  24976. Checyrillic: 0x0427,
  24977. Chedescenderabkhasiancyrillic: 0x04BE,
  24978. Chedescendercyrillic: 0x04B6,
  24979. Chedieresiscyrillic: 0x04F4,
  24980. Cheharmenian: 0x0543,
  24981. Chekhakassiancyrillic: 0x04CB,
  24982. Cheverticalstrokecyrillic: 0x04B8,
  24983. Chi: 0x03A7,
  24984. Chook: 0x0187,
  24985. Circumflexsmall: 0xF6F6,
  24986. Cmonospace: 0xFF23,
  24987. Coarmenian: 0x0551,
  24988. Csmall: 0xF763,
  24989. D: 0x0044,
  24990. DZ: 0x01F1,
  24991. DZcaron: 0x01C4,
  24992. Daarmenian: 0x0534,
  24993. Dafrican: 0x0189,
  24994. Dcaron: 0x010E,
  24995. Dcedilla: 0x1E10,
  24996. Dcircle: 0x24B9,
  24997. Dcircumflexbelow: 0x1E12,
  24998. Dcroat: 0x0110,
  24999. Ddotaccent: 0x1E0A,
  25000. Ddotbelow: 0x1E0C,
  25001. Decyrillic: 0x0414,
  25002. Deicoptic: 0x03EE,
  25003. Delta: 0x2206,
  25004. Deltagreek: 0x0394,
  25005. Dhook: 0x018A,
  25006. Dieresis: 0xF6CB,
  25007. DieresisAcute: 0xF6CC,
  25008. DieresisGrave: 0xF6CD,
  25009. Dieresissmall: 0xF7A8,
  25010. Digammagreek: 0x03DC,
  25011. Djecyrillic: 0x0402,
  25012. Dlinebelow: 0x1E0E,
  25013. Dmonospace: 0xFF24,
  25014. Dotaccentsmall: 0xF6F7,
  25015. Dslash: 0x0110,
  25016. Dsmall: 0xF764,
  25017. Dtopbar: 0x018B,
  25018. Dz: 0x01F2,
  25019. Dzcaron: 0x01C5,
  25020. Dzeabkhasiancyrillic: 0x04E0,
  25021. Dzecyrillic: 0x0405,
  25022. Dzhecyrillic: 0x040F,
  25023. E: 0x0045,
  25024. Eacute: 0x00C9,
  25025. Eacutesmall: 0xF7E9,
  25026. Ebreve: 0x0114,
  25027. Ecaron: 0x011A,
  25028. Ecedillabreve: 0x1E1C,
  25029. Echarmenian: 0x0535,
  25030. Ecircle: 0x24BA,
  25031. Ecircumflex: 0x00CA,
  25032. Ecircumflexacute: 0x1EBE,
  25033. Ecircumflexbelow: 0x1E18,
  25034. Ecircumflexdotbelow: 0x1EC6,
  25035. Ecircumflexgrave: 0x1EC0,
  25036. Ecircumflexhookabove: 0x1EC2,
  25037. Ecircumflexsmall: 0xF7EA,
  25038. Ecircumflextilde: 0x1EC4,
  25039. Ecyrillic: 0x0404,
  25040. Edblgrave: 0x0204,
  25041. Edieresis: 0x00CB,
  25042. Edieresissmall: 0xF7EB,
  25043. Edot: 0x0116,
  25044. Edotaccent: 0x0116,
  25045. Edotbelow: 0x1EB8,
  25046. Efcyrillic: 0x0424,
  25047. Egrave: 0x00C8,
  25048. Egravesmall: 0xF7E8,
  25049. Eharmenian: 0x0537,
  25050. Ehookabove: 0x1EBA,
  25051. Eightroman: 0x2167,
  25052. Einvertedbreve: 0x0206,
  25053. Eiotifiedcyrillic: 0x0464,
  25054. Elcyrillic: 0x041B,
  25055. Elevenroman: 0x216A,
  25056. Emacron: 0x0112,
  25057. Emacronacute: 0x1E16,
  25058. Emacrongrave: 0x1E14,
  25059. Emcyrillic: 0x041C,
  25060. Emonospace: 0xFF25,
  25061. Encyrillic: 0x041D,
  25062. Endescendercyrillic: 0x04A2,
  25063. Eng: 0x014A,
  25064. Enghecyrillic: 0x04A4,
  25065. Enhookcyrillic: 0x04C7,
  25066. Eogonek: 0x0118,
  25067. Eopen: 0x0190,
  25068. Epsilon: 0x0395,
  25069. Epsilontonos: 0x0388,
  25070. Ercyrillic: 0x0420,
  25071. Ereversed: 0x018E,
  25072. Ereversedcyrillic: 0x042D,
  25073. Escyrillic: 0x0421,
  25074. Esdescendercyrillic: 0x04AA,
  25075. Esh: 0x01A9,
  25076. Esmall: 0xF765,
  25077. Eta: 0x0397,
  25078. Etarmenian: 0x0538,
  25079. Etatonos: 0x0389,
  25080. Eth: 0x00D0,
  25081. Ethsmall: 0xF7F0,
  25082. Etilde: 0x1EBC,
  25083. Etildebelow: 0x1E1A,
  25084. Euro: 0x20AC,
  25085. Ezh: 0x01B7,
  25086. Ezhcaron: 0x01EE,
  25087. Ezhreversed: 0x01B8,
  25088. F: 0x0046,
  25089. Fcircle: 0x24BB,
  25090. Fdotaccent: 0x1E1E,
  25091. Feharmenian: 0x0556,
  25092. Feicoptic: 0x03E4,
  25093. Fhook: 0x0191,
  25094. Fitacyrillic: 0x0472,
  25095. Fiveroman: 0x2164,
  25096. Fmonospace: 0xFF26,
  25097. Fourroman: 0x2163,
  25098. Fsmall: 0xF766,
  25099. G: 0x0047,
  25100. GBsquare: 0x3387,
  25101. Gacute: 0x01F4,
  25102. Gamma: 0x0393,
  25103. Gammaafrican: 0x0194,
  25104. Gangiacoptic: 0x03EA,
  25105. Gbreve: 0x011E,
  25106. Gcaron: 0x01E6,
  25107. Gcedilla: 0x0122,
  25108. Gcircle: 0x24BC,
  25109. Gcircumflex: 0x011C,
  25110. Gcommaaccent: 0x0122,
  25111. Gdot: 0x0120,
  25112. Gdotaccent: 0x0120,
  25113. Gecyrillic: 0x0413,
  25114. Ghadarmenian: 0x0542,
  25115. Ghemiddlehookcyrillic: 0x0494,
  25116. Ghestrokecyrillic: 0x0492,
  25117. Gheupturncyrillic: 0x0490,
  25118. Ghook: 0x0193,
  25119. Gimarmenian: 0x0533,
  25120. Gjecyrillic: 0x0403,
  25121. Gmacron: 0x1E20,
  25122. Gmonospace: 0xFF27,
  25123. Grave: 0xF6CE,
  25124. Gravesmall: 0xF760,
  25125. Gsmall: 0xF767,
  25126. Gsmallhook: 0x029B,
  25127. Gstroke: 0x01E4,
  25128. H: 0x0048,
  25129. H18533: 0x25CF,
  25130. H18543: 0x25AA,
  25131. H18551: 0x25AB,
  25132. H22073: 0x25A1,
  25133. HPsquare: 0x33CB,
  25134. Haabkhasiancyrillic: 0x04A8,
  25135. Hadescendercyrillic: 0x04B2,
  25136. Hardsigncyrillic: 0x042A,
  25137. Hbar: 0x0126,
  25138. Hbrevebelow: 0x1E2A,
  25139. Hcedilla: 0x1E28,
  25140. Hcircle: 0x24BD,
  25141. Hcircumflex: 0x0124,
  25142. Hdieresis: 0x1E26,
  25143. Hdotaccent: 0x1E22,
  25144. Hdotbelow: 0x1E24,
  25145. Hmonospace: 0xFF28,
  25146. Hoarmenian: 0x0540,
  25147. Horicoptic: 0x03E8,
  25148. Hsmall: 0xF768,
  25149. Hungarumlaut: 0xF6CF,
  25150. Hungarumlautsmall: 0xF6F8,
  25151. Hzsquare: 0x3390,
  25152. I: 0x0049,
  25153. IAcyrillic: 0x042F,
  25154. IJ: 0x0132,
  25155. IUcyrillic: 0x042E,
  25156. Iacute: 0x00CD,
  25157. Iacutesmall: 0xF7ED,
  25158. Ibreve: 0x012C,
  25159. Icaron: 0x01CF,
  25160. Icircle: 0x24BE,
  25161. Icircumflex: 0x00CE,
  25162. Icircumflexsmall: 0xF7EE,
  25163. Icyrillic: 0x0406,
  25164. Idblgrave: 0x0208,
  25165. Idieresis: 0x00CF,
  25166. Idieresisacute: 0x1E2E,
  25167. Idieresiscyrillic: 0x04E4,
  25168. Idieresissmall: 0xF7EF,
  25169. Idot: 0x0130,
  25170. Idotaccent: 0x0130,
  25171. Idotbelow: 0x1ECA,
  25172. Iebrevecyrillic: 0x04D6,
  25173. Iecyrillic: 0x0415,
  25174. Ifraktur: 0x2111,
  25175. Igrave: 0x00CC,
  25176. Igravesmall: 0xF7EC,
  25177. Ihookabove: 0x1EC8,
  25178. Iicyrillic: 0x0418,
  25179. Iinvertedbreve: 0x020A,
  25180. Iishortcyrillic: 0x0419,
  25181. Imacron: 0x012A,
  25182. Imacroncyrillic: 0x04E2,
  25183. Imonospace: 0xFF29,
  25184. Iniarmenian: 0x053B,
  25185. Iocyrillic: 0x0401,
  25186. Iogonek: 0x012E,
  25187. Iota: 0x0399,
  25188. Iotaafrican: 0x0196,
  25189. Iotadieresis: 0x03AA,
  25190. Iotatonos: 0x038A,
  25191. Ismall: 0xF769,
  25192. Istroke: 0x0197,
  25193. Itilde: 0x0128,
  25194. Itildebelow: 0x1E2C,
  25195. Izhitsacyrillic: 0x0474,
  25196. Izhitsadblgravecyrillic: 0x0476,
  25197. J: 0x004A,
  25198. Jaarmenian: 0x0541,
  25199. Jcircle: 0x24BF,
  25200. Jcircumflex: 0x0134,
  25201. Jecyrillic: 0x0408,
  25202. Jheharmenian: 0x054B,
  25203. Jmonospace: 0xFF2A,
  25204. Jsmall: 0xF76A,
  25205. K: 0x004B,
  25206. KBsquare: 0x3385,
  25207. KKsquare: 0x33CD,
  25208. Kabashkircyrillic: 0x04A0,
  25209. Kacute: 0x1E30,
  25210. Kacyrillic: 0x041A,
  25211. Kadescendercyrillic: 0x049A,
  25212. Kahookcyrillic: 0x04C3,
  25213. Kappa: 0x039A,
  25214. Kastrokecyrillic: 0x049E,
  25215. Kaverticalstrokecyrillic: 0x049C,
  25216. Kcaron: 0x01E8,
  25217. Kcedilla: 0x0136,
  25218. Kcircle: 0x24C0,
  25219. Kcommaaccent: 0x0136,
  25220. Kdotbelow: 0x1E32,
  25221. Keharmenian: 0x0554,
  25222. Kenarmenian: 0x053F,
  25223. Khacyrillic: 0x0425,
  25224. Kheicoptic: 0x03E6,
  25225. Khook: 0x0198,
  25226. Kjecyrillic: 0x040C,
  25227. Klinebelow: 0x1E34,
  25228. Kmonospace: 0xFF2B,
  25229. Koppacyrillic: 0x0480,
  25230. Koppagreek: 0x03DE,
  25231. Ksicyrillic: 0x046E,
  25232. Ksmall: 0xF76B,
  25233. L: 0x004C,
  25234. LJ: 0x01C7,
  25235. LL: 0xF6BF,
  25236. Lacute: 0x0139,
  25237. Lambda: 0x039B,
  25238. Lcaron: 0x013D,
  25239. Lcedilla: 0x013B,
  25240. Lcircle: 0x24C1,
  25241. Lcircumflexbelow: 0x1E3C,
  25242. Lcommaaccent: 0x013B,
  25243. Ldot: 0x013F,
  25244. Ldotaccent: 0x013F,
  25245. Ldotbelow: 0x1E36,
  25246. Ldotbelowmacron: 0x1E38,
  25247. Liwnarmenian: 0x053C,
  25248. Lj: 0x01C8,
  25249. Ljecyrillic: 0x0409,
  25250. Llinebelow: 0x1E3A,
  25251. Lmonospace: 0xFF2C,
  25252. Lslash: 0x0141,
  25253. Lslashsmall: 0xF6F9,
  25254. Lsmall: 0xF76C,
  25255. M: 0x004D,
  25256. MBsquare: 0x3386,
  25257. Macron: 0xF6D0,
  25258. Macronsmall: 0xF7AF,
  25259. Macute: 0x1E3E,
  25260. Mcircle: 0x24C2,
  25261. Mdotaccent: 0x1E40,
  25262. Mdotbelow: 0x1E42,
  25263. Menarmenian: 0x0544,
  25264. Mmonospace: 0xFF2D,
  25265. Msmall: 0xF76D,
  25266. Mturned: 0x019C,
  25267. Mu: 0x039C,
  25268. N: 0x004E,
  25269. NJ: 0x01CA,
  25270. Nacute: 0x0143,
  25271. Ncaron: 0x0147,
  25272. Ncedilla: 0x0145,
  25273. Ncircle: 0x24C3,
  25274. Ncircumflexbelow: 0x1E4A,
  25275. Ncommaaccent: 0x0145,
  25276. Ndotaccent: 0x1E44,
  25277. Ndotbelow: 0x1E46,
  25278. Nhookleft: 0x019D,
  25279. Nineroman: 0x2168,
  25280. Nj: 0x01CB,
  25281. Njecyrillic: 0x040A,
  25282. Nlinebelow: 0x1E48,
  25283. Nmonospace: 0xFF2E,
  25284. Nowarmenian: 0x0546,
  25285. Nsmall: 0xF76E,
  25286. Ntilde: 0x00D1,
  25287. Ntildesmall: 0xF7F1,
  25288. Nu: 0x039D,
  25289. O: 0x004F,
  25290. OE: 0x0152,
  25291. OEsmall: 0xF6FA,
  25292. Oacute: 0x00D3,
  25293. Oacutesmall: 0xF7F3,
  25294. Obarredcyrillic: 0x04E8,
  25295. Obarreddieresiscyrillic: 0x04EA,
  25296. Obreve: 0x014E,
  25297. Ocaron: 0x01D1,
  25298. Ocenteredtilde: 0x019F,
  25299. Ocircle: 0x24C4,
  25300. Ocircumflex: 0x00D4,
  25301. Ocircumflexacute: 0x1ED0,
  25302. Ocircumflexdotbelow: 0x1ED8,
  25303. Ocircumflexgrave: 0x1ED2,
  25304. Ocircumflexhookabove: 0x1ED4,
  25305. Ocircumflexsmall: 0xF7F4,
  25306. Ocircumflextilde: 0x1ED6,
  25307. Ocyrillic: 0x041E,
  25308. Odblacute: 0x0150,
  25309. Odblgrave: 0x020C,
  25310. Odieresis: 0x00D6,
  25311. Odieresiscyrillic: 0x04E6,
  25312. Odieresissmall: 0xF7F6,
  25313. Odotbelow: 0x1ECC,
  25314. Ogoneksmall: 0xF6FB,
  25315. Ograve: 0x00D2,
  25316. Ogravesmall: 0xF7F2,
  25317. Oharmenian: 0x0555,
  25318. Ohm: 0x2126,
  25319. Ohookabove: 0x1ECE,
  25320. Ohorn: 0x01A0,
  25321. Ohornacute: 0x1EDA,
  25322. Ohorndotbelow: 0x1EE2,
  25323. Ohorngrave: 0x1EDC,
  25324. Ohornhookabove: 0x1EDE,
  25325. Ohorntilde: 0x1EE0,
  25326. Ohungarumlaut: 0x0150,
  25327. Oi: 0x01A2,
  25328. Oinvertedbreve: 0x020E,
  25329. Omacron: 0x014C,
  25330. Omacronacute: 0x1E52,
  25331. Omacrongrave: 0x1E50,
  25332. Omega: 0x2126,
  25333. Omegacyrillic: 0x0460,
  25334. Omegagreek: 0x03A9,
  25335. Omegaroundcyrillic: 0x047A,
  25336. Omegatitlocyrillic: 0x047C,
  25337. Omegatonos: 0x038F,
  25338. Omicron: 0x039F,
  25339. Omicrontonos: 0x038C,
  25340. Omonospace: 0xFF2F,
  25341. Oneroman: 0x2160,
  25342. Oogonek: 0x01EA,
  25343. Oogonekmacron: 0x01EC,
  25344. Oopen: 0x0186,
  25345. Oslash: 0x00D8,
  25346. Oslashacute: 0x01FE,
  25347. Oslashsmall: 0xF7F8,
  25348. Osmall: 0xF76F,
  25349. Ostrokeacute: 0x01FE,
  25350. Otcyrillic: 0x047E,
  25351. Otilde: 0x00D5,
  25352. Otildeacute: 0x1E4C,
  25353. Otildedieresis: 0x1E4E,
  25354. Otildesmall: 0xF7F5,
  25355. P: 0x0050,
  25356. Pacute: 0x1E54,
  25357. Pcircle: 0x24C5,
  25358. Pdotaccent: 0x1E56,
  25359. Pecyrillic: 0x041F,
  25360. Peharmenian: 0x054A,
  25361. Pemiddlehookcyrillic: 0x04A6,
  25362. Phi: 0x03A6,
  25363. Phook: 0x01A4,
  25364. Pi: 0x03A0,
  25365. Piwrarmenian: 0x0553,
  25366. Pmonospace: 0xFF30,
  25367. Psi: 0x03A8,
  25368. Psicyrillic: 0x0470,
  25369. Psmall: 0xF770,
  25370. Q: 0x0051,
  25371. Qcircle: 0x24C6,
  25372. Qmonospace: 0xFF31,
  25373. Qsmall: 0xF771,
  25374. R: 0x0052,
  25375. Raarmenian: 0x054C,
  25376. Racute: 0x0154,
  25377. Rcaron: 0x0158,
  25378. Rcedilla: 0x0156,
  25379. Rcircle: 0x24C7,
  25380. Rcommaaccent: 0x0156,
  25381. Rdblgrave: 0x0210,
  25382. Rdotaccent: 0x1E58,
  25383. Rdotbelow: 0x1E5A,
  25384. Rdotbelowmacron: 0x1E5C,
  25385. Reharmenian: 0x0550,
  25386. Rfraktur: 0x211C,
  25387. Rho: 0x03A1,
  25388. Ringsmall: 0xF6FC,
  25389. Rinvertedbreve: 0x0212,
  25390. Rlinebelow: 0x1E5E,
  25391. Rmonospace: 0xFF32,
  25392. Rsmall: 0xF772,
  25393. Rsmallinverted: 0x0281,
  25394. Rsmallinvertedsuperior: 0x02B6,
  25395. S: 0x0053,
  25396. SF010000: 0x250C,
  25397. SF020000: 0x2514,
  25398. SF030000: 0x2510,
  25399. SF040000: 0x2518,
  25400. SF050000: 0x253C,
  25401. SF060000: 0x252C,
  25402. SF070000: 0x2534,
  25403. SF080000: 0x251C,
  25404. SF090000: 0x2524,
  25405. SF100000: 0x2500,
  25406. SF110000: 0x2502,
  25407. SF190000: 0x2561,
  25408. SF200000: 0x2562,
  25409. SF210000: 0x2556,
  25410. SF220000: 0x2555,
  25411. SF230000: 0x2563,
  25412. SF240000: 0x2551,
  25413. SF250000: 0x2557,
  25414. SF260000: 0x255D,
  25415. SF270000: 0x255C,
  25416. SF280000: 0x255B,
  25417. SF360000: 0x255E,
  25418. SF370000: 0x255F,
  25419. SF380000: 0x255A,
  25420. SF390000: 0x2554,
  25421. SF400000: 0x2569,
  25422. SF410000: 0x2566,
  25423. SF420000: 0x2560,
  25424. SF430000: 0x2550,
  25425. SF440000: 0x256C,
  25426. SF450000: 0x2567,
  25427. SF460000: 0x2568,
  25428. SF470000: 0x2564,
  25429. SF480000: 0x2565,
  25430. SF490000: 0x2559,
  25431. SF500000: 0x2558,
  25432. SF510000: 0x2552,
  25433. SF520000: 0x2553,
  25434. SF530000: 0x256B,
  25435. SF540000: 0x256A,
  25436. Sacute: 0x015A,
  25437. Sacutedotaccent: 0x1E64,
  25438. Sampigreek: 0x03E0,
  25439. Scaron: 0x0160,
  25440. Scarondotaccent: 0x1E66,
  25441. Scaronsmall: 0xF6FD,
  25442. Scedilla: 0x015E,
  25443. Schwa: 0x018F,
  25444. Schwacyrillic: 0x04D8,
  25445. Schwadieresiscyrillic: 0x04DA,
  25446. Scircle: 0x24C8,
  25447. Scircumflex: 0x015C,
  25448. Scommaaccent: 0x0218,
  25449. Sdotaccent: 0x1E60,
  25450. Sdotbelow: 0x1E62,
  25451. Sdotbelowdotaccent: 0x1E68,
  25452. Seharmenian: 0x054D,
  25453. Sevenroman: 0x2166,
  25454. Shaarmenian: 0x0547,
  25455. Shacyrillic: 0x0428,
  25456. Shchacyrillic: 0x0429,
  25457. Sheicoptic: 0x03E2,
  25458. Shhacyrillic: 0x04BA,
  25459. Shimacoptic: 0x03EC,
  25460. Sigma: 0x03A3,
  25461. Sixroman: 0x2165,
  25462. Smonospace: 0xFF33,
  25463. Softsigncyrillic: 0x042C,
  25464. Ssmall: 0xF773,
  25465. Stigmagreek: 0x03DA,
  25466. T: 0x0054,
  25467. Tau: 0x03A4,
  25468. Tbar: 0x0166,
  25469. Tcaron: 0x0164,
  25470. Tcedilla: 0x0162,
  25471. Tcircle: 0x24C9,
  25472. Tcircumflexbelow: 0x1E70,
  25473. Tcommaaccent: 0x0162,
  25474. Tdotaccent: 0x1E6A,
  25475. Tdotbelow: 0x1E6C,
  25476. Tecyrillic: 0x0422,
  25477. Tedescendercyrillic: 0x04AC,
  25478. Tenroman: 0x2169,
  25479. Tetsecyrillic: 0x04B4,
  25480. Theta: 0x0398,
  25481. Thook: 0x01AC,
  25482. Thorn: 0x00DE,
  25483. Thornsmall: 0xF7FE,
  25484. Threeroman: 0x2162,
  25485. Tildesmall: 0xF6FE,
  25486. Tiwnarmenian: 0x054F,
  25487. Tlinebelow: 0x1E6E,
  25488. Tmonospace: 0xFF34,
  25489. Toarmenian: 0x0539,
  25490. Tonefive: 0x01BC,
  25491. Tonesix: 0x0184,
  25492. Tonetwo: 0x01A7,
  25493. Tretroflexhook: 0x01AE,
  25494. Tsecyrillic: 0x0426,
  25495. Tshecyrillic: 0x040B,
  25496. Tsmall: 0xF774,
  25497. Twelveroman: 0x216B,
  25498. Tworoman: 0x2161,
  25499. U: 0x0055,
  25500. Uacute: 0x00DA,
  25501. Uacutesmall: 0xF7FA,
  25502. Ubreve: 0x016C,
  25503. Ucaron: 0x01D3,
  25504. Ucircle: 0x24CA,
  25505. Ucircumflex: 0x00DB,
  25506. Ucircumflexbelow: 0x1E76,
  25507. Ucircumflexsmall: 0xF7FB,
  25508. Ucyrillic: 0x0423,
  25509. Udblacute: 0x0170,
  25510. Udblgrave: 0x0214,
  25511. Udieresis: 0x00DC,
  25512. Udieresisacute: 0x01D7,
  25513. Udieresisbelow: 0x1E72,
  25514. Udieresiscaron: 0x01D9,
  25515. Udieresiscyrillic: 0x04F0,
  25516. Udieresisgrave: 0x01DB,
  25517. Udieresismacron: 0x01D5,
  25518. Udieresissmall: 0xF7FC,
  25519. Udotbelow: 0x1EE4,
  25520. Ugrave: 0x00D9,
  25521. Ugravesmall: 0xF7F9,
  25522. Uhookabove: 0x1EE6,
  25523. Uhorn: 0x01AF,
  25524. Uhornacute: 0x1EE8,
  25525. Uhorndotbelow: 0x1EF0,
  25526. Uhorngrave: 0x1EEA,
  25527. Uhornhookabove: 0x1EEC,
  25528. Uhorntilde: 0x1EEE,
  25529. Uhungarumlaut: 0x0170,
  25530. Uhungarumlautcyrillic: 0x04F2,
  25531. Uinvertedbreve: 0x0216,
  25532. Ukcyrillic: 0x0478,
  25533. Umacron: 0x016A,
  25534. Umacroncyrillic: 0x04EE,
  25535. Umacrondieresis: 0x1E7A,
  25536. Umonospace: 0xFF35,
  25537. Uogonek: 0x0172,
  25538. Upsilon: 0x03A5,
  25539. Upsilon1: 0x03D2,
  25540. Upsilonacutehooksymbolgreek: 0x03D3,
  25541. Upsilonafrican: 0x01B1,
  25542. Upsilondieresis: 0x03AB,
  25543. Upsilondieresishooksymbolgreek: 0x03D4,
  25544. Upsilonhooksymbol: 0x03D2,
  25545. Upsilontonos: 0x038E,
  25546. Uring: 0x016E,
  25547. Ushortcyrillic: 0x040E,
  25548. Usmall: 0xF775,
  25549. Ustraightcyrillic: 0x04AE,
  25550. Ustraightstrokecyrillic: 0x04B0,
  25551. Utilde: 0x0168,
  25552. Utildeacute: 0x1E78,
  25553. Utildebelow: 0x1E74,
  25554. V: 0x0056,
  25555. Vcircle: 0x24CB,
  25556. Vdotbelow: 0x1E7E,
  25557. Vecyrillic: 0x0412,
  25558. Vewarmenian: 0x054E,
  25559. Vhook: 0x01B2,
  25560. Vmonospace: 0xFF36,
  25561. Voarmenian: 0x0548,
  25562. Vsmall: 0xF776,
  25563. Vtilde: 0x1E7C,
  25564. W: 0x0057,
  25565. Wacute: 0x1E82,
  25566. Wcircle: 0x24CC,
  25567. Wcircumflex: 0x0174,
  25568. Wdieresis: 0x1E84,
  25569. Wdotaccent: 0x1E86,
  25570. Wdotbelow: 0x1E88,
  25571. Wgrave: 0x1E80,
  25572. Wmonospace: 0xFF37,
  25573. Wsmall: 0xF777,
  25574. X: 0x0058,
  25575. Xcircle: 0x24CD,
  25576. Xdieresis: 0x1E8C,
  25577. Xdotaccent: 0x1E8A,
  25578. Xeharmenian: 0x053D,
  25579. Xi: 0x039E,
  25580. Xmonospace: 0xFF38,
  25581. Xsmall: 0xF778,
  25582. Y: 0x0059,
  25583. Yacute: 0x00DD,
  25584. Yacutesmall: 0xF7FD,
  25585. Yatcyrillic: 0x0462,
  25586. Ycircle: 0x24CE,
  25587. Ycircumflex: 0x0176,
  25588. Ydieresis: 0x0178,
  25589. Ydieresissmall: 0xF7FF,
  25590. Ydotaccent: 0x1E8E,
  25591. Ydotbelow: 0x1EF4,
  25592. Yericyrillic: 0x042B,
  25593. Yerudieresiscyrillic: 0x04F8,
  25594. Ygrave: 0x1EF2,
  25595. Yhook: 0x01B3,
  25596. Yhookabove: 0x1EF6,
  25597. Yiarmenian: 0x0545,
  25598. Yicyrillic: 0x0407,
  25599. Yiwnarmenian: 0x0552,
  25600. Ymonospace: 0xFF39,
  25601. Ysmall: 0xF779,
  25602. Ytilde: 0x1EF8,
  25603. Yusbigcyrillic: 0x046A,
  25604. Yusbigiotifiedcyrillic: 0x046C,
  25605. Yuslittlecyrillic: 0x0466,
  25606. Yuslittleiotifiedcyrillic: 0x0468,
  25607. Z: 0x005A,
  25608. Zaarmenian: 0x0536,
  25609. Zacute: 0x0179,
  25610. Zcaron: 0x017D,
  25611. Zcaronsmall: 0xF6FF,
  25612. Zcircle: 0x24CF,
  25613. Zcircumflex: 0x1E90,
  25614. Zdot: 0x017B,
  25615. Zdotaccent: 0x017B,
  25616. Zdotbelow: 0x1E92,
  25617. Zecyrillic: 0x0417,
  25618. Zedescendercyrillic: 0x0498,
  25619. Zedieresiscyrillic: 0x04DE,
  25620. Zeta: 0x0396,
  25621. Zhearmenian: 0x053A,
  25622. Zhebrevecyrillic: 0x04C1,
  25623. Zhecyrillic: 0x0416,
  25624. Zhedescendercyrillic: 0x0496,
  25625. Zhedieresiscyrillic: 0x04DC,
  25626. Zlinebelow: 0x1E94,
  25627. Zmonospace: 0xFF3A,
  25628. Zsmall: 0xF77A,
  25629. Zstroke: 0x01B5,
  25630. a: 0x0061,
  25631. aabengali: 0x0986,
  25632. aacute: 0x00E1,
  25633. aadeva: 0x0906,
  25634. aagujarati: 0x0A86,
  25635. aagurmukhi: 0x0A06,
  25636. aamatragurmukhi: 0x0A3E,
  25637. aarusquare: 0x3303,
  25638. aavowelsignbengali: 0x09BE,
  25639. aavowelsigndeva: 0x093E,
  25640. aavowelsigngujarati: 0x0ABE,
  25641. abbreviationmarkarmenian: 0x055F,
  25642. abbreviationsigndeva: 0x0970,
  25643. abengali: 0x0985,
  25644. abopomofo: 0x311A,
  25645. abreve: 0x0103,
  25646. abreveacute: 0x1EAF,
  25647. abrevecyrillic: 0x04D1,
  25648. abrevedotbelow: 0x1EB7,
  25649. abrevegrave: 0x1EB1,
  25650. abrevehookabove: 0x1EB3,
  25651. abrevetilde: 0x1EB5,
  25652. acaron: 0x01CE,
  25653. acircle: 0x24D0,
  25654. acircumflex: 0x00E2,
  25655. acircumflexacute: 0x1EA5,
  25656. acircumflexdotbelow: 0x1EAD,
  25657. acircumflexgrave: 0x1EA7,
  25658. acircumflexhookabove: 0x1EA9,
  25659. acircumflextilde: 0x1EAB,
  25660. acute: 0x00B4,
  25661. acutebelowcmb: 0x0317,
  25662. acutecmb: 0x0301,
  25663. acutecomb: 0x0301,
  25664. acutedeva: 0x0954,
  25665. acutelowmod: 0x02CF,
  25666. acutetonecmb: 0x0341,
  25667. acyrillic: 0x0430,
  25668. adblgrave: 0x0201,
  25669. addakgurmukhi: 0x0A71,
  25670. adeva: 0x0905,
  25671. adieresis: 0x00E4,
  25672. adieresiscyrillic: 0x04D3,
  25673. adieresismacron: 0x01DF,
  25674. adotbelow: 0x1EA1,
  25675. adotmacron: 0x01E1,
  25676. ae: 0x00E6,
  25677. aeacute: 0x01FD,
  25678. aekorean: 0x3150,
  25679. aemacron: 0x01E3,
  25680. afii00208: 0x2015,
  25681. afii08941: 0x20A4,
  25682. afii10017: 0x0410,
  25683. afii10018: 0x0411,
  25684. afii10019: 0x0412,
  25685. afii10020: 0x0413,
  25686. afii10021: 0x0414,
  25687. afii10022: 0x0415,
  25688. afii10023: 0x0401,
  25689. afii10024: 0x0416,
  25690. afii10025: 0x0417,
  25691. afii10026: 0x0418,
  25692. afii10027: 0x0419,
  25693. afii10028: 0x041A,
  25694. afii10029: 0x041B,
  25695. afii10030: 0x041C,
  25696. afii10031: 0x041D,
  25697. afii10032: 0x041E,
  25698. afii10033: 0x041F,
  25699. afii10034: 0x0420,
  25700. afii10035: 0x0421,
  25701. afii10036: 0x0422,
  25702. afii10037: 0x0423,
  25703. afii10038: 0x0424,
  25704. afii10039: 0x0425,
  25705. afii10040: 0x0426,
  25706. afii10041: 0x0427,
  25707. afii10042: 0x0428,
  25708. afii10043: 0x0429,
  25709. afii10044: 0x042A,
  25710. afii10045: 0x042B,
  25711. afii10046: 0x042C,
  25712. afii10047: 0x042D,
  25713. afii10048: 0x042E,
  25714. afii10049: 0x042F,
  25715. afii10050: 0x0490,
  25716. afii10051: 0x0402,
  25717. afii10052: 0x0403,
  25718. afii10053: 0x0404,
  25719. afii10054: 0x0405,
  25720. afii10055: 0x0406,
  25721. afii10056: 0x0407,
  25722. afii10057: 0x0408,
  25723. afii10058: 0x0409,
  25724. afii10059: 0x040A,
  25725. afii10060: 0x040B,
  25726. afii10061: 0x040C,
  25727. afii10062: 0x040E,
  25728. afii10063: 0xF6C4,
  25729. afii10064: 0xF6C5,
  25730. afii10065: 0x0430,
  25731. afii10066: 0x0431,
  25732. afii10067: 0x0432,
  25733. afii10068: 0x0433,
  25734. afii10069: 0x0434,
  25735. afii10070: 0x0435,
  25736. afii10071: 0x0451,
  25737. afii10072: 0x0436,
  25738. afii10073: 0x0437,
  25739. afii10074: 0x0438,
  25740. afii10075: 0x0439,
  25741. afii10076: 0x043A,
  25742. afii10077: 0x043B,
  25743. afii10078: 0x043C,
  25744. afii10079: 0x043D,
  25745. afii10080: 0x043E,
  25746. afii10081: 0x043F,
  25747. afii10082: 0x0440,
  25748. afii10083: 0x0441,
  25749. afii10084: 0x0442,
  25750. afii10085: 0x0443,
  25751. afii10086: 0x0444,
  25752. afii10087: 0x0445,
  25753. afii10088: 0x0446,
  25754. afii10089: 0x0447,
  25755. afii10090: 0x0448,
  25756. afii10091: 0x0449,
  25757. afii10092: 0x044A,
  25758. afii10093: 0x044B,
  25759. afii10094: 0x044C,
  25760. afii10095: 0x044D,
  25761. afii10096: 0x044E,
  25762. afii10097: 0x044F,
  25763. afii10098: 0x0491,
  25764. afii10099: 0x0452,
  25765. afii10100: 0x0453,
  25766. afii10101: 0x0454,
  25767. afii10102: 0x0455,
  25768. afii10103: 0x0456,
  25769. afii10104: 0x0457,
  25770. afii10105: 0x0458,
  25771. afii10106: 0x0459,
  25772. afii10107: 0x045A,
  25773. afii10108: 0x045B,
  25774. afii10109: 0x045C,
  25775. afii10110: 0x045E,
  25776. afii10145: 0x040F,
  25777. afii10146: 0x0462,
  25778. afii10147: 0x0472,
  25779. afii10148: 0x0474,
  25780. afii10192: 0xF6C6,
  25781. afii10193: 0x045F,
  25782. afii10194: 0x0463,
  25783. afii10195: 0x0473,
  25784. afii10196: 0x0475,
  25785. afii10831: 0xF6C7,
  25786. afii10832: 0xF6C8,
  25787. afii10846: 0x04D9,
  25788. afii299: 0x200E,
  25789. afii300: 0x200F,
  25790. afii301: 0x200D,
  25791. afii57381: 0x066A,
  25792. afii57388: 0x060C,
  25793. afii57392: 0x0660,
  25794. afii57393: 0x0661,
  25795. afii57394: 0x0662,
  25796. afii57395: 0x0663,
  25797. afii57396: 0x0664,
  25798. afii57397: 0x0665,
  25799. afii57398: 0x0666,
  25800. afii57399: 0x0667,
  25801. afii57400: 0x0668,
  25802. afii57401: 0x0669,
  25803. afii57403: 0x061B,
  25804. afii57407: 0x061F,
  25805. afii57409: 0x0621,
  25806. afii57410: 0x0622,
  25807. afii57411: 0x0623,
  25808. afii57412: 0x0624,
  25809. afii57413: 0x0625,
  25810. afii57414: 0x0626,
  25811. afii57415: 0x0627,
  25812. afii57416: 0x0628,
  25813. afii57417: 0x0629,
  25814. afii57418: 0x062A,
  25815. afii57419: 0x062B,
  25816. afii57420: 0x062C,
  25817. afii57421: 0x062D,
  25818. afii57422: 0x062E,
  25819. afii57423: 0x062F,
  25820. afii57424: 0x0630,
  25821. afii57425: 0x0631,
  25822. afii57426: 0x0632,
  25823. afii57427: 0x0633,
  25824. afii57428: 0x0634,
  25825. afii57429: 0x0635,
  25826. afii57430: 0x0636,
  25827. afii57431: 0x0637,
  25828. afii57432: 0x0638,
  25829. afii57433: 0x0639,
  25830. afii57434: 0x063A,
  25831. afii57440: 0x0640,
  25832. afii57441: 0x0641,
  25833. afii57442: 0x0642,
  25834. afii57443: 0x0643,
  25835. afii57444: 0x0644,
  25836. afii57445: 0x0645,
  25837. afii57446: 0x0646,
  25838. afii57448: 0x0648,
  25839. afii57449: 0x0649,
  25840. afii57450: 0x064A,
  25841. afii57451: 0x064B,
  25842. afii57452: 0x064C,
  25843. afii57453: 0x064D,
  25844. afii57454: 0x064E,
  25845. afii57455: 0x064F,
  25846. afii57456: 0x0650,
  25847. afii57457: 0x0651,
  25848. afii57458: 0x0652,
  25849. afii57470: 0x0647,
  25850. afii57505: 0x06A4,
  25851. afii57506: 0x067E,
  25852. afii57507: 0x0686,
  25853. afii57508: 0x0698,
  25854. afii57509: 0x06AF,
  25855. afii57511: 0x0679,
  25856. afii57512: 0x0688,
  25857. afii57513: 0x0691,
  25858. afii57514: 0x06BA,
  25859. afii57519: 0x06D2,
  25860. afii57534: 0x06D5,
  25861. afii57636: 0x20AA,
  25862. afii57645: 0x05BE,
  25863. afii57658: 0x05C3,
  25864. afii57664: 0x05D0,
  25865. afii57665: 0x05D1,
  25866. afii57666: 0x05D2,
  25867. afii57667: 0x05D3,
  25868. afii57668: 0x05D4,
  25869. afii57669: 0x05D5,
  25870. afii57670: 0x05D6,
  25871. afii57671: 0x05D7,
  25872. afii57672: 0x05D8,
  25873. afii57673: 0x05D9,
  25874. afii57674: 0x05DA,
  25875. afii57675: 0x05DB,
  25876. afii57676: 0x05DC,
  25877. afii57677: 0x05DD,
  25878. afii57678: 0x05DE,
  25879. afii57679: 0x05DF,
  25880. afii57680: 0x05E0,
  25881. afii57681: 0x05E1,
  25882. afii57682: 0x05E2,
  25883. afii57683: 0x05E3,
  25884. afii57684: 0x05E4,
  25885. afii57685: 0x05E5,
  25886. afii57686: 0x05E6,
  25887. afii57687: 0x05E7,
  25888. afii57688: 0x05E8,
  25889. afii57689: 0x05E9,
  25890. afii57690: 0x05EA,
  25891. afii57694: 0xFB2A,
  25892. afii57695: 0xFB2B,
  25893. afii57700: 0xFB4B,
  25894. afii57705: 0xFB1F,
  25895. afii57716: 0x05F0,
  25896. afii57717: 0x05F1,
  25897. afii57718: 0x05F2,
  25898. afii57723: 0xFB35,
  25899. afii57793: 0x05B4,
  25900. afii57794: 0x05B5,
  25901. afii57795: 0x05B6,
  25902. afii57796: 0x05BB,
  25903. afii57797: 0x05B8,
  25904. afii57798: 0x05B7,
  25905. afii57799: 0x05B0,
  25906. afii57800: 0x05B2,
  25907. afii57801: 0x05B1,
  25908. afii57802: 0x05B3,
  25909. afii57803: 0x05C2,
  25910. afii57804: 0x05C1,
  25911. afii57806: 0x05B9,
  25912. afii57807: 0x05BC,
  25913. afii57839: 0x05BD,
  25914. afii57841: 0x05BF,
  25915. afii57842: 0x05C0,
  25916. afii57929: 0x02BC,
  25917. afii61248: 0x2105,
  25918. afii61289: 0x2113,
  25919. afii61352: 0x2116,
  25920. afii61573: 0x202C,
  25921. afii61574: 0x202D,
  25922. afii61575: 0x202E,
  25923. afii61664: 0x200C,
  25924. afii63167: 0x066D,
  25925. afii64937: 0x02BD,
  25926. agrave: 0x00E0,
  25927. agujarati: 0x0A85,
  25928. agurmukhi: 0x0A05,
  25929. ahiragana: 0x3042,
  25930. ahookabove: 0x1EA3,
  25931. aibengali: 0x0990,
  25932. aibopomofo: 0x311E,
  25933. aideva: 0x0910,
  25934. aiecyrillic: 0x04D5,
  25935. aigujarati: 0x0A90,
  25936. aigurmukhi: 0x0A10,
  25937. aimatragurmukhi: 0x0A48,
  25938. ainarabic: 0x0639,
  25939. ainfinalarabic: 0xFECA,
  25940. aininitialarabic: 0xFECB,
  25941. ainmedialarabic: 0xFECC,
  25942. ainvertedbreve: 0x0203,
  25943. aivowelsignbengali: 0x09C8,
  25944. aivowelsigndeva: 0x0948,
  25945. aivowelsigngujarati: 0x0AC8,
  25946. akatakana: 0x30A2,
  25947. akatakanahalfwidth: 0xFF71,
  25948. akorean: 0x314F,
  25949. alef: 0x05D0,
  25950. alefarabic: 0x0627,
  25951. alefdageshhebrew: 0xFB30,
  25952. aleffinalarabic: 0xFE8E,
  25953. alefhamzaabovearabic: 0x0623,
  25954. alefhamzaabovefinalarabic: 0xFE84,
  25955. alefhamzabelowarabic: 0x0625,
  25956. alefhamzabelowfinalarabic: 0xFE88,
  25957. alefhebrew: 0x05D0,
  25958. aleflamedhebrew: 0xFB4F,
  25959. alefmaddaabovearabic: 0x0622,
  25960. alefmaddaabovefinalarabic: 0xFE82,
  25961. alefmaksuraarabic: 0x0649,
  25962. alefmaksurafinalarabic: 0xFEF0,
  25963. alefmaksurainitialarabic: 0xFEF3,
  25964. alefmaksuramedialarabic: 0xFEF4,
  25965. alefpatahhebrew: 0xFB2E,
  25966. alefqamatshebrew: 0xFB2F,
  25967. aleph: 0x2135,
  25968. allequal: 0x224C,
  25969. alpha: 0x03B1,
  25970. alphatonos: 0x03AC,
  25971. amacron: 0x0101,
  25972. amonospace: 0xFF41,
  25973. ampersand: 0x0026,
  25974. ampersandmonospace: 0xFF06,
  25975. ampersandsmall: 0xF726,
  25976. amsquare: 0x33C2,
  25977. anbopomofo: 0x3122,
  25978. angbopomofo: 0x3124,
  25979. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  25980. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  25981. angkhankhuthai: 0x0E5A,
  25982. angle: 0x2220,
  25983. anglebracketleft: 0x3008,
  25984. anglebracketleftvertical: 0xFE3F,
  25985. anglebracketright: 0x3009,
  25986. anglebracketrightvertical: 0xFE40,
  25987. angleleft: 0x2329,
  25988. angleright: 0x232A,
  25989. angstrom: 0x212B,
  25990. anoteleia: 0x0387,
  25991. anudattadeva: 0x0952,
  25992. anusvarabengali: 0x0982,
  25993. anusvaradeva: 0x0902,
  25994. anusvaragujarati: 0x0A82,
  25995. aogonek: 0x0105,
  25996. apaatosquare: 0x3300,
  25997. aparen: 0x249C,
  25998. apostrophearmenian: 0x055A,
  25999. apostrophemod: 0x02BC,
  26000. apple: 0xF8FF,
  26001. approaches: 0x2250,
  26002. approxequal: 0x2248,
  26003. approxequalorimage: 0x2252,
  26004. approximatelyequal: 0x2245,
  26005. araeaekorean: 0x318E,
  26006. araeakorean: 0x318D,
  26007. arc: 0x2312,
  26008. arighthalfring: 0x1E9A,
  26009. aring: 0x00E5,
  26010. aringacute: 0x01FB,
  26011. aringbelow: 0x1E01,
  26012. arrowboth: 0x2194,
  26013. arrowdashdown: 0x21E3,
  26014. arrowdashleft: 0x21E0,
  26015. arrowdashright: 0x21E2,
  26016. arrowdashup: 0x21E1,
  26017. arrowdblboth: 0x21D4,
  26018. arrowdbldown: 0x21D3,
  26019. arrowdblleft: 0x21D0,
  26020. arrowdblright: 0x21D2,
  26021. arrowdblup: 0x21D1,
  26022. arrowdown: 0x2193,
  26023. arrowdownleft: 0x2199,
  26024. arrowdownright: 0x2198,
  26025. arrowdownwhite: 0x21E9,
  26026. arrowheaddownmod: 0x02C5,
  26027. arrowheadleftmod: 0x02C2,
  26028. arrowheadrightmod: 0x02C3,
  26029. arrowheadupmod: 0x02C4,
  26030. arrowhorizex: 0xF8E7,
  26031. arrowleft: 0x2190,
  26032. arrowleftdbl: 0x21D0,
  26033. arrowleftdblstroke: 0x21CD,
  26034. arrowleftoverright: 0x21C6,
  26035. arrowleftwhite: 0x21E6,
  26036. arrowright: 0x2192,
  26037. arrowrightdblstroke: 0x21CF,
  26038. arrowrightheavy: 0x279E,
  26039. arrowrightoverleft: 0x21C4,
  26040. arrowrightwhite: 0x21E8,
  26041. arrowtableft: 0x21E4,
  26042. arrowtabright: 0x21E5,
  26043. arrowup: 0x2191,
  26044. arrowupdn: 0x2195,
  26045. arrowupdnbse: 0x21A8,
  26046. arrowupdownbase: 0x21A8,
  26047. arrowupleft: 0x2196,
  26048. arrowupleftofdown: 0x21C5,
  26049. arrowupright: 0x2197,
  26050. arrowupwhite: 0x21E7,
  26051. arrowvertex: 0xF8E6,
  26052. asciicircum: 0x005E,
  26053. asciicircummonospace: 0xFF3E,
  26054. asciitilde: 0x007E,
  26055. asciitildemonospace: 0xFF5E,
  26056. ascript: 0x0251,
  26057. ascriptturned: 0x0252,
  26058. asmallhiragana: 0x3041,
  26059. asmallkatakana: 0x30A1,
  26060. asmallkatakanahalfwidth: 0xFF67,
  26061. asterisk: 0x002A,
  26062. asteriskaltonearabic: 0x066D,
  26063. asteriskarabic: 0x066D,
  26064. asteriskmath: 0x2217,
  26065. asteriskmonospace: 0xFF0A,
  26066. asterisksmall: 0xFE61,
  26067. asterism: 0x2042,
  26068. asuperior: 0xF6E9,
  26069. asymptoticallyequal: 0x2243,
  26070. at: 0x0040,
  26071. atilde: 0x00E3,
  26072. atmonospace: 0xFF20,
  26073. atsmall: 0xFE6B,
  26074. aturned: 0x0250,
  26075. aubengali: 0x0994,
  26076. aubopomofo: 0x3120,
  26077. audeva: 0x0914,
  26078. augujarati: 0x0A94,
  26079. augurmukhi: 0x0A14,
  26080. aulengthmarkbengali: 0x09D7,
  26081. aumatragurmukhi: 0x0A4C,
  26082. auvowelsignbengali: 0x09CC,
  26083. auvowelsigndeva: 0x094C,
  26084. auvowelsigngujarati: 0x0ACC,
  26085. avagrahadeva: 0x093D,
  26086. aybarmenian: 0x0561,
  26087. ayin: 0x05E2,
  26088. ayinaltonehebrew: 0xFB20,
  26089. ayinhebrew: 0x05E2,
  26090. b: 0x0062,
  26091. babengali: 0x09AC,
  26092. backslash: 0x005C,
  26093. backslashmonospace: 0xFF3C,
  26094. badeva: 0x092C,
  26095. bagujarati: 0x0AAC,
  26096. bagurmukhi: 0x0A2C,
  26097. bahiragana: 0x3070,
  26098. bahtthai: 0x0E3F,
  26099. bakatakana: 0x30D0,
  26100. bar: 0x007C,
  26101. barmonospace: 0xFF5C,
  26102. bbopomofo: 0x3105,
  26103. bcircle: 0x24D1,
  26104. bdotaccent: 0x1E03,
  26105. bdotbelow: 0x1E05,
  26106. beamedsixteenthnotes: 0x266C,
  26107. because: 0x2235,
  26108. becyrillic: 0x0431,
  26109. beharabic: 0x0628,
  26110. behfinalarabic: 0xFE90,
  26111. behinitialarabic: 0xFE91,
  26112. behiragana: 0x3079,
  26113. behmedialarabic: 0xFE92,
  26114. behmeeminitialarabic: 0xFC9F,
  26115. behmeemisolatedarabic: 0xFC08,
  26116. behnoonfinalarabic: 0xFC6D,
  26117. bekatakana: 0x30D9,
  26118. benarmenian: 0x0562,
  26119. bet: 0x05D1,
  26120. beta: 0x03B2,
  26121. betasymbolgreek: 0x03D0,
  26122. betdagesh: 0xFB31,
  26123. betdageshhebrew: 0xFB31,
  26124. bethebrew: 0x05D1,
  26125. betrafehebrew: 0xFB4C,
  26126. bhabengali: 0x09AD,
  26127. bhadeva: 0x092D,
  26128. bhagujarati: 0x0AAD,
  26129. bhagurmukhi: 0x0A2D,
  26130. bhook: 0x0253,
  26131. bihiragana: 0x3073,
  26132. bikatakana: 0x30D3,
  26133. bilabialclick: 0x0298,
  26134. bindigurmukhi: 0x0A02,
  26135. birusquare: 0x3331,
  26136. blackcircle: 0x25CF,
  26137. blackdiamond: 0x25C6,
  26138. blackdownpointingtriangle: 0x25BC,
  26139. blackleftpointingpointer: 0x25C4,
  26140. blackleftpointingtriangle: 0x25C0,
  26141. blacklenticularbracketleft: 0x3010,
  26142. blacklenticularbracketleftvertical: 0xFE3B,
  26143. blacklenticularbracketright: 0x3011,
  26144. blacklenticularbracketrightvertical: 0xFE3C,
  26145. blacklowerlefttriangle: 0x25E3,
  26146. blacklowerrighttriangle: 0x25E2,
  26147. blackrectangle: 0x25AC,
  26148. blackrightpointingpointer: 0x25BA,
  26149. blackrightpointingtriangle: 0x25B6,
  26150. blacksmallsquare: 0x25AA,
  26151. blacksmilingface: 0x263B,
  26152. blacksquare: 0x25A0,
  26153. blackstar: 0x2605,
  26154. blackupperlefttriangle: 0x25E4,
  26155. blackupperrighttriangle: 0x25E5,
  26156. blackuppointingsmalltriangle: 0x25B4,
  26157. blackuppointingtriangle: 0x25B2,
  26158. blank: 0x2423,
  26159. blinebelow: 0x1E07,
  26160. block: 0x2588,
  26161. bmonospace: 0xFF42,
  26162. bobaimaithai: 0x0E1A,
  26163. bohiragana: 0x307C,
  26164. bokatakana: 0x30DC,
  26165. bparen: 0x249D,
  26166. bqsquare: 0x33C3,
  26167. braceex: 0xF8F4,
  26168. braceleft: 0x007B,
  26169. braceleftbt: 0xF8F3,
  26170. braceleftmid: 0xF8F2,
  26171. braceleftmonospace: 0xFF5B,
  26172. braceleftsmall: 0xFE5B,
  26173. bracelefttp: 0xF8F1,
  26174. braceleftvertical: 0xFE37,
  26175. braceright: 0x007D,
  26176. bracerightbt: 0xF8FE,
  26177. bracerightmid: 0xF8FD,
  26178. bracerightmonospace: 0xFF5D,
  26179. bracerightsmall: 0xFE5C,
  26180. bracerighttp: 0xF8FC,
  26181. bracerightvertical: 0xFE38,
  26182. bracketleft: 0x005B,
  26183. bracketleftbt: 0xF8F0,
  26184. bracketleftex: 0xF8EF,
  26185. bracketleftmonospace: 0xFF3B,
  26186. bracketlefttp: 0xF8EE,
  26187. bracketright: 0x005D,
  26188. bracketrightbt: 0xF8FB,
  26189. bracketrightex: 0xF8FA,
  26190. bracketrightmonospace: 0xFF3D,
  26191. bracketrighttp: 0xF8F9,
  26192. breve: 0x02D8,
  26193. brevebelowcmb: 0x032E,
  26194. brevecmb: 0x0306,
  26195. breveinvertedbelowcmb: 0x032F,
  26196. breveinvertedcmb: 0x0311,
  26197. breveinverteddoublecmb: 0x0361,
  26198. bridgebelowcmb: 0x032A,
  26199. bridgeinvertedbelowcmb: 0x033A,
  26200. brokenbar: 0x00A6,
  26201. bstroke: 0x0180,
  26202. bsuperior: 0xF6EA,
  26203. btopbar: 0x0183,
  26204. buhiragana: 0x3076,
  26205. bukatakana: 0x30D6,
  26206. bullet: 0x2022,
  26207. bulletinverse: 0x25D8,
  26208. bulletoperator: 0x2219,
  26209. bullseye: 0x25CE,
  26210. c: 0x0063,
  26211. caarmenian: 0x056E,
  26212. cabengali: 0x099A,
  26213. cacute: 0x0107,
  26214. cadeva: 0x091A,
  26215. cagujarati: 0x0A9A,
  26216. cagurmukhi: 0x0A1A,
  26217. calsquare: 0x3388,
  26218. candrabindubengali: 0x0981,
  26219. candrabinducmb: 0x0310,
  26220. candrabindudeva: 0x0901,
  26221. candrabindugujarati: 0x0A81,
  26222. capslock: 0x21EA,
  26223. careof: 0x2105,
  26224. caron: 0x02C7,
  26225. caronbelowcmb: 0x032C,
  26226. caroncmb: 0x030C,
  26227. carriagereturn: 0x21B5,
  26228. cbopomofo: 0x3118,
  26229. ccaron: 0x010D,
  26230. ccedilla: 0x00E7,
  26231. ccedillaacute: 0x1E09,
  26232. ccircle: 0x24D2,
  26233. ccircumflex: 0x0109,
  26234. ccurl: 0x0255,
  26235. cdot: 0x010B,
  26236. cdotaccent: 0x010B,
  26237. cdsquare: 0x33C5,
  26238. cedilla: 0x00B8,
  26239. cedillacmb: 0x0327,
  26240. cent: 0x00A2,
  26241. centigrade: 0x2103,
  26242. centinferior: 0xF6DF,
  26243. centmonospace: 0xFFE0,
  26244. centoldstyle: 0xF7A2,
  26245. centsuperior: 0xF6E0,
  26246. chaarmenian: 0x0579,
  26247. chabengali: 0x099B,
  26248. chadeva: 0x091B,
  26249. chagujarati: 0x0A9B,
  26250. chagurmukhi: 0x0A1B,
  26251. chbopomofo: 0x3114,
  26252. cheabkhasiancyrillic: 0x04BD,
  26253. checkmark: 0x2713,
  26254. checyrillic: 0x0447,
  26255. chedescenderabkhasiancyrillic: 0x04BF,
  26256. chedescendercyrillic: 0x04B7,
  26257. chedieresiscyrillic: 0x04F5,
  26258. cheharmenian: 0x0573,
  26259. chekhakassiancyrillic: 0x04CC,
  26260. cheverticalstrokecyrillic: 0x04B9,
  26261. chi: 0x03C7,
  26262. chieuchacirclekorean: 0x3277,
  26263. chieuchaparenkorean: 0x3217,
  26264. chieuchcirclekorean: 0x3269,
  26265. chieuchkorean: 0x314A,
  26266. chieuchparenkorean: 0x3209,
  26267. chochangthai: 0x0E0A,
  26268. chochanthai: 0x0E08,
  26269. chochingthai: 0x0E09,
  26270. chochoethai: 0x0E0C,
  26271. chook: 0x0188,
  26272. cieucacirclekorean: 0x3276,
  26273. cieucaparenkorean: 0x3216,
  26274. cieuccirclekorean: 0x3268,
  26275. cieuckorean: 0x3148,
  26276. cieucparenkorean: 0x3208,
  26277. cieucuparenkorean: 0x321C,
  26278. circle: 0x25CB,
  26279. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  26280. circlemultiply: 0x2297,
  26281. circleot: 0x2299,
  26282. circleplus: 0x2295,
  26283. circlepostalmark: 0x3036,
  26284. circlewithlefthalfblack: 0x25D0,
  26285. circlewithrighthalfblack: 0x25D1,
  26286. circumflex: 0x02C6,
  26287. circumflexbelowcmb: 0x032D,
  26288. circumflexcmb: 0x0302,
  26289. clear: 0x2327,
  26290. clickalveolar: 0x01C2,
  26291. clickdental: 0x01C0,
  26292. clicklateral: 0x01C1,
  26293. clickretroflex: 0x01C3,
  26294. club: 0x2663,
  26295. clubsuitblack: 0x2663,
  26296. clubsuitwhite: 0x2667,
  26297. cmcubedsquare: 0x33A4,
  26298. cmonospace: 0xFF43,
  26299. cmsquaredsquare: 0x33A0,
  26300. coarmenian: 0x0581,
  26301. colon: 0x003A,
  26302. colonmonetary: 0x20A1,
  26303. colonmonospace: 0xFF1A,
  26304. colonsign: 0x20A1,
  26305. colonsmall: 0xFE55,
  26306. colontriangularhalfmod: 0x02D1,
  26307. colontriangularmod: 0x02D0,
  26308. comma: 0x002C,
  26309. commaabovecmb: 0x0313,
  26310. commaaboverightcmb: 0x0315,
  26311. commaaccent: 0xF6C3,
  26312. commaarabic: 0x060C,
  26313. commaarmenian: 0x055D,
  26314. commainferior: 0xF6E1,
  26315. commamonospace: 0xFF0C,
  26316. commareversedabovecmb: 0x0314,
  26317. commareversedmod: 0x02BD,
  26318. commasmall: 0xFE50,
  26319. commasuperior: 0xF6E2,
  26320. commaturnedabovecmb: 0x0312,
  26321. commaturnedmod: 0x02BB,
  26322. compass: 0x263C,
  26323. congruent: 0x2245,
  26324. contourintegral: 0x222E,
  26325. control: 0x2303,
  26326. controlACK: 0x0006,
  26327. controlBEL: 0x0007,
  26328. controlBS: 0x0008,
  26329. controlCAN: 0x0018,
  26330. controlCR: 0x000D,
  26331. controlDC1: 0x0011,
  26332. controlDC2: 0x0012,
  26333. controlDC3: 0x0013,
  26334. controlDC4: 0x0014,
  26335. controlDEL: 0x007F,
  26336. controlDLE: 0x0010,
  26337. controlEM: 0x0019,
  26338. controlENQ: 0x0005,
  26339. controlEOT: 0x0004,
  26340. controlESC: 0x001B,
  26341. controlETB: 0x0017,
  26342. controlETX: 0x0003,
  26343. controlFF: 0x000C,
  26344. controlFS: 0x001C,
  26345. controlGS: 0x001D,
  26346. controlHT: 0x0009,
  26347. controlLF: 0x000A,
  26348. controlNAK: 0x0015,
  26349. controlRS: 0x001E,
  26350. controlSI: 0x000F,
  26351. controlSO: 0x000E,
  26352. controlSOT: 0x0002,
  26353. controlSTX: 0x0001,
  26354. controlSUB: 0x001A,
  26355. controlSYN: 0x0016,
  26356. controlUS: 0x001F,
  26357. controlVT: 0x000B,
  26358. copyright: 0x00A9,
  26359. copyrightsans: 0xF8E9,
  26360. copyrightserif: 0xF6D9,
  26361. cornerbracketleft: 0x300C,
  26362. cornerbracketlefthalfwidth: 0xFF62,
  26363. cornerbracketleftvertical: 0xFE41,
  26364. cornerbracketright: 0x300D,
  26365. cornerbracketrighthalfwidth: 0xFF63,
  26366. cornerbracketrightvertical: 0xFE42,
  26367. corporationsquare: 0x337F,
  26368. cosquare: 0x33C7,
  26369. coverkgsquare: 0x33C6,
  26370. cparen: 0x249E,
  26371. cruzeiro: 0x20A2,
  26372. cstretched: 0x0297,
  26373. curlyand: 0x22CF,
  26374. curlyor: 0x22CE,
  26375. currency: 0x00A4,
  26376. cyrBreve: 0xF6D1,
  26377. cyrFlex: 0xF6D2,
  26378. cyrbreve: 0xF6D4,
  26379. cyrflex: 0xF6D5,
  26380. d: 0x0064,
  26381. daarmenian: 0x0564,
  26382. dabengali: 0x09A6,
  26383. dadarabic: 0x0636,
  26384. dadeva: 0x0926,
  26385. dadfinalarabic: 0xFEBE,
  26386. dadinitialarabic: 0xFEBF,
  26387. dadmedialarabic: 0xFEC0,
  26388. dagesh: 0x05BC,
  26389. dageshhebrew: 0x05BC,
  26390. dagger: 0x2020,
  26391. daggerdbl: 0x2021,
  26392. dagujarati: 0x0AA6,
  26393. dagurmukhi: 0x0A26,
  26394. dahiragana: 0x3060,
  26395. dakatakana: 0x30C0,
  26396. dalarabic: 0x062F,
  26397. dalet: 0x05D3,
  26398. daletdagesh: 0xFB33,
  26399. daletdageshhebrew: 0xFB33,
  26400. dalethebrew: 0x05D3,
  26401. dalfinalarabic: 0xFEAA,
  26402. dammaarabic: 0x064F,
  26403. dammalowarabic: 0x064F,
  26404. dammatanaltonearabic: 0x064C,
  26405. dammatanarabic: 0x064C,
  26406. danda: 0x0964,
  26407. dargahebrew: 0x05A7,
  26408. dargalefthebrew: 0x05A7,
  26409. dasiapneumatacyrilliccmb: 0x0485,
  26410. dblGrave: 0xF6D3,
  26411. dblanglebracketleft: 0x300A,
  26412. dblanglebracketleftvertical: 0xFE3D,
  26413. dblanglebracketright: 0x300B,
  26414. dblanglebracketrightvertical: 0xFE3E,
  26415. dblarchinvertedbelowcmb: 0x032B,
  26416. dblarrowleft: 0x21D4,
  26417. dblarrowright: 0x21D2,
  26418. dbldanda: 0x0965,
  26419. dblgrave: 0xF6D6,
  26420. dblgravecmb: 0x030F,
  26421. dblintegral: 0x222C,
  26422. dbllowline: 0x2017,
  26423. dbllowlinecmb: 0x0333,
  26424. dbloverlinecmb: 0x033F,
  26425. dblprimemod: 0x02BA,
  26426. dblverticalbar: 0x2016,
  26427. dblverticallineabovecmb: 0x030E,
  26428. dbopomofo: 0x3109,
  26429. dbsquare: 0x33C8,
  26430. dcaron: 0x010F,
  26431. dcedilla: 0x1E11,
  26432. dcircle: 0x24D3,
  26433. dcircumflexbelow: 0x1E13,
  26434. dcroat: 0x0111,
  26435. ddabengali: 0x09A1,
  26436. ddadeva: 0x0921,
  26437. ddagujarati: 0x0AA1,
  26438. ddagurmukhi: 0x0A21,
  26439. ddalarabic: 0x0688,
  26440. ddalfinalarabic: 0xFB89,
  26441. dddhadeva: 0x095C,
  26442. ddhabengali: 0x09A2,
  26443. ddhadeva: 0x0922,
  26444. ddhagujarati: 0x0AA2,
  26445. ddhagurmukhi: 0x0A22,
  26446. ddotaccent: 0x1E0B,
  26447. ddotbelow: 0x1E0D,
  26448. decimalseparatorarabic: 0x066B,
  26449. decimalseparatorpersian: 0x066B,
  26450. decyrillic: 0x0434,
  26451. degree: 0x00B0,
  26452. dehihebrew: 0x05AD,
  26453. dehiragana: 0x3067,
  26454. deicoptic: 0x03EF,
  26455. dekatakana: 0x30C7,
  26456. deleteleft: 0x232B,
  26457. deleteright: 0x2326,
  26458. delta: 0x03B4,
  26459. deltaturned: 0x018D,
  26460. denominatorminusonenumeratorbengali: 0x09F8,
  26461. dezh: 0x02A4,
  26462. dhabengali: 0x09A7,
  26463. dhadeva: 0x0927,
  26464. dhagujarati: 0x0AA7,
  26465. dhagurmukhi: 0x0A27,
  26466. dhook: 0x0257,
  26467. dialytikatonos: 0x0385,
  26468. dialytikatonoscmb: 0x0344,
  26469. diamond: 0x2666,
  26470. diamondsuitwhite: 0x2662,
  26471. dieresis: 0x00A8,
  26472. dieresisacute: 0xF6D7,
  26473. dieresisbelowcmb: 0x0324,
  26474. dieresiscmb: 0x0308,
  26475. dieresisgrave: 0xF6D8,
  26476. dieresistonos: 0x0385,
  26477. dihiragana: 0x3062,
  26478. dikatakana: 0x30C2,
  26479. dittomark: 0x3003,
  26480. divide: 0x00F7,
  26481. divides: 0x2223,
  26482. divisionslash: 0x2215,
  26483. djecyrillic: 0x0452,
  26484. dkshade: 0x2593,
  26485. dlinebelow: 0x1E0F,
  26486. dlsquare: 0x3397,
  26487. dmacron: 0x0111,
  26488. dmonospace: 0xFF44,
  26489. dnblock: 0x2584,
  26490. dochadathai: 0x0E0E,
  26491. dodekthai: 0x0E14,
  26492. dohiragana: 0x3069,
  26493. dokatakana: 0x30C9,
  26494. dollar: 0x0024,
  26495. dollarinferior: 0xF6E3,
  26496. dollarmonospace: 0xFF04,
  26497. dollaroldstyle: 0xF724,
  26498. dollarsmall: 0xFE69,
  26499. dollarsuperior: 0xF6E4,
  26500. dong: 0x20AB,
  26501. dorusquare: 0x3326,
  26502. dotaccent: 0x02D9,
  26503. dotaccentcmb: 0x0307,
  26504. dotbelowcmb: 0x0323,
  26505. dotbelowcomb: 0x0323,
  26506. dotkatakana: 0x30FB,
  26507. dotlessi: 0x0131,
  26508. dotlessj: 0xF6BE,
  26509. dotlessjstrokehook: 0x0284,
  26510. dotmath: 0x22C5,
  26511. dottedcircle: 0x25CC,
  26512. doubleyodpatah: 0xFB1F,
  26513. doubleyodpatahhebrew: 0xFB1F,
  26514. downtackbelowcmb: 0x031E,
  26515. downtackmod: 0x02D5,
  26516. dparen: 0x249F,
  26517. dsuperior: 0xF6EB,
  26518. dtail: 0x0256,
  26519. dtopbar: 0x018C,
  26520. duhiragana: 0x3065,
  26521. dukatakana: 0x30C5,
  26522. dz: 0x01F3,
  26523. dzaltone: 0x02A3,
  26524. dzcaron: 0x01C6,
  26525. dzcurl: 0x02A5,
  26526. dzeabkhasiancyrillic: 0x04E1,
  26527. dzecyrillic: 0x0455,
  26528. dzhecyrillic: 0x045F,
  26529. e: 0x0065,
  26530. eacute: 0x00E9,
  26531. earth: 0x2641,
  26532. ebengali: 0x098F,
  26533. ebopomofo: 0x311C,
  26534. ebreve: 0x0115,
  26535. ecandradeva: 0x090D,
  26536. ecandragujarati: 0x0A8D,
  26537. ecandravowelsigndeva: 0x0945,
  26538. ecandravowelsigngujarati: 0x0AC5,
  26539. ecaron: 0x011B,
  26540. ecedillabreve: 0x1E1D,
  26541. echarmenian: 0x0565,
  26542. echyiwnarmenian: 0x0587,
  26543. ecircle: 0x24D4,
  26544. ecircumflex: 0x00EA,
  26545. ecircumflexacute: 0x1EBF,
  26546. ecircumflexbelow: 0x1E19,
  26547. ecircumflexdotbelow: 0x1EC7,
  26548. ecircumflexgrave: 0x1EC1,
  26549. ecircumflexhookabove: 0x1EC3,
  26550. ecircumflextilde: 0x1EC5,
  26551. ecyrillic: 0x0454,
  26552. edblgrave: 0x0205,
  26553. edeva: 0x090F,
  26554. edieresis: 0x00EB,
  26555. edot: 0x0117,
  26556. edotaccent: 0x0117,
  26557. edotbelow: 0x1EB9,
  26558. eegurmukhi: 0x0A0F,
  26559. eematragurmukhi: 0x0A47,
  26560. efcyrillic: 0x0444,
  26561. egrave: 0x00E8,
  26562. egujarati: 0x0A8F,
  26563. eharmenian: 0x0567,
  26564. ehbopomofo: 0x311D,
  26565. ehiragana: 0x3048,
  26566. ehookabove: 0x1EBB,
  26567. eibopomofo: 0x311F,
  26568. eight: 0x0038,
  26569. eightarabic: 0x0668,
  26570. eightbengali: 0x09EE,
  26571. eightcircle: 0x2467,
  26572. eightcircleinversesansserif: 0x2791,
  26573. eightdeva: 0x096E,
  26574. eighteencircle: 0x2471,
  26575. eighteenparen: 0x2485,
  26576. eighteenperiod: 0x2499,
  26577. eightgujarati: 0x0AEE,
  26578. eightgurmukhi: 0x0A6E,
  26579. eighthackarabic: 0x0668,
  26580. eighthangzhou: 0x3028,
  26581. eighthnotebeamed: 0x266B,
  26582. eightideographicparen: 0x3227,
  26583. eightinferior: 0x2088,
  26584. eightmonospace: 0xFF18,
  26585. eightoldstyle: 0xF738,
  26586. eightparen: 0x247B,
  26587. eightperiod: 0x248F,
  26588. eightpersian: 0x06F8,
  26589. eightroman: 0x2177,
  26590. eightsuperior: 0x2078,
  26591. eightthai: 0x0E58,
  26592. einvertedbreve: 0x0207,
  26593. eiotifiedcyrillic: 0x0465,
  26594. ekatakana: 0x30A8,
  26595. ekatakanahalfwidth: 0xFF74,
  26596. ekonkargurmukhi: 0x0A74,
  26597. ekorean: 0x3154,
  26598. elcyrillic: 0x043B,
  26599. element: 0x2208,
  26600. elevencircle: 0x246A,
  26601. elevenparen: 0x247E,
  26602. elevenperiod: 0x2492,
  26603. elevenroman: 0x217A,
  26604. ellipsis: 0x2026,
  26605. ellipsisvertical: 0x22EE,
  26606. emacron: 0x0113,
  26607. emacronacute: 0x1E17,
  26608. emacrongrave: 0x1E15,
  26609. emcyrillic: 0x043C,
  26610. emdash: 0x2014,
  26611. emdashvertical: 0xFE31,
  26612. emonospace: 0xFF45,
  26613. emphasismarkarmenian: 0x055B,
  26614. emptyset: 0x2205,
  26615. enbopomofo: 0x3123,
  26616. encyrillic: 0x043D,
  26617. endash: 0x2013,
  26618. endashvertical: 0xFE32,
  26619. endescendercyrillic: 0x04A3,
  26620. eng: 0x014B,
  26621. engbopomofo: 0x3125,
  26622. enghecyrillic: 0x04A5,
  26623. enhookcyrillic: 0x04C8,
  26624. enspace: 0x2002,
  26625. eogonek: 0x0119,
  26626. eokorean: 0x3153,
  26627. eopen: 0x025B,
  26628. eopenclosed: 0x029A,
  26629. eopenreversed: 0x025C,
  26630. eopenreversedclosed: 0x025E,
  26631. eopenreversedhook: 0x025D,
  26632. eparen: 0x24A0,
  26633. epsilon: 0x03B5,
  26634. epsilontonos: 0x03AD,
  26635. equal: 0x003D,
  26636. equalmonospace: 0xFF1D,
  26637. equalsmall: 0xFE66,
  26638. equalsuperior: 0x207C,
  26639. equivalence: 0x2261,
  26640. erbopomofo: 0x3126,
  26641. ercyrillic: 0x0440,
  26642. ereversed: 0x0258,
  26643. ereversedcyrillic: 0x044D,
  26644. escyrillic: 0x0441,
  26645. esdescendercyrillic: 0x04AB,
  26646. esh: 0x0283,
  26647. eshcurl: 0x0286,
  26648. eshortdeva: 0x090E,
  26649. eshortvowelsigndeva: 0x0946,
  26650. eshreversedloop: 0x01AA,
  26651. eshsquatreversed: 0x0285,
  26652. esmallhiragana: 0x3047,
  26653. esmallkatakana: 0x30A7,
  26654. esmallkatakanahalfwidth: 0xFF6A,
  26655. estimated: 0x212E,
  26656. esuperior: 0xF6EC,
  26657. eta: 0x03B7,
  26658. etarmenian: 0x0568,
  26659. etatonos: 0x03AE,
  26660. eth: 0x00F0,
  26661. etilde: 0x1EBD,
  26662. etildebelow: 0x1E1B,
  26663. etnahtafoukhhebrew: 0x0591,
  26664. etnahtafoukhlefthebrew: 0x0591,
  26665. etnahtahebrew: 0x0591,
  26666. etnahtalefthebrew: 0x0591,
  26667. eturned: 0x01DD,
  26668. eukorean: 0x3161,
  26669. euro: 0x20AC,
  26670. evowelsignbengali: 0x09C7,
  26671. evowelsigndeva: 0x0947,
  26672. evowelsigngujarati: 0x0AC7,
  26673. exclam: 0x0021,
  26674. exclamarmenian: 0x055C,
  26675. exclamdbl: 0x203C,
  26676. exclamdown: 0x00A1,
  26677. exclamdownsmall: 0xF7A1,
  26678. exclammonospace: 0xFF01,
  26679. exclamsmall: 0xF721,
  26680. existential: 0x2203,
  26681. ezh: 0x0292,
  26682. ezhcaron: 0x01EF,
  26683. ezhcurl: 0x0293,
  26684. ezhreversed: 0x01B9,
  26685. ezhtail: 0x01BA,
  26686. f: 0x0066,
  26687. fadeva: 0x095E,
  26688. fagurmukhi: 0x0A5E,
  26689. fahrenheit: 0x2109,
  26690. fathaarabic: 0x064E,
  26691. fathalowarabic: 0x064E,
  26692. fathatanarabic: 0x064B,
  26693. fbopomofo: 0x3108,
  26694. fcircle: 0x24D5,
  26695. fdotaccent: 0x1E1F,
  26696. feharabic: 0x0641,
  26697. feharmenian: 0x0586,
  26698. fehfinalarabic: 0xFED2,
  26699. fehinitialarabic: 0xFED3,
  26700. fehmedialarabic: 0xFED4,
  26701. feicoptic: 0x03E5,
  26702. female: 0x2640,
  26703. ff: 0xFB00,
  26704. ffi: 0xFB03,
  26705. ffl: 0xFB04,
  26706. fi: 0xFB01,
  26707. fifteencircle: 0x246E,
  26708. fifteenparen: 0x2482,
  26709. fifteenperiod: 0x2496,
  26710. figuredash: 0x2012,
  26711. filledbox: 0x25A0,
  26712. filledrect: 0x25AC,
  26713. finalkaf: 0x05DA,
  26714. finalkafdagesh: 0xFB3A,
  26715. finalkafdageshhebrew: 0xFB3A,
  26716. finalkafhebrew: 0x05DA,
  26717. finalmem: 0x05DD,
  26718. finalmemhebrew: 0x05DD,
  26719. finalnun: 0x05DF,
  26720. finalnunhebrew: 0x05DF,
  26721. finalpe: 0x05E3,
  26722. finalpehebrew: 0x05E3,
  26723. finaltsadi: 0x05E5,
  26724. finaltsadihebrew: 0x05E5,
  26725. firsttonechinese: 0x02C9,
  26726. fisheye: 0x25C9,
  26727. fitacyrillic: 0x0473,
  26728. five: 0x0035,
  26729. fivearabic: 0x0665,
  26730. fivebengali: 0x09EB,
  26731. fivecircle: 0x2464,
  26732. fivecircleinversesansserif: 0x278E,
  26733. fivedeva: 0x096B,
  26734. fiveeighths: 0x215D,
  26735. fivegujarati: 0x0AEB,
  26736. fivegurmukhi: 0x0A6B,
  26737. fivehackarabic: 0x0665,
  26738. fivehangzhou: 0x3025,
  26739. fiveideographicparen: 0x3224,
  26740. fiveinferior: 0x2085,
  26741. fivemonospace: 0xFF15,
  26742. fiveoldstyle: 0xF735,
  26743. fiveparen: 0x2478,
  26744. fiveperiod: 0x248C,
  26745. fivepersian: 0x06F5,
  26746. fiveroman: 0x2174,
  26747. fivesuperior: 0x2075,
  26748. fivethai: 0x0E55,
  26749. fl: 0xFB02,
  26750. florin: 0x0192,
  26751. fmonospace: 0xFF46,
  26752. fmsquare: 0x3399,
  26753. fofanthai: 0x0E1F,
  26754. fofathai: 0x0E1D,
  26755. fongmanthai: 0x0E4F,
  26756. forall: 0x2200,
  26757. four: 0x0034,
  26758. fourarabic: 0x0664,
  26759. fourbengali: 0x09EA,
  26760. fourcircle: 0x2463,
  26761. fourcircleinversesansserif: 0x278D,
  26762. fourdeva: 0x096A,
  26763. fourgujarati: 0x0AEA,
  26764. fourgurmukhi: 0x0A6A,
  26765. fourhackarabic: 0x0664,
  26766. fourhangzhou: 0x3024,
  26767. fourideographicparen: 0x3223,
  26768. fourinferior: 0x2084,
  26769. fourmonospace: 0xFF14,
  26770. fournumeratorbengali: 0x09F7,
  26771. fouroldstyle: 0xF734,
  26772. fourparen: 0x2477,
  26773. fourperiod: 0x248B,
  26774. fourpersian: 0x06F4,
  26775. fourroman: 0x2173,
  26776. foursuperior: 0x2074,
  26777. fourteencircle: 0x246D,
  26778. fourteenparen: 0x2481,
  26779. fourteenperiod: 0x2495,
  26780. fourthai: 0x0E54,
  26781. fourthtonechinese: 0x02CB,
  26782. fparen: 0x24A1,
  26783. fraction: 0x2044,
  26784. franc: 0x20A3,
  26785. g: 0x0067,
  26786. gabengali: 0x0997,
  26787. gacute: 0x01F5,
  26788. gadeva: 0x0917,
  26789. gafarabic: 0x06AF,
  26790. gaffinalarabic: 0xFB93,
  26791. gafinitialarabic: 0xFB94,
  26792. gafmedialarabic: 0xFB95,
  26793. gagujarati: 0x0A97,
  26794. gagurmukhi: 0x0A17,
  26795. gahiragana: 0x304C,
  26796. gakatakana: 0x30AC,
  26797. gamma: 0x03B3,
  26798. gammalatinsmall: 0x0263,
  26799. gammasuperior: 0x02E0,
  26800. gangiacoptic: 0x03EB,
  26801. gbopomofo: 0x310D,
  26802. gbreve: 0x011F,
  26803. gcaron: 0x01E7,
  26804. gcedilla: 0x0123,
  26805. gcircle: 0x24D6,
  26806. gcircumflex: 0x011D,
  26807. gcommaaccent: 0x0123,
  26808. gdot: 0x0121,
  26809. gdotaccent: 0x0121,
  26810. gecyrillic: 0x0433,
  26811. gehiragana: 0x3052,
  26812. gekatakana: 0x30B2,
  26813. geometricallyequal: 0x2251,
  26814. gereshaccenthebrew: 0x059C,
  26815. gereshhebrew: 0x05F3,
  26816. gereshmuqdamhebrew: 0x059D,
  26817. germandbls: 0x00DF,
  26818. gershayimaccenthebrew: 0x059E,
  26819. gershayimhebrew: 0x05F4,
  26820. getamark: 0x3013,
  26821. ghabengali: 0x0998,
  26822. ghadarmenian: 0x0572,
  26823. ghadeva: 0x0918,
  26824. ghagujarati: 0x0A98,
  26825. ghagurmukhi: 0x0A18,
  26826. ghainarabic: 0x063A,
  26827. ghainfinalarabic: 0xFECE,
  26828. ghaininitialarabic: 0xFECF,
  26829. ghainmedialarabic: 0xFED0,
  26830. ghemiddlehookcyrillic: 0x0495,
  26831. ghestrokecyrillic: 0x0493,
  26832. gheupturncyrillic: 0x0491,
  26833. ghhadeva: 0x095A,
  26834. ghhagurmukhi: 0x0A5A,
  26835. ghook: 0x0260,
  26836. ghzsquare: 0x3393,
  26837. gihiragana: 0x304E,
  26838. gikatakana: 0x30AE,
  26839. gimarmenian: 0x0563,
  26840. gimel: 0x05D2,
  26841. gimeldagesh: 0xFB32,
  26842. gimeldageshhebrew: 0xFB32,
  26843. gimelhebrew: 0x05D2,
  26844. gjecyrillic: 0x0453,
  26845. glottalinvertedstroke: 0x01BE,
  26846. glottalstop: 0x0294,
  26847. glottalstopinverted: 0x0296,
  26848. glottalstopmod: 0x02C0,
  26849. glottalstopreversed: 0x0295,
  26850. glottalstopreversedmod: 0x02C1,
  26851. glottalstopreversedsuperior: 0x02E4,
  26852. glottalstopstroke: 0x02A1,
  26853. glottalstopstrokereversed: 0x02A2,
  26854. gmacron: 0x1E21,
  26855. gmonospace: 0xFF47,
  26856. gohiragana: 0x3054,
  26857. gokatakana: 0x30B4,
  26858. gparen: 0x24A2,
  26859. gpasquare: 0x33AC,
  26860. gradient: 0x2207,
  26861. grave: 0x0060,
  26862. gravebelowcmb: 0x0316,
  26863. gravecmb: 0x0300,
  26864. gravecomb: 0x0300,
  26865. gravedeva: 0x0953,
  26866. gravelowmod: 0x02CE,
  26867. gravemonospace: 0xFF40,
  26868. gravetonecmb: 0x0340,
  26869. greater: 0x003E,
  26870. greaterequal: 0x2265,
  26871. greaterequalorless: 0x22DB,
  26872. greatermonospace: 0xFF1E,
  26873. greaterorequivalent: 0x2273,
  26874. greaterorless: 0x2277,
  26875. greateroverequal: 0x2267,
  26876. greatersmall: 0xFE65,
  26877. gscript: 0x0261,
  26878. gstroke: 0x01E5,
  26879. guhiragana: 0x3050,
  26880. guillemotleft: 0x00AB,
  26881. guillemotright: 0x00BB,
  26882. guilsinglleft: 0x2039,
  26883. guilsinglright: 0x203A,
  26884. gukatakana: 0x30B0,
  26885. guramusquare: 0x3318,
  26886. gysquare: 0x33C9,
  26887. h: 0x0068,
  26888. haabkhasiancyrillic: 0x04A9,
  26889. haaltonearabic: 0x06C1,
  26890. habengali: 0x09B9,
  26891. hadescendercyrillic: 0x04B3,
  26892. hadeva: 0x0939,
  26893. hagujarati: 0x0AB9,
  26894. hagurmukhi: 0x0A39,
  26895. haharabic: 0x062D,
  26896. hahfinalarabic: 0xFEA2,
  26897. hahinitialarabic: 0xFEA3,
  26898. hahiragana: 0x306F,
  26899. hahmedialarabic: 0xFEA4,
  26900. haitusquare: 0x332A,
  26901. hakatakana: 0x30CF,
  26902. hakatakanahalfwidth: 0xFF8A,
  26903. halantgurmukhi: 0x0A4D,
  26904. hamzaarabic: 0x0621,
  26905. hamzalowarabic: 0x0621,
  26906. hangulfiller: 0x3164,
  26907. hardsigncyrillic: 0x044A,
  26908. harpoonleftbarbup: 0x21BC,
  26909. harpoonrightbarbup: 0x21C0,
  26910. hasquare: 0x33CA,
  26911. hatafpatah: 0x05B2,
  26912. hatafpatah16: 0x05B2,
  26913. hatafpatah23: 0x05B2,
  26914. hatafpatah2f: 0x05B2,
  26915. hatafpatahhebrew: 0x05B2,
  26916. hatafpatahnarrowhebrew: 0x05B2,
  26917. hatafpatahquarterhebrew: 0x05B2,
  26918. hatafpatahwidehebrew: 0x05B2,
  26919. hatafqamats: 0x05B3,
  26920. hatafqamats1b: 0x05B3,
  26921. hatafqamats28: 0x05B3,
  26922. hatafqamats34: 0x05B3,
  26923. hatafqamatshebrew: 0x05B3,
  26924. hatafqamatsnarrowhebrew: 0x05B3,
  26925. hatafqamatsquarterhebrew: 0x05B3,
  26926. hatafqamatswidehebrew: 0x05B3,
  26927. hatafsegol: 0x05B1,
  26928. hatafsegol17: 0x05B1,
  26929. hatafsegol24: 0x05B1,
  26930. hatafsegol30: 0x05B1,
  26931. hatafsegolhebrew: 0x05B1,
  26932. hatafsegolnarrowhebrew: 0x05B1,
  26933. hatafsegolquarterhebrew: 0x05B1,
  26934. hatafsegolwidehebrew: 0x05B1,
  26935. hbar: 0x0127,
  26936. hbopomofo: 0x310F,
  26937. hbrevebelow: 0x1E2B,
  26938. hcedilla: 0x1E29,
  26939. hcircle: 0x24D7,
  26940. hcircumflex: 0x0125,
  26941. hdieresis: 0x1E27,
  26942. hdotaccent: 0x1E23,
  26943. hdotbelow: 0x1E25,
  26944. he: 0x05D4,
  26945. heart: 0x2665,
  26946. heartsuitblack: 0x2665,
  26947. heartsuitwhite: 0x2661,
  26948. hedagesh: 0xFB34,
  26949. hedageshhebrew: 0xFB34,
  26950. hehaltonearabic: 0x06C1,
  26951. heharabic: 0x0647,
  26952. hehebrew: 0x05D4,
  26953. hehfinalaltonearabic: 0xFBA7,
  26954. hehfinalalttwoarabic: 0xFEEA,
  26955. hehfinalarabic: 0xFEEA,
  26956. hehhamzaabovefinalarabic: 0xFBA5,
  26957. hehhamzaaboveisolatedarabic: 0xFBA4,
  26958. hehinitialaltonearabic: 0xFBA8,
  26959. hehinitialarabic: 0xFEEB,
  26960. hehiragana: 0x3078,
  26961. hehmedialaltonearabic: 0xFBA9,
  26962. hehmedialarabic: 0xFEEC,
  26963. heiseierasquare: 0x337B,
  26964. hekatakana: 0x30D8,
  26965. hekatakanahalfwidth: 0xFF8D,
  26966. hekutaarusquare: 0x3336,
  26967. henghook: 0x0267,
  26968. herutusquare: 0x3339,
  26969. het: 0x05D7,
  26970. hethebrew: 0x05D7,
  26971. hhook: 0x0266,
  26972. hhooksuperior: 0x02B1,
  26973. hieuhacirclekorean: 0x327B,
  26974. hieuhaparenkorean: 0x321B,
  26975. hieuhcirclekorean: 0x326D,
  26976. hieuhkorean: 0x314E,
  26977. hieuhparenkorean: 0x320D,
  26978. hihiragana: 0x3072,
  26979. hikatakana: 0x30D2,
  26980. hikatakanahalfwidth: 0xFF8B,
  26981. hiriq: 0x05B4,
  26982. hiriq14: 0x05B4,
  26983. hiriq21: 0x05B4,
  26984. hiriq2d: 0x05B4,
  26985. hiriqhebrew: 0x05B4,
  26986. hiriqnarrowhebrew: 0x05B4,
  26987. hiriqquarterhebrew: 0x05B4,
  26988. hiriqwidehebrew: 0x05B4,
  26989. hlinebelow: 0x1E96,
  26990. hmonospace: 0xFF48,
  26991. hoarmenian: 0x0570,
  26992. hohipthai: 0x0E2B,
  26993. hohiragana: 0x307B,
  26994. hokatakana: 0x30DB,
  26995. hokatakanahalfwidth: 0xFF8E,
  26996. holam: 0x05B9,
  26997. holam19: 0x05B9,
  26998. holam26: 0x05B9,
  26999. holam32: 0x05B9,
  27000. holamhebrew: 0x05B9,
  27001. holamnarrowhebrew: 0x05B9,
  27002. holamquarterhebrew: 0x05B9,
  27003. holamwidehebrew: 0x05B9,
  27004. honokhukthai: 0x0E2E,
  27005. hookabovecomb: 0x0309,
  27006. hookcmb: 0x0309,
  27007. hookpalatalizedbelowcmb: 0x0321,
  27008. hookretroflexbelowcmb: 0x0322,
  27009. hoonsquare: 0x3342,
  27010. horicoptic: 0x03E9,
  27011. horizontalbar: 0x2015,
  27012. horncmb: 0x031B,
  27013. hotsprings: 0x2668,
  27014. house: 0x2302,
  27015. hparen: 0x24A3,
  27016. hsuperior: 0x02B0,
  27017. hturned: 0x0265,
  27018. huhiragana: 0x3075,
  27019. huiitosquare: 0x3333,
  27020. hukatakana: 0x30D5,
  27021. hukatakanahalfwidth: 0xFF8C,
  27022. hungarumlaut: 0x02DD,
  27023. hungarumlautcmb: 0x030B,
  27024. hv: 0x0195,
  27025. hyphen: 0x002D,
  27026. hypheninferior: 0xF6E5,
  27027. hyphenmonospace: 0xFF0D,
  27028. hyphensmall: 0xFE63,
  27029. hyphensuperior: 0xF6E6,
  27030. hyphentwo: 0x2010,
  27031. i: 0x0069,
  27032. iacute: 0x00ED,
  27033. iacyrillic: 0x044F,
  27034. ibengali: 0x0987,
  27035. ibopomofo: 0x3127,
  27036. ibreve: 0x012D,
  27037. icaron: 0x01D0,
  27038. icircle: 0x24D8,
  27039. icircumflex: 0x00EE,
  27040. icyrillic: 0x0456,
  27041. idblgrave: 0x0209,
  27042. ideographearthcircle: 0x328F,
  27043. ideographfirecircle: 0x328B,
  27044. ideographicallianceparen: 0x323F,
  27045. ideographiccallparen: 0x323A,
  27046. ideographiccentrecircle: 0x32A5,
  27047. ideographicclose: 0x3006,
  27048. ideographiccomma: 0x3001,
  27049. ideographiccommaleft: 0xFF64,
  27050. ideographiccongratulationparen: 0x3237,
  27051. ideographiccorrectcircle: 0x32A3,
  27052. ideographicearthparen: 0x322F,
  27053. ideographicenterpriseparen: 0x323D,
  27054. ideographicexcellentcircle: 0x329D,
  27055. ideographicfestivalparen: 0x3240,
  27056. ideographicfinancialcircle: 0x3296,
  27057. ideographicfinancialparen: 0x3236,
  27058. ideographicfireparen: 0x322B,
  27059. ideographichaveparen: 0x3232,
  27060. ideographichighcircle: 0x32A4,
  27061. ideographiciterationmark: 0x3005,
  27062. ideographiclaborcircle: 0x3298,
  27063. ideographiclaborparen: 0x3238,
  27064. ideographicleftcircle: 0x32A7,
  27065. ideographiclowcircle: 0x32A6,
  27066. ideographicmedicinecircle: 0x32A9,
  27067. ideographicmetalparen: 0x322E,
  27068. ideographicmoonparen: 0x322A,
  27069. ideographicnameparen: 0x3234,
  27070. ideographicperiod: 0x3002,
  27071. ideographicprintcircle: 0x329E,
  27072. ideographicreachparen: 0x3243,
  27073. ideographicrepresentparen: 0x3239,
  27074. ideographicresourceparen: 0x323E,
  27075. ideographicrightcircle: 0x32A8,
  27076. ideographicsecretcircle: 0x3299,
  27077. ideographicselfparen: 0x3242,
  27078. ideographicsocietyparen: 0x3233,
  27079. ideographicspace: 0x3000,
  27080. ideographicspecialparen: 0x3235,
  27081. ideographicstockparen: 0x3231,
  27082. ideographicstudyparen: 0x323B,
  27083. ideographicsunparen: 0x3230,
  27084. ideographicsuperviseparen: 0x323C,
  27085. ideographicwaterparen: 0x322C,
  27086. ideographicwoodparen: 0x322D,
  27087. ideographiczero: 0x3007,
  27088. ideographmetalcircle: 0x328E,
  27089. ideographmooncircle: 0x328A,
  27090. ideographnamecircle: 0x3294,
  27091. ideographsuncircle: 0x3290,
  27092. ideographwatercircle: 0x328C,
  27093. ideographwoodcircle: 0x328D,
  27094. ideva: 0x0907,
  27095. idieresis: 0x00EF,
  27096. idieresisacute: 0x1E2F,
  27097. idieresiscyrillic: 0x04E5,
  27098. idotbelow: 0x1ECB,
  27099. iebrevecyrillic: 0x04D7,
  27100. iecyrillic: 0x0435,
  27101. ieungacirclekorean: 0x3275,
  27102. ieungaparenkorean: 0x3215,
  27103. ieungcirclekorean: 0x3267,
  27104. ieungkorean: 0x3147,
  27105. ieungparenkorean: 0x3207,
  27106. igrave: 0x00EC,
  27107. igujarati: 0x0A87,
  27108. igurmukhi: 0x0A07,
  27109. ihiragana: 0x3044,
  27110. ihookabove: 0x1EC9,
  27111. iibengali: 0x0988,
  27112. iicyrillic: 0x0438,
  27113. iideva: 0x0908,
  27114. iigujarati: 0x0A88,
  27115. iigurmukhi: 0x0A08,
  27116. iimatragurmukhi: 0x0A40,
  27117. iinvertedbreve: 0x020B,
  27118. iishortcyrillic: 0x0439,
  27119. iivowelsignbengali: 0x09C0,
  27120. iivowelsigndeva: 0x0940,
  27121. iivowelsigngujarati: 0x0AC0,
  27122. ij: 0x0133,
  27123. ikatakana: 0x30A4,
  27124. ikatakanahalfwidth: 0xFF72,
  27125. ikorean: 0x3163,
  27126. ilde: 0x02DC,
  27127. iluyhebrew: 0x05AC,
  27128. imacron: 0x012B,
  27129. imacroncyrillic: 0x04E3,
  27130. imageorapproximatelyequal: 0x2253,
  27131. imatragurmukhi: 0x0A3F,
  27132. imonospace: 0xFF49,
  27133. increment: 0x2206,
  27134. infinity: 0x221E,
  27135. iniarmenian: 0x056B,
  27136. integral: 0x222B,
  27137. integralbottom: 0x2321,
  27138. integralbt: 0x2321,
  27139. integralex: 0xF8F5,
  27140. integraltop: 0x2320,
  27141. integraltp: 0x2320,
  27142. intersection: 0x2229,
  27143. intisquare: 0x3305,
  27144. invbullet: 0x25D8,
  27145. invcircle: 0x25D9,
  27146. invsmileface: 0x263B,
  27147. iocyrillic: 0x0451,
  27148. iogonek: 0x012F,
  27149. iota: 0x03B9,
  27150. iotadieresis: 0x03CA,
  27151. iotadieresistonos: 0x0390,
  27152. iotalatin: 0x0269,
  27153. iotatonos: 0x03AF,
  27154. iparen: 0x24A4,
  27155. irigurmukhi: 0x0A72,
  27156. ismallhiragana: 0x3043,
  27157. ismallkatakana: 0x30A3,
  27158. ismallkatakanahalfwidth: 0xFF68,
  27159. issharbengali: 0x09FA,
  27160. istroke: 0x0268,
  27161. isuperior: 0xF6ED,
  27162. iterationhiragana: 0x309D,
  27163. iterationkatakana: 0x30FD,
  27164. itilde: 0x0129,
  27165. itildebelow: 0x1E2D,
  27166. iubopomofo: 0x3129,
  27167. iucyrillic: 0x044E,
  27168. ivowelsignbengali: 0x09BF,
  27169. ivowelsigndeva: 0x093F,
  27170. ivowelsigngujarati: 0x0ABF,
  27171. izhitsacyrillic: 0x0475,
  27172. izhitsadblgravecyrillic: 0x0477,
  27173. j: 0x006A,
  27174. jaarmenian: 0x0571,
  27175. jabengali: 0x099C,
  27176. jadeva: 0x091C,
  27177. jagujarati: 0x0A9C,
  27178. jagurmukhi: 0x0A1C,
  27179. jbopomofo: 0x3110,
  27180. jcaron: 0x01F0,
  27181. jcircle: 0x24D9,
  27182. jcircumflex: 0x0135,
  27183. jcrossedtail: 0x029D,
  27184. jdotlessstroke: 0x025F,
  27185. jecyrillic: 0x0458,
  27186. jeemarabic: 0x062C,
  27187. jeemfinalarabic: 0xFE9E,
  27188. jeeminitialarabic: 0xFE9F,
  27189. jeemmedialarabic: 0xFEA0,
  27190. jeharabic: 0x0698,
  27191. jehfinalarabic: 0xFB8B,
  27192. jhabengali: 0x099D,
  27193. jhadeva: 0x091D,
  27194. jhagujarati: 0x0A9D,
  27195. jhagurmukhi: 0x0A1D,
  27196. jheharmenian: 0x057B,
  27197. jis: 0x3004,
  27198. jmonospace: 0xFF4A,
  27199. jparen: 0x24A5,
  27200. jsuperior: 0x02B2,
  27201. k: 0x006B,
  27202. kabashkircyrillic: 0x04A1,
  27203. kabengali: 0x0995,
  27204. kacute: 0x1E31,
  27205. kacyrillic: 0x043A,
  27206. kadescendercyrillic: 0x049B,
  27207. kadeva: 0x0915,
  27208. kaf: 0x05DB,
  27209. kafarabic: 0x0643,
  27210. kafdagesh: 0xFB3B,
  27211. kafdageshhebrew: 0xFB3B,
  27212. kaffinalarabic: 0xFEDA,
  27213. kafhebrew: 0x05DB,
  27214. kafinitialarabic: 0xFEDB,
  27215. kafmedialarabic: 0xFEDC,
  27216. kafrafehebrew: 0xFB4D,
  27217. kagujarati: 0x0A95,
  27218. kagurmukhi: 0x0A15,
  27219. kahiragana: 0x304B,
  27220. kahookcyrillic: 0x04C4,
  27221. kakatakana: 0x30AB,
  27222. kakatakanahalfwidth: 0xFF76,
  27223. kappa: 0x03BA,
  27224. kappasymbolgreek: 0x03F0,
  27225. kapyeounmieumkorean: 0x3171,
  27226. kapyeounphieuphkorean: 0x3184,
  27227. kapyeounpieupkorean: 0x3178,
  27228. kapyeounssangpieupkorean: 0x3179,
  27229. karoriisquare: 0x330D,
  27230. kashidaautoarabic: 0x0640,
  27231. kashidaautonosidebearingarabic: 0x0640,
  27232. kasmallkatakana: 0x30F5,
  27233. kasquare: 0x3384,
  27234. kasraarabic: 0x0650,
  27235. kasratanarabic: 0x064D,
  27236. kastrokecyrillic: 0x049F,
  27237. katahiraprolongmarkhalfwidth: 0xFF70,
  27238. kaverticalstrokecyrillic: 0x049D,
  27239. kbopomofo: 0x310E,
  27240. kcalsquare: 0x3389,
  27241. kcaron: 0x01E9,
  27242. kcedilla: 0x0137,
  27243. kcircle: 0x24DA,
  27244. kcommaaccent: 0x0137,
  27245. kdotbelow: 0x1E33,
  27246. keharmenian: 0x0584,
  27247. kehiragana: 0x3051,
  27248. kekatakana: 0x30B1,
  27249. kekatakanahalfwidth: 0xFF79,
  27250. kenarmenian: 0x056F,
  27251. kesmallkatakana: 0x30F6,
  27252. kgreenlandic: 0x0138,
  27253. khabengali: 0x0996,
  27254. khacyrillic: 0x0445,
  27255. khadeva: 0x0916,
  27256. khagujarati: 0x0A96,
  27257. khagurmukhi: 0x0A16,
  27258. khaharabic: 0x062E,
  27259. khahfinalarabic: 0xFEA6,
  27260. khahinitialarabic: 0xFEA7,
  27261. khahmedialarabic: 0xFEA8,
  27262. kheicoptic: 0x03E7,
  27263. khhadeva: 0x0959,
  27264. khhagurmukhi: 0x0A59,
  27265. khieukhacirclekorean: 0x3278,
  27266. khieukhaparenkorean: 0x3218,
  27267. khieukhcirclekorean: 0x326A,
  27268. khieukhkorean: 0x314B,
  27269. khieukhparenkorean: 0x320A,
  27270. khokhaithai: 0x0E02,
  27271. khokhonthai: 0x0E05,
  27272. khokhuatthai: 0x0E03,
  27273. khokhwaithai: 0x0E04,
  27274. khomutthai: 0x0E5B,
  27275. khook: 0x0199,
  27276. khorakhangthai: 0x0E06,
  27277. khzsquare: 0x3391,
  27278. kihiragana: 0x304D,
  27279. kikatakana: 0x30AD,
  27280. kikatakanahalfwidth: 0xFF77,
  27281. kiroguramusquare: 0x3315,
  27282. kiromeetorusquare: 0x3316,
  27283. kirosquare: 0x3314,
  27284. kiyeokacirclekorean: 0x326E,
  27285. kiyeokaparenkorean: 0x320E,
  27286. kiyeokcirclekorean: 0x3260,
  27287. kiyeokkorean: 0x3131,
  27288. kiyeokparenkorean: 0x3200,
  27289. kiyeoksioskorean: 0x3133,
  27290. kjecyrillic: 0x045C,
  27291. klinebelow: 0x1E35,
  27292. klsquare: 0x3398,
  27293. kmcubedsquare: 0x33A6,
  27294. kmonospace: 0xFF4B,
  27295. kmsquaredsquare: 0x33A2,
  27296. kohiragana: 0x3053,
  27297. kohmsquare: 0x33C0,
  27298. kokaithai: 0x0E01,
  27299. kokatakana: 0x30B3,
  27300. kokatakanahalfwidth: 0xFF7A,
  27301. kooposquare: 0x331E,
  27302. koppacyrillic: 0x0481,
  27303. koreanstandardsymbol: 0x327F,
  27304. koroniscmb: 0x0343,
  27305. kparen: 0x24A6,
  27306. kpasquare: 0x33AA,
  27307. ksicyrillic: 0x046F,
  27308. ktsquare: 0x33CF,
  27309. kturned: 0x029E,
  27310. kuhiragana: 0x304F,
  27311. kukatakana: 0x30AF,
  27312. kukatakanahalfwidth: 0xFF78,
  27313. kvsquare: 0x33B8,
  27314. kwsquare: 0x33BE,
  27315. l: 0x006C,
  27316. labengali: 0x09B2,
  27317. lacute: 0x013A,
  27318. ladeva: 0x0932,
  27319. lagujarati: 0x0AB2,
  27320. lagurmukhi: 0x0A32,
  27321. lakkhangyaothai: 0x0E45,
  27322. lamaleffinalarabic: 0xFEFC,
  27323. lamalefhamzaabovefinalarabic: 0xFEF8,
  27324. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  27325. lamalefhamzabelowfinalarabic: 0xFEFA,
  27326. lamalefhamzabelowisolatedarabic: 0xFEF9,
  27327. lamalefisolatedarabic: 0xFEFB,
  27328. lamalefmaddaabovefinalarabic: 0xFEF6,
  27329. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  27330. lamarabic: 0x0644,
  27331. lambda: 0x03BB,
  27332. lambdastroke: 0x019B,
  27333. lamed: 0x05DC,
  27334. lameddagesh: 0xFB3C,
  27335. lameddageshhebrew: 0xFB3C,
  27336. lamedhebrew: 0x05DC,
  27337. lamfinalarabic: 0xFEDE,
  27338. lamhahinitialarabic: 0xFCCA,
  27339. laminitialarabic: 0xFEDF,
  27340. lamjeeminitialarabic: 0xFCC9,
  27341. lamkhahinitialarabic: 0xFCCB,
  27342. lamlamhehisolatedarabic: 0xFDF2,
  27343. lammedialarabic: 0xFEE0,
  27344. lammeemhahinitialarabic: 0xFD88,
  27345. lammeeminitialarabic: 0xFCCC,
  27346. largecircle: 0x25EF,
  27347. lbar: 0x019A,
  27348. lbelt: 0x026C,
  27349. lbopomofo: 0x310C,
  27350. lcaron: 0x013E,
  27351. lcedilla: 0x013C,
  27352. lcircle: 0x24DB,
  27353. lcircumflexbelow: 0x1E3D,
  27354. lcommaaccent: 0x013C,
  27355. ldot: 0x0140,
  27356. ldotaccent: 0x0140,
  27357. ldotbelow: 0x1E37,
  27358. ldotbelowmacron: 0x1E39,
  27359. leftangleabovecmb: 0x031A,
  27360. lefttackbelowcmb: 0x0318,
  27361. less: 0x003C,
  27362. lessequal: 0x2264,
  27363. lessequalorgreater: 0x22DA,
  27364. lessmonospace: 0xFF1C,
  27365. lessorequivalent: 0x2272,
  27366. lessorgreater: 0x2276,
  27367. lessoverequal: 0x2266,
  27368. lesssmall: 0xFE64,
  27369. lezh: 0x026E,
  27370. lfblock: 0x258C,
  27371. lhookretroflex: 0x026D,
  27372. lira: 0x20A4,
  27373. liwnarmenian: 0x056C,
  27374. lj: 0x01C9,
  27375. ljecyrillic: 0x0459,
  27376. ll: 0xF6C0,
  27377. lladeva: 0x0933,
  27378. llagujarati: 0x0AB3,
  27379. llinebelow: 0x1E3B,
  27380. llladeva: 0x0934,
  27381. llvocalicbengali: 0x09E1,
  27382. llvocalicdeva: 0x0961,
  27383. llvocalicvowelsignbengali: 0x09E3,
  27384. llvocalicvowelsigndeva: 0x0963,
  27385. lmiddletilde: 0x026B,
  27386. lmonospace: 0xFF4C,
  27387. lmsquare: 0x33D0,
  27388. lochulathai: 0x0E2C,
  27389. logicaland: 0x2227,
  27390. logicalnot: 0x00AC,
  27391. logicalnotreversed: 0x2310,
  27392. logicalor: 0x2228,
  27393. lolingthai: 0x0E25,
  27394. longs: 0x017F,
  27395. lowlinecenterline: 0xFE4E,
  27396. lowlinecmb: 0x0332,
  27397. lowlinedashed: 0xFE4D,
  27398. lozenge: 0x25CA,
  27399. lparen: 0x24A7,
  27400. lslash: 0x0142,
  27401. lsquare: 0x2113,
  27402. lsuperior: 0xF6EE,
  27403. ltshade: 0x2591,
  27404. luthai: 0x0E26,
  27405. lvocalicbengali: 0x098C,
  27406. lvocalicdeva: 0x090C,
  27407. lvocalicvowelsignbengali: 0x09E2,
  27408. lvocalicvowelsigndeva: 0x0962,
  27409. lxsquare: 0x33D3,
  27410. m: 0x006D,
  27411. mabengali: 0x09AE,
  27412. macron: 0x00AF,
  27413. macronbelowcmb: 0x0331,
  27414. macroncmb: 0x0304,
  27415. macronlowmod: 0x02CD,
  27416. macronmonospace: 0xFFE3,
  27417. macute: 0x1E3F,
  27418. madeva: 0x092E,
  27419. magujarati: 0x0AAE,
  27420. magurmukhi: 0x0A2E,
  27421. mahapakhhebrew: 0x05A4,
  27422. mahapakhlefthebrew: 0x05A4,
  27423. mahiragana: 0x307E,
  27424. maichattawalowleftthai: 0xF895,
  27425. maichattawalowrightthai: 0xF894,
  27426. maichattawathai: 0x0E4B,
  27427. maichattawaupperleftthai: 0xF893,
  27428. maieklowleftthai: 0xF88C,
  27429. maieklowrightthai: 0xF88B,
  27430. maiekthai: 0x0E48,
  27431. maiekupperleftthai: 0xF88A,
  27432. maihanakatleftthai: 0xF884,
  27433. maihanakatthai: 0x0E31,
  27434. maitaikhuleftthai: 0xF889,
  27435. maitaikhuthai: 0x0E47,
  27436. maitholowleftthai: 0xF88F,
  27437. maitholowrightthai: 0xF88E,
  27438. maithothai: 0x0E49,
  27439. maithoupperleftthai: 0xF88D,
  27440. maitrilowleftthai: 0xF892,
  27441. maitrilowrightthai: 0xF891,
  27442. maitrithai: 0x0E4A,
  27443. maitriupperleftthai: 0xF890,
  27444. maiyamokthai: 0x0E46,
  27445. makatakana: 0x30DE,
  27446. makatakanahalfwidth: 0xFF8F,
  27447. male: 0x2642,
  27448. mansyonsquare: 0x3347,
  27449. maqafhebrew: 0x05BE,
  27450. mars: 0x2642,
  27451. masoracirclehebrew: 0x05AF,
  27452. masquare: 0x3383,
  27453. mbopomofo: 0x3107,
  27454. mbsquare: 0x33D4,
  27455. mcircle: 0x24DC,
  27456. mcubedsquare: 0x33A5,
  27457. mdotaccent: 0x1E41,
  27458. mdotbelow: 0x1E43,
  27459. meemarabic: 0x0645,
  27460. meemfinalarabic: 0xFEE2,
  27461. meeminitialarabic: 0xFEE3,
  27462. meemmedialarabic: 0xFEE4,
  27463. meemmeeminitialarabic: 0xFCD1,
  27464. meemmeemisolatedarabic: 0xFC48,
  27465. meetorusquare: 0x334D,
  27466. mehiragana: 0x3081,
  27467. meizierasquare: 0x337E,
  27468. mekatakana: 0x30E1,
  27469. mekatakanahalfwidth: 0xFF92,
  27470. mem: 0x05DE,
  27471. memdagesh: 0xFB3E,
  27472. memdageshhebrew: 0xFB3E,
  27473. memhebrew: 0x05DE,
  27474. menarmenian: 0x0574,
  27475. merkhahebrew: 0x05A5,
  27476. merkhakefulahebrew: 0x05A6,
  27477. merkhakefulalefthebrew: 0x05A6,
  27478. merkhalefthebrew: 0x05A5,
  27479. mhook: 0x0271,
  27480. mhzsquare: 0x3392,
  27481. middledotkatakanahalfwidth: 0xFF65,
  27482. middot: 0x00B7,
  27483. mieumacirclekorean: 0x3272,
  27484. mieumaparenkorean: 0x3212,
  27485. mieumcirclekorean: 0x3264,
  27486. mieumkorean: 0x3141,
  27487. mieumpansioskorean: 0x3170,
  27488. mieumparenkorean: 0x3204,
  27489. mieumpieupkorean: 0x316E,
  27490. mieumsioskorean: 0x316F,
  27491. mihiragana: 0x307F,
  27492. mikatakana: 0x30DF,
  27493. mikatakanahalfwidth: 0xFF90,
  27494. minus: 0x2212,
  27495. minusbelowcmb: 0x0320,
  27496. minuscircle: 0x2296,
  27497. minusmod: 0x02D7,
  27498. minusplus: 0x2213,
  27499. minute: 0x2032,
  27500. miribaarusquare: 0x334A,
  27501. mirisquare: 0x3349,
  27502. mlonglegturned: 0x0270,
  27503. mlsquare: 0x3396,
  27504. mmcubedsquare: 0x33A3,
  27505. mmonospace: 0xFF4D,
  27506. mmsquaredsquare: 0x339F,
  27507. mohiragana: 0x3082,
  27508. mohmsquare: 0x33C1,
  27509. mokatakana: 0x30E2,
  27510. mokatakanahalfwidth: 0xFF93,
  27511. molsquare: 0x33D6,
  27512. momathai: 0x0E21,
  27513. moverssquare: 0x33A7,
  27514. moverssquaredsquare: 0x33A8,
  27515. mparen: 0x24A8,
  27516. mpasquare: 0x33AB,
  27517. mssquare: 0x33B3,
  27518. msuperior: 0xF6EF,
  27519. mturned: 0x026F,
  27520. mu: 0x00B5,
  27521. mu1: 0x00B5,
  27522. muasquare: 0x3382,
  27523. muchgreater: 0x226B,
  27524. muchless: 0x226A,
  27525. mufsquare: 0x338C,
  27526. mugreek: 0x03BC,
  27527. mugsquare: 0x338D,
  27528. muhiragana: 0x3080,
  27529. mukatakana: 0x30E0,
  27530. mukatakanahalfwidth: 0xFF91,
  27531. mulsquare: 0x3395,
  27532. multiply: 0x00D7,
  27533. mumsquare: 0x339B,
  27534. munahhebrew: 0x05A3,
  27535. munahlefthebrew: 0x05A3,
  27536. musicalnote: 0x266A,
  27537. musicalnotedbl: 0x266B,
  27538. musicflatsign: 0x266D,
  27539. musicsharpsign: 0x266F,
  27540. mussquare: 0x33B2,
  27541. muvsquare: 0x33B6,
  27542. muwsquare: 0x33BC,
  27543. mvmegasquare: 0x33B9,
  27544. mvsquare: 0x33B7,
  27545. mwmegasquare: 0x33BF,
  27546. mwsquare: 0x33BD,
  27547. n: 0x006E,
  27548. nabengali: 0x09A8,
  27549. nabla: 0x2207,
  27550. nacute: 0x0144,
  27551. nadeva: 0x0928,
  27552. nagujarati: 0x0AA8,
  27553. nagurmukhi: 0x0A28,
  27554. nahiragana: 0x306A,
  27555. nakatakana: 0x30CA,
  27556. nakatakanahalfwidth: 0xFF85,
  27557. napostrophe: 0x0149,
  27558. nasquare: 0x3381,
  27559. nbopomofo: 0x310B,
  27560. nbspace: 0x00A0,
  27561. ncaron: 0x0148,
  27562. ncedilla: 0x0146,
  27563. ncircle: 0x24DD,
  27564. ncircumflexbelow: 0x1E4B,
  27565. ncommaaccent: 0x0146,
  27566. ndotaccent: 0x1E45,
  27567. ndotbelow: 0x1E47,
  27568. nehiragana: 0x306D,
  27569. nekatakana: 0x30CD,
  27570. nekatakanahalfwidth: 0xFF88,
  27571. newsheqelsign: 0x20AA,
  27572. nfsquare: 0x338B,
  27573. ngabengali: 0x0999,
  27574. ngadeva: 0x0919,
  27575. ngagujarati: 0x0A99,
  27576. ngagurmukhi: 0x0A19,
  27577. ngonguthai: 0x0E07,
  27578. nhiragana: 0x3093,
  27579. nhookleft: 0x0272,
  27580. nhookretroflex: 0x0273,
  27581. nieunacirclekorean: 0x326F,
  27582. nieunaparenkorean: 0x320F,
  27583. nieuncieuckorean: 0x3135,
  27584. nieuncirclekorean: 0x3261,
  27585. nieunhieuhkorean: 0x3136,
  27586. nieunkorean: 0x3134,
  27587. nieunpansioskorean: 0x3168,
  27588. nieunparenkorean: 0x3201,
  27589. nieunsioskorean: 0x3167,
  27590. nieuntikeutkorean: 0x3166,
  27591. nihiragana: 0x306B,
  27592. nikatakana: 0x30CB,
  27593. nikatakanahalfwidth: 0xFF86,
  27594. nikhahitleftthai: 0xF899,
  27595. nikhahitthai: 0x0E4D,
  27596. nine: 0x0039,
  27597. ninearabic: 0x0669,
  27598. ninebengali: 0x09EF,
  27599. ninecircle: 0x2468,
  27600. ninecircleinversesansserif: 0x2792,
  27601. ninedeva: 0x096F,
  27602. ninegujarati: 0x0AEF,
  27603. ninegurmukhi: 0x0A6F,
  27604. ninehackarabic: 0x0669,
  27605. ninehangzhou: 0x3029,
  27606. nineideographicparen: 0x3228,
  27607. nineinferior: 0x2089,
  27608. ninemonospace: 0xFF19,
  27609. nineoldstyle: 0xF739,
  27610. nineparen: 0x247C,
  27611. nineperiod: 0x2490,
  27612. ninepersian: 0x06F9,
  27613. nineroman: 0x2178,
  27614. ninesuperior: 0x2079,
  27615. nineteencircle: 0x2472,
  27616. nineteenparen: 0x2486,
  27617. nineteenperiod: 0x249A,
  27618. ninethai: 0x0E59,
  27619. nj: 0x01CC,
  27620. njecyrillic: 0x045A,
  27621. nkatakana: 0x30F3,
  27622. nkatakanahalfwidth: 0xFF9D,
  27623. nlegrightlong: 0x019E,
  27624. nlinebelow: 0x1E49,
  27625. nmonospace: 0xFF4E,
  27626. nmsquare: 0x339A,
  27627. nnabengali: 0x09A3,
  27628. nnadeva: 0x0923,
  27629. nnagujarati: 0x0AA3,
  27630. nnagurmukhi: 0x0A23,
  27631. nnnadeva: 0x0929,
  27632. nohiragana: 0x306E,
  27633. nokatakana: 0x30CE,
  27634. nokatakanahalfwidth: 0xFF89,
  27635. nonbreakingspace: 0x00A0,
  27636. nonenthai: 0x0E13,
  27637. nonuthai: 0x0E19,
  27638. noonarabic: 0x0646,
  27639. noonfinalarabic: 0xFEE6,
  27640. noonghunnaarabic: 0x06BA,
  27641. noonghunnafinalarabic: 0xFB9F,
  27642. nooninitialarabic: 0xFEE7,
  27643. noonjeeminitialarabic: 0xFCD2,
  27644. noonjeemisolatedarabic: 0xFC4B,
  27645. noonmedialarabic: 0xFEE8,
  27646. noonmeeminitialarabic: 0xFCD5,
  27647. noonmeemisolatedarabic: 0xFC4E,
  27648. noonnoonfinalarabic: 0xFC8D,
  27649. notcontains: 0x220C,
  27650. notelement: 0x2209,
  27651. notelementof: 0x2209,
  27652. notequal: 0x2260,
  27653. notgreater: 0x226F,
  27654. notgreaternorequal: 0x2271,
  27655. notgreaternorless: 0x2279,
  27656. notidentical: 0x2262,
  27657. notless: 0x226E,
  27658. notlessnorequal: 0x2270,
  27659. notparallel: 0x2226,
  27660. notprecedes: 0x2280,
  27661. notsubset: 0x2284,
  27662. notsucceeds: 0x2281,
  27663. notsuperset: 0x2285,
  27664. nowarmenian: 0x0576,
  27665. nparen: 0x24A9,
  27666. nssquare: 0x33B1,
  27667. nsuperior: 0x207F,
  27668. ntilde: 0x00F1,
  27669. nu: 0x03BD,
  27670. nuhiragana: 0x306C,
  27671. nukatakana: 0x30CC,
  27672. nukatakanahalfwidth: 0xFF87,
  27673. nuktabengali: 0x09BC,
  27674. nuktadeva: 0x093C,
  27675. nuktagujarati: 0x0ABC,
  27676. nuktagurmukhi: 0x0A3C,
  27677. numbersign: 0x0023,
  27678. numbersignmonospace: 0xFF03,
  27679. numbersignsmall: 0xFE5F,
  27680. numeralsigngreek: 0x0374,
  27681. numeralsignlowergreek: 0x0375,
  27682. numero: 0x2116,
  27683. nun: 0x05E0,
  27684. nundagesh: 0xFB40,
  27685. nundageshhebrew: 0xFB40,
  27686. nunhebrew: 0x05E0,
  27687. nvsquare: 0x33B5,
  27688. nwsquare: 0x33BB,
  27689. nyabengali: 0x099E,
  27690. nyadeva: 0x091E,
  27691. nyagujarati: 0x0A9E,
  27692. nyagurmukhi: 0x0A1E,
  27693. o: 0x006F,
  27694. oacute: 0x00F3,
  27695. oangthai: 0x0E2D,
  27696. obarred: 0x0275,
  27697. obarredcyrillic: 0x04E9,
  27698. obarreddieresiscyrillic: 0x04EB,
  27699. obengali: 0x0993,
  27700. obopomofo: 0x311B,
  27701. obreve: 0x014F,
  27702. ocandradeva: 0x0911,
  27703. ocandragujarati: 0x0A91,
  27704. ocandravowelsigndeva: 0x0949,
  27705. ocandravowelsigngujarati: 0x0AC9,
  27706. ocaron: 0x01D2,
  27707. ocircle: 0x24DE,
  27708. ocircumflex: 0x00F4,
  27709. ocircumflexacute: 0x1ED1,
  27710. ocircumflexdotbelow: 0x1ED9,
  27711. ocircumflexgrave: 0x1ED3,
  27712. ocircumflexhookabove: 0x1ED5,
  27713. ocircumflextilde: 0x1ED7,
  27714. ocyrillic: 0x043E,
  27715. odblacute: 0x0151,
  27716. odblgrave: 0x020D,
  27717. odeva: 0x0913,
  27718. odieresis: 0x00F6,
  27719. odieresiscyrillic: 0x04E7,
  27720. odotbelow: 0x1ECD,
  27721. oe: 0x0153,
  27722. oekorean: 0x315A,
  27723. ogonek: 0x02DB,
  27724. ogonekcmb: 0x0328,
  27725. ograve: 0x00F2,
  27726. ogujarati: 0x0A93,
  27727. oharmenian: 0x0585,
  27728. ohiragana: 0x304A,
  27729. ohookabove: 0x1ECF,
  27730. ohorn: 0x01A1,
  27731. ohornacute: 0x1EDB,
  27732. ohorndotbelow: 0x1EE3,
  27733. ohorngrave: 0x1EDD,
  27734. ohornhookabove: 0x1EDF,
  27735. ohorntilde: 0x1EE1,
  27736. ohungarumlaut: 0x0151,
  27737. oi: 0x01A3,
  27738. oinvertedbreve: 0x020F,
  27739. okatakana: 0x30AA,
  27740. okatakanahalfwidth: 0xFF75,
  27741. okorean: 0x3157,
  27742. olehebrew: 0x05AB,
  27743. omacron: 0x014D,
  27744. omacronacute: 0x1E53,
  27745. omacrongrave: 0x1E51,
  27746. omdeva: 0x0950,
  27747. omega: 0x03C9,
  27748. omega1: 0x03D6,
  27749. omegacyrillic: 0x0461,
  27750. omegalatinclosed: 0x0277,
  27751. omegaroundcyrillic: 0x047B,
  27752. omegatitlocyrillic: 0x047D,
  27753. omegatonos: 0x03CE,
  27754. omgujarati: 0x0AD0,
  27755. omicron: 0x03BF,
  27756. omicrontonos: 0x03CC,
  27757. omonospace: 0xFF4F,
  27758. one: 0x0031,
  27759. onearabic: 0x0661,
  27760. onebengali: 0x09E7,
  27761. onecircle: 0x2460,
  27762. onecircleinversesansserif: 0x278A,
  27763. onedeva: 0x0967,
  27764. onedotenleader: 0x2024,
  27765. oneeighth: 0x215B,
  27766. onefitted: 0xF6DC,
  27767. onegujarati: 0x0AE7,
  27768. onegurmukhi: 0x0A67,
  27769. onehackarabic: 0x0661,
  27770. onehalf: 0x00BD,
  27771. onehangzhou: 0x3021,
  27772. oneideographicparen: 0x3220,
  27773. oneinferior: 0x2081,
  27774. onemonospace: 0xFF11,
  27775. onenumeratorbengali: 0x09F4,
  27776. oneoldstyle: 0xF731,
  27777. oneparen: 0x2474,
  27778. oneperiod: 0x2488,
  27779. onepersian: 0x06F1,
  27780. onequarter: 0x00BC,
  27781. oneroman: 0x2170,
  27782. onesuperior: 0x00B9,
  27783. onethai: 0x0E51,
  27784. onethird: 0x2153,
  27785. oogonek: 0x01EB,
  27786. oogonekmacron: 0x01ED,
  27787. oogurmukhi: 0x0A13,
  27788. oomatragurmukhi: 0x0A4B,
  27789. oopen: 0x0254,
  27790. oparen: 0x24AA,
  27791. openbullet: 0x25E6,
  27792. option: 0x2325,
  27793. ordfeminine: 0x00AA,
  27794. ordmasculine: 0x00BA,
  27795. orthogonal: 0x221F,
  27796. oshortdeva: 0x0912,
  27797. oshortvowelsigndeva: 0x094A,
  27798. oslash: 0x00F8,
  27799. oslashacute: 0x01FF,
  27800. osmallhiragana: 0x3049,
  27801. osmallkatakana: 0x30A9,
  27802. osmallkatakanahalfwidth: 0xFF6B,
  27803. ostrokeacute: 0x01FF,
  27804. osuperior: 0xF6F0,
  27805. otcyrillic: 0x047F,
  27806. otilde: 0x00F5,
  27807. otildeacute: 0x1E4D,
  27808. otildedieresis: 0x1E4F,
  27809. oubopomofo: 0x3121,
  27810. overline: 0x203E,
  27811. overlinecenterline: 0xFE4A,
  27812. overlinecmb: 0x0305,
  27813. overlinedashed: 0xFE49,
  27814. overlinedblwavy: 0xFE4C,
  27815. overlinewavy: 0xFE4B,
  27816. overscore: 0x00AF,
  27817. ovowelsignbengali: 0x09CB,
  27818. ovowelsigndeva: 0x094B,
  27819. ovowelsigngujarati: 0x0ACB,
  27820. p: 0x0070,
  27821. paampssquare: 0x3380,
  27822. paasentosquare: 0x332B,
  27823. pabengali: 0x09AA,
  27824. pacute: 0x1E55,
  27825. padeva: 0x092A,
  27826. pagedown: 0x21DF,
  27827. pageup: 0x21DE,
  27828. pagujarati: 0x0AAA,
  27829. pagurmukhi: 0x0A2A,
  27830. pahiragana: 0x3071,
  27831. paiyannoithai: 0x0E2F,
  27832. pakatakana: 0x30D1,
  27833. palatalizationcyrilliccmb: 0x0484,
  27834. palochkacyrillic: 0x04C0,
  27835. pansioskorean: 0x317F,
  27836. paragraph: 0x00B6,
  27837. parallel: 0x2225,
  27838. parenleft: 0x0028,
  27839. parenleftaltonearabic: 0xFD3E,
  27840. parenleftbt: 0xF8ED,
  27841. parenleftex: 0xF8EC,
  27842. parenleftinferior: 0x208D,
  27843. parenleftmonospace: 0xFF08,
  27844. parenleftsmall: 0xFE59,
  27845. parenleftsuperior: 0x207D,
  27846. parenlefttp: 0xF8EB,
  27847. parenleftvertical: 0xFE35,
  27848. parenright: 0x0029,
  27849. parenrightaltonearabic: 0xFD3F,
  27850. parenrightbt: 0xF8F8,
  27851. parenrightex: 0xF8F7,
  27852. parenrightinferior: 0x208E,
  27853. parenrightmonospace: 0xFF09,
  27854. parenrightsmall: 0xFE5A,
  27855. parenrightsuperior: 0x207E,
  27856. parenrighttp: 0xF8F6,
  27857. parenrightvertical: 0xFE36,
  27858. partialdiff: 0x2202,
  27859. paseqhebrew: 0x05C0,
  27860. pashtahebrew: 0x0599,
  27861. pasquare: 0x33A9,
  27862. patah: 0x05B7,
  27863. patah11: 0x05B7,
  27864. patah1d: 0x05B7,
  27865. patah2a: 0x05B7,
  27866. patahhebrew: 0x05B7,
  27867. patahnarrowhebrew: 0x05B7,
  27868. patahquarterhebrew: 0x05B7,
  27869. patahwidehebrew: 0x05B7,
  27870. pazerhebrew: 0x05A1,
  27871. pbopomofo: 0x3106,
  27872. pcircle: 0x24DF,
  27873. pdotaccent: 0x1E57,
  27874. pe: 0x05E4,
  27875. pecyrillic: 0x043F,
  27876. pedagesh: 0xFB44,
  27877. pedageshhebrew: 0xFB44,
  27878. peezisquare: 0x333B,
  27879. pefinaldageshhebrew: 0xFB43,
  27880. peharabic: 0x067E,
  27881. peharmenian: 0x057A,
  27882. pehebrew: 0x05E4,
  27883. pehfinalarabic: 0xFB57,
  27884. pehinitialarabic: 0xFB58,
  27885. pehiragana: 0x307A,
  27886. pehmedialarabic: 0xFB59,
  27887. pekatakana: 0x30DA,
  27888. pemiddlehookcyrillic: 0x04A7,
  27889. perafehebrew: 0xFB4E,
  27890. percent: 0x0025,
  27891. percentarabic: 0x066A,
  27892. percentmonospace: 0xFF05,
  27893. percentsmall: 0xFE6A,
  27894. period: 0x002E,
  27895. periodarmenian: 0x0589,
  27896. periodcentered: 0x00B7,
  27897. periodhalfwidth: 0xFF61,
  27898. periodinferior: 0xF6E7,
  27899. periodmonospace: 0xFF0E,
  27900. periodsmall: 0xFE52,
  27901. periodsuperior: 0xF6E8,
  27902. perispomenigreekcmb: 0x0342,
  27903. perpendicular: 0x22A5,
  27904. perthousand: 0x2030,
  27905. peseta: 0x20A7,
  27906. pfsquare: 0x338A,
  27907. phabengali: 0x09AB,
  27908. phadeva: 0x092B,
  27909. phagujarati: 0x0AAB,
  27910. phagurmukhi: 0x0A2B,
  27911. phi: 0x03C6,
  27912. phi1: 0x03D5,
  27913. phieuphacirclekorean: 0x327A,
  27914. phieuphaparenkorean: 0x321A,
  27915. phieuphcirclekorean: 0x326C,
  27916. phieuphkorean: 0x314D,
  27917. phieuphparenkorean: 0x320C,
  27918. philatin: 0x0278,
  27919. phinthuthai: 0x0E3A,
  27920. phisymbolgreek: 0x03D5,
  27921. phook: 0x01A5,
  27922. phophanthai: 0x0E1E,
  27923. phophungthai: 0x0E1C,
  27924. phosamphaothai: 0x0E20,
  27925. pi: 0x03C0,
  27926. pieupacirclekorean: 0x3273,
  27927. pieupaparenkorean: 0x3213,
  27928. pieupcieuckorean: 0x3176,
  27929. pieupcirclekorean: 0x3265,
  27930. pieupkiyeokkorean: 0x3172,
  27931. pieupkorean: 0x3142,
  27932. pieupparenkorean: 0x3205,
  27933. pieupsioskiyeokkorean: 0x3174,
  27934. pieupsioskorean: 0x3144,
  27935. pieupsiostikeutkorean: 0x3175,
  27936. pieupthieuthkorean: 0x3177,
  27937. pieuptikeutkorean: 0x3173,
  27938. pihiragana: 0x3074,
  27939. pikatakana: 0x30D4,
  27940. pisymbolgreek: 0x03D6,
  27941. piwrarmenian: 0x0583,
  27942. plus: 0x002B,
  27943. plusbelowcmb: 0x031F,
  27944. pluscircle: 0x2295,
  27945. plusminus: 0x00B1,
  27946. plusmod: 0x02D6,
  27947. plusmonospace: 0xFF0B,
  27948. plussmall: 0xFE62,
  27949. plussuperior: 0x207A,
  27950. pmonospace: 0xFF50,
  27951. pmsquare: 0x33D8,
  27952. pohiragana: 0x307D,
  27953. pointingindexdownwhite: 0x261F,
  27954. pointingindexleftwhite: 0x261C,
  27955. pointingindexrightwhite: 0x261E,
  27956. pointingindexupwhite: 0x261D,
  27957. pokatakana: 0x30DD,
  27958. poplathai: 0x0E1B,
  27959. postalmark: 0x3012,
  27960. postalmarkface: 0x3020,
  27961. pparen: 0x24AB,
  27962. precedes: 0x227A,
  27963. prescription: 0x211E,
  27964. primemod: 0x02B9,
  27965. primereversed: 0x2035,
  27966. product: 0x220F,
  27967. projective: 0x2305,
  27968. prolongedkana: 0x30FC,
  27969. propellor: 0x2318,
  27970. propersubset: 0x2282,
  27971. propersuperset: 0x2283,
  27972. proportion: 0x2237,
  27973. proportional: 0x221D,
  27974. psi: 0x03C8,
  27975. psicyrillic: 0x0471,
  27976. psilipneumatacyrilliccmb: 0x0486,
  27977. pssquare: 0x33B0,
  27978. puhiragana: 0x3077,
  27979. pukatakana: 0x30D7,
  27980. pvsquare: 0x33B4,
  27981. pwsquare: 0x33BA,
  27982. q: 0x0071,
  27983. qadeva: 0x0958,
  27984. qadmahebrew: 0x05A8,
  27985. qafarabic: 0x0642,
  27986. qaffinalarabic: 0xFED6,
  27987. qafinitialarabic: 0xFED7,
  27988. qafmedialarabic: 0xFED8,
  27989. qamats: 0x05B8,
  27990. qamats10: 0x05B8,
  27991. qamats1a: 0x05B8,
  27992. qamats1c: 0x05B8,
  27993. qamats27: 0x05B8,
  27994. qamats29: 0x05B8,
  27995. qamats33: 0x05B8,
  27996. qamatsde: 0x05B8,
  27997. qamatshebrew: 0x05B8,
  27998. qamatsnarrowhebrew: 0x05B8,
  27999. qamatsqatanhebrew: 0x05B8,
  28000. qamatsqatannarrowhebrew: 0x05B8,
  28001. qamatsqatanquarterhebrew: 0x05B8,
  28002. qamatsqatanwidehebrew: 0x05B8,
  28003. qamatsquarterhebrew: 0x05B8,
  28004. qamatswidehebrew: 0x05B8,
  28005. qarneyparahebrew: 0x059F,
  28006. qbopomofo: 0x3111,
  28007. qcircle: 0x24E0,
  28008. qhook: 0x02A0,
  28009. qmonospace: 0xFF51,
  28010. qof: 0x05E7,
  28011. qofdagesh: 0xFB47,
  28012. qofdageshhebrew: 0xFB47,
  28013. qofhebrew: 0x05E7,
  28014. qparen: 0x24AC,
  28015. quarternote: 0x2669,
  28016. qubuts: 0x05BB,
  28017. qubuts18: 0x05BB,
  28018. qubuts25: 0x05BB,
  28019. qubuts31: 0x05BB,
  28020. qubutshebrew: 0x05BB,
  28021. qubutsnarrowhebrew: 0x05BB,
  28022. qubutsquarterhebrew: 0x05BB,
  28023. qubutswidehebrew: 0x05BB,
  28024. question: 0x003F,
  28025. questionarabic: 0x061F,
  28026. questionarmenian: 0x055E,
  28027. questiondown: 0x00BF,
  28028. questiondownsmall: 0xF7BF,
  28029. questiongreek: 0x037E,
  28030. questionmonospace: 0xFF1F,
  28031. questionsmall: 0xF73F,
  28032. quotedbl: 0x0022,
  28033. quotedblbase: 0x201E,
  28034. quotedblleft: 0x201C,
  28035. quotedblmonospace: 0xFF02,
  28036. quotedblprime: 0x301E,
  28037. quotedblprimereversed: 0x301D,
  28038. quotedblright: 0x201D,
  28039. quoteleft: 0x2018,
  28040. quoteleftreversed: 0x201B,
  28041. quotereversed: 0x201B,
  28042. quoteright: 0x2019,
  28043. quoterightn: 0x0149,
  28044. quotesinglbase: 0x201A,
  28045. quotesingle: 0x0027,
  28046. quotesinglemonospace: 0xFF07,
  28047. r: 0x0072,
  28048. raarmenian: 0x057C,
  28049. rabengali: 0x09B0,
  28050. racute: 0x0155,
  28051. radeva: 0x0930,
  28052. radical: 0x221A,
  28053. radicalex: 0xF8E5,
  28054. radoverssquare: 0x33AE,
  28055. radoverssquaredsquare: 0x33AF,
  28056. radsquare: 0x33AD,
  28057. rafe: 0x05BF,
  28058. rafehebrew: 0x05BF,
  28059. ragujarati: 0x0AB0,
  28060. ragurmukhi: 0x0A30,
  28061. rahiragana: 0x3089,
  28062. rakatakana: 0x30E9,
  28063. rakatakanahalfwidth: 0xFF97,
  28064. ralowerdiagonalbengali: 0x09F1,
  28065. ramiddlediagonalbengali: 0x09F0,
  28066. ramshorn: 0x0264,
  28067. ratio: 0x2236,
  28068. rbopomofo: 0x3116,
  28069. rcaron: 0x0159,
  28070. rcedilla: 0x0157,
  28071. rcircle: 0x24E1,
  28072. rcommaaccent: 0x0157,
  28073. rdblgrave: 0x0211,
  28074. rdotaccent: 0x1E59,
  28075. rdotbelow: 0x1E5B,
  28076. rdotbelowmacron: 0x1E5D,
  28077. referencemark: 0x203B,
  28078. reflexsubset: 0x2286,
  28079. reflexsuperset: 0x2287,
  28080. registered: 0x00AE,
  28081. registersans: 0xF8E8,
  28082. registerserif: 0xF6DA,
  28083. reharabic: 0x0631,
  28084. reharmenian: 0x0580,
  28085. rehfinalarabic: 0xFEAE,
  28086. rehiragana: 0x308C,
  28087. rekatakana: 0x30EC,
  28088. rekatakanahalfwidth: 0xFF9A,
  28089. resh: 0x05E8,
  28090. reshdageshhebrew: 0xFB48,
  28091. reshhebrew: 0x05E8,
  28092. reversedtilde: 0x223D,
  28093. reviahebrew: 0x0597,
  28094. reviamugrashhebrew: 0x0597,
  28095. revlogicalnot: 0x2310,
  28096. rfishhook: 0x027E,
  28097. rfishhookreversed: 0x027F,
  28098. rhabengali: 0x09DD,
  28099. rhadeva: 0x095D,
  28100. rho: 0x03C1,
  28101. rhook: 0x027D,
  28102. rhookturned: 0x027B,
  28103. rhookturnedsuperior: 0x02B5,
  28104. rhosymbolgreek: 0x03F1,
  28105. rhotichookmod: 0x02DE,
  28106. rieulacirclekorean: 0x3271,
  28107. rieulaparenkorean: 0x3211,
  28108. rieulcirclekorean: 0x3263,
  28109. rieulhieuhkorean: 0x3140,
  28110. rieulkiyeokkorean: 0x313A,
  28111. rieulkiyeoksioskorean: 0x3169,
  28112. rieulkorean: 0x3139,
  28113. rieulmieumkorean: 0x313B,
  28114. rieulpansioskorean: 0x316C,
  28115. rieulparenkorean: 0x3203,
  28116. rieulphieuphkorean: 0x313F,
  28117. rieulpieupkorean: 0x313C,
  28118. rieulpieupsioskorean: 0x316B,
  28119. rieulsioskorean: 0x313D,
  28120. rieulthieuthkorean: 0x313E,
  28121. rieultikeutkorean: 0x316A,
  28122. rieulyeorinhieuhkorean: 0x316D,
  28123. rightangle: 0x221F,
  28124. righttackbelowcmb: 0x0319,
  28125. righttriangle: 0x22BF,
  28126. rihiragana: 0x308A,
  28127. rikatakana: 0x30EA,
  28128. rikatakanahalfwidth: 0xFF98,
  28129. ring: 0x02DA,
  28130. ringbelowcmb: 0x0325,
  28131. ringcmb: 0x030A,
  28132. ringhalfleft: 0x02BF,
  28133. ringhalfleftarmenian: 0x0559,
  28134. ringhalfleftbelowcmb: 0x031C,
  28135. ringhalfleftcentered: 0x02D3,
  28136. ringhalfright: 0x02BE,
  28137. ringhalfrightbelowcmb: 0x0339,
  28138. ringhalfrightcentered: 0x02D2,
  28139. rinvertedbreve: 0x0213,
  28140. rittorusquare: 0x3351,
  28141. rlinebelow: 0x1E5F,
  28142. rlongleg: 0x027C,
  28143. rlonglegturned: 0x027A,
  28144. rmonospace: 0xFF52,
  28145. rohiragana: 0x308D,
  28146. rokatakana: 0x30ED,
  28147. rokatakanahalfwidth: 0xFF9B,
  28148. roruathai: 0x0E23,
  28149. rparen: 0x24AD,
  28150. rrabengali: 0x09DC,
  28151. rradeva: 0x0931,
  28152. rragurmukhi: 0x0A5C,
  28153. rreharabic: 0x0691,
  28154. rrehfinalarabic: 0xFB8D,
  28155. rrvocalicbengali: 0x09E0,
  28156. rrvocalicdeva: 0x0960,
  28157. rrvocalicgujarati: 0x0AE0,
  28158. rrvocalicvowelsignbengali: 0x09C4,
  28159. rrvocalicvowelsigndeva: 0x0944,
  28160. rrvocalicvowelsigngujarati: 0x0AC4,
  28161. rsuperior: 0xF6F1,
  28162. rtblock: 0x2590,
  28163. rturned: 0x0279,
  28164. rturnedsuperior: 0x02B4,
  28165. ruhiragana: 0x308B,
  28166. rukatakana: 0x30EB,
  28167. rukatakanahalfwidth: 0xFF99,
  28168. rupeemarkbengali: 0x09F2,
  28169. rupeesignbengali: 0x09F3,
  28170. rupiah: 0xF6DD,
  28171. ruthai: 0x0E24,
  28172. rvocalicbengali: 0x098B,
  28173. rvocalicdeva: 0x090B,
  28174. rvocalicgujarati: 0x0A8B,
  28175. rvocalicvowelsignbengali: 0x09C3,
  28176. rvocalicvowelsigndeva: 0x0943,
  28177. rvocalicvowelsigngujarati: 0x0AC3,
  28178. s: 0x0073,
  28179. sabengali: 0x09B8,
  28180. sacute: 0x015B,
  28181. sacutedotaccent: 0x1E65,
  28182. sadarabic: 0x0635,
  28183. sadeva: 0x0938,
  28184. sadfinalarabic: 0xFEBA,
  28185. sadinitialarabic: 0xFEBB,
  28186. sadmedialarabic: 0xFEBC,
  28187. sagujarati: 0x0AB8,
  28188. sagurmukhi: 0x0A38,
  28189. sahiragana: 0x3055,
  28190. sakatakana: 0x30B5,
  28191. sakatakanahalfwidth: 0xFF7B,
  28192. sallallahoualayhewasallamarabic: 0xFDFA,
  28193. samekh: 0x05E1,
  28194. samekhdagesh: 0xFB41,
  28195. samekhdageshhebrew: 0xFB41,
  28196. samekhhebrew: 0x05E1,
  28197. saraaathai: 0x0E32,
  28198. saraaethai: 0x0E41,
  28199. saraaimaimalaithai: 0x0E44,
  28200. saraaimaimuanthai: 0x0E43,
  28201. saraamthai: 0x0E33,
  28202. saraathai: 0x0E30,
  28203. saraethai: 0x0E40,
  28204. saraiileftthai: 0xF886,
  28205. saraiithai: 0x0E35,
  28206. saraileftthai: 0xF885,
  28207. saraithai: 0x0E34,
  28208. saraothai: 0x0E42,
  28209. saraueeleftthai: 0xF888,
  28210. saraueethai: 0x0E37,
  28211. saraueleftthai: 0xF887,
  28212. sarauethai: 0x0E36,
  28213. sarauthai: 0x0E38,
  28214. sarauuthai: 0x0E39,
  28215. sbopomofo: 0x3119,
  28216. scaron: 0x0161,
  28217. scarondotaccent: 0x1E67,
  28218. scedilla: 0x015F,
  28219. schwa: 0x0259,
  28220. schwacyrillic: 0x04D9,
  28221. schwadieresiscyrillic: 0x04DB,
  28222. schwahook: 0x025A,
  28223. scircle: 0x24E2,
  28224. scircumflex: 0x015D,
  28225. scommaaccent: 0x0219,
  28226. sdotaccent: 0x1E61,
  28227. sdotbelow: 0x1E63,
  28228. sdotbelowdotaccent: 0x1E69,
  28229. seagullbelowcmb: 0x033C,
  28230. second: 0x2033,
  28231. secondtonechinese: 0x02CA,
  28232. section: 0x00A7,
  28233. seenarabic: 0x0633,
  28234. seenfinalarabic: 0xFEB2,
  28235. seeninitialarabic: 0xFEB3,
  28236. seenmedialarabic: 0xFEB4,
  28237. segol: 0x05B6,
  28238. segol13: 0x05B6,
  28239. segol1f: 0x05B6,
  28240. segol2c: 0x05B6,
  28241. segolhebrew: 0x05B6,
  28242. segolnarrowhebrew: 0x05B6,
  28243. segolquarterhebrew: 0x05B6,
  28244. segoltahebrew: 0x0592,
  28245. segolwidehebrew: 0x05B6,
  28246. seharmenian: 0x057D,
  28247. sehiragana: 0x305B,
  28248. sekatakana: 0x30BB,
  28249. sekatakanahalfwidth: 0xFF7E,
  28250. semicolon: 0x003B,
  28251. semicolonarabic: 0x061B,
  28252. semicolonmonospace: 0xFF1B,
  28253. semicolonsmall: 0xFE54,
  28254. semivoicedmarkkana: 0x309C,
  28255. semivoicedmarkkanahalfwidth: 0xFF9F,
  28256. sentisquare: 0x3322,
  28257. sentosquare: 0x3323,
  28258. seven: 0x0037,
  28259. sevenarabic: 0x0667,
  28260. sevenbengali: 0x09ED,
  28261. sevencircle: 0x2466,
  28262. sevencircleinversesansserif: 0x2790,
  28263. sevendeva: 0x096D,
  28264. seveneighths: 0x215E,
  28265. sevengujarati: 0x0AED,
  28266. sevengurmukhi: 0x0A6D,
  28267. sevenhackarabic: 0x0667,
  28268. sevenhangzhou: 0x3027,
  28269. sevenideographicparen: 0x3226,
  28270. seveninferior: 0x2087,
  28271. sevenmonospace: 0xFF17,
  28272. sevenoldstyle: 0xF737,
  28273. sevenparen: 0x247A,
  28274. sevenperiod: 0x248E,
  28275. sevenpersian: 0x06F7,
  28276. sevenroman: 0x2176,
  28277. sevensuperior: 0x2077,
  28278. seventeencircle: 0x2470,
  28279. seventeenparen: 0x2484,
  28280. seventeenperiod: 0x2498,
  28281. seventhai: 0x0E57,
  28282. sfthyphen: 0x00AD,
  28283. shaarmenian: 0x0577,
  28284. shabengali: 0x09B6,
  28285. shacyrillic: 0x0448,
  28286. shaddaarabic: 0x0651,
  28287. shaddadammaarabic: 0xFC61,
  28288. shaddadammatanarabic: 0xFC5E,
  28289. shaddafathaarabic: 0xFC60,
  28290. shaddakasraarabic: 0xFC62,
  28291. shaddakasratanarabic: 0xFC5F,
  28292. shade: 0x2592,
  28293. shadedark: 0x2593,
  28294. shadelight: 0x2591,
  28295. shademedium: 0x2592,
  28296. shadeva: 0x0936,
  28297. shagujarati: 0x0AB6,
  28298. shagurmukhi: 0x0A36,
  28299. shalshelethebrew: 0x0593,
  28300. shbopomofo: 0x3115,
  28301. shchacyrillic: 0x0449,
  28302. sheenarabic: 0x0634,
  28303. sheenfinalarabic: 0xFEB6,
  28304. sheeninitialarabic: 0xFEB7,
  28305. sheenmedialarabic: 0xFEB8,
  28306. sheicoptic: 0x03E3,
  28307. sheqel: 0x20AA,
  28308. sheqelhebrew: 0x20AA,
  28309. sheva: 0x05B0,
  28310. sheva115: 0x05B0,
  28311. sheva15: 0x05B0,
  28312. sheva22: 0x05B0,
  28313. sheva2e: 0x05B0,
  28314. shevahebrew: 0x05B0,
  28315. shevanarrowhebrew: 0x05B0,
  28316. shevaquarterhebrew: 0x05B0,
  28317. shevawidehebrew: 0x05B0,
  28318. shhacyrillic: 0x04BB,
  28319. shimacoptic: 0x03ED,
  28320. shin: 0x05E9,
  28321. shindagesh: 0xFB49,
  28322. shindageshhebrew: 0xFB49,
  28323. shindageshshindot: 0xFB2C,
  28324. shindageshshindothebrew: 0xFB2C,
  28325. shindageshsindot: 0xFB2D,
  28326. shindageshsindothebrew: 0xFB2D,
  28327. shindothebrew: 0x05C1,
  28328. shinhebrew: 0x05E9,
  28329. shinshindot: 0xFB2A,
  28330. shinshindothebrew: 0xFB2A,
  28331. shinsindot: 0xFB2B,
  28332. shinsindothebrew: 0xFB2B,
  28333. shook: 0x0282,
  28334. sigma: 0x03C3,
  28335. sigma1: 0x03C2,
  28336. sigmafinal: 0x03C2,
  28337. sigmalunatesymbolgreek: 0x03F2,
  28338. sihiragana: 0x3057,
  28339. sikatakana: 0x30B7,
  28340. sikatakanahalfwidth: 0xFF7C,
  28341. siluqhebrew: 0x05BD,
  28342. siluqlefthebrew: 0x05BD,
  28343. similar: 0x223C,
  28344. sindothebrew: 0x05C2,
  28345. siosacirclekorean: 0x3274,
  28346. siosaparenkorean: 0x3214,
  28347. sioscieuckorean: 0x317E,
  28348. sioscirclekorean: 0x3266,
  28349. sioskiyeokkorean: 0x317A,
  28350. sioskorean: 0x3145,
  28351. siosnieunkorean: 0x317B,
  28352. siosparenkorean: 0x3206,
  28353. siospieupkorean: 0x317D,
  28354. siostikeutkorean: 0x317C,
  28355. six: 0x0036,
  28356. sixarabic: 0x0666,
  28357. sixbengali: 0x09EC,
  28358. sixcircle: 0x2465,
  28359. sixcircleinversesansserif: 0x278F,
  28360. sixdeva: 0x096C,
  28361. sixgujarati: 0x0AEC,
  28362. sixgurmukhi: 0x0A6C,
  28363. sixhackarabic: 0x0666,
  28364. sixhangzhou: 0x3026,
  28365. sixideographicparen: 0x3225,
  28366. sixinferior: 0x2086,
  28367. sixmonospace: 0xFF16,
  28368. sixoldstyle: 0xF736,
  28369. sixparen: 0x2479,
  28370. sixperiod: 0x248D,
  28371. sixpersian: 0x06F6,
  28372. sixroman: 0x2175,
  28373. sixsuperior: 0x2076,
  28374. sixteencircle: 0x246F,
  28375. sixteencurrencydenominatorbengali: 0x09F9,
  28376. sixteenparen: 0x2483,
  28377. sixteenperiod: 0x2497,
  28378. sixthai: 0x0E56,
  28379. slash: 0x002F,
  28380. slashmonospace: 0xFF0F,
  28381. slong: 0x017F,
  28382. slongdotaccent: 0x1E9B,
  28383. smileface: 0x263A,
  28384. smonospace: 0xFF53,
  28385. sofpasuqhebrew: 0x05C3,
  28386. softhyphen: 0x00AD,
  28387. softsigncyrillic: 0x044C,
  28388. sohiragana: 0x305D,
  28389. sokatakana: 0x30BD,
  28390. sokatakanahalfwidth: 0xFF7F,
  28391. soliduslongoverlaycmb: 0x0338,
  28392. solidusshortoverlaycmb: 0x0337,
  28393. sorusithai: 0x0E29,
  28394. sosalathai: 0x0E28,
  28395. sosothai: 0x0E0B,
  28396. sosuathai: 0x0E2A,
  28397. space: 0x0020,
  28398. spacehackarabic: 0x0020,
  28399. spade: 0x2660,
  28400. spadesuitblack: 0x2660,
  28401. spadesuitwhite: 0x2664,
  28402. sparen: 0x24AE,
  28403. squarebelowcmb: 0x033B,
  28404. squarecc: 0x33C4,
  28405. squarecm: 0x339D,
  28406. squarediagonalcrosshatchfill: 0x25A9,
  28407. squarehorizontalfill: 0x25A4,
  28408. squarekg: 0x338F,
  28409. squarekm: 0x339E,
  28410. squarekmcapital: 0x33CE,
  28411. squareln: 0x33D1,
  28412. squarelog: 0x33D2,
  28413. squaremg: 0x338E,
  28414. squaremil: 0x33D5,
  28415. squaremm: 0x339C,
  28416. squaremsquared: 0x33A1,
  28417. squareorthogonalcrosshatchfill: 0x25A6,
  28418. squareupperlefttolowerrightfill: 0x25A7,
  28419. squareupperrighttolowerleftfill: 0x25A8,
  28420. squareverticalfill: 0x25A5,
  28421. squarewhitewithsmallblack: 0x25A3,
  28422. srsquare: 0x33DB,
  28423. ssabengali: 0x09B7,
  28424. ssadeva: 0x0937,
  28425. ssagujarati: 0x0AB7,
  28426. ssangcieuckorean: 0x3149,
  28427. ssanghieuhkorean: 0x3185,
  28428. ssangieungkorean: 0x3180,
  28429. ssangkiyeokkorean: 0x3132,
  28430. ssangnieunkorean: 0x3165,
  28431. ssangpieupkorean: 0x3143,
  28432. ssangsioskorean: 0x3146,
  28433. ssangtikeutkorean: 0x3138,
  28434. ssuperior: 0xF6F2,
  28435. sterling: 0x00A3,
  28436. sterlingmonospace: 0xFFE1,
  28437. strokelongoverlaycmb: 0x0336,
  28438. strokeshortoverlaycmb: 0x0335,
  28439. subset: 0x2282,
  28440. subsetnotequal: 0x228A,
  28441. subsetorequal: 0x2286,
  28442. succeeds: 0x227B,
  28443. suchthat: 0x220B,
  28444. suhiragana: 0x3059,
  28445. sukatakana: 0x30B9,
  28446. sukatakanahalfwidth: 0xFF7D,
  28447. sukunarabic: 0x0652,
  28448. summation: 0x2211,
  28449. sun: 0x263C,
  28450. superset: 0x2283,
  28451. supersetnotequal: 0x228B,
  28452. supersetorequal: 0x2287,
  28453. svsquare: 0x33DC,
  28454. syouwaerasquare: 0x337C,
  28455. t: 0x0074,
  28456. tabengali: 0x09A4,
  28457. tackdown: 0x22A4,
  28458. tackleft: 0x22A3,
  28459. tadeva: 0x0924,
  28460. tagujarati: 0x0AA4,
  28461. tagurmukhi: 0x0A24,
  28462. taharabic: 0x0637,
  28463. tahfinalarabic: 0xFEC2,
  28464. tahinitialarabic: 0xFEC3,
  28465. tahiragana: 0x305F,
  28466. tahmedialarabic: 0xFEC4,
  28467. taisyouerasquare: 0x337D,
  28468. takatakana: 0x30BF,
  28469. takatakanahalfwidth: 0xFF80,
  28470. tatweelarabic: 0x0640,
  28471. tau: 0x03C4,
  28472. tav: 0x05EA,
  28473. tavdages: 0xFB4A,
  28474. tavdagesh: 0xFB4A,
  28475. tavdageshhebrew: 0xFB4A,
  28476. tavhebrew: 0x05EA,
  28477. tbar: 0x0167,
  28478. tbopomofo: 0x310A,
  28479. tcaron: 0x0165,
  28480. tccurl: 0x02A8,
  28481. tcedilla: 0x0163,
  28482. tcheharabic: 0x0686,
  28483. tchehfinalarabic: 0xFB7B,
  28484. tchehinitialarabic: 0xFB7C,
  28485. tchehmedialarabic: 0xFB7D,
  28486. tcircle: 0x24E3,
  28487. tcircumflexbelow: 0x1E71,
  28488. tcommaaccent: 0x0163,
  28489. tdieresis: 0x1E97,
  28490. tdotaccent: 0x1E6B,
  28491. tdotbelow: 0x1E6D,
  28492. tecyrillic: 0x0442,
  28493. tedescendercyrillic: 0x04AD,
  28494. teharabic: 0x062A,
  28495. tehfinalarabic: 0xFE96,
  28496. tehhahinitialarabic: 0xFCA2,
  28497. tehhahisolatedarabic: 0xFC0C,
  28498. tehinitialarabic: 0xFE97,
  28499. tehiragana: 0x3066,
  28500. tehjeeminitialarabic: 0xFCA1,
  28501. tehjeemisolatedarabic: 0xFC0B,
  28502. tehmarbutaarabic: 0x0629,
  28503. tehmarbutafinalarabic: 0xFE94,
  28504. tehmedialarabic: 0xFE98,
  28505. tehmeeminitialarabic: 0xFCA4,
  28506. tehmeemisolatedarabic: 0xFC0E,
  28507. tehnoonfinalarabic: 0xFC73,
  28508. tekatakana: 0x30C6,
  28509. tekatakanahalfwidth: 0xFF83,
  28510. telephone: 0x2121,
  28511. telephoneblack: 0x260E,
  28512. telishagedolahebrew: 0x05A0,
  28513. telishaqetanahebrew: 0x05A9,
  28514. tencircle: 0x2469,
  28515. tenideographicparen: 0x3229,
  28516. tenparen: 0x247D,
  28517. tenperiod: 0x2491,
  28518. tenroman: 0x2179,
  28519. tesh: 0x02A7,
  28520. tet: 0x05D8,
  28521. tetdagesh: 0xFB38,
  28522. tetdageshhebrew: 0xFB38,
  28523. tethebrew: 0x05D8,
  28524. tetsecyrillic: 0x04B5,
  28525. tevirhebrew: 0x059B,
  28526. tevirlefthebrew: 0x059B,
  28527. thabengali: 0x09A5,
  28528. thadeva: 0x0925,
  28529. thagujarati: 0x0AA5,
  28530. thagurmukhi: 0x0A25,
  28531. thalarabic: 0x0630,
  28532. thalfinalarabic: 0xFEAC,
  28533. thanthakhatlowleftthai: 0xF898,
  28534. thanthakhatlowrightthai: 0xF897,
  28535. thanthakhatthai: 0x0E4C,
  28536. thanthakhatupperleftthai: 0xF896,
  28537. theharabic: 0x062B,
  28538. thehfinalarabic: 0xFE9A,
  28539. thehinitialarabic: 0xFE9B,
  28540. thehmedialarabic: 0xFE9C,
  28541. thereexists: 0x2203,
  28542. therefore: 0x2234,
  28543. theta: 0x03B8,
  28544. theta1: 0x03D1,
  28545. thetasymbolgreek: 0x03D1,
  28546. thieuthacirclekorean: 0x3279,
  28547. thieuthaparenkorean: 0x3219,
  28548. thieuthcirclekorean: 0x326B,
  28549. thieuthkorean: 0x314C,
  28550. thieuthparenkorean: 0x320B,
  28551. thirteencircle: 0x246C,
  28552. thirteenparen: 0x2480,
  28553. thirteenperiod: 0x2494,
  28554. thonangmonthothai: 0x0E11,
  28555. thook: 0x01AD,
  28556. thophuthaothai: 0x0E12,
  28557. thorn: 0x00FE,
  28558. thothahanthai: 0x0E17,
  28559. thothanthai: 0x0E10,
  28560. thothongthai: 0x0E18,
  28561. thothungthai: 0x0E16,
  28562. thousandcyrillic: 0x0482,
  28563. thousandsseparatorarabic: 0x066C,
  28564. thousandsseparatorpersian: 0x066C,
  28565. three: 0x0033,
  28566. threearabic: 0x0663,
  28567. threebengali: 0x09E9,
  28568. threecircle: 0x2462,
  28569. threecircleinversesansserif: 0x278C,
  28570. threedeva: 0x0969,
  28571. threeeighths: 0x215C,
  28572. threegujarati: 0x0AE9,
  28573. threegurmukhi: 0x0A69,
  28574. threehackarabic: 0x0663,
  28575. threehangzhou: 0x3023,
  28576. threeideographicparen: 0x3222,
  28577. threeinferior: 0x2083,
  28578. threemonospace: 0xFF13,
  28579. threenumeratorbengali: 0x09F6,
  28580. threeoldstyle: 0xF733,
  28581. threeparen: 0x2476,
  28582. threeperiod: 0x248A,
  28583. threepersian: 0x06F3,
  28584. threequarters: 0x00BE,
  28585. threequartersemdash: 0xF6DE,
  28586. threeroman: 0x2172,
  28587. threesuperior: 0x00B3,
  28588. threethai: 0x0E53,
  28589. thzsquare: 0x3394,
  28590. tihiragana: 0x3061,
  28591. tikatakana: 0x30C1,
  28592. tikatakanahalfwidth: 0xFF81,
  28593. tikeutacirclekorean: 0x3270,
  28594. tikeutaparenkorean: 0x3210,
  28595. tikeutcirclekorean: 0x3262,
  28596. tikeutkorean: 0x3137,
  28597. tikeutparenkorean: 0x3202,
  28598. tilde: 0x02DC,
  28599. tildebelowcmb: 0x0330,
  28600. tildecmb: 0x0303,
  28601. tildecomb: 0x0303,
  28602. tildedoublecmb: 0x0360,
  28603. tildeoperator: 0x223C,
  28604. tildeoverlaycmb: 0x0334,
  28605. tildeverticalcmb: 0x033E,
  28606. timescircle: 0x2297,
  28607. tipehahebrew: 0x0596,
  28608. tipehalefthebrew: 0x0596,
  28609. tippigurmukhi: 0x0A70,
  28610. titlocyrilliccmb: 0x0483,
  28611. tiwnarmenian: 0x057F,
  28612. tlinebelow: 0x1E6F,
  28613. tmonospace: 0xFF54,
  28614. toarmenian: 0x0569,
  28615. tohiragana: 0x3068,
  28616. tokatakana: 0x30C8,
  28617. tokatakanahalfwidth: 0xFF84,
  28618. tonebarextrahighmod: 0x02E5,
  28619. tonebarextralowmod: 0x02E9,
  28620. tonebarhighmod: 0x02E6,
  28621. tonebarlowmod: 0x02E8,
  28622. tonebarmidmod: 0x02E7,
  28623. tonefive: 0x01BD,
  28624. tonesix: 0x0185,
  28625. tonetwo: 0x01A8,
  28626. tonos: 0x0384,
  28627. tonsquare: 0x3327,
  28628. topatakthai: 0x0E0F,
  28629. tortoiseshellbracketleft: 0x3014,
  28630. tortoiseshellbracketleftsmall: 0xFE5D,
  28631. tortoiseshellbracketleftvertical: 0xFE39,
  28632. tortoiseshellbracketright: 0x3015,
  28633. tortoiseshellbracketrightsmall: 0xFE5E,
  28634. tortoiseshellbracketrightvertical: 0xFE3A,
  28635. totaothai: 0x0E15,
  28636. tpalatalhook: 0x01AB,
  28637. tparen: 0x24AF,
  28638. trademark: 0x2122,
  28639. trademarksans: 0xF8EA,
  28640. trademarkserif: 0xF6DB,
  28641. tretroflexhook: 0x0288,
  28642. triagdn: 0x25BC,
  28643. triaglf: 0x25C4,
  28644. triagrt: 0x25BA,
  28645. triagup: 0x25B2,
  28646. ts: 0x02A6,
  28647. tsadi: 0x05E6,
  28648. tsadidagesh: 0xFB46,
  28649. tsadidageshhebrew: 0xFB46,
  28650. tsadihebrew: 0x05E6,
  28651. tsecyrillic: 0x0446,
  28652. tsere: 0x05B5,
  28653. tsere12: 0x05B5,
  28654. tsere1e: 0x05B5,
  28655. tsere2b: 0x05B5,
  28656. tserehebrew: 0x05B5,
  28657. tserenarrowhebrew: 0x05B5,
  28658. tserequarterhebrew: 0x05B5,
  28659. tserewidehebrew: 0x05B5,
  28660. tshecyrillic: 0x045B,
  28661. tsuperior: 0xF6F3,
  28662. ttabengali: 0x099F,
  28663. ttadeva: 0x091F,
  28664. ttagujarati: 0x0A9F,
  28665. ttagurmukhi: 0x0A1F,
  28666. tteharabic: 0x0679,
  28667. ttehfinalarabic: 0xFB67,
  28668. ttehinitialarabic: 0xFB68,
  28669. ttehmedialarabic: 0xFB69,
  28670. tthabengali: 0x09A0,
  28671. tthadeva: 0x0920,
  28672. tthagujarati: 0x0AA0,
  28673. tthagurmukhi: 0x0A20,
  28674. tturned: 0x0287,
  28675. tuhiragana: 0x3064,
  28676. tukatakana: 0x30C4,
  28677. tukatakanahalfwidth: 0xFF82,
  28678. tusmallhiragana: 0x3063,
  28679. tusmallkatakana: 0x30C3,
  28680. tusmallkatakanahalfwidth: 0xFF6F,
  28681. twelvecircle: 0x246B,
  28682. twelveparen: 0x247F,
  28683. twelveperiod: 0x2493,
  28684. twelveroman: 0x217B,
  28685. twentycircle: 0x2473,
  28686. twentyhangzhou: 0x5344,
  28687. twentyparen: 0x2487,
  28688. twentyperiod: 0x249B,
  28689. two: 0x0032,
  28690. twoarabic: 0x0662,
  28691. twobengali: 0x09E8,
  28692. twocircle: 0x2461,
  28693. twocircleinversesansserif: 0x278B,
  28694. twodeva: 0x0968,
  28695. twodotenleader: 0x2025,
  28696. twodotleader: 0x2025,
  28697. twodotleadervertical: 0xFE30,
  28698. twogujarati: 0x0AE8,
  28699. twogurmukhi: 0x0A68,
  28700. twohackarabic: 0x0662,
  28701. twohangzhou: 0x3022,
  28702. twoideographicparen: 0x3221,
  28703. twoinferior: 0x2082,
  28704. twomonospace: 0xFF12,
  28705. twonumeratorbengali: 0x09F5,
  28706. twooldstyle: 0xF732,
  28707. twoparen: 0x2475,
  28708. twoperiod: 0x2489,
  28709. twopersian: 0x06F2,
  28710. tworoman: 0x2171,
  28711. twostroke: 0x01BB,
  28712. twosuperior: 0x00B2,
  28713. twothai: 0x0E52,
  28714. twothirds: 0x2154,
  28715. u: 0x0075,
  28716. uacute: 0x00FA,
  28717. ubar: 0x0289,
  28718. ubengali: 0x0989,
  28719. ubopomofo: 0x3128,
  28720. ubreve: 0x016D,
  28721. ucaron: 0x01D4,
  28722. ucircle: 0x24E4,
  28723. ucircumflex: 0x00FB,
  28724. ucircumflexbelow: 0x1E77,
  28725. ucyrillic: 0x0443,
  28726. udattadeva: 0x0951,
  28727. udblacute: 0x0171,
  28728. udblgrave: 0x0215,
  28729. udeva: 0x0909,
  28730. udieresis: 0x00FC,
  28731. udieresisacute: 0x01D8,
  28732. udieresisbelow: 0x1E73,
  28733. udieresiscaron: 0x01DA,
  28734. udieresiscyrillic: 0x04F1,
  28735. udieresisgrave: 0x01DC,
  28736. udieresismacron: 0x01D6,
  28737. udotbelow: 0x1EE5,
  28738. ugrave: 0x00F9,
  28739. ugujarati: 0x0A89,
  28740. ugurmukhi: 0x0A09,
  28741. uhiragana: 0x3046,
  28742. uhookabove: 0x1EE7,
  28743. uhorn: 0x01B0,
  28744. uhornacute: 0x1EE9,
  28745. uhorndotbelow: 0x1EF1,
  28746. uhorngrave: 0x1EEB,
  28747. uhornhookabove: 0x1EED,
  28748. uhorntilde: 0x1EEF,
  28749. uhungarumlaut: 0x0171,
  28750. uhungarumlautcyrillic: 0x04F3,
  28751. uinvertedbreve: 0x0217,
  28752. ukatakana: 0x30A6,
  28753. ukatakanahalfwidth: 0xFF73,
  28754. ukcyrillic: 0x0479,
  28755. ukorean: 0x315C,
  28756. umacron: 0x016B,
  28757. umacroncyrillic: 0x04EF,
  28758. umacrondieresis: 0x1E7B,
  28759. umatragurmukhi: 0x0A41,
  28760. umonospace: 0xFF55,
  28761. underscore: 0x005F,
  28762. underscoredbl: 0x2017,
  28763. underscoremonospace: 0xFF3F,
  28764. underscorevertical: 0xFE33,
  28765. underscorewavy: 0xFE4F,
  28766. union: 0x222A,
  28767. universal: 0x2200,
  28768. uogonek: 0x0173,
  28769. uparen: 0x24B0,
  28770. upblock: 0x2580,
  28771. upperdothebrew: 0x05C4,
  28772. upsilon: 0x03C5,
  28773. upsilondieresis: 0x03CB,
  28774. upsilondieresistonos: 0x03B0,
  28775. upsilonlatin: 0x028A,
  28776. upsilontonos: 0x03CD,
  28777. uptackbelowcmb: 0x031D,
  28778. uptackmod: 0x02D4,
  28779. uragurmukhi: 0x0A73,
  28780. uring: 0x016F,
  28781. ushortcyrillic: 0x045E,
  28782. usmallhiragana: 0x3045,
  28783. usmallkatakana: 0x30A5,
  28784. usmallkatakanahalfwidth: 0xFF69,
  28785. ustraightcyrillic: 0x04AF,
  28786. ustraightstrokecyrillic: 0x04B1,
  28787. utilde: 0x0169,
  28788. utildeacute: 0x1E79,
  28789. utildebelow: 0x1E75,
  28790. uubengali: 0x098A,
  28791. uudeva: 0x090A,
  28792. uugujarati: 0x0A8A,
  28793. uugurmukhi: 0x0A0A,
  28794. uumatragurmukhi: 0x0A42,
  28795. uuvowelsignbengali: 0x09C2,
  28796. uuvowelsigndeva: 0x0942,
  28797. uuvowelsigngujarati: 0x0AC2,
  28798. uvowelsignbengali: 0x09C1,
  28799. uvowelsigndeva: 0x0941,
  28800. uvowelsigngujarati: 0x0AC1,
  28801. v: 0x0076,
  28802. vadeva: 0x0935,
  28803. vagujarati: 0x0AB5,
  28804. vagurmukhi: 0x0A35,
  28805. vakatakana: 0x30F7,
  28806. vav: 0x05D5,
  28807. vavdagesh: 0xFB35,
  28808. vavdagesh65: 0xFB35,
  28809. vavdageshhebrew: 0xFB35,
  28810. vavhebrew: 0x05D5,
  28811. vavholam: 0xFB4B,
  28812. vavholamhebrew: 0xFB4B,
  28813. vavvavhebrew: 0x05F0,
  28814. vavyodhebrew: 0x05F1,
  28815. vcircle: 0x24E5,
  28816. vdotbelow: 0x1E7F,
  28817. vecyrillic: 0x0432,
  28818. veharabic: 0x06A4,
  28819. vehfinalarabic: 0xFB6B,
  28820. vehinitialarabic: 0xFB6C,
  28821. vehmedialarabic: 0xFB6D,
  28822. vekatakana: 0x30F9,
  28823. venus: 0x2640,
  28824. verticalbar: 0x007C,
  28825. verticallineabovecmb: 0x030D,
  28826. verticallinebelowcmb: 0x0329,
  28827. verticallinelowmod: 0x02CC,
  28828. verticallinemod: 0x02C8,
  28829. vewarmenian: 0x057E,
  28830. vhook: 0x028B,
  28831. vikatakana: 0x30F8,
  28832. viramabengali: 0x09CD,
  28833. viramadeva: 0x094D,
  28834. viramagujarati: 0x0ACD,
  28835. visargabengali: 0x0983,
  28836. visargadeva: 0x0903,
  28837. visargagujarati: 0x0A83,
  28838. vmonospace: 0xFF56,
  28839. voarmenian: 0x0578,
  28840. voicediterationhiragana: 0x309E,
  28841. voicediterationkatakana: 0x30FE,
  28842. voicedmarkkana: 0x309B,
  28843. voicedmarkkanahalfwidth: 0xFF9E,
  28844. vokatakana: 0x30FA,
  28845. vparen: 0x24B1,
  28846. vtilde: 0x1E7D,
  28847. vturned: 0x028C,
  28848. vuhiragana: 0x3094,
  28849. vukatakana: 0x30F4,
  28850. w: 0x0077,
  28851. wacute: 0x1E83,
  28852. waekorean: 0x3159,
  28853. wahiragana: 0x308F,
  28854. wakatakana: 0x30EF,
  28855. wakatakanahalfwidth: 0xFF9C,
  28856. wakorean: 0x3158,
  28857. wasmallhiragana: 0x308E,
  28858. wasmallkatakana: 0x30EE,
  28859. wattosquare: 0x3357,
  28860. wavedash: 0x301C,
  28861. wavyunderscorevertical: 0xFE34,
  28862. wawarabic: 0x0648,
  28863. wawfinalarabic: 0xFEEE,
  28864. wawhamzaabovearabic: 0x0624,
  28865. wawhamzaabovefinalarabic: 0xFE86,
  28866. wbsquare: 0x33DD,
  28867. wcircle: 0x24E6,
  28868. wcircumflex: 0x0175,
  28869. wdieresis: 0x1E85,
  28870. wdotaccent: 0x1E87,
  28871. wdotbelow: 0x1E89,
  28872. wehiragana: 0x3091,
  28873. weierstrass: 0x2118,
  28874. wekatakana: 0x30F1,
  28875. wekorean: 0x315E,
  28876. weokorean: 0x315D,
  28877. wgrave: 0x1E81,
  28878. whitebullet: 0x25E6,
  28879. whitecircle: 0x25CB,
  28880. whitecircleinverse: 0x25D9,
  28881. whitecornerbracketleft: 0x300E,
  28882. whitecornerbracketleftvertical: 0xFE43,
  28883. whitecornerbracketright: 0x300F,
  28884. whitecornerbracketrightvertical: 0xFE44,
  28885. whitediamond: 0x25C7,
  28886. whitediamondcontainingblacksmalldiamond: 0x25C8,
  28887. whitedownpointingsmalltriangle: 0x25BF,
  28888. whitedownpointingtriangle: 0x25BD,
  28889. whiteleftpointingsmalltriangle: 0x25C3,
  28890. whiteleftpointingtriangle: 0x25C1,
  28891. whitelenticularbracketleft: 0x3016,
  28892. whitelenticularbracketright: 0x3017,
  28893. whiterightpointingsmalltriangle: 0x25B9,
  28894. whiterightpointingtriangle: 0x25B7,
  28895. whitesmallsquare: 0x25AB,
  28896. whitesmilingface: 0x263A,
  28897. whitesquare: 0x25A1,
  28898. whitestar: 0x2606,
  28899. whitetelephone: 0x260F,
  28900. whitetortoiseshellbracketleft: 0x3018,
  28901. whitetortoiseshellbracketright: 0x3019,
  28902. whiteuppointingsmalltriangle: 0x25B5,
  28903. whiteuppointingtriangle: 0x25B3,
  28904. wihiragana: 0x3090,
  28905. wikatakana: 0x30F0,
  28906. wikorean: 0x315F,
  28907. wmonospace: 0xFF57,
  28908. wohiragana: 0x3092,
  28909. wokatakana: 0x30F2,
  28910. wokatakanahalfwidth: 0xFF66,
  28911. won: 0x20A9,
  28912. wonmonospace: 0xFFE6,
  28913. wowaenthai: 0x0E27,
  28914. wparen: 0x24B2,
  28915. wring: 0x1E98,
  28916. wsuperior: 0x02B7,
  28917. wturned: 0x028D,
  28918. wynn: 0x01BF,
  28919. x: 0x0078,
  28920. xabovecmb: 0x033D,
  28921. xbopomofo: 0x3112,
  28922. xcircle: 0x24E7,
  28923. xdieresis: 0x1E8D,
  28924. xdotaccent: 0x1E8B,
  28925. xeharmenian: 0x056D,
  28926. xi: 0x03BE,
  28927. xmonospace: 0xFF58,
  28928. xparen: 0x24B3,
  28929. xsuperior: 0x02E3,
  28930. y: 0x0079,
  28931. yaadosquare: 0x334E,
  28932. yabengali: 0x09AF,
  28933. yacute: 0x00FD,
  28934. yadeva: 0x092F,
  28935. yaekorean: 0x3152,
  28936. yagujarati: 0x0AAF,
  28937. yagurmukhi: 0x0A2F,
  28938. yahiragana: 0x3084,
  28939. yakatakana: 0x30E4,
  28940. yakatakanahalfwidth: 0xFF94,
  28941. yakorean: 0x3151,
  28942. yamakkanthai: 0x0E4E,
  28943. yasmallhiragana: 0x3083,
  28944. yasmallkatakana: 0x30E3,
  28945. yasmallkatakanahalfwidth: 0xFF6C,
  28946. yatcyrillic: 0x0463,
  28947. ycircle: 0x24E8,
  28948. ycircumflex: 0x0177,
  28949. ydieresis: 0x00FF,
  28950. ydotaccent: 0x1E8F,
  28951. ydotbelow: 0x1EF5,
  28952. yeharabic: 0x064A,
  28953. yehbarreearabic: 0x06D2,
  28954. yehbarreefinalarabic: 0xFBAF,
  28955. yehfinalarabic: 0xFEF2,
  28956. yehhamzaabovearabic: 0x0626,
  28957. yehhamzaabovefinalarabic: 0xFE8A,
  28958. yehhamzaaboveinitialarabic: 0xFE8B,
  28959. yehhamzaabovemedialarabic: 0xFE8C,
  28960. yehinitialarabic: 0xFEF3,
  28961. yehmedialarabic: 0xFEF4,
  28962. yehmeeminitialarabic: 0xFCDD,
  28963. yehmeemisolatedarabic: 0xFC58,
  28964. yehnoonfinalarabic: 0xFC94,
  28965. yehthreedotsbelowarabic: 0x06D1,
  28966. yekorean: 0x3156,
  28967. yen: 0x00A5,
  28968. yenmonospace: 0xFFE5,
  28969. yeokorean: 0x3155,
  28970. yeorinhieuhkorean: 0x3186,
  28971. yerahbenyomohebrew: 0x05AA,
  28972. yerahbenyomolefthebrew: 0x05AA,
  28973. yericyrillic: 0x044B,
  28974. yerudieresiscyrillic: 0x04F9,
  28975. yesieungkorean: 0x3181,
  28976. yesieungpansioskorean: 0x3183,
  28977. yesieungsioskorean: 0x3182,
  28978. yetivhebrew: 0x059A,
  28979. ygrave: 0x1EF3,
  28980. yhook: 0x01B4,
  28981. yhookabove: 0x1EF7,
  28982. yiarmenian: 0x0575,
  28983. yicyrillic: 0x0457,
  28984. yikorean: 0x3162,
  28985. yinyang: 0x262F,
  28986. yiwnarmenian: 0x0582,
  28987. ymonospace: 0xFF59,
  28988. yod: 0x05D9,
  28989. yoddagesh: 0xFB39,
  28990. yoddageshhebrew: 0xFB39,
  28991. yodhebrew: 0x05D9,
  28992. yodyodhebrew: 0x05F2,
  28993. yodyodpatahhebrew: 0xFB1F,
  28994. yohiragana: 0x3088,
  28995. yoikorean: 0x3189,
  28996. yokatakana: 0x30E8,
  28997. yokatakanahalfwidth: 0xFF96,
  28998. yokorean: 0x315B,
  28999. yosmallhiragana: 0x3087,
  29000. yosmallkatakana: 0x30E7,
  29001. yosmallkatakanahalfwidth: 0xFF6E,
  29002. yotgreek: 0x03F3,
  29003. yoyaekorean: 0x3188,
  29004. yoyakorean: 0x3187,
  29005. yoyakthai: 0x0E22,
  29006. yoyingthai: 0x0E0D,
  29007. yparen: 0x24B4,
  29008. ypogegrammeni: 0x037A,
  29009. ypogegrammenigreekcmb: 0x0345,
  29010. yr: 0x01A6,
  29011. yring: 0x1E99,
  29012. ysuperior: 0x02B8,
  29013. ytilde: 0x1EF9,
  29014. yturned: 0x028E,
  29015. yuhiragana: 0x3086,
  29016. yuikorean: 0x318C,
  29017. yukatakana: 0x30E6,
  29018. yukatakanahalfwidth: 0xFF95,
  29019. yukorean: 0x3160,
  29020. yusbigcyrillic: 0x046B,
  29021. yusbigiotifiedcyrillic: 0x046D,
  29022. yuslittlecyrillic: 0x0467,
  29023. yuslittleiotifiedcyrillic: 0x0469,
  29024. yusmallhiragana: 0x3085,
  29025. yusmallkatakana: 0x30E5,
  29026. yusmallkatakanahalfwidth: 0xFF6D,
  29027. yuyekorean: 0x318B,
  29028. yuyeokorean: 0x318A,
  29029. yyabengali: 0x09DF,
  29030. yyadeva: 0x095F,
  29031. z: 0x007A,
  29032. zaarmenian: 0x0566,
  29033. zacute: 0x017A,
  29034. zadeva: 0x095B,
  29035. zagurmukhi: 0x0A5B,
  29036. zaharabic: 0x0638,
  29037. zahfinalarabic: 0xFEC6,
  29038. zahinitialarabic: 0xFEC7,
  29039. zahiragana: 0x3056,
  29040. zahmedialarabic: 0xFEC8,
  29041. zainarabic: 0x0632,
  29042. zainfinalarabic: 0xFEB0,
  29043. zakatakana: 0x30B6,
  29044. zaqefgadolhebrew: 0x0595,
  29045. zaqefqatanhebrew: 0x0594,
  29046. zarqahebrew: 0x0598,
  29047. zayin: 0x05D6,
  29048. zayindagesh: 0xFB36,
  29049. zayindageshhebrew: 0xFB36,
  29050. zayinhebrew: 0x05D6,
  29051. zbopomofo: 0x3117,
  29052. zcaron: 0x017E,
  29053. zcircle: 0x24E9,
  29054. zcircumflex: 0x1E91,
  29055. zcurl: 0x0291,
  29056. zdot: 0x017C,
  29057. zdotaccent: 0x017C,
  29058. zdotbelow: 0x1E93,
  29059. zecyrillic: 0x0437,
  29060. zedescendercyrillic: 0x0499,
  29061. zedieresiscyrillic: 0x04DF,
  29062. zehiragana: 0x305C,
  29063. zekatakana: 0x30BC,
  29064. zero: 0x0030,
  29065. zeroarabic: 0x0660,
  29066. zerobengali: 0x09E6,
  29067. zerodeva: 0x0966,
  29068. zerogujarati: 0x0AE6,
  29069. zerogurmukhi: 0x0A66,
  29070. zerohackarabic: 0x0660,
  29071. zeroinferior: 0x2080,
  29072. zeromonospace: 0xFF10,
  29073. zerooldstyle: 0xF730,
  29074. zeropersian: 0x06F0,
  29075. zerosuperior: 0x2070,
  29076. zerothai: 0x0E50,
  29077. zerowidthjoiner: 0xFEFF,
  29078. zerowidthnonjoiner: 0x200C,
  29079. zerowidthspace: 0x200B,
  29080. zeta: 0x03B6,
  29081. zhbopomofo: 0x3113,
  29082. zhearmenian: 0x056A,
  29083. zhebrevecyrillic: 0x04C2,
  29084. zhecyrillic: 0x0436,
  29085. zhedescendercyrillic: 0x0497,
  29086. zhedieresiscyrillic: 0x04DD,
  29087. zihiragana: 0x3058,
  29088. zikatakana: 0x30B8,
  29089. zinorhebrew: 0x05AE,
  29090. zlinebelow: 0x1E95,
  29091. zmonospace: 0xFF5A,
  29092. zohiragana: 0x305E,
  29093. zokatakana: 0x30BE,
  29094. zparen: 0x24B5,
  29095. zretroflexhook: 0x0290,
  29096. zstroke: 0x01B6,
  29097. zuhiragana: 0x305A,
  29098. zukatakana: 0x30BA,
  29099. '.notdef': 0x0000
  29100. };
  29101. var PDFImage = (function PDFImageClosure() {
  29102. /**
  29103. * Decode the image in the main thread if it supported. Resovles the promise
  29104. * when the image data is ready.
  29105. */
  29106. function handleImageData(handler, xref, res, image) {
  29107. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  29108. // For natively supported jpegs send them to the main thread for decoding.
  29109. var dict = image.dict;
  29110. var colorSpace = dict.get('ColorSpace', 'CS');
  29111. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  29112. var numComps = colorSpace.numComps;
  29113. var decodePromise = handler.sendWithPromise('JpegDecode',
  29114. [image.getIR(), numComps]);
  29115. return decodePromise.then(function (message) {
  29116. var data = message.data;
  29117. return new Stream(data, 0, data.length, image.dict);
  29118. });
  29119. } else {
  29120. return Promise.resolve(image);
  29121. }
  29122. }
  29123. /**
  29124. * Decode and clamp a value. The formula is different from the spec because we
  29125. * don't decode to float range [0,1], we decode it in the [0,max] range.
  29126. */
  29127. function decodeAndClamp(value, addend, coefficient, max) {
  29128. value = addend + value * coefficient;
  29129. // Clamp the value to the range
  29130. return (value < 0 ? 0 : (value > max ? max : value));
  29131. }
  29132. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  29133. this.image = image;
  29134. var dict = image.dict;
  29135. if (dict.has('Filter')) {
  29136. var filter = dict.get('Filter').name;
  29137. if (filter === 'JPXDecode') {
  29138. var jpxImage = new JpxImage();
  29139. jpxImage.parseImageProperties(image.stream);
  29140. image.stream.reset();
  29141. image.bitsPerComponent = jpxImage.bitsPerComponent;
  29142. image.numComps = jpxImage.componentsCount;
  29143. } else if (filter === 'JBIG2Decode') {
  29144. image.bitsPerComponent = 1;
  29145. image.numComps = 1;
  29146. }
  29147. }
  29148. // TODO cache rendered images?
  29149. this.width = dict.get('Width', 'W');
  29150. this.height = dict.get('Height', 'H');
  29151. if (this.width < 1 || this.height < 1) {
  29152. error('Invalid image width: ' + this.width + ' or height: ' +
  29153. this.height);
  29154. }
  29155. this.interpolate = dict.get('Interpolate', 'I') || false;
  29156. this.imageMask = dict.get('ImageMask', 'IM') || false;
  29157. this.matte = dict.get('Matte') || false;
  29158. var bitsPerComponent = image.bitsPerComponent;
  29159. if (!bitsPerComponent) {
  29160. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  29161. if (!bitsPerComponent) {
  29162. if (this.imageMask) {
  29163. bitsPerComponent = 1;
  29164. } else {
  29165. error('Bits per component missing in image: ' + this.imageMask);
  29166. }
  29167. }
  29168. }
  29169. this.bpc = bitsPerComponent;
  29170. if (!this.imageMask) {
  29171. var colorSpace = dict.get('ColorSpace', 'CS');
  29172. if (!colorSpace) {
  29173. info('JPX images (which do not require color spaces)');
  29174. switch (image.numComps) {
  29175. case 1:
  29176. colorSpace = Name.get('DeviceGray');
  29177. break;
  29178. case 3:
  29179. colorSpace = Name.get('DeviceRGB');
  29180. break;
  29181. case 4:
  29182. colorSpace = Name.get('DeviceCMYK');
  29183. break;
  29184. default:
  29185. error('JPX images with ' + this.numComps +
  29186. ' color components not supported.');
  29187. }
  29188. }
  29189. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  29190. this.numComps = this.colorSpace.numComps;
  29191. }
  29192. this.decode = dict.get('Decode', 'D');
  29193. this.needsDecode = false;
  29194. if (this.decode &&
  29195. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  29196. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  29197. this.needsDecode = true;
  29198. // Do some preprocessing to avoid more math.
  29199. var max = (1 << bitsPerComponent) - 1;
  29200. this.decodeCoefficients = [];
  29201. this.decodeAddends = [];
  29202. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  29203. var dmin = this.decode[i];
  29204. var dmax = this.decode[i + 1];
  29205. this.decodeCoefficients[j] = dmax - dmin;
  29206. this.decodeAddends[j] = max * dmin;
  29207. }
  29208. }
  29209. if (smask) {
  29210. this.smask = new PDFImage(xref, res, smask, false);
  29211. } else if (mask) {
  29212. if (isStream(mask)) {
  29213. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  29214. } else {
  29215. // Color key mask (just an array).
  29216. this.mask = mask;
  29217. }
  29218. }
  29219. }
  29220. /**
  29221. * Handles processing of image data and returns the Promise that is resolved
  29222. * with a PDFImage when the image is ready to be used.
  29223. */
  29224. PDFImage.buildImage = function PDFImage_buildImage(handler, xref,
  29225. res, image, inline) {
  29226. var imagePromise = handleImageData(handler, xref, res, image);
  29227. var smaskPromise;
  29228. var maskPromise;
  29229. var smask = image.dict.get('SMask');
  29230. var mask = image.dict.get('Mask');
  29231. if (smask) {
  29232. smaskPromise = handleImageData(handler, xref, res, smask);
  29233. maskPromise = Promise.resolve(null);
  29234. } else {
  29235. smaskPromise = Promise.resolve(null);
  29236. if (mask) {
  29237. if (isStream(mask)) {
  29238. maskPromise = handleImageData(handler, xref, res, mask);
  29239. } else if (isArray(mask)) {
  29240. maskPromise = Promise.resolve(mask);
  29241. } else {
  29242. warn('Unsupported mask format.');
  29243. maskPromise = Promise.resolve(null);
  29244. }
  29245. } else {
  29246. maskPromise = Promise.resolve(null);
  29247. }
  29248. }
  29249. return Promise.all([imagePromise, smaskPromise, maskPromise]).then(
  29250. function(results) {
  29251. var imageData = results[0];
  29252. var smaskData = results[1];
  29253. var maskData = results[2];
  29254. return new PDFImage(xref, res, imageData, inline, smaskData, maskData);
  29255. });
  29256. };
  29257. /**
  29258. * Resize an image using the nearest neighbor algorithm. Currently only
  29259. * supports one and three component images.
  29260. * @param {TypedArray} pixels The original image with one component.
  29261. * @param {Number} bpc Number of bits per component.
  29262. * @param {Number} components Number of color components, 1 or 3 is supported.
  29263. * @param {Number} w1 Original width.
  29264. * @param {Number} h1 Original height.
  29265. * @param {Number} w2 New width.
  29266. * @param {Number} h2 New height.
  29267. * @param {TypedArray} dest (Optional) The destination buffer.
  29268. * @param {Number} alpha01 (Optional) Size reserved for the alpha channel.
  29269. * @return {TypedArray} Resized image data.
  29270. */
  29271. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  29272. w1, h1, w2, h2, dest, alpha01) {
  29273. if (components !== 1 && components !== 3) {
  29274. error('Unsupported component count for resizing.');
  29275. }
  29276. var length = w2 * h2 * components;
  29277. var temp = dest ? dest : (bpc <= 8 ? new Uint8Array(length) :
  29278. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  29279. var xRatio = w1 / w2;
  29280. var yRatio = h1 / h2;
  29281. var i, j, py, newIndex = 0, oldIndex;
  29282. var xScaled = new Uint16Array(w2);
  29283. var w1Scanline = w1 * components;
  29284. if (alpha01 !== 1) {
  29285. alpha01 = 0;
  29286. }
  29287. for (j = 0; j < w2; j++) {
  29288. xScaled[j] = Math.floor(j * xRatio) * components;
  29289. }
  29290. if (components === 1) {
  29291. for (i = 0; i < h2; i++) {
  29292. py = Math.floor(i * yRatio) * w1Scanline;
  29293. for (j = 0; j < w2; j++) {
  29294. oldIndex = py + xScaled[j];
  29295. temp[newIndex++] = pixels[oldIndex];
  29296. }
  29297. }
  29298. } else if (components === 3) {
  29299. for (i = 0; i < h2; i++) {
  29300. py = Math.floor(i * yRatio) * w1Scanline;
  29301. for (j = 0; j < w2; j++) {
  29302. oldIndex = py + xScaled[j];
  29303. temp[newIndex++] = pixels[oldIndex++];
  29304. temp[newIndex++] = pixels[oldIndex++];
  29305. temp[newIndex++] = pixels[oldIndex++];
  29306. newIndex += alpha01;
  29307. }
  29308. }
  29309. }
  29310. return temp;
  29311. };
  29312. PDFImage.createMask =
  29313. function PDFImage_createMask(imgArray, width, height, canTransfer,
  29314. inverseDecode) {
  29315. // If imgArray came from a DecodeStream, we're safe to transfer it.
  29316. // Otherwise, copy it.
  29317. var actualLength = imgArray.byteLength;
  29318. var data;
  29319. if (canTransfer) {
  29320. data = imgArray;
  29321. } else {
  29322. data = new Uint8Array(actualLength);
  29323. data.set(imgArray);
  29324. }
  29325. // Invert if necessary. It's safe to modify the array -- whether it's the
  29326. // original or a copy, we're about to transfer it anyway, so nothing else
  29327. // in this thread can be relying on its contents.
  29328. if (inverseDecode) {
  29329. for (var i = 0; i < actualLength; i++) {
  29330. data[i] = ~data[i];
  29331. }
  29332. }
  29333. return {data: data, width: width, height: height};
  29334. };
  29335. PDFImage.prototype = {
  29336. get drawWidth() {
  29337. return Math.max(this.width,
  29338. this.smask && this.smask.width || 0,
  29339. this.mask && this.mask.width || 0);
  29340. },
  29341. get drawHeight() {
  29342. return Math.max(this.height,
  29343. this.smask && this.smask.height || 0,
  29344. this.mask && this.mask.height || 0);
  29345. },
  29346. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  29347. var bpc = this.bpc;
  29348. var numComps = this.numComps;
  29349. var decodeAddends = this.decodeAddends;
  29350. var decodeCoefficients = this.decodeCoefficients;
  29351. var max = (1 << bpc) - 1;
  29352. var i, ii;
  29353. if (bpc === 1) {
  29354. // If the buffer needed decode that means it just needs to be inverted.
  29355. for (i = 0, ii = buffer.length; i < ii; i++) {
  29356. buffer[i] = +!(buffer[i]);
  29357. }
  29358. return;
  29359. }
  29360. var index = 0;
  29361. for (i = 0, ii = this.width * this.height; i < ii; i++) {
  29362. for (var j = 0; j < numComps; j++) {
  29363. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  29364. decodeCoefficients[j], max);
  29365. index++;
  29366. }
  29367. }
  29368. },
  29369. getComponents: function PDFImage_getComponents(buffer) {
  29370. var bpc = this.bpc;
  29371. // This image doesn't require any extra work.
  29372. if (bpc === 8) {
  29373. return buffer;
  29374. }
  29375. var width = this.width;
  29376. var height = this.height;
  29377. var numComps = this.numComps;
  29378. var length = width * height * numComps;
  29379. var bufferPos = 0;
  29380. var output = (bpc <= 8 ? new Uint8Array(length) :
  29381. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  29382. var rowComps = width * numComps;
  29383. var max = (1 << bpc) - 1;
  29384. var i = 0, ii, buf;
  29385. if (bpc === 1) {
  29386. // Optimization for reading 1 bpc images.
  29387. var mask, loop1End, loop2End;
  29388. for (var j = 0; j < height; j++) {
  29389. loop1End = i + (rowComps & ~7);
  29390. loop2End = i + rowComps;
  29391. // unroll loop for all full bytes
  29392. while (i < loop1End) {
  29393. buf = buffer[bufferPos++];
  29394. output[i] = (buf >> 7) & 1;
  29395. output[i + 1] = (buf >> 6) & 1;
  29396. output[i + 2] = (buf >> 5) & 1;
  29397. output[i + 3] = (buf >> 4) & 1;
  29398. output[i + 4] = (buf >> 3) & 1;
  29399. output[i + 5] = (buf >> 2) & 1;
  29400. output[i + 6] = (buf >> 1) & 1;
  29401. output[i + 7] = buf & 1;
  29402. i += 8;
  29403. }
  29404. // handle remaing bits
  29405. if (i < loop2End) {
  29406. buf = buffer[bufferPos++];
  29407. mask = 128;
  29408. while (i < loop2End) {
  29409. output[i++] = +!!(buf & mask);
  29410. mask >>= 1;
  29411. }
  29412. }
  29413. }
  29414. } else {
  29415. // The general case that handles all other bpc values.
  29416. var bits = 0;
  29417. buf = 0;
  29418. for (i = 0, ii = length; i < ii; ++i) {
  29419. if (i % rowComps === 0) {
  29420. buf = 0;
  29421. bits = 0;
  29422. }
  29423. while (bits < bpc) {
  29424. buf = (buf << 8) | buffer[bufferPos++];
  29425. bits += 8;
  29426. }
  29427. var remainingBits = bits - bpc;
  29428. var value = buf >> remainingBits;
  29429. output[i] = (value < 0 ? 0 : (value > max ? max : value));
  29430. buf = buf & ((1 << remainingBits) - 1);
  29431. bits = remainingBits;
  29432. }
  29433. }
  29434. return output;
  29435. },
  29436. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  29437. actualHeight, image) {
  29438. var smask = this.smask;
  29439. var mask = this.mask;
  29440. var alphaBuf, sw, sh, i, ii, j;
  29441. if (smask) {
  29442. sw = smask.width;
  29443. sh = smask.height;
  29444. alphaBuf = new Uint8Array(sw * sh);
  29445. smask.fillGrayBuffer(alphaBuf);
  29446. if (sw != width || sh != height) {
  29447. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  29448. height);
  29449. }
  29450. } else if (mask) {
  29451. if (mask instanceof PDFImage) {
  29452. sw = mask.width;
  29453. sh = mask.height;
  29454. alphaBuf = new Uint8Array(sw * sh);
  29455. mask.numComps = 1;
  29456. mask.fillGrayBuffer(alphaBuf);
  29457. // Need to invert values in rgbaBuf
  29458. for (i = 0, ii = sw * sh; i < ii; ++i) {
  29459. alphaBuf[i] = 255 - alphaBuf[i];
  29460. }
  29461. if (sw != width || sh != height) {
  29462. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  29463. height);
  29464. }
  29465. } else if (isArray(mask)) {
  29466. // Color key mask: if any of the compontents are outside the range
  29467. // then they should be painted.
  29468. alphaBuf = new Uint8Array(width * height);
  29469. var numComps = this.numComps;
  29470. for (i = 0, ii = width * height; i < ii; ++i) {
  29471. var opacity = 0;
  29472. var imageOffset = i * numComps;
  29473. for (j = 0; j < numComps; ++j) {
  29474. var color = image[imageOffset + j];
  29475. var maskOffset = j * 2;
  29476. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  29477. opacity = 255;
  29478. break;
  29479. }
  29480. }
  29481. alphaBuf[i] = opacity;
  29482. }
  29483. } else {
  29484. error('Unknown mask format.');
  29485. }
  29486. }
  29487. if (alphaBuf) {
  29488. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29489. rgbaBuf[j] = alphaBuf[i];
  29490. }
  29491. } else {
  29492. // No mask.
  29493. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29494. rgbaBuf[j] = 255;
  29495. }
  29496. }
  29497. },
  29498. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  29499. var matte = this.smask && this.smask.matte;
  29500. if (!matte) {
  29501. return;
  29502. }
  29503. var matteRgb = this.colorSpace.getRgb(matte, 0);
  29504. var matteR = matteRgb[0];
  29505. var matteG = matteRgb[1];
  29506. var matteB = matteRgb[2];
  29507. var length = width * height * 4;
  29508. var r, g, b;
  29509. for (var i = 0; i < length; i += 4) {
  29510. var alpha = buffer[i + 3];
  29511. if (alpha === 0) {
  29512. // according formula we have to get Infinity in all components
  29513. // making it white (typical paper color) should be okay
  29514. buffer[i] = 255;
  29515. buffer[i + 1] = 255;
  29516. buffer[i + 2] = 255;
  29517. continue;
  29518. }
  29519. var k = 255 / alpha;
  29520. r = (buffer[i] - matteR) * k + matteR;
  29521. g = (buffer[i + 1] - matteG) * k + matteG;
  29522. b = (buffer[i + 2] - matteB) * k + matteB;
  29523. buffer[i] = r <= 0 ? 0 : r >= 255 ? 255 : r | 0;
  29524. buffer[i + 1] = g <= 0 ? 0 : g >= 255 ? 255 : g | 0;
  29525. buffer[i + 2] = b <= 0 ? 0 : b >= 255 ? 255 : b | 0;
  29526. }
  29527. },
  29528. createImageData: function PDFImage_createImageData(forceRGBA) {
  29529. var drawWidth = this.drawWidth;
  29530. var drawHeight = this.drawHeight;
  29531. var imgData = { // other fields are filled in below
  29532. width: drawWidth,
  29533. height: drawHeight
  29534. };
  29535. var numComps = this.numComps;
  29536. var originalWidth = this.width;
  29537. var originalHeight = this.height;
  29538. var bpc = this.bpc;
  29539. // Rows start at byte boundary.
  29540. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  29541. var imgArray;
  29542. if (!forceRGBA) {
  29543. // If it is a 1-bit-per-pixel grayscale (i.e. black-and-white) image
  29544. // without any complications, we pass a same-sized copy to the main
  29545. // thread rather than expanding by 32x to RGBA form. This saves *lots*
  29546. // of memory for many scanned documents. It's also much faster.
  29547. //
  29548. // Similarly, if it is a 24-bit-per pixel RGB image without any
  29549. // complications, we avoid expanding by 1.333x to RGBA form.
  29550. var kind;
  29551. if (this.colorSpace.name === 'DeviceGray' && bpc === 1) {
  29552. kind = ImageKind.GRAYSCALE_1BPP;
  29553. } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8) {
  29554. kind = ImageKind.RGB_24BPP;
  29555. }
  29556. if (kind && !this.smask && !this.mask && !this.needsDecode &&
  29557. drawWidth === originalWidth && drawHeight === originalHeight) {
  29558. imgData.kind = kind;
  29559. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29560. // If imgArray came from a DecodeStream, we're safe to transfer it
  29561. // (and thus neuter it) because it will constitute the entire
  29562. // DecodeStream's data. But if it came from a Stream, we need to
  29563. // copy it because it'll only be a portion of the Stream's data, and
  29564. // the rest will be read later on.
  29565. if (this.image instanceof DecodeStream) {
  29566. imgData.data = imgArray;
  29567. } else {
  29568. var newArray = new Uint8Array(imgArray.length);
  29569. newArray.set(imgArray);
  29570. imgData.data = newArray;
  29571. }
  29572. return imgData;
  29573. }
  29574. }
  29575. if (this.image instanceof JpegStream) {
  29576. imgData.kind = ImageKind.RGB_24BPP;
  29577. imgData.data = this.getImageBytes(originalHeight * rowBytes,
  29578. drawWidth, drawHeight);
  29579. return imgData;
  29580. }
  29581. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29582. // imgArray can be incomplete (e.g. after CCITT fax encoding).
  29583. var actualHeight = 0 | (imgArray.length / rowBytes *
  29584. drawHeight / originalHeight);
  29585. var comps = this.getComponents(imgArray);
  29586. // If opacity data is present, use RGBA_32BPP form. Otherwise, use the
  29587. // more compact RGB_24BPP form if allowable.
  29588. var alpha01, maybeUndoPreblend;
  29589. if (!forceRGBA && !this.smask && !this.mask) {
  29590. imgData.kind = ImageKind.RGB_24BPP;
  29591. imgData.data = new Uint8Array(drawWidth * drawHeight * 3);
  29592. alpha01 = 0;
  29593. maybeUndoPreblend = false;
  29594. } else {
  29595. imgData.kind = ImageKind.RGBA_32BPP;
  29596. imgData.data = new Uint8Array(drawWidth * drawHeight * 4);
  29597. alpha01 = 1;
  29598. maybeUndoPreblend = true;
  29599. // Color key masking (opacity) must be performed before decoding.
  29600. this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight,
  29601. comps);
  29602. }
  29603. if (this.needsDecode) {
  29604. this.decodeBuffer(comps);
  29605. }
  29606. this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight,
  29607. drawWidth, drawHeight, actualHeight, bpc, comps,
  29608. alpha01);
  29609. if (maybeUndoPreblend) {
  29610. this.undoPreblend(imgData.data, drawWidth, actualHeight);
  29611. }
  29612. return imgData;
  29613. },
  29614. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  29615. var numComps = this.numComps;
  29616. if (numComps != 1) {
  29617. error('Reading gray scale from a color image: ' + numComps);
  29618. }
  29619. var width = this.width;
  29620. var height = this.height;
  29621. var bpc = this.bpc;
  29622. // rows start at byte boundary
  29623. var rowBytes = (width * numComps * bpc + 7) >> 3;
  29624. var imgArray = this.getImageBytes(height * rowBytes);
  29625. var comps = this.getComponents(imgArray);
  29626. var i, length;
  29627. if (bpc === 1) {
  29628. // inline decoding (= inversion) for 1 bpc images
  29629. length = width * height;
  29630. if (this.needsDecode) {
  29631. // invert and scale to {0, 255}
  29632. for (i = 0; i < length; ++i) {
  29633. buffer[i] = (comps[i] - 1) & 255;
  29634. }
  29635. } else {
  29636. // scale to {0, 255}
  29637. for (i = 0; i < length; ++i) {
  29638. buffer[i] = (-comps[i]) & 255;
  29639. }
  29640. }
  29641. return;
  29642. }
  29643. if (this.needsDecode) {
  29644. this.decodeBuffer(comps);
  29645. }
  29646. length = width * height;
  29647. // we aren't using a colorspace so we need to scale the value
  29648. var scale = 255 / ((1 << bpc) - 1);
  29649. for (i = 0; i < length; ++i) {
  29650. buffer[i] = (scale * comps[i]) | 0;
  29651. }
  29652. },
  29653. getImageBytes: function PDFImage_getImageBytes(length,
  29654. drawWidth, drawHeight) {
  29655. this.image.reset();
  29656. this.image.drawWidth = drawWidth;
  29657. this.image.drawHeight = drawHeight;
  29658. return this.image.getBytes(length);
  29659. }
  29660. };
  29661. return PDFImage;
  29662. })();
  29663. // The Metrics object contains glyph widths (in glyph space units).
  29664. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  29665. // space unit corresponds to 1/1000th of text space unit.
  29666. var Metrics = {
  29667. 'Courier': 600,
  29668. 'Courier-Bold': 600,
  29669. 'Courier-BoldOblique': 600,
  29670. 'Courier-Oblique': 600,
  29671. 'Helvetica' : {
  29672. 'space': 278,
  29673. 'exclam': 278,
  29674. 'quotedbl': 355,
  29675. 'numbersign': 556,
  29676. 'dollar': 556,
  29677. 'percent': 889,
  29678. 'ampersand': 667,
  29679. 'quoteright': 222,
  29680. 'parenleft': 333,
  29681. 'parenright': 333,
  29682. 'asterisk': 389,
  29683. 'plus': 584,
  29684. 'comma': 278,
  29685. 'hyphen': 333,
  29686. 'period': 278,
  29687. 'slash': 278,
  29688. 'zero': 556,
  29689. 'one': 556,
  29690. 'two': 556,
  29691. 'three': 556,
  29692. 'four': 556,
  29693. 'five': 556,
  29694. 'six': 556,
  29695. 'seven': 556,
  29696. 'eight': 556,
  29697. 'nine': 556,
  29698. 'colon': 278,
  29699. 'semicolon': 278,
  29700. 'less': 584,
  29701. 'equal': 584,
  29702. 'greater': 584,
  29703. 'question': 556,
  29704. 'at': 1015,
  29705. 'A': 667,
  29706. 'B': 667,
  29707. 'C': 722,
  29708. 'D': 722,
  29709. 'E': 667,
  29710. 'F': 611,
  29711. 'G': 778,
  29712. 'H': 722,
  29713. 'I': 278,
  29714. 'J': 500,
  29715. 'K': 667,
  29716. 'L': 556,
  29717. 'M': 833,
  29718. 'N': 722,
  29719. 'O': 778,
  29720. 'P': 667,
  29721. 'Q': 778,
  29722. 'R': 722,
  29723. 'S': 667,
  29724. 'T': 611,
  29725. 'U': 722,
  29726. 'V': 667,
  29727. 'W': 944,
  29728. 'X': 667,
  29729. 'Y': 667,
  29730. 'Z': 611,
  29731. 'bracketleft': 278,
  29732. 'backslash': 278,
  29733. 'bracketright': 278,
  29734. 'asciicircum': 469,
  29735. 'underscore': 556,
  29736. 'quoteleft': 222,
  29737. 'a': 556,
  29738. 'b': 556,
  29739. 'c': 500,
  29740. 'd': 556,
  29741. 'e': 556,
  29742. 'f': 278,
  29743. 'g': 556,
  29744. 'h': 556,
  29745. 'i': 222,
  29746. 'j': 222,
  29747. 'k': 500,
  29748. 'l': 222,
  29749. 'm': 833,
  29750. 'n': 556,
  29751. 'o': 556,
  29752. 'p': 556,
  29753. 'q': 556,
  29754. 'r': 333,
  29755. 's': 500,
  29756. 't': 278,
  29757. 'u': 556,
  29758. 'v': 500,
  29759. 'w': 722,
  29760. 'x': 500,
  29761. 'y': 500,
  29762. 'z': 500,
  29763. 'braceleft': 334,
  29764. 'bar': 260,
  29765. 'braceright': 334,
  29766. 'asciitilde': 584,
  29767. 'exclamdown': 333,
  29768. 'cent': 556,
  29769. 'sterling': 556,
  29770. 'fraction': 167,
  29771. 'yen': 556,
  29772. 'florin': 556,
  29773. 'section': 556,
  29774. 'currency': 556,
  29775. 'quotesingle': 191,
  29776. 'quotedblleft': 333,
  29777. 'guillemotleft': 556,
  29778. 'guilsinglleft': 333,
  29779. 'guilsinglright': 333,
  29780. 'fi': 500,
  29781. 'fl': 500,
  29782. 'endash': 556,
  29783. 'dagger': 556,
  29784. 'daggerdbl': 556,
  29785. 'periodcentered': 278,
  29786. 'paragraph': 537,
  29787. 'bullet': 350,
  29788. 'quotesinglbase': 222,
  29789. 'quotedblbase': 333,
  29790. 'quotedblright': 333,
  29791. 'guillemotright': 556,
  29792. 'ellipsis': 1000,
  29793. 'perthousand': 1000,
  29794. 'questiondown': 611,
  29795. 'grave': 333,
  29796. 'acute': 333,
  29797. 'circumflex': 333,
  29798. 'tilde': 333,
  29799. 'macron': 333,
  29800. 'breve': 333,
  29801. 'dotaccent': 333,
  29802. 'dieresis': 333,
  29803. 'ring': 333,
  29804. 'cedilla': 333,
  29805. 'hungarumlaut': 333,
  29806. 'ogonek': 333,
  29807. 'caron': 333,
  29808. 'emdash': 1000,
  29809. 'AE': 1000,
  29810. 'ordfeminine': 370,
  29811. 'Lslash': 556,
  29812. 'Oslash': 778,
  29813. 'OE': 1000,
  29814. 'ordmasculine': 365,
  29815. 'ae': 889,
  29816. 'dotlessi': 278,
  29817. 'lslash': 222,
  29818. 'oslash': 611,
  29819. 'oe': 944,
  29820. 'germandbls': 611,
  29821. 'Idieresis': 278,
  29822. 'eacute': 556,
  29823. 'abreve': 556,
  29824. 'uhungarumlaut': 556,
  29825. 'ecaron': 556,
  29826. 'Ydieresis': 667,
  29827. 'divide': 584,
  29828. 'Yacute': 667,
  29829. 'Acircumflex': 667,
  29830. 'aacute': 556,
  29831. 'Ucircumflex': 722,
  29832. 'yacute': 500,
  29833. 'scommaaccent': 500,
  29834. 'ecircumflex': 556,
  29835. 'Uring': 722,
  29836. 'Udieresis': 722,
  29837. 'aogonek': 556,
  29838. 'Uacute': 722,
  29839. 'uogonek': 556,
  29840. 'Edieresis': 667,
  29841. 'Dcroat': 722,
  29842. 'commaaccent': 250,
  29843. 'copyright': 737,
  29844. 'Emacron': 667,
  29845. 'ccaron': 500,
  29846. 'aring': 556,
  29847. 'Ncommaaccent': 722,
  29848. 'lacute': 222,
  29849. 'agrave': 556,
  29850. 'Tcommaaccent': 611,
  29851. 'Cacute': 722,
  29852. 'atilde': 556,
  29853. 'Edotaccent': 667,
  29854. 'scaron': 500,
  29855. 'scedilla': 500,
  29856. 'iacute': 278,
  29857. 'lozenge': 471,
  29858. 'Rcaron': 722,
  29859. 'Gcommaaccent': 778,
  29860. 'ucircumflex': 556,
  29861. 'acircumflex': 556,
  29862. 'Amacron': 667,
  29863. 'rcaron': 333,
  29864. 'ccedilla': 500,
  29865. 'Zdotaccent': 611,
  29866. 'Thorn': 667,
  29867. 'Omacron': 778,
  29868. 'Racute': 722,
  29869. 'Sacute': 667,
  29870. 'dcaron': 643,
  29871. 'Umacron': 722,
  29872. 'uring': 556,
  29873. 'threesuperior': 333,
  29874. 'Ograve': 778,
  29875. 'Agrave': 667,
  29876. 'Abreve': 667,
  29877. 'multiply': 584,
  29878. 'uacute': 556,
  29879. 'Tcaron': 611,
  29880. 'partialdiff': 476,
  29881. 'ydieresis': 500,
  29882. 'Nacute': 722,
  29883. 'icircumflex': 278,
  29884. 'Ecircumflex': 667,
  29885. 'adieresis': 556,
  29886. 'edieresis': 556,
  29887. 'cacute': 500,
  29888. 'nacute': 556,
  29889. 'umacron': 556,
  29890. 'Ncaron': 722,
  29891. 'Iacute': 278,
  29892. 'plusminus': 584,
  29893. 'brokenbar': 260,
  29894. 'registered': 737,
  29895. 'Gbreve': 778,
  29896. 'Idotaccent': 278,
  29897. 'summation': 600,
  29898. 'Egrave': 667,
  29899. 'racute': 333,
  29900. 'omacron': 556,
  29901. 'Zacute': 611,
  29902. 'Zcaron': 611,
  29903. 'greaterequal': 549,
  29904. 'Eth': 722,
  29905. 'Ccedilla': 722,
  29906. 'lcommaaccent': 222,
  29907. 'tcaron': 317,
  29908. 'eogonek': 556,
  29909. 'Uogonek': 722,
  29910. 'Aacute': 667,
  29911. 'Adieresis': 667,
  29912. 'egrave': 556,
  29913. 'zacute': 500,
  29914. 'iogonek': 222,
  29915. 'Oacute': 778,
  29916. 'oacute': 556,
  29917. 'amacron': 556,
  29918. 'sacute': 500,
  29919. 'idieresis': 278,
  29920. 'Ocircumflex': 778,
  29921. 'Ugrave': 722,
  29922. 'Delta': 612,
  29923. 'thorn': 556,
  29924. 'twosuperior': 333,
  29925. 'Odieresis': 778,
  29926. 'mu': 556,
  29927. 'igrave': 278,
  29928. 'ohungarumlaut': 556,
  29929. 'Eogonek': 667,
  29930. 'dcroat': 556,
  29931. 'threequarters': 834,
  29932. 'Scedilla': 667,
  29933. 'lcaron': 299,
  29934. 'Kcommaaccent': 667,
  29935. 'Lacute': 556,
  29936. 'trademark': 1000,
  29937. 'edotaccent': 556,
  29938. 'Igrave': 278,
  29939. 'Imacron': 278,
  29940. 'Lcaron': 556,
  29941. 'onehalf': 834,
  29942. 'lessequal': 549,
  29943. 'ocircumflex': 556,
  29944. 'ntilde': 556,
  29945. 'Uhungarumlaut': 722,
  29946. 'Eacute': 667,
  29947. 'emacron': 556,
  29948. 'gbreve': 556,
  29949. 'onequarter': 834,
  29950. 'Scaron': 667,
  29951. 'Scommaaccent': 667,
  29952. 'Ohungarumlaut': 778,
  29953. 'degree': 400,
  29954. 'ograve': 556,
  29955. 'Ccaron': 722,
  29956. 'ugrave': 556,
  29957. 'radical': 453,
  29958. 'Dcaron': 722,
  29959. 'rcommaaccent': 333,
  29960. 'Ntilde': 722,
  29961. 'otilde': 556,
  29962. 'Rcommaaccent': 722,
  29963. 'Lcommaaccent': 556,
  29964. 'Atilde': 667,
  29965. 'Aogonek': 667,
  29966. 'Aring': 667,
  29967. 'Otilde': 778,
  29968. 'zdotaccent': 500,
  29969. 'Ecaron': 667,
  29970. 'Iogonek': 278,
  29971. 'kcommaaccent': 500,
  29972. 'minus': 584,
  29973. 'Icircumflex': 278,
  29974. 'ncaron': 556,
  29975. 'tcommaaccent': 278,
  29976. 'logicalnot': 584,
  29977. 'odieresis': 556,
  29978. 'udieresis': 556,
  29979. 'notequal': 549,
  29980. 'gcommaaccent': 556,
  29981. 'eth': 556,
  29982. 'zcaron': 500,
  29983. 'ncommaaccent': 556,
  29984. 'onesuperior': 333,
  29985. 'imacron': 278,
  29986. 'Euro': 556
  29987. },
  29988. 'Helvetica-Bold': {
  29989. 'space': 278,
  29990. 'exclam': 333,
  29991. 'quotedbl': 474,
  29992. 'numbersign': 556,
  29993. 'dollar': 556,
  29994. 'percent': 889,
  29995. 'ampersand': 722,
  29996. 'quoteright': 278,
  29997. 'parenleft': 333,
  29998. 'parenright': 333,
  29999. 'asterisk': 389,
  30000. 'plus': 584,
  30001. 'comma': 278,
  30002. 'hyphen': 333,
  30003. 'period': 278,
  30004. 'slash': 278,
  30005. 'zero': 556,
  30006. 'one': 556,
  30007. 'two': 556,
  30008. 'three': 556,
  30009. 'four': 556,
  30010. 'five': 556,
  30011. 'six': 556,
  30012. 'seven': 556,
  30013. 'eight': 556,
  30014. 'nine': 556,
  30015. 'colon': 333,
  30016. 'semicolon': 333,
  30017. 'less': 584,
  30018. 'equal': 584,
  30019. 'greater': 584,
  30020. 'question': 611,
  30021. 'at': 975,
  30022. 'A': 722,
  30023. 'B': 722,
  30024. 'C': 722,
  30025. 'D': 722,
  30026. 'E': 667,
  30027. 'F': 611,
  30028. 'G': 778,
  30029. 'H': 722,
  30030. 'I': 278,
  30031. 'J': 556,
  30032. 'K': 722,
  30033. 'L': 611,
  30034. 'M': 833,
  30035. 'N': 722,
  30036. 'O': 778,
  30037. 'P': 667,
  30038. 'Q': 778,
  30039. 'R': 722,
  30040. 'S': 667,
  30041. 'T': 611,
  30042. 'U': 722,
  30043. 'V': 667,
  30044. 'W': 944,
  30045. 'X': 667,
  30046. 'Y': 667,
  30047. 'Z': 611,
  30048. 'bracketleft': 333,
  30049. 'backslash': 278,
  30050. 'bracketright': 333,
  30051. 'asciicircum': 584,
  30052. 'underscore': 556,
  30053. 'quoteleft': 278,
  30054. 'a': 556,
  30055. 'b': 611,
  30056. 'c': 556,
  30057. 'd': 611,
  30058. 'e': 556,
  30059. 'f': 333,
  30060. 'g': 611,
  30061. 'h': 611,
  30062. 'i': 278,
  30063. 'j': 278,
  30064. 'k': 556,
  30065. 'l': 278,
  30066. 'm': 889,
  30067. 'n': 611,
  30068. 'o': 611,
  30069. 'p': 611,
  30070. 'q': 611,
  30071. 'r': 389,
  30072. 's': 556,
  30073. 't': 333,
  30074. 'u': 611,
  30075. 'v': 556,
  30076. 'w': 778,
  30077. 'x': 556,
  30078. 'y': 556,
  30079. 'z': 500,
  30080. 'braceleft': 389,
  30081. 'bar': 280,
  30082. 'braceright': 389,
  30083. 'asciitilde': 584,
  30084. 'exclamdown': 333,
  30085. 'cent': 556,
  30086. 'sterling': 556,
  30087. 'fraction': 167,
  30088. 'yen': 556,
  30089. 'florin': 556,
  30090. 'section': 556,
  30091. 'currency': 556,
  30092. 'quotesingle': 238,
  30093. 'quotedblleft': 500,
  30094. 'guillemotleft': 556,
  30095. 'guilsinglleft': 333,
  30096. 'guilsinglright': 333,
  30097. 'fi': 611,
  30098. 'fl': 611,
  30099. 'endash': 556,
  30100. 'dagger': 556,
  30101. 'daggerdbl': 556,
  30102. 'periodcentered': 278,
  30103. 'paragraph': 556,
  30104. 'bullet': 350,
  30105. 'quotesinglbase': 278,
  30106. 'quotedblbase': 500,
  30107. 'quotedblright': 500,
  30108. 'guillemotright': 556,
  30109. 'ellipsis': 1000,
  30110. 'perthousand': 1000,
  30111. 'questiondown': 611,
  30112. 'grave': 333,
  30113. 'acute': 333,
  30114. 'circumflex': 333,
  30115. 'tilde': 333,
  30116. 'macron': 333,
  30117. 'breve': 333,
  30118. 'dotaccent': 333,
  30119. 'dieresis': 333,
  30120. 'ring': 333,
  30121. 'cedilla': 333,
  30122. 'hungarumlaut': 333,
  30123. 'ogonek': 333,
  30124. 'caron': 333,
  30125. 'emdash': 1000,
  30126. 'AE': 1000,
  30127. 'ordfeminine': 370,
  30128. 'Lslash': 611,
  30129. 'Oslash': 778,
  30130. 'OE': 1000,
  30131. 'ordmasculine': 365,
  30132. 'ae': 889,
  30133. 'dotlessi': 278,
  30134. 'lslash': 278,
  30135. 'oslash': 611,
  30136. 'oe': 944,
  30137. 'germandbls': 611,
  30138. 'Idieresis': 278,
  30139. 'eacute': 556,
  30140. 'abreve': 556,
  30141. 'uhungarumlaut': 611,
  30142. 'ecaron': 556,
  30143. 'Ydieresis': 667,
  30144. 'divide': 584,
  30145. 'Yacute': 667,
  30146. 'Acircumflex': 722,
  30147. 'aacute': 556,
  30148. 'Ucircumflex': 722,
  30149. 'yacute': 556,
  30150. 'scommaaccent': 556,
  30151. 'ecircumflex': 556,
  30152. 'Uring': 722,
  30153. 'Udieresis': 722,
  30154. 'aogonek': 556,
  30155. 'Uacute': 722,
  30156. 'uogonek': 611,
  30157. 'Edieresis': 667,
  30158. 'Dcroat': 722,
  30159. 'commaaccent': 250,
  30160. 'copyright': 737,
  30161. 'Emacron': 667,
  30162. 'ccaron': 556,
  30163. 'aring': 556,
  30164. 'Ncommaaccent': 722,
  30165. 'lacute': 278,
  30166. 'agrave': 556,
  30167. 'Tcommaaccent': 611,
  30168. 'Cacute': 722,
  30169. 'atilde': 556,
  30170. 'Edotaccent': 667,
  30171. 'scaron': 556,
  30172. 'scedilla': 556,
  30173. 'iacute': 278,
  30174. 'lozenge': 494,
  30175. 'Rcaron': 722,
  30176. 'Gcommaaccent': 778,
  30177. 'ucircumflex': 611,
  30178. 'acircumflex': 556,
  30179. 'Amacron': 722,
  30180. 'rcaron': 389,
  30181. 'ccedilla': 556,
  30182. 'Zdotaccent': 611,
  30183. 'Thorn': 667,
  30184. 'Omacron': 778,
  30185. 'Racute': 722,
  30186. 'Sacute': 667,
  30187. 'dcaron': 743,
  30188. 'Umacron': 722,
  30189. 'uring': 611,
  30190. 'threesuperior': 333,
  30191. 'Ograve': 778,
  30192. 'Agrave': 722,
  30193. 'Abreve': 722,
  30194. 'multiply': 584,
  30195. 'uacute': 611,
  30196. 'Tcaron': 611,
  30197. 'partialdiff': 494,
  30198. 'ydieresis': 556,
  30199. 'Nacute': 722,
  30200. 'icircumflex': 278,
  30201. 'Ecircumflex': 667,
  30202. 'adieresis': 556,
  30203. 'edieresis': 556,
  30204. 'cacute': 556,
  30205. 'nacute': 611,
  30206. 'umacron': 611,
  30207. 'Ncaron': 722,
  30208. 'Iacute': 278,
  30209. 'plusminus': 584,
  30210. 'brokenbar': 280,
  30211. 'registered': 737,
  30212. 'Gbreve': 778,
  30213. 'Idotaccent': 278,
  30214. 'summation': 600,
  30215. 'Egrave': 667,
  30216. 'racute': 389,
  30217. 'omacron': 611,
  30218. 'Zacute': 611,
  30219. 'Zcaron': 611,
  30220. 'greaterequal': 549,
  30221. 'Eth': 722,
  30222. 'Ccedilla': 722,
  30223. 'lcommaaccent': 278,
  30224. 'tcaron': 389,
  30225. 'eogonek': 556,
  30226. 'Uogonek': 722,
  30227. 'Aacute': 722,
  30228. 'Adieresis': 722,
  30229. 'egrave': 556,
  30230. 'zacute': 500,
  30231. 'iogonek': 278,
  30232. 'Oacute': 778,
  30233. 'oacute': 611,
  30234. 'amacron': 556,
  30235. 'sacute': 556,
  30236. 'idieresis': 278,
  30237. 'Ocircumflex': 778,
  30238. 'Ugrave': 722,
  30239. 'Delta': 612,
  30240. 'thorn': 611,
  30241. 'twosuperior': 333,
  30242. 'Odieresis': 778,
  30243. 'mu': 611,
  30244. 'igrave': 278,
  30245. 'ohungarumlaut': 611,
  30246. 'Eogonek': 667,
  30247. 'dcroat': 611,
  30248. 'threequarters': 834,
  30249. 'Scedilla': 667,
  30250. 'lcaron': 400,
  30251. 'Kcommaaccent': 722,
  30252. 'Lacute': 611,
  30253. 'trademark': 1000,
  30254. 'edotaccent': 556,
  30255. 'Igrave': 278,
  30256. 'Imacron': 278,
  30257. 'Lcaron': 611,
  30258. 'onehalf': 834,
  30259. 'lessequal': 549,
  30260. 'ocircumflex': 611,
  30261. 'ntilde': 611,
  30262. 'Uhungarumlaut': 722,
  30263. 'Eacute': 667,
  30264. 'emacron': 556,
  30265. 'gbreve': 611,
  30266. 'onequarter': 834,
  30267. 'Scaron': 667,
  30268. 'Scommaaccent': 667,
  30269. 'Ohungarumlaut': 778,
  30270. 'degree': 400,
  30271. 'ograve': 611,
  30272. 'Ccaron': 722,
  30273. 'ugrave': 611,
  30274. 'radical': 549,
  30275. 'Dcaron': 722,
  30276. 'rcommaaccent': 389,
  30277. 'Ntilde': 722,
  30278. 'otilde': 611,
  30279. 'Rcommaaccent': 722,
  30280. 'Lcommaaccent': 611,
  30281. 'Atilde': 722,
  30282. 'Aogonek': 722,
  30283. 'Aring': 722,
  30284. 'Otilde': 778,
  30285. 'zdotaccent': 500,
  30286. 'Ecaron': 667,
  30287. 'Iogonek': 278,
  30288. 'kcommaaccent': 556,
  30289. 'minus': 584,
  30290. 'Icircumflex': 278,
  30291. 'ncaron': 611,
  30292. 'tcommaaccent': 333,
  30293. 'logicalnot': 584,
  30294. 'odieresis': 611,
  30295. 'udieresis': 611,
  30296. 'notequal': 549,
  30297. 'gcommaaccent': 611,
  30298. 'eth': 611,
  30299. 'zcaron': 500,
  30300. 'ncommaaccent': 611,
  30301. 'onesuperior': 333,
  30302. 'imacron': 278,
  30303. 'Euro': 556
  30304. },
  30305. 'Helvetica-BoldOblique': {
  30306. 'space': 278,
  30307. 'exclam': 333,
  30308. 'quotedbl': 474,
  30309. 'numbersign': 556,
  30310. 'dollar': 556,
  30311. 'percent': 889,
  30312. 'ampersand': 722,
  30313. 'quoteright': 278,
  30314. 'parenleft': 333,
  30315. 'parenright': 333,
  30316. 'asterisk': 389,
  30317. 'plus': 584,
  30318. 'comma': 278,
  30319. 'hyphen': 333,
  30320. 'period': 278,
  30321. 'slash': 278,
  30322. 'zero': 556,
  30323. 'one': 556,
  30324. 'two': 556,
  30325. 'three': 556,
  30326. 'four': 556,
  30327. 'five': 556,
  30328. 'six': 556,
  30329. 'seven': 556,
  30330. 'eight': 556,
  30331. 'nine': 556,
  30332. 'colon': 333,
  30333. 'semicolon': 333,
  30334. 'less': 584,
  30335. 'equal': 584,
  30336. 'greater': 584,
  30337. 'question': 611,
  30338. 'at': 975,
  30339. 'A': 722,
  30340. 'B': 722,
  30341. 'C': 722,
  30342. 'D': 722,
  30343. 'E': 667,
  30344. 'F': 611,
  30345. 'G': 778,
  30346. 'H': 722,
  30347. 'I': 278,
  30348. 'J': 556,
  30349. 'K': 722,
  30350. 'L': 611,
  30351. 'M': 833,
  30352. 'N': 722,
  30353. 'O': 778,
  30354. 'P': 667,
  30355. 'Q': 778,
  30356. 'R': 722,
  30357. 'S': 667,
  30358. 'T': 611,
  30359. 'U': 722,
  30360. 'V': 667,
  30361. 'W': 944,
  30362. 'X': 667,
  30363. 'Y': 667,
  30364. 'Z': 611,
  30365. 'bracketleft': 333,
  30366. 'backslash': 278,
  30367. 'bracketright': 333,
  30368. 'asciicircum': 584,
  30369. 'underscore': 556,
  30370. 'quoteleft': 278,
  30371. 'a': 556,
  30372. 'b': 611,
  30373. 'c': 556,
  30374. 'd': 611,
  30375. 'e': 556,
  30376. 'f': 333,
  30377. 'g': 611,
  30378. 'h': 611,
  30379. 'i': 278,
  30380. 'j': 278,
  30381. 'k': 556,
  30382. 'l': 278,
  30383. 'm': 889,
  30384. 'n': 611,
  30385. 'o': 611,
  30386. 'p': 611,
  30387. 'q': 611,
  30388. 'r': 389,
  30389. 's': 556,
  30390. 't': 333,
  30391. 'u': 611,
  30392. 'v': 556,
  30393. 'w': 778,
  30394. 'x': 556,
  30395. 'y': 556,
  30396. 'z': 500,
  30397. 'braceleft': 389,
  30398. 'bar': 280,
  30399. 'braceright': 389,
  30400. 'asciitilde': 584,
  30401. 'exclamdown': 333,
  30402. 'cent': 556,
  30403. 'sterling': 556,
  30404. 'fraction': 167,
  30405. 'yen': 556,
  30406. 'florin': 556,
  30407. 'section': 556,
  30408. 'currency': 556,
  30409. 'quotesingle': 238,
  30410. 'quotedblleft': 500,
  30411. 'guillemotleft': 556,
  30412. 'guilsinglleft': 333,
  30413. 'guilsinglright': 333,
  30414. 'fi': 611,
  30415. 'fl': 611,
  30416. 'endash': 556,
  30417. 'dagger': 556,
  30418. 'daggerdbl': 556,
  30419. 'periodcentered': 278,
  30420. 'paragraph': 556,
  30421. 'bullet': 350,
  30422. 'quotesinglbase': 278,
  30423. 'quotedblbase': 500,
  30424. 'quotedblright': 500,
  30425. 'guillemotright': 556,
  30426. 'ellipsis': 1000,
  30427. 'perthousand': 1000,
  30428. 'questiondown': 611,
  30429. 'grave': 333,
  30430. 'acute': 333,
  30431. 'circumflex': 333,
  30432. 'tilde': 333,
  30433. 'macron': 333,
  30434. 'breve': 333,
  30435. 'dotaccent': 333,
  30436. 'dieresis': 333,
  30437. 'ring': 333,
  30438. 'cedilla': 333,
  30439. 'hungarumlaut': 333,
  30440. 'ogonek': 333,
  30441. 'caron': 333,
  30442. 'emdash': 1000,
  30443. 'AE': 1000,
  30444. 'ordfeminine': 370,
  30445. 'Lslash': 611,
  30446. 'Oslash': 778,
  30447. 'OE': 1000,
  30448. 'ordmasculine': 365,
  30449. 'ae': 889,
  30450. 'dotlessi': 278,
  30451. 'lslash': 278,
  30452. 'oslash': 611,
  30453. 'oe': 944,
  30454. 'germandbls': 611,
  30455. 'Idieresis': 278,
  30456. 'eacute': 556,
  30457. 'abreve': 556,
  30458. 'uhungarumlaut': 611,
  30459. 'ecaron': 556,
  30460. 'Ydieresis': 667,
  30461. 'divide': 584,
  30462. 'Yacute': 667,
  30463. 'Acircumflex': 722,
  30464. 'aacute': 556,
  30465. 'Ucircumflex': 722,
  30466. 'yacute': 556,
  30467. 'scommaaccent': 556,
  30468. 'ecircumflex': 556,
  30469. 'Uring': 722,
  30470. 'Udieresis': 722,
  30471. 'aogonek': 556,
  30472. 'Uacute': 722,
  30473. 'uogonek': 611,
  30474. 'Edieresis': 667,
  30475. 'Dcroat': 722,
  30476. 'commaaccent': 250,
  30477. 'copyright': 737,
  30478. 'Emacron': 667,
  30479. 'ccaron': 556,
  30480. 'aring': 556,
  30481. 'Ncommaaccent': 722,
  30482. 'lacute': 278,
  30483. 'agrave': 556,
  30484. 'Tcommaaccent': 611,
  30485. 'Cacute': 722,
  30486. 'atilde': 556,
  30487. 'Edotaccent': 667,
  30488. 'scaron': 556,
  30489. 'scedilla': 556,
  30490. 'iacute': 278,
  30491. 'lozenge': 494,
  30492. 'Rcaron': 722,
  30493. 'Gcommaaccent': 778,
  30494. 'ucircumflex': 611,
  30495. 'acircumflex': 556,
  30496. 'Amacron': 722,
  30497. 'rcaron': 389,
  30498. 'ccedilla': 556,
  30499. 'Zdotaccent': 611,
  30500. 'Thorn': 667,
  30501. 'Omacron': 778,
  30502. 'Racute': 722,
  30503. 'Sacute': 667,
  30504. 'dcaron': 743,
  30505. 'Umacron': 722,
  30506. 'uring': 611,
  30507. 'threesuperior': 333,
  30508. 'Ograve': 778,
  30509. 'Agrave': 722,
  30510. 'Abreve': 722,
  30511. 'multiply': 584,
  30512. 'uacute': 611,
  30513. 'Tcaron': 611,
  30514. 'partialdiff': 494,
  30515. 'ydieresis': 556,
  30516. 'Nacute': 722,
  30517. 'icircumflex': 278,
  30518. 'Ecircumflex': 667,
  30519. 'adieresis': 556,
  30520. 'edieresis': 556,
  30521. 'cacute': 556,
  30522. 'nacute': 611,
  30523. 'umacron': 611,
  30524. 'Ncaron': 722,
  30525. 'Iacute': 278,
  30526. 'plusminus': 584,
  30527. 'brokenbar': 280,
  30528. 'registered': 737,
  30529. 'Gbreve': 778,
  30530. 'Idotaccent': 278,
  30531. 'summation': 600,
  30532. 'Egrave': 667,
  30533. 'racute': 389,
  30534. 'omacron': 611,
  30535. 'Zacute': 611,
  30536. 'Zcaron': 611,
  30537. 'greaterequal': 549,
  30538. 'Eth': 722,
  30539. 'Ccedilla': 722,
  30540. 'lcommaaccent': 278,
  30541. 'tcaron': 389,
  30542. 'eogonek': 556,
  30543. 'Uogonek': 722,
  30544. 'Aacute': 722,
  30545. 'Adieresis': 722,
  30546. 'egrave': 556,
  30547. 'zacute': 500,
  30548. 'iogonek': 278,
  30549. 'Oacute': 778,
  30550. 'oacute': 611,
  30551. 'amacron': 556,
  30552. 'sacute': 556,
  30553. 'idieresis': 278,
  30554. 'Ocircumflex': 778,
  30555. 'Ugrave': 722,
  30556. 'Delta': 612,
  30557. 'thorn': 611,
  30558. 'twosuperior': 333,
  30559. 'Odieresis': 778,
  30560. 'mu': 611,
  30561. 'igrave': 278,
  30562. 'ohungarumlaut': 611,
  30563. 'Eogonek': 667,
  30564. 'dcroat': 611,
  30565. 'threequarters': 834,
  30566. 'Scedilla': 667,
  30567. 'lcaron': 400,
  30568. 'Kcommaaccent': 722,
  30569. 'Lacute': 611,
  30570. 'trademark': 1000,
  30571. 'edotaccent': 556,
  30572. 'Igrave': 278,
  30573. 'Imacron': 278,
  30574. 'Lcaron': 611,
  30575. 'onehalf': 834,
  30576. 'lessequal': 549,
  30577. 'ocircumflex': 611,
  30578. 'ntilde': 611,
  30579. 'Uhungarumlaut': 722,
  30580. 'Eacute': 667,
  30581. 'emacron': 556,
  30582. 'gbreve': 611,
  30583. 'onequarter': 834,
  30584. 'Scaron': 667,
  30585. 'Scommaaccent': 667,
  30586. 'Ohungarumlaut': 778,
  30587. 'degree': 400,
  30588. 'ograve': 611,
  30589. 'Ccaron': 722,
  30590. 'ugrave': 611,
  30591. 'radical': 549,
  30592. 'Dcaron': 722,
  30593. 'rcommaaccent': 389,
  30594. 'Ntilde': 722,
  30595. 'otilde': 611,
  30596. 'Rcommaaccent': 722,
  30597. 'Lcommaaccent': 611,
  30598. 'Atilde': 722,
  30599. 'Aogonek': 722,
  30600. 'Aring': 722,
  30601. 'Otilde': 778,
  30602. 'zdotaccent': 500,
  30603. 'Ecaron': 667,
  30604. 'Iogonek': 278,
  30605. 'kcommaaccent': 556,
  30606. 'minus': 584,
  30607. 'Icircumflex': 278,
  30608. 'ncaron': 611,
  30609. 'tcommaaccent': 333,
  30610. 'logicalnot': 584,
  30611. 'odieresis': 611,
  30612. 'udieresis': 611,
  30613. 'notequal': 549,
  30614. 'gcommaaccent': 611,
  30615. 'eth': 611,
  30616. 'zcaron': 500,
  30617. 'ncommaaccent': 611,
  30618. 'onesuperior': 333,
  30619. 'imacron': 278,
  30620. 'Euro': 556
  30621. },
  30622. 'Helvetica-Oblique' : {
  30623. 'space': 278,
  30624. 'exclam': 278,
  30625. 'quotedbl': 355,
  30626. 'numbersign': 556,
  30627. 'dollar': 556,
  30628. 'percent': 889,
  30629. 'ampersand': 667,
  30630. 'quoteright': 222,
  30631. 'parenleft': 333,
  30632. 'parenright': 333,
  30633. 'asterisk': 389,
  30634. 'plus': 584,
  30635. 'comma': 278,
  30636. 'hyphen': 333,
  30637. 'period': 278,
  30638. 'slash': 278,
  30639. 'zero': 556,
  30640. 'one': 556,
  30641. 'two': 556,
  30642. 'three': 556,
  30643. 'four': 556,
  30644. 'five': 556,
  30645. 'six': 556,
  30646. 'seven': 556,
  30647. 'eight': 556,
  30648. 'nine': 556,
  30649. 'colon': 278,
  30650. 'semicolon': 278,
  30651. 'less': 584,
  30652. 'equal': 584,
  30653. 'greater': 584,
  30654. 'question': 556,
  30655. 'at': 1015,
  30656. 'A': 667,
  30657. 'B': 667,
  30658. 'C': 722,
  30659. 'D': 722,
  30660. 'E': 667,
  30661. 'F': 611,
  30662. 'G': 778,
  30663. 'H': 722,
  30664. 'I': 278,
  30665. 'J': 500,
  30666. 'K': 667,
  30667. 'L': 556,
  30668. 'M': 833,
  30669. 'N': 722,
  30670. 'O': 778,
  30671. 'P': 667,
  30672. 'Q': 778,
  30673. 'R': 722,
  30674. 'S': 667,
  30675. 'T': 611,
  30676. 'U': 722,
  30677. 'V': 667,
  30678. 'W': 944,
  30679. 'X': 667,
  30680. 'Y': 667,
  30681. 'Z': 611,
  30682. 'bracketleft': 278,
  30683. 'backslash': 278,
  30684. 'bracketright': 278,
  30685. 'asciicircum': 469,
  30686. 'underscore': 556,
  30687. 'quoteleft': 222,
  30688. 'a': 556,
  30689. 'b': 556,
  30690. 'c': 500,
  30691. 'd': 556,
  30692. 'e': 556,
  30693. 'f': 278,
  30694. 'g': 556,
  30695. 'h': 556,
  30696. 'i': 222,
  30697. 'j': 222,
  30698. 'k': 500,
  30699. 'l': 222,
  30700. 'm': 833,
  30701. 'n': 556,
  30702. 'o': 556,
  30703. 'p': 556,
  30704. 'q': 556,
  30705. 'r': 333,
  30706. 's': 500,
  30707. 't': 278,
  30708. 'u': 556,
  30709. 'v': 500,
  30710. 'w': 722,
  30711. 'x': 500,
  30712. 'y': 500,
  30713. 'z': 500,
  30714. 'braceleft': 334,
  30715. 'bar': 260,
  30716. 'braceright': 334,
  30717. 'asciitilde': 584,
  30718. 'exclamdown': 333,
  30719. 'cent': 556,
  30720. 'sterling': 556,
  30721. 'fraction': 167,
  30722. 'yen': 556,
  30723. 'florin': 556,
  30724. 'section': 556,
  30725. 'currency': 556,
  30726. 'quotesingle': 191,
  30727. 'quotedblleft': 333,
  30728. 'guillemotleft': 556,
  30729. 'guilsinglleft': 333,
  30730. 'guilsinglright': 333,
  30731. 'fi': 500,
  30732. 'fl': 500,
  30733. 'endash': 556,
  30734. 'dagger': 556,
  30735. 'daggerdbl': 556,
  30736. 'periodcentered': 278,
  30737. 'paragraph': 537,
  30738. 'bullet': 350,
  30739. 'quotesinglbase': 222,
  30740. 'quotedblbase': 333,
  30741. 'quotedblright': 333,
  30742. 'guillemotright': 556,
  30743. 'ellipsis': 1000,
  30744. 'perthousand': 1000,
  30745. 'questiondown': 611,
  30746. 'grave': 333,
  30747. 'acute': 333,
  30748. 'circumflex': 333,
  30749. 'tilde': 333,
  30750. 'macron': 333,
  30751. 'breve': 333,
  30752. 'dotaccent': 333,
  30753. 'dieresis': 333,
  30754. 'ring': 333,
  30755. 'cedilla': 333,
  30756. 'hungarumlaut': 333,
  30757. 'ogonek': 333,
  30758. 'caron': 333,
  30759. 'emdash': 1000,
  30760. 'AE': 1000,
  30761. 'ordfeminine': 370,
  30762. 'Lslash': 556,
  30763. 'Oslash': 778,
  30764. 'OE': 1000,
  30765. 'ordmasculine': 365,
  30766. 'ae': 889,
  30767. 'dotlessi': 278,
  30768. 'lslash': 222,
  30769. 'oslash': 611,
  30770. 'oe': 944,
  30771. 'germandbls': 611,
  30772. 'Idieresis': 278,
  30773. 'eacute': 556,
  30774. 'abreve': 556,
  30775. 'uhungarumlaut': 556,
  30776. 'ecaron': 556,
  30777. 'Ydieresis': 667,
  30778. 'divide': 584,
  30779. 'Yacute': 667,
  30780. 'Acircumflex': 667,
  30781. 'aacute': 556,
  30782. 'Ucircumflex': 722,
  30783. 'yacute': 500,
  30784. 'scommaaccent': 500,
  30785. 'ecircumflex': 556,
  30786. 'Uring': 722,
  30787. 'Udieresis': 722,
  30788. 'aogonek': 556,
  30789. 'Uacute': 722,
  30790. 'uogonek': 556,
  30791. 'Edieresis': 667,
  30792. 'Dcroat': 722,
  30793. 'commaaccent': 250,
  30794. 'copyright': 737,
  30795. 'Emacron': 667,
  30796. 'ccaron': 500,
  30797. 'aring': 556,
  30798. 'Ncommaaccent': 722,
  30799. 'lacute': 222,
  30800. 'agrave': 556,
  30801. 'Tcommaaccent': 611,
  30802. 'Cacute': 722,
  30803. 'atilde': 556,
  30804. 'Edotaccent': 667,
  30805. 'scaron': 500,
  30806. 'scedilla': 500,
  30807. 'iacute': 278,
  30808. 'lozenge': 471,
  30809. 'Rcaron': 722,
  30810. 'Gcommaaccent': 778,
  30811. 'ucircumflex': 556,
  30812. 'acircumflex': 556,
  30813. 'Amacron': 667,
  30814. 'rcaron': 333,
  30815. 'ccedilla': 500,
  30816. 'Zdotaccent': 611,
  30817. 'Thorn': 667,
  30818. 'Omacron': 778,
  30819. 'Racute': 722,
  30820. 'Sacute': 667,
  30821. 'dcaron': 643,
  30822. 'Umacron': 722,
  30823. 'uring': 556,
  30824. 'threesuperior': 333,
  30825. 'Ograve': 778,
  30826. 'Agrave': 667,
  30827. 'Abreve': 667,
  30828. 'multiply': 584,
  30829. 'uacute': 556,
  30830. 'Tcaron': 611,
  30831. 'partialdiff': 476,
  30832. 'ydieresis': 500,
  30833. 'Nacute': 722,
  30834. 'icircumflex': 278,
  30835. 'Ecircumflex': 667,
  30836. 'adieresis': 556,
  30837. 'edieresis': 556,
  30838. 'cacute': 500,
  30839. 'nacute': 556,
  30840. 'umacron': 556,
  30841. 'Ncaron': 722,
  30842. 'Iacute': 278,
  30843. 'plusminus': 584,
  30844. 'brokenbar': 260,
  30845. 'registered': 737,
  30846. 'Gbreve': 778,
  30847. 'Idotaccent': 278,
  30848. 'summation': 600,
  30849. 'Egrave': 667,
  30850. 'racute': 333,
  30851. 'omacron': 556,
  30852. 'Zacute': 611,
  30853. 'Zcaron': 611,
  30854. 'greaterequal': 549,
  30855. 'Eth': 722,
  30856. 'Ccedilla': 722,
  30857. 'lcommaaccent': 222,
  30858. 'tcaron': 317,
  30859. 'eogonek': 556,
  30860. 'Uogonek': 722,
  30861. 'Aacute': 667,
  30862. 'Adieresis': 667,
  30863. 'egrave': 556,
  30864. 'zacute': 500,
  30865. 'iogonek': 222,
  30866. 'Oacute': 778,
  30867. 'oacute': 556,
  30868. 'amacron': 556,
  30869. 'sacute': 500,
  30870. 'idieresis': 278,
  30871. 'Ocircumflex': 778,
  30872. 'Ugrave': 722,
  30873. 'Delta': 612,
  30874. 'thorn': 556,
  30875. 'twosuperior': 333,
  30876. 'Odieresis': 778,
  30877. 'mu': 556,
  30878. 'igrave': 278,
  30879. 'ohungarumlaut': 556,
  30880. 'Eogonek': 667,
  30881. 'dcroat': 556,
  30882. 'threequarters': 834,
  30883. 'Scedilla': 667,
  30884. 'lcaron': 299,
  30885. 'Kcommaaccent': 667,
  30886. 'Lacute': 556,
  30887. 'trademark': 1000,
  30888. 'edotaccent': 556,
  30889. 'Igrave': 278,
  30890. 'Imacron': 278,
  30891. 'Lcaron': 556,
  30892. 'onehalf': 834,
  30893. 'lessequal': 549,
  30894. 'ocircumflex': 556,
  30895. 'ntilde': 556,
  30896. 'Uhungarumlaut': 722,
  30897. 'Eacute': 667,
  30898. 'emacron': 556,
  30899. 'gbreve': 556,
  30900. 'onequarter': 834,
  30901. 'Scaron': 667,
  30902. 'Scommaaccent': 667,
  30903. 'Ohungarumlaut': 778,
  30904. 'degree': 400,
  30905. 'ograve': 556,
  30906. 'Ccaron': 722,
  30907. 'ugrave': 556,
  30908. 'radical': 453,
  30909. 'Dcaron': 722,
  30910. 'rcommaaccent': 333,
  30911. 'Ntilde': 722,
  30912. 'otilde': 556,
  30913. 'Rcommaaccent': 722,
  30914. 'Lcommaaccent': 556,
  30915. 'Atilde': 667,
  30916. 'Aogonek': 667,
  30917. 'Aring': 667,
  30918. 'Otilde': 778,
  30919. 'zdotaccent': 500,
  30920. 'Ecaron': 667,
  30921. 'Iogonek': 278,
  30922. 'kcommaaccent': 500,
  30923. 'minus': 584,
  30924. 'Icircumflex': 278,
  30925. 'ncaron': 556,
  30926. 'tcommaaccent': 278,
  30927. 'logicalnot': 584,
  30928. 'odieresis': 556,
  30929. 'udieresis': 556,
  30930. 'notequal': 549,
  30931. 'gcommaaccent': 556,
  30932. 'eth': 556,
  30933. 'zcaron': 500,
  30934. 'ncommaaccent': 556,
  30935. 'onesuperior': 333,
  30936. 'imacron': 278,
  30937. 'Euro': 556
  30938. },
  30939. 'Symbol': {
  30940. 'space': 250,
  30941. 'exclam': 333,
  30942. 'universal': 713,
  30943. 'numbersign': 500,
  30944. 'existential': 549,
  30945. 'percent': 833,
  30946. 'ampersand': 778,
  30947. 'suchthat': 439,
  30948. 'parenleft': 333,
  30949. 'parenright': 333,
  30950. 'asteriskmath': 500,
  30951. 'plus': 549,
  30952. 'comma': 250,
  30953. 'minus': 549,
  30954. 'period': 250,
  30955. 'slash': 278,
  30956. 'zero': 500,
  30957. 'one': 500,
  30958. 'two': 500,
  30959. 'three': 500,
  30960. 'four': 500,
  30961. 'five': 500,
  30962. 'six': 500,
  30963. 'seven': 500,
  30964. 'eight': 500,
  30965. 'nine': 500,
  30966. 'colon': 278,
  30967. 'semicolon': 278,
  30968. 'less': 549,
  30969. 'equal': 549,
  30970. 'greater': 549,
  30971. 'question': 444,
  30972. 'congruent': 549,
  30973. 'Alpha': 722,
  30974. 'Beta': 667,
  30975. 'Chi': 722,
  30976. 'Delta': 612,
  30977. 'Epsilon': 611,
  30978. 'Phi': 763,
  30979. 'Gamma': 603,
  30980. 'Eta': 722,
  30981. 'Iota': 333,
  30982. 'theta1': 631,
  30983. 'Kappa': 722,
  30984. 'Lambda': 686,
  30985. 'Mu': 889,
  30986. 'Nu': 722,
  30987. 'Omicron': 722,
  30988. 'Pi': 768,
  30989. 'Theta': 741,
  30990. 'Rho': 556,
  30991. 'Sigma': 592,
  30992. 'Tau': 611,
  30993. 'Upsilon': 690,
  30994. 'sigma1': 439,
  30995. 'Omega': 768,
  30996. 'Xi': 645,
  30997. 'Psi': 795,
  30998. 'Zeta': 611,
  30999. 'bracketleft': 333,
  31000. 'therefore': 863,
  31001. 'bracketright': 333,
  31002. 'perpendicular': 658,
  31003. 'underscore': 500,
  31004. 'radicalex': 500,
  31005. 'alpha': 631,
  31006. 'beta': 549,
  31007. 'chi': 549,
  31008. 'delta': 494,
  31009. 'epsilon': 439,
  31010. 'phi': 521,
  31011. 'gamma': 411,
  31012. 'eta': 603,
  31013. 'iota': 329,
  31014. 'phi1': 603,
  31015. 'kappa': 549,
  31016. 'lambda': 549,
  31017. 'mu': 576,
  31018. 'nu': 521,
  31019. 'omicron': 549,
  31020. 'pi': 549,
  31021. 'theta': 521,
  31022. 'rho': 549,
  31023. 'sigma': 603,
  31024. 'tau': 439,
  31025. 'upsilon': 576,
  31026. 'omega1': 713,
  31027. 'omega': 686,
  31028. 'xi': 493,
  31029. 'psi': 686,
  31030. 'zeta': 494,
  31031. 'braceleft': 480,
  31032. 'bar': 200,
  31033. 'braceright': 480,
  31034. 'similar': 549,
  31035. 'Euro': 750,
  31036. 'Upsilon1': 620,
  31037. 'minute': 247,
  31038. 'lessequal': 549,
  31039. 'fraction': 167,
  31040. 'infinity': 713,
  31041. 'florin': 500,
  31042. 'club': 753,
  31043. 'diamond': 753,
  31044. 'heart': 753,
  31045. 'spade': 753,
  31046. 'arrowboth': 1042,
  31047. 'arrowleft': 987,
  31048. 'arrowup': 603,
  31049. 'arrowright': 987,
  31050. 'arrowdown': 603,
  31051. 'degree': 400,
  31052. 'plusminus': 549,
  31053. 'second': 411,
  31054. 'greaterequal': 549,
  31055. 'multiply': 549,
  31056. 'proportional': 713,
  31057. 'partialdiff': 494,
  31058. 'bullet': 460,
  31059. 'divide': 549,
  31060. 'notequal': 549,
  31061. 'equivalence': 549,
  31062. 'approxequal': 549,
  31063. 'ellipsis': 1000,
  31064. 'arrowvertex': 603,
  31065. 'arrowhorizex': 1000,
  31066. 'carriagereturn': 658,
  31067. 'aleph': 823,
  31068. 'Ifraktur': 686,
  31069. 'Rfraktur': 795,
  31070. 'weierstrass': 987,
  31071. 'circlemultiply': 768,
  31072. 'circleplus': 768,
  31073. 'emptyset': 823,
  31074. 'intersection': 768,
  31075. 'union': 768,
  31076. 'propersuperset': 713,
  31077. 'reflexsuperset': 713,
  31078. 'notsubset': 713,
  31079. 'propersubset': 713,
  31080. 'reflexsubset': 713,
  31081. 'element': 713,
  31082. 'notelement': 713,
  31083. 'angle': 768,
  31084. 'gradient': 713,
  31085. 'registerserif': 790,
  31086. 'copyrightserif': 790,
  31087. 'trademarkserif': 890,
  31088. 'product': 823,
  31089. 'radical': 549,
  31090. 'dotmath': 250,
  31091. 'logicalnot': 713,
  31092. 'logicaland': 603,
  31093. 'logicalor': 603,
  31094. 'arrowdblboth': 1042,
  31095. 'arrowdblleft': 987,
  31096. 'arrowdblup': 603,
  31097. 'arrowdblright': 987,
  31098. 'arrowdbldown': 603,
  31099. 'lozenge': 494,
  31100. 'angleleft': 329,
  31101. 'registersans': 790,
  31102. 'copyrightsans': 790,
  31103. 'trademarksans': 786,
  31104. 'summation': 713,
  31105. 'parenlefttp': 384,
  31106. 'parenleftex': 384,
  31107. 'parenleftbt': 384,
  31108. 'bracketlefttp': 384,
  31109. 'bracketleftex': 384,
  31110. 'bracketleftbt': 384,
  31111. 'bracelefttp': 494,
  31112. 'braceleftmid': 494,
  31113. 'braceleftbt': 494,
  31114. 'braceex': 494,
  31115. 'angleright': 329,
  31116. 'integral': 274,
  31117. 'integraltp': 686,
  31118. 'integralex': 686,
  31119. 'integralbt': 686,
  31120. 'parenrighttp': 384,
  31121. 'parenrightex': 384,
  31122. 'parenrightbt': 384,
  31123. 'bracketrighttp': 384,
  31124. 'bracketrightex': 384,
  31125. 'bracketrightbt': 384,
  31126. 'bracerighttp': 494,
  31127. 'bracerightmid': 494,
  31128. 'bracerightbt': 494,
  31129. 'apple': 790
  31130. },
  31131. 'Times-Roman': {
  31132. 'space': 250,
  31133. 'exclam': 333,
  31134. 'quotedbl': 408,
  31135. 'numbersign': 500,
  31136. 'dollar': 500,
  31137. 'percent': 833,
  31138. 'ampersand': 778,
  31139. 'quoteright': 333,
  31140. 'parenleft': 333,
  31141. 'parenright': 333,
  31142. 'asterisk': 500,
  31143. 'plus': 564,
  31144. 'comma': 250,
  31145. 'hyphen': 333,
  31146. 'period': 250,
  31147. 'slash': 278,
  31148. 'zero': 500,
  31149. 'one': 500,
  31150. 'two': 500,
  31151. 'three': 500,
  31152. 'four': 500,
  31153. 'five': 500,
  31154. 'six': 500,
  31155. 'seven': 500,
  31156. 'eight': 500,
  31157. 'nine': 500,
  31158. 'colon': 278,
  31159. 'semicolon': 278,
  31160. 'less': 564,
  31161. 'equal': 564,
  31162. 'greater': 564,
  31163. 'question': 444,
  31164. 'at': 921,
  31165. 'A': 722,
  31166. 'B': 667,
  31167. 'C': 667,
  31168. 'D': 722,
  31169. 'E': 611,
  31170. 'F': 556,
  31171. 'G': 722,
  31172. 'H': 722,
  31173. 'I': 333,
  31174. 'J': 389,
  31175. 'K': 722,
  31176. 'L': 611,
  31177. 'M': 889,
  31178. 'N': 722,
  31179. 'O': 722,
  31180. 'P': 556,
  31181. 'Q': 722,
  31182. 'R': 667,
  31183. 'S': 556,
  31184. 'T': 611,
  31185. 'U': 722,
  31186. 'V': 722,
  31187. 'W': 944,
  31188. 'X': 722,
  31189. 'Y': 722,
  31190. 'Z': 611,
  31191. 'bracketleft': 333,
  31192. 'backslash': 278,
  31193. 'bracketright': 333,
  31194. 'asciicircum': 469,
  31195. 'underscore': 500,
  31196. 'quoteleft': 333,
  31197. 'a': 444,
  31198. 'b': 500,
  31199. 'c': 444,
  31200. 'd': 500,
  31201. 'e': 444,
  31202. 'f': 333,
  31203. 'g': 500,
  31204. 'h': 500,
  31205. 'i': 278,
  31206. 'j': 278,
  31207. 'k': 500,
  31208. 'l': 278,
  31209. 'm': 778,
  31210. 'n': 500,
  31211. 'o': 500,
  31212. 'p': 500,
  31213. 'q': 500,
  31214. 'r': 333,
  31215. 's': 389,
  31216. 't': 278,
  31217. 'u': 500,
  31218. 'v': 500,
  31219. 'w': 722,
  31220. 'x': 500,
  31221. 'y': 500,
  31222. 'z': 444,
  31223. 'braceleft': 480,
  31224. 'bar': 200,
  31225. 'braceright': 480,
  31226. 'asciitilde': 541,
  31227. 'exclamdown': 333,
  31228. 'cent': 500,
  31229. 'sterling': 500,
  31230. 'fraction': 167,
  31231. 'yen': 500,
  31232. 'florin': 500,
  31233. 'section': 500,
  31234. 'currency': 500,
  31235. 'quotesingle': 180,
  31236. 'quotedblleft': 444,
  31237. 'guillemotleft': 500,
  31238. 'guilsinglleft': 333,
  31239. 'guilsinglright': 333,
  31240. 'fi': 556,
  31241. 'fl': 556,
  31242. 'endash': 500,
  31243. 'dagger': 500,
  31244. 'daggerdbl': 500,
  31245. 'periodcentered': 250,
  31246. 'paragraph': 453,
  31247. 'bullet': 350,
  31248. 'quotesinglbase': 333,
  31249. 'quotedblbase': 444,
  31250. 'quotedblright': 444,
  31251. 'guillemotright': 500,
  31252. 'ellipsis': 1000,
  31253. 'perthousand': 1000,
  31254. 'questiondown': 444,
  31255. 'grave': 333,
  31256. 'acute': 333,
  31257. 'circumflex': 333,
  31258. 'tilde': 333,
  31259. 'macron': 333,
  31260. 'breve': 333,
  31261. 'dotaccent': 333,
  31262. 'dieresis': 333,
  31263. 'ring': 333,
  31264. 'cedilla': 333,
  31265. 'hungarumlaut': 333,
  31266. 'ogonek': 333,
  31267. 'caron': 333,
  31268. 'emdash': 1000,
  31269. 'AE': 889,
  31270. 'ordfeminine': 276,
  31271. 'Lslash': 611,
  31272. 'Oslash': 722,
  31273. 'OE': 889,
  31274. 'ordmasculine': 310,
  31275. 'ae': 667,
  31276. 'dotlessi': 278,
  31277. 'lslash': 278,
  31278. 'oslash': 500,
  31279. 'oe': 722,
  31280. 'germandbls': 500,
  31281. 'Idieresis': 333,
  31282. 'eacute': 444,
  31283. 'abreve': 444,
  31284. 'uhungarumlaut': 500,
  31285. 'ecaron': 444,
  31286. 'Ydieresis': 722,
  31287. 'divide': 564,
  31288. 'Yacute': 722,
  31289. 'Acircumflex': 722,
  31290. 'aacute': 444,
  31291. 'Ucircumflex': 722,
  31292. 'yacute': 500,
  31293. 'scommaaccent': 389,
  31294. 'ecircumflex': 444,
  31295. 'Uring': 722,
  31296. 'Udieresis': 722,
  31297. 'aogonek': 444,
  31298. 'Uacute': 722,
  31299. 'uogonek': 500,
  31300. 'Edieresis': 611,
  31301. 'Dcroat': 722,
  31302. 'commaaccent': 250,
  31303. 'copyright': 760,
  31304. 'Emacron': 611,
  31305. 'ccaron': 444,
  31306. 'aring': 444,
  31307. 'Ncommaaccent': 722,
  31308. 'lacute': 278,
  31309. 'agrave': 444,
  31310. 'Tcommaaccent': 611,
  31311. 'Cacute': 667,
  31312. 'atilde': 444,
  31313. 'Edotaccent': 611,
  31314. 'scaron': 389,
  31315. 'scedilla': 389,
  31316. 'iacute': 278,
  31317. 'lozenge': 471,
  31318. 'Rcaron': 667,
  31319. 'Gcommaaccent': 722,
  31320. 'ucircumflex': 500,
  31321. 'acircumflex': 444,
  31322. 'Amacron': 722,
  31323. 'rcaron': 333,
  31324. 'ccedilla': 444,
  31325. 'Zdotaccent': 611,
  31326. 'Thorn': 556,
  31327. 'Omacron': 722,
  31328. 'Racute': 667,
  31329. 'Sacute': 556,
  31330. 'dcaron': 588,
  31331. 'Umacron': 722,
  31332. 'uring': 500,
  31333. 'threesuperior': 300,
  31334. 'Ograve': 722,
  31335. 'Agrave': 722,
  31336. 'Abreve': 722,
  31337. 'multiply': 564,
  31338. 'uacute': 500,
  31339. 'Tcaron': 611,
  31340. 'partialdiff': 476,
  31341. 'ydieresis': 500,
  31342. 'Nacute': 722,
  31343. 'icircumflex': 278,
  31344. 'Ecircumflex': 611,
  31345. 'adieresis': 444,
  31346. 'edieresis': 444,
  31347. 'cacute': 444,
  31348. 'nacute': 500,
  31349. 'umacron': 500,
  31350. 'Ncaron': 722,
  31351. 'Iacute': 333,
  31352. 'plusminus': 564,
  31353. 'brokenbar': 200,
  31354. 'registered': 760,
  31355. 'Gbreve': 722,
  31356. 'Idotaccent': 333,
  31357. 'summation': 600,
  31358. 'Egrave': 611,
  31359. 'racute': 333,
  31360. 'omacron': 500,
  31361. 'Zacute': 611,
  31362. 'Zcaron': 611,
  31363. 'greaterequal': 549,
  31364. 'Eth': 722,
  31365. 'Ccedilla': 667,
  31366. 'lcommaaccent': 278,
  31367. 'tcaron': 326,
  31368. 'eogonek': 444,
  31369. 'Uogonek': 722,
  31370. 'Aacute': 722,
  31371. 'Adieresis': 722,
  31372. 'egrave': 444,
  31373. 'zacute': 444,
  31374. 'iogonek': 278,
  31375. 'Oacute': 722,
  31376. 'oacute': 500,
  31377. 'amacron': 444,
  31378. 'sacute': 389,
  31379. 'idieresis': 278,
  31380. 'Ocircumflex': 722,
  31381. 'Ugrave': 722,
  31382. 'Delta': 612,
  31383. 'thorn': 500,
  31384. 'twosuperior': 300,
  31385. 'Odieresis': 722,
  31386. 'mu': 500,
  31387. 'igrave': 278,
  31388. 'ohungarumlaut': 500,
  31389. 'Eogonek': 611,
  31390. 'dcroat': 500,
  31391. 'threequarters': 750,
  31392. 'Scedilla': 556,
  31393. 'lcaron': 344,
  31394. 'Kcommaaccent': 722,
  31395. 'Lacute': 611,
  31396. 'trademark': 980,
  31397. 'edotaccent': 444,
  31398. 'Igrave': 333,
  31399. 'Imacron': 333,
  31400. 'Lcaron': 611,
  31401. 'onehalf': 750,
  31402. 'lessequal': 549,
  31403. 'ocircumflex': 500,
  31404. 'ntilde': 500,
  31405. 'Uhungarumlaut': 722,
  31406. 'Eacute': 611,
  31407. 'emacron': 444,
  31408. 'gbreve': 500,
  31409. 'onequarter': 750,
  31410. 'Scaron': 556,
  31411. 'Scommaaccent': 556,
  31412. 'Ohungarumlaut': 722,
  31413. 'degree': 400,
  31414. 'ograve': 500,
  31415. 'Ccaron': 667,
  31416. 'ugrave': 500,
  31417. 'radical': 453,
  31418. 'Dcaron': 722,
  31419. 'rcommaaccent': 333,
  31420. 'Ntilde': 722,
  31421. 'otilde': 500,
  31422. 'Rcommaaccent': 667,
  31423. 'Lcommaaccent': 611,
  31424. 'Atilde': 722,
  31425. 'Aogonek': 722,
  31426. 'Aring': 722,
  31427. 'Otilde': 722,
  31428. 'zdotaccent': 444,
  31429. 'Ecaron': 611,
  31430. 'Iogonek': 333,
  31431. 'kcommaaccent': 500,
  31432. 'minus': 564,
  31433. 'Icircumflex': 333,
  31434. 'ncaron': 500,
  31435. 'tcommaaccent': 278,
  31436. 'logicalnot': 564,
  31437. 'odieresis': 500,
  31438. 'udieresis': 500,
  31439. 'notequal': 549,
  31440. 'gcommaaccent': 500,
  31441. 'eth': 500,
  31442. 'zcaron': 444,
  31443. 'ncommaaccent': 500,
  31444. 'onesuperior': 300,
  31445. 'imacron': 278,
  31446. 'Euro': 500
  31447. },
  31448. 'Times-Bold': {
  31449. 'space': 250,
  31450. 'exclam': 333,
  31451. 'quotedbl': 555,
  31452. 'numbersign': 500,
  31453. 'dollar': 500,
  31454. 'percent': 1000,
  31455. 'ampersand': 833,
  31456. 'quoteright': 333,
  31457. 'parenleft': 333,
  31458. 'parenright': 333,
  31459. 'asterisk': 500,
  31460. 'plus': 570,
  31461. 'comma': 250,
  31462. 'hyphen': 333,
  31463. 'period': 250,
  31464. 'slash': 278,
  31465. 'zero': 500,
  31466. 'one': 500,
  31467. 'two': 500,
  31468. 'three': 500,
  31469. 'four': 500,
  31470. 'five': 500,
  31471. 'six': 500,
  31472. 'seven': 500,
  31473. 'eight': 500,
  31474. 'nine': 500,
  31475. 'colon': 333,
  31476. 'semicolon': 333,
  31477. 'less': 570,
  31478. 'equal': 570,
  31479. 'greater': 570,
  31480. 'question': 500,
  31481. 'at': 930,
  31482. 'A': 722,
  31483. 'B': 667,
  31484. 'C': 722,
  31485. 'D': 722,
  31486. 'E': 667,
  31487. 'F': 611,
  31488. 'G': 778,
  31489. 'H': 778,
  31490. 'I': 389,
  31491. 'J': 500,
  31492. 'K': 778,
  31493. 'L': 667,
  31494. 'M': 944,
  31495. 'N': 722,
  31496. 'O': 778,
  31497. 'P': 611,
  31498. 'Q': 778,
  31499. 'R': 722,
  31500. 'S': 556,
  31501. 'T': 667,
  31502. 'U': 722,
  31503. 'V': 722,
  31504. 'W': 1000,
  31505. 'X': 722,
  31506. 'Y': 722,
  31507. 'Z': 667,
  31508. 'bracketleft': 333,
  31509. 'backslash': 278,
  31510. 'bracketright': 333,
  31511. 'asciicircum': 581,
  31512. 'underscore': 500,
  31513. 'quoteleft': 333,
  31514. 'a': 500,
  31515. 'b': 556,
  31516. 'c': 444,
  31517. 'd': 556,
  31518. 'e': 444,
  31519. 'f': 333,
  31520. 'g': 500,
  31521. 'h': 556,
  31522. 'i': 278,
  31523. 'j': 333,
  31524. 'k': 556,
  31525. 'l': 278,
  31526. 'm': 833,
  31527. 'n': 556,
  31528. 'o': 500,
  31529. 'p': 556,
  31530. 'q': 556,
  31531. 'r': 444,
  31532. 's': 389,
  31533. 't': 333,
  31534. 'u': 556,
  31535. 'v': 500,
  31536. 'w': 722,
  31537. 'x': 500,
  31538. 'y': 500,
  31539. 'z': 444,
  31540. 'braceleft': 394,
  31541. 'bar': 220,
  31542. 'braceright': 394,
  31543. 'asciitilde': 520,
  31544. 'exclamdown': 333,
  31545. 'cent': 500,
  31546. 'sterling': 500,
  31547. 'fraction': 167,
  31548. 'yen': 500,
  31549. 'florin': 500,
  31550. 'section': 500,
  31551. 'currency': 500,
  31552. 'quotesingle': 278,
  31553. 'quotedblleft': 500,
  31554. 'guillemotleft': 500,
  31555. 'guilsinglleft': 333,
  31556. 'guilsinglright': 333,
  31557. 'fi': 556,
  31558. 'fl': 556,
  31559. 'endash': 500,
  31560. 'dagger': 500,
  31561. 'daggerdbl': 500,
  31562. 'periodcentered': 250,
  31563. 'paragraph': 540,
  31564. 'bullet': 350,
  31565. 'quotesinglbase': 333,
  31566. 'quotedblbase': 500,
  31567. 'quotedblright': 500,
  31568. 'guillemotright': 500,
  31569. 'ellipsis': 1000,
  31570. 'perthousand': 1000,
  31571. 'questiondown': 500,
  31572. 'grave': 333,
  31573. 'acute': 333,
  31574. 'circumflex': 333,
  31575. 'tilde': 333,
  31576. 'macron': 333,
  31577. 'breve': 333,
  31578. 'dotaccent': 333,
  31579. 'dieresis': 333,
  31580. 'ring': 333,
  31581. 'cedilla': 333,
  31582. 'hungarumlaut': 333,
  31583. 'ogonek': 333,
  31584. 'caron': 333,
  31585. 'emdash': 1000,
  31586. 'AE': 1000,
  31587. 'ordfeminine': 300,
  31588. 'Lslash': 667,
  31589. 'Oslash': 778,
  31590. 'OE': 1000,
  31591. 'ordmasculine': 330,
  31592. 'ae': 722,
  31593. 'dotlessi': 278,
  31594. 'lslash': 278,
  31595. 'oslash': 500,
  31596. 'oe': 722,
  31597. 'germandbls': 556,
  31598. 'Idieresis': 389,
  31599. 'eacute': 444,
  31600. 'abreve': 500,
  31601. 'uhungarumlaut': 556,
  31602. 'ecaron': 444,
  31603. 'Ydieresis': 722,
  31604. 'divide': 570,
  31605. 'Yacute': 722,
  31606. 'Acircumflex': 722,
  31607. 'aacute': 500,
  31608. 'Ucircumflex': 722,
  31609. 'yacute': 500,
  31610. 'scommaaccent': 389,
  31611. 'ecircumflex': 444,
  31612. 'Uring': 722,
  31613. 'Udieresis': 722,
  31614. 'aogonek': 500,
  31615. 'Uacute': 722,
  31616. 'uogonek': 556,
  31617. 'Edieresis': 667,
  31618. 'Dcroat': 722,
  31619. 'commaaccent': 250,
  31620. 'copyright': 747,
  31621. 'Emacron': 667,
  31622. 'ccaron': 444,
  31623. 'aring': 500,
  31624. 'Ncommaaccent': 722,
  31625. 'lacute': 278,
  31626. 'agrave': 500,
  31627. 'Tcommaaccent': 667,
  31628. 'Cacute': 722,
  31629. 'atilde': 500,
  31630. 'Edotaccent': 667,
  31631. 'scaron': 389,
  31632. 'scedilla': 389,
  31633. 'iacute': 278,
  31634. 'lozenge': 494,
  31635. 'Rcaron': 722,
  31636. 'Gcommaaccent': 778,
  31637. 'ucircumflex': 556,
  31638. 'acircumflex': 500,
  31639. 'Amacron': 722,
  31640. 'rcaron': 444,
  31641. 'ccedilla': 444,
  31642. 'Zdotaccent': 667,
  31643. 'Thorn': 611,
  31644. 'Omacron': 778,
  31645. 'Racute': 722,
  31646. 'Sacute': 556,
  31647. 'dcaron': 672,
  31648. 'Umacron': 722,
  31649. 'uring': 556,
  31650. 'threesuperior': 300,
  31651. 'Ograve': 778,
  31652. 'Agrave': 722,
  31653. 'Abreve': 722,
  31654. 'multiply': 570,
  31655. 'uacute': 556,
  31656. 'Tcaron': 667,
  31657. 'partialdiff': 494,
  31658. 'ydieresis': 500,
  31659. 'Nacute': 722,
  31660. 'icircumflex': 278,
  31661. 'Ecircumflex': 667,
  31662. 'adieresis': 500,
  31663. 'edieresis': 444,
  31664. 'cacute': 444,
  31665. 'nacute': 556,
  31666. 'umacron': 556,
  31667. 'Ncaron': 722,
  31668. 'Iacute': 389,
  31669. 'plusminus': 570,
  31670. 'brokenbar': 220,
  31671. 'registered': 747,
  31672. 'Gbreve': 778,
  31673. 'Idotaccent': 389,
  31674. 'summation': 600,
  31675. 'Egrave': 667,
  31676. 'racute': 444,
  31677. 'omacron': 500,
  31678. 'Zacute': 667,
  31679. 'Zcaron': 667,
  31680. 'greaterequal': 549,
  31681. 'Eth': 722,
  31682. 'Ccedilla': 722,
  31683. 'lcommaaccent': 278,
  31684. 'tcaron': 416,
  31685. 'eogonek': 444,
  31686. 'Uogonek': 722,
  31687. 'Aacute': 722,
  31688. 'Adieresis': 722,
  31689. 'egrave': 444,
  31690. 'zacute': 444,
  31691. 'iogonek': 278,
  31692. 'Oacute': 778,
  31693. 'oacute': 500,
  31694. 'amacron': 500,
  31695. 'sacute': 389,
  31696. 'idieresis': 278,
  31697. 'Ocircumflex': 778,
  31698. 'Ugrave': 722,
  31699. 'Delta': 612,
  31700. 'thorn': 556,
  31701. 'twosuperior': 300,
  31702. 'Odieresis': 778,
  31703. 'mu': 556,
  31704. 'igrave': 278,
  31705. 'ohungarumlaut': 500,
  31706. 'Eogonek': 667,
  31707. 'dcroat': 556,
  31708. 'threequarters': 750,
  31709. 'Scedilla': 556,
  31710. 'lcaron': 394,
  31711. 'Kcommaaccent': 778,
  31712. 'Lacute': 667,
  31713. 'trademark': 1000,
  31714. 'edotaccent': 444,
  31715. 'Igrave': 389,
  31716. 'Imacron': 389,
  31717. 'Lcaron': 667,
  31718. 'onehalf': 750,
  31719. 'lessequal': 549,
  31720. 'ocircumflex': 500,
  31721. 'ntilde': 556,
  31722. 'Uhungarumlaut': 722,
  31723. 'Eacute': 667,
  31724. 'emacron': 444,
  31725. 'gbreve': 500,
  31726. 'onequarter': 750,
  31727. 'Scaron': 556,
  31728. 'Scommaaccent': 556,
  31729. 'Ohungarumlaut': 778,
  31730. 'degree': 400,
  31731. 'ograve': 500,
  31732. 'Ccaron': 722,
  31733. 'ugrave': 556,
  31734. 'radical': 549,
  31735. 'Dcaron': 722,
  31736. 'rcommaaccent': 444,
  31737. 'Ntilde': 722,
  31738. 'otilde': 500,
  31739. 'Rcommaaccent': 722,
  31740. 'Lcommaaccent': 667,
  31741. 'Atilde': 722,
  31742. 'Aogonek': 722,
  31743. 'Aring': 722,
  31744. 'Otilde': 778,
  31745. 'zdotaccent': 444,
  31746. 'Ecaron': 667,
  31747. 'Iogonek': 389,
  31748. 'kcommaaccent': 556,
  31749. 'minus': 570,
  31750. 'Icircumflex': 389,
  31751. 'ncaron': 556,
  31752. 'tcommaaccent': 333,
  31753. 'logicalnot': 570,
  31754. 'odieresis': 500,
  31755. 'udieresis': 556,
  31756. 'notequal': 549,
  31757. 'gcommaaccent': 500,
  31758. 'eth': 500,
  31759. 'zcaron': 444,
  31760. 'ncommaaccent': 556,
  31761. 'onesuperior': 300,
  31762. 'imacron': 278,
  31763. 'Euro': 500
  31764. },
  31765. 'Times-BoldItalic': {
  31766. 'space': 250,
  31767. 'exclam': 389,
  31768. 'quotedbl': 555,
  31769. 'numbersign': 500,
  31770. 'dollar': 500,
  31771. 'percent': 833,
  31772. 'ampersand': 778,
  31773. 'quoteright': 333,
  31774. 'parenleft': 333,
  31775. 'parenright': 333,
  31776. 'asterisk': 500,
  31777. 'plus': 570,
  31778. 'comma': 250,
  31779. 'hyphen': 333,
  31780. 'period': 250,
  31781. 'slash': 278,
  31782. 'zero': 500,
  31783. 'one': 500,
  31784. 'two': 500,
  31785. 'three': 500,
  31786. 'four': 500,
  31787. 'five': 500,
  31788. 'six': 500,
  31789. 'seven': 500,
  31790. 'eight': 500,
  31791. 'nine': 500,
  31792. 'colon': 333,
  31793. 'semicolon': 333,
  31794. 'less': 570,
  31795. 'equal': 570,
  31796. 'greater': 570,
  31797. 'question': 500,
  31798. 'at': 832,
  31799. 'A': 667,
  31800. 'B': 667,
  31801. 'C': 667,
  31802. 'D': 722,
  31803. 'E': 667,
  31804. 'F': 667,
  31805. 'G': 722,
  31806. 'H': 778,
  31807. 'I': 389,
  31808. 'J': 500,
  31809. 'K': 667,
  31810. 'L': 611,
  31811. 'M': 889,
  31812. 'N': 722,
  31813. 'O': 722,
  31814. 'P': 611,
  31815. 'Q': 722,
  31816. 'R': 667,
  31817. 'S': 556,
  31818. 'T': 611,
  31819. 'U': 722,
  31820. 'V': 667,
  31821. 'W': 889,
  31822. 'X': 667,
  31823. 'Y': 611,
  31824. 'Z': 611,
  31825. 'bracketleft': 333,
  31826. 'backslash': 278,
  31827. 'bracketright': 333,
  31828. 'asciicircum': 570,
  31829. 'underscore': 500,
  31830. 'quoteleft': 333,
  31831. 'a': 500,
  31832. 'b': 500,
  31833. 'c': 444,
  31834. 'd': 500,
  31835. 'e': 444,
  31836. 'f': 333,
  31837. 'g': 500,
  31838. 'h': 556,
  31839. 'i': 278,
  31840. 'j': 278,
  31841. 'k': 500,
  31842. 'l': 278,
  31843. 'm': 778,
  31844. 'n': 556,
  31845. 'o': 500,
  31846. 'p': 500,
  31847. 'q': 500,
  31848. 'r': 389,
  31849. 's': 389,
  31850. 't': 278,
  31851. 'u': 556,
  31852. 'v': 444,
  31853. 'w': 667,
  31854. 'x': 500,
  31855. 'y': 444,
  31856. 'z': 389,
  31857. 'braceleft': 348,
  31858. 'bar': 220,
  31859. 'braceright': 348,
  31860. 'asciitilde': 570,
  31861. 'exclamdown': 389,
  31862. 'cent': 500,
  31863. 'sterling': 500,
  31864. 'fraction': 167,
  31865. 'yen': 500,
  31866. 'florin': 500,
  31867. 'section': 500,
  31868. 'currency': 500,
  31869. 'quotesingle': 278,
  31870. 'quotedblleft': 500,
  31871. 'guillemotleft': 500,
  31872. 'guilsinglleft': 333,
  31873. 'guilsinglright': 333,
  31874. 'fi': 556,
  31875. 'fl': 556,
  31876. 'endash': 500,
  31877. 'dagger': 500,
  31878. 'daggerdbl': 500,
  31879. 'periodcentered': 250,
  31880. 'paragraph': 500,
  31881. 'bullet': 350,
  31882. 'quotesinglbase': 333,
  31883. 'quotedblbase': 500,
  31884. 'quotedblright': 500,
  31885. 'guillemotright': 500,
  31886. 'ellipsis': 1000,
  31887. 'perthousand': 1000,
  31888. 'questiondown': 500,
  31889. 'grave': 333,
  31890. 'acute': 333,
  31891. 'circumflex': 333,
  31892. 'tilde': 333,
  31893. 'macron': 333,
  31894. 'breve': 333,
  31895. 'dotaccent': 333,
  31896. 'dieresis': 333,
  31897. 'ring': 333,
  31898. 'cedilla': 333,
  31899. 'hungarumlaut': 333,
  31900. 'ogonek': 333,
  31901. 'caron': 333,
  31902. 'emdash': 1000,
  31903. 'AE': 944,
  31904. 'ordfeminine': 266,
  31905. 'Lslash': 611,
  31906. 'Oslash': 722,
  31907. 'OE': 944,
  31908. 'ordmasculine': 300,
  31909. 'ae': 722,
  31910. 'dotlessi': 278,
  31911. 'lslash': 278,
  31912. 'oslash': 500,
  31913. 'oe': 722,
  31914. 'germandbls': 500,
  31915. 'Idieresis': 389,
  31916. 'eacute': 444,
  31917. 'abreve': 500,
  31918. 'uhungarumlaut': 556,
  31919. 'ecaron': 444,
  31920. 'Ydieresis': 611,
  31921. 'divide': 570,
  31922. 'Yacute': 611,
  31923. 'Acircumflex': 667,
  31924. 'aacute': 500,
  31925. 'Ucircumflex': 722,
  31926. 'yacute': 444,
  31927. 'scommaaccent': 389,
  31928. 'ecircumflex': 444,
  31929. 'Uring': 722,
  31930. 'Udieresis': 722,
  31931. 'aogonek': 500,
  31932. 'Uacute': 722,
  31933. 'uogonek': 556,
  31934. 'Edieresis': 667,
  31935. 'Dcroat': 722,
  31936. 'commaaccent': 250,
  31937. 'copyright': 747,
  31938. 'Emacron': 667,
  31939. 'ccaron': 444,
  31940. 'aring': 500,
  31941. 'Ncommaaccent': 722,
  31942. 'lacute': 278,
  31943. 'agrave': 500,
  31944. 'Tcommaaccent': 611,
  31945. 'Cacute': 667,
  31946. 'atilde': 500,
  31947. 'Edotaccent': 667,
  31948. 'scaron': 389,
  31949. 'scedilla': 389,
  31950. 'iacute': 278,
  31951. 'lozenge': 494,
  31952. 'Rcaron': 667,
  31953. 'Gcommaaccent': 722,
  31954. 'ucircumflex': 556,
  31955. 'acircumflex': 500,
  31956. 'Amacron': 667,
  31957. 'rcaron': 389,
  31958. 'ccedilla': 444,
  31959. 'Zdotaccent': 611,
  31960. 'Thorn': 611,
  31961. 'Omacron': 722,
  31962. 'Racute': 667,
  31963. 'Sacute': 556,
  31964. 'dcaron': 608,
  31965. 'Umacron': 722,
  31966. 'uring': 556,
  31967. 'threesuperior': 300,
  31968. 'Ograve': 722,
  31969. 'Agrave': 667,
  31970. 'Abreve': 667,
  31971. 'multiply': 570,
  31972. 'uacute': 556,
  31973. 'Tcaron': 611,
  31974. 'partialdiff': 494,
  31975. 'ydieresis': 444,
  31976. 'Nacute': 722,
  31977. 'icircumflex': 278,
  31978. 'Ecircumflex': 667,
  31979. 'adieresis': 500,
  31980. 'edieresis': 444,
  31981. 'cacute': 444,
  31982. 'nacute': 556,
  31983. 'umacron': 556,
  31984. 'Ncaron': 722,
  31985. 'Iacute': 389,
  31986. 'plusminus': 570,
  31987. 'brokenbar': 220,
  31988. 'registered': 747,
  31989. 'Gbreve': 722,
  31990. 'Idotaccent': 389,
  31991. 'summation': 600,
  31992. 'Egrave': 667,
  31993. 'racute': 389,
  31994. 'omacron': 500,
  31995. 'Zacute': 611,
  31996. 'Zcaron': 611,
  31997. 'greaterequal': 549,
  31998. 'Eth': 722,
  31999. 'Ccedilla': 667,
  32000. 'lcommaaccent': 278,
  32001. 'tcaron': 366,
  32002. 'eogonek': 444,
  32003. 'Uogonek': 722,
  32004. 'Aacute': 667,
  32005. 'Adieresis': 667,
  32006. 'egrave': 444,
  32007. 'zacute': 389,
  32008. 'iogonek': 278,
  32009. 'Oacute': 722,
  32010. 'oacute': 500,
  32011. 'amacron': 500,
  32012. 'sacute': 389,
  32013. 'idieresis': 278,
  32014. 'Ocircumflex': 722,
  32015. 'Ugrave': 722,
  32016. 'Delta': 612,
  32017. 'thorn': 500,
  32018. 'twosuperior': 300,
  32019. 'Odieresis': 722,
  32020. 'mu': 576,
  32021. 'igrave': 278,
  32022. 'ohungarumlaut': 500,
  32023. 'Eogonek': 667,
  32024. 'dcroat': 500,
  32025. 'threequarters': 750,
  32026. 'Scedilla': 556,
  32027. 'lcaron': 382,
  32028. 'Kcommaaccent': 667,
  32029. 'Lacute': 611,
  32030. 'trademark': 1000,
  32031. 'edotaccent': 444,
  32032. 'Igrave': 389,
  32033. 'Imacron': 389,
  32034. 'Lcaron': 611,
  32035. 'onehalf': 750,
  32036. 'lessequal': 549,
  32037. 'ocircumflex': 500,
  32038. 'ntilde': 556,
  32039. 'Uhungarumlaut': 722,
  32040. 'Eacute': 667,
  32041. 'emacron': 444,
  32042. 'gbreve': 500,
  32043. 'onequarter': 750,
  32044. 'Scaron': 556,
  32045. 'Scommaaccent': 556,
  32046. 'Ohungarumlaut': 722,
  32047. 'degree': 400,
  32048. 'ograve': 500,
  32049. 'Ccaron': 667,
  32050. 'ugrave': 556,
  32051. 'radical': 549,
  32052. 'Dcaron': 722,
  32053. 'rcommaaccent': 389,
  32054. 'Ntilde': 722,
  32055. 'otilde': 500,
  32056. 'Rcommaaccent': 667,
  32057. 'Lcommaaccent': 611,
  32058. 'Atilde': 667,
  32059. 'Aogonek': 667,
  32060. 'Aring': 667,
  32061. 'Otilde': 722,
  32062. 'zdotaccent': 389,
  32063. 'Ecaron': 667,
  32064. 'Iogonek': 389,
  32065. 'kcommaaccent': 500,
  32066. 'minus': 606,
  32067. 'Icircumflex': 389,
  32068. 'ncaron': 556,
  32069. 'tcommaaccent': 278,
  32070. 'logicalnot': 606,
  32071. 'odieresis': 500,
  32072. 'udieresis': 556,
  32073. 'notequal': 549,
  32074. 'gcommaaccent': 500,
  32075. 'eth': 500,
  32076. 'zcaron': 389,
  32077. 'ncommaaccent': 556,
  32078. 'onesuperior': 300,
  32079. 'imacron': 278,
  32080. 'Euro': 500
  32081. },
  32082. 'Times-Italic': {
  32083. 'space': 250,
  32084. 'exclam': 333,
  32085. 'quotedbl': 420,
  32086. 'numbersign': 500,
  32087. 'dollar': 500,
  32088. 'percent': 833,
  32089. 'ampersand': 778,
  32090. 'quoteright': 333,
  32091. 'parenleft': 333,
  32092. 'parenright': 333,
  32093. 'asterisk': 500,
  32094. 'plus': 675,
  32095. 'comma': 250,
  32096. 'hyphen': 333,
  32097. 'period': 250,
  32098. 'slash': 278,
  32099. 'zero': 500,
  32100. 'one': 500,
  32101. 'two': 500,
  32102. 'three': 500,
  32103. 'four': 500,
  32104. 'five': 500,
  32105. 'six': 500,
  32106. 'seven': 500,
  32107. 'eight': 500,
  32108. 'nine': 500,
  32109. 'colon': 333,
  32110. 'semicolon': 333,
  32111. 'less': 675,
  32112. 'equal': 675,
  32113. 'greater': 675,
  32114. 'question': 500,
  32115. 'at': 920,
  32116. 'A': 611,
  32117. 'B': 611,
  32118. 'C': 667,
  32119. 'D': 722,
  32120. 'E': 611,
  32121. 'F': 611,
  32122. 'G': 722,
  32123. 'H': 722,
  32124. 'I': 333,
  32125. 'J': 444,
  32126. 'K': 667,
  32127. 'L': 556,
  32128. 'M': 833,
  32129. 'N': 667,
  32130. 'O': 722,
  32131. 'P': 611,
  32132. 'Q': 722,
  32133. 'R': 611,
  32134. 'S': 500,
  32135. 'T': 556,
  32136. 'U': 722,
  32137. 'V': 611,
  32138. 'W': 833,
  32139. 'X': 611,
  32140. 'Y': 556,
  32141. 'Z': 556,
  32142. 'bracketleft': 389,
  32143. 'backslash': 278,
  32144. 'bracketright': 389,
  32145. 'asciicircum': 422,
  32146. 'underscore': 500,
  32147. 'quoteleft': 333,
  32148. 'a': 500,
  32149. 'b': 500,
  32150. 'c': 444,
  32151. 'd': 500,
  32152. 'e': 444,
  32153. 'f': 278,
  32154. 'g': 500,
  32155. 'h': 500,
  32156. 'i': 278,
  32157. 'j': 278,
  32158. 'k': 444,
  32159. 'l': 278,
  32160. 'm': 722,
  32161. 'n': 500,
  32162. 'o': 500,
  32163. 'p': 500,
  32164. 'q': 500,
  32165. 'r': 389,
  32166. 's': 389,
  32167. 't': 278,
  32168. 'u': 500,
  32169. 'v': 444,
  32170. 'w': 667,
  32171. 'x': 444,
  32172. 'y': 444,
  32173. 'z': 389,
  32174. 'braceleft': 400,
  32175. 'bar': 275,
  32176. 'braceright': 400,
  32177. 'asciitilde': 541,
  32178. 'exclamdown': 389,
  32179. 'cent': 500,
  32180. 'sterling': 500,
  32181. 'fraction': 167,
  32182. 'yen': 500,
  32183. 'florin': 500,
  32184. 'section': 500,
  32185. 'currency': 500,
  32186. 'quotesingle': 214,
  32187. 'quotedblleft': 556,
  32188. 'guillemotleft': 500,
  32189. 'guilsinglleft': 333,
  32190. 'guilsinglright': 333,
  32191. 'fi': 500,
  32192. 'fl': 500,
  32193. 'endash': 500,
  32194. 'dagger': 500,
  32195. 'daggerdbl': 500,
  32196. 'periodcentered': 250,
  32197. 'paragraph': 523,
  32198. 'bullet': 350,
  32199. 'quotesinglbase': 333,
  32200. 'quotedblbase': 556,
  32201. 'quotedblright': 556,
  32202. 'guillemotright': 500,
  32203. 'ellipsis': 889,
  32204. 'perthousand': 1000,
  32205. 'questiondown': 500,
  32206. 'grave': 333,
  32207. 'acute': 333,
  32208. 'circumflex': 333,
  32209. 'tilde': 333,
  32210. 'macron': 333,
  32211. 'breve': 333,
  32212. 'dotaccent': 333,
  32213. 'dieresis': 333,
  32214. 'ring': 333,
  32215. 'cedilla': 333,
  32216. 'hungarumlaut': 333,
  32217. 'ogonek': 333,
  32218. 'caron': 333,
  32219. 'emdash': 889,
  32220. 'AE': 889,
  32221. 'ordfeminine': 276,
  32222. 'Lslash': 556,
  32223. 'Oslash': 722,
  32224. 'OE': 944,
  32225. 'ordmasculine': 310,
  32226. 'ae': 667,
  32227. 'dotlessi': 278,
  32228. 'lslash': 278,
  32229. 'oslash': 500,
  32230. 'oe': 667,
  32231. 'germandbls': 500,
  32232. 'Idieresis': 333,
  32233. 'eacute': 444,
  32234. 'abreve': 500,
  32235. 'uhungarumlaut': 500,
  32236. 'ecaron': 444,
  32237. 'Ydieresis': 556,
  32238. 'divide': 675,
  32239. 'Yacute': 556,
  32240. 'Acircumflex': 611,
  32241. 'aacute': 500,
  32242. 'Ucircumflex': 722,
  32243. 'yacute': 444,
  32244. 'scommaaccent': 389,
  32245. 'ecircumflex': 444,
  32246. 'Uring': 722,
  32247. 'Udieresis': 722,
  32248. 'aogonek': 500,
  32249. 'Uacute': 722,
  32250. 'uogonek': 500,
  32251. 'Edieresis': 611,
  32252. 'Dcroat': 722,
  32253. 'commaaccent': 250,
  32254. 'copyright': 760,
  32255. 'Emacron': 611,
  32256. 'ccaron': 444,
  32257. 'aring': 500,
  32258. 'Ncommaaccent': 667,
  32259. 'lacute': 278,
  32260. 'agrave': 500,
  32261. 'Tcommaaccent': 556,
  32262. 'Cacute': 667,
  32263. 'atilde': 500,
  32264. 'Edotaccent': 611,
  32265. 'scaron': 389,
  32266. 'scedilla': 389,
  32267. 'iacute': 278,
  32268. 'lozenge': 471,
  32269. 'Rcaron': 611,
  32270. 'Gcommaaccent': 722,
  32271. 'ucircumflex': 500,
  32272. 'acircumflex': 500,
  32273. 'Amacron': 611,
  32274. 'rcaron': 389,
  32275. 'ccedilla': 444,
  32276. 'Zdotaccent': 556,
  32277. 'Thorn': 611,
  32278. 'Omacron': 722,
  32279. 'Racute': 611,
  32280. 'Sacute': 500,
  32281. 'dcaron': 544,
  32282. 'Umacron': 722,
  32283. 'uring': 500,
  32284. 'threesuperior': 300,
  32285. 'Ograve': 722,
  32286. 'Agrave': 611,
  32287. 'Abreve': 611,
  32288. 'multiply': 675,
  32289. 'uacute': 500,
  32290. 'Tcaron': 556,
  32291. 'partialdiff': 476,
  32292. 'ydieresis': 444,
  32293. 'Nacute': 667,
  32294. 'icircumflex': 278,
  32295. 'Ecircumflex': 611,
  32296. 'adieresis': 500,
  32297. 'edieresis': 444,
  32298. 'cacute': 444,
  32299. 'nacute': 500,
  32300. 'umacron': 500,
  32301. 'Ncaron': 667,
  32302. 'Iacute': 333,
  32303. 'plusminus': 675,
  32304. 'brokenbar': 275,
  32305. 'registered': 760,
  32306. 'Gbreve': 722,
  32307. 'Idotaccent': 333,
  32308. 'summation': 600,
  32309. 'Egrave': 611,
  32310. 'racute': 389,
  32311. 'omacron': 500,
  32312. 'Zacute': 556,
  32313. 'Zcaron': 556,
  32314. 'greaterequal': 549,
  32315. 'Eth': 722,
  32316. 'Ccedilla': 667,
  32317. 'lcommaaccent': 278,
  32318. 'tcaron': 300,
  32319. 'eogonek': 444,
  32320. 'Uogonek': 722,
  32321. 'Aacute': 611,
  32322. 'Adieresis': 611,
  32323. 'egrave': 444,
  32324. 'zacute': 389,
  32325. 'iogonek': 278,
  32326. 'Oacute': 722,
  32327. 'oacute': 500,
  32328. 'amacron': 500,
  32329. 'sacute': 389,
  32330. 'idieresis': 278,
  32331. 'Ocircumflex': 722,
  32332. 'Ugrave': 722,
  32333. 'Delta': 612,
  32334. 'thorn': 500,
  32335. 'twosuperior': 300,
  32336. 'Odieresis': 722,
  32337. 'mu': 500,
  32338. 'igrave': 278,
  32339. 'ohungarumlaut': 500,
  32340. 'Eogonek': 611,
  32341. 'dcroat': 500,
  32342. 'threequarters': 750,
  32343. 'Scedilla': 500,
  32344. 'lcaron': 300,
  32345. 'Kcommaaccent': 667,
  32346. 'Lacute': 556,
  32347. 'trademark': 980,
  32348. 'edotaccent': 444,
  32349. 'Igrave': 333,
  32350. 'Imacron': 333,
  32351. 'Lcaron': 611,
  32352. 'onehalf': 750,
  32353. 'lessequal': 549,
  32354. 'ocircumflex': 500,
  32355. 'ntilde': 500,
  32356. 'Uhungarumlaut': 722,
  32357. 'Eacute': 611,
  32358. 'emacron': 444,
  32359. 'gbreve': 500,
  32360. 'onequarter': 750,
  32361. 'Scaron': 500,
  32362. 'Scommaaccent': 500,
  32363. 'Ohungarumlaut': 722,
  32364. 'degree': 400,
  32365. 'ograve': 500,
  32366. 'Ccaron': 667,
  32367. 'ugrave': 500,
  32368. 'radical': 453,
  32369. 'Dcaron': 722,
  32370. 'rcommaaccent': 389,
  32371. 'Ntilde': 667,
  32372. 'otilde': 500,
  32373. 'Rcommaaccent': 611,
  32374. 'Lcommaaccent': 556,
  32375. 'Atilde': 611,
  32376. 'Aogonek': 611,
  32377. 'Aring': 611,
  32378. 'Otilde': 722,
  32379. 'zdotaccent': 389,
  32380. 'Ecaron': 611,
  32381. 'Iogonek': 333,
  32382. 'kcommaaccent': 444,
  32383. 'minus': 675,
  32384. 'Icircumflex': 333,
  32385. 'ncaron': 500,
  32386. 'tcommaaccent': 278,
  32387. 'logicalnot': 675,
  32388. 'odieresis': 500,
  32389. 'udieresis': 500,
  32390. 'notequal': 549,
  32391. 'gcommaaccent': 500,
  32392. 'eth': 500,
  32393. 'zcaron': 389,
  32394. 'ncommaaccent': 500,
  32395. 'onesuperior': 300,
  32396. 'imacron': 278,
  32397. 'Euro': 500
  32398. },
  32399. 'ZapfDingbats': {
  32400. 'space': 278,
  32401. 'a1': 974,
  32402. 'a2': 961,
  32403. 'a202': 974,
  32404. 'a3': 980,
  32405. 'a4': 719,
  32406. 'a5': 789,
  32407. 'a119': 790,
  32408. 'a118': 791,
  32409. 'a117': 690,
  32410. 'a11': 960,
  32411. 'a12': 939,
  32412. 'a13': 549,
  32413. 'a14': 855,
  32414. 'a15': 911,
  32415. 'a16': 933,
  32416. 'a105': 911,
  32417. 'a17': 945,
  32418. 'a18': 974,
  32419. 'a19': 755,
  32420. 'a20': 846,
  32421. 'a21': 762,
  32422. 'a22': 761,
  32423. 'a23': 571,
  32424. 'a24': 677,
  32425. 'a25': 763,
  32426. 'a26': 760,
  32427. 'a27': 759,
  32428. 'a28': 754,
  32429. 'a6': 494,
  32430. 'a7': 552,
  32431. 'a8': 537,
  32432. 'a9': 577,
  32433. 'a10': 692,
  32434. 'a29': 786,
  32435. 'a30': 788,
  32436. 'a31': 788,
  32437. 'a32': 790,
  32438. 'a33': 793,
  32439. 'a34': 794,
  32440. 'a35': 816,
  32441. 'a36': 823,
  32442. 'a37': 789,
  32443. 'a38': 841,
  32444. 'a39': 823,
  32445. 'a40': 833,
  32446. 'a41': 816,
  32447. 'a42': 831,
  32448. 'a43': 923,
  32449. 'a44': 744,
  32450. 'a45': 723,
  32451. 'a46': 749,
  32452. 'a47': 790,
  32453. 'a48': 792,
  32454. 'a49': 695,
  32455. 'a50': 776,
  32456. 'a51': 768,
  32457. 'a52': 792,
  32458. 'a53': 759,
  32459. 'a54': 707,
  32460. 'a55': 708,
  32461. 'a56': 682,
  32462. 'a57': 701,
  32463. 'a58': 826,
  32464. 'a59': 815,
  32465. 'a60': 789,
  32466. 'a61': 789,
  32467. 'a62': 707,
  32468. 'a63': 687,
  32469. 'a64': 696,
  32470. 'a65': 689,
  32471. 'a66': 786,
  32472. 'a67': 787,
  32473. 'a68': 713,
  32474. 'a69': 791,
  32475. 'a70': 785,
  32476. 'a71': 791,
  32477. 'a72': 873,
  32478. 'a73': 761,
  32479. 'a74': 762,
  32480. 'a203': 762,
  32481. 'a75': 759,
  32482. 'a204': 759,
  32483. 'a76': 892,
  32484. 'a77': 892,
  32485. 'a78': 788,
  32486. 'a79': 784,
  32487. 'a81': 438,
  32488. 'a82': 138,
  32489. 'a83': 277,
  32490. 'a84': 415,
  32491. 'a97': 392,
  32492. 'a98': 392,
  32493. 'a99': 668,
  32494. 'a100': 668,
  32495. 'a89': 390,
  32496. 'a90': 390,
  32497. 'a93': 317,
  32498. 'a94': 317,
  32499. 'a91': 276,
  32500. 'a92': 276,
  32501. 'a205': 509,
  32502. 'a85': 509,
  32503. 'a206': 410,
  32504. 'a86': 410,
  32505. 'a87': 234,
  32506. 'a88': 234,
  32507. 'a95': 334,
  32508. 'a96': 334,
  32509. 'a101': 732,
  32510. 'a102': 544,
  32511. 'a103': 544,
  32512. 'a104': 910,
  32513. 'a106': 667,
  32514. 'a107': 760,
  32515. 'a108': 760,
  32516. 'a112': 776,
  32517. 'a111': 595,
  32518. 'a110': 694,
  32519. 'a109': 626,
  32520. 'a120': 788,
  32521. 'a121': 788,
  32522. 'a122': 788,
  32523. 'a123': 788,
  32524. 'a124': 788,
  32525. 'a125': 788,
  32526. 'a126': 788,
  32527. 'a127': 788,
  32528. 'a128': 788,
  32529. 'a129': 788,
  32530. 'a130': 788,
  32531. 'a131': 788,
  32532. 'a132': 788,
  32533. 'a133': 788,
  32534. 'a134': 788,
  32535. 'a135': 788,
  32536. 'a136': 788,
  32537. 'a137': 788,
  32538. 'a138': 788,
  32539. 'a139': 788,
  32540. 'a140': 788,
  32541. 'a141': 788,
  32542. 'a142': 788,
  32543. 'a143': 788,
  32544. 'a144': 788,
  32545. 'a145': 788,
  32546. 'a146': 788,
  32547. 'a147': 788,
  32548. 'a148': 788,
  32549. 'a149': 788,
  32550. 'a150': 788,
  32551. 'a151': 788,
  32552. 'a152': 788,
  32553. 'a153': 788,
  32554. 'a154': 788,
  32555. 'a155': 788,
  32556. 'a156': 788,
  32557. 'a157': 788,
  32558. 'a158': 788,
  32559. 'a159': 788,
  32560. 'a160': 894,
  32561. 'a161': 838,
  32562. 'a163': 1016,
  32563. 'a164': 458,
  32564. 'a196': 748,
  32565. 'a165': 924,
  32566. 'a192': 748,
  32567. 'a166': 918,
  32568. 'a167': 927,
  32569. 'a168': 928,
  32570. 'a169': 928,
  32571. 'a170': 834,
  32572. 'a171': 873,
  32573. 'a172': 828,
  32574. 'a173': 924,
  32575. 'a162': 924,
  32576. 'a174': 917,
  32577. 'a175': 930,
  32578. 'a176': 931,
  32579. 'a177': 463,
  32580. 'a178': 883,
  32581. 'a179': 836,
  32582. 'a193': 836,
  32583. 'a180': 867,
  32584. 'a199': 867,
  32585. 'a181': 696,
  32586. 'a200': 696,
  32587. 'a182': 874,
  32588. 'a201': 874,
  32589. 'a183': 760,
  32590. 'a184': 946,
  32591. 'a197': 771,
  32592. 'a185': 865,
  32593. 'a194': 771,
  32594. 'a198': 888,
  32595. 'a186': 967,
  32596. 'a195': 888,
  32597. 'a187': 831,
  32598. 'a188': 873,
  32599. 'a189': 927,
  32600. 'a190': 970,
  32601. 'a191': 918
  32602. }
  32603. };
  32604. var EOF = {};
  32605. function isEOF(v) {
  32606. return (v === EOF);
  32607. }
  32608. var Parser = (function ParserClosure() {
  32609. function Parser(lexer, allowStreams, xref) {
  32610. this.lexer = lexer;
  32611. this.allowStreams = allowStreams;
  32612. this.xref = xref;
  32613. this.imageCache = {
  32614. length: 0,
  32615. adler32: 0,
  32616. stream: null
  32617. };
  32618. this.refill();
  32619. }
  32620. Parser.prototype = {
  32621. refill: function Parser_refill() {
  32622. this.buf1 = this.lexer.getObj();
  32623. this.buf2 = this.lexer.getObj();
  32624. },
  32625. shift: function Parser_shift() {
  32626. if (isCmd(this.buf2, 'ID')) {
  32627. this.buf1 = this.buf2;
  32628. this.buf2 = null;
  32629. } else {
  32630. this.buf1 = this.buf2;
  32631. this.buf2 = this.lexer.getObj();
  32632. }
  32633. },
  32634. getObj: function Parser_getObj(cipherTransform) {
  32635. var buf1 = this.buf1;
  32636. this.shift();
  32637. if (buf1 instanceof Cmd) {
  32638. switch (buf1.cmd) {
  32639. case 'BI': // inline image
  32640. return this.makeInlineImage(cipherTransform);
  32641. case '[': // array
  32642. var array = [];
  32643. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) {
  32644. array.push(this.getObj(cipherTransform));
  32645. }
  32646. if (isEOF(this.buf1)) {
  32647. error('End of file inside array');
  32648. }
  32649. this.shift();
  32650. return array;
  32651. case '<<': // dictionary or stream
  32652. var dict = new Dict(this.xref);
  32653. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  32654. if (!isName(this.buf1)) {
  32655. info('Malformed dictionary: key must be a name object');
  32656. this.shift();
  32657. continue;
  32658. }
  32659. var key = this.buf1.name;
  32660. this.shift();
  32661. if (isEOF(this.buf1)) {
  32662. break;
  32663. }
  32664. dict.set(key, this.getObj(cipherTransform));
  32665. }
  32666. if (isEOF(this.buf1)) {
  32667. error('End of file inside dictionary');
  32668. }
  32669. // Stream objects are not allowed inside content streams or
  32670. // object streams.
  32671. if (isCmd(this.buf2, 'stream')) {
  32672. return (this.allowStreams ?
  32673. this.makeStream(dict, cipherTransform) : dict);
  32674. }
  32675. this.shift();
  32676. return dict;
  32677. default: // simple object
  32678. return buf1;
  32679. }
  32680. }
  32681. if (isInt(buf1)) { // indirect reference or integer
  32682. var num = buf1;
  32683. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  32684. var ref = new Ref(num, this.buf1);
  32685. this.shift();
  32686. this.shift();
  32687. return ref;
  32688. }
  32689. return num;
  32690. }
  32691. if (isString(buf1)) { // string
  32692. var str = buf1;
  32693. if (cipherTransform) {
  32694. str = cipherTransform.decryptString(str);
  32695. }
  32696. return str;
  32697. }
  32698. // simple object
  32699. return buf1;
  32700. },
  32701. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  32702. var lexer = this.lexer;
  32703. var stream = lexer.stream;
  32704. // parse dictionary
  32705. var dict = new Dict(null);
  32706. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  32707. if (!isName(this.buf1)) {
  32708. error('Dictionary key must be a name object');
  32709. }
  32710. var key = this.buf1.name;
  32711. this.shift();
  32712. if (isEOF(this.buf1)) {
  32713. break;
  32714. }
  32715. dict.set(key, this.getObj(cipherTransform));
  32716. }
  32717. // parse image stream
  32718. var startPos = stream.pos;
  32719. // searching for the /EI\s/
  32720. var state = 0, ch, i, ii;
  32721. while (state != 4 && (ch = stream.getByte()) !== -1) {
  32722. switch (ch | 0) {
  32723. case 0x20:
  32724. case 0x0D:
  32725. case 0x0A:
  32726. // let's check next five bytes to be ASCII... just be sure
  32727. var followingBytes = stream.peekBytes(5);
  32728. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  32729. ch = followingBytes[i];
  32730. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  32731. // not a LF, CR, SPACE or any visible ASCII character
  32732. state = 0;
  32733. break; // some binary stuff found, resetting the state
  32734. }
  32735. }
  32736. state = (state === 3 ? 4 : 0);
  32737. break;
  32738. case 0x45:
  32739. state = 2;
  32740. break;
  32741. case 0x49:
  32742. state = (state === 2 ? 3 : 0);
  32743. break;
  32744. default:
  32745. state = 0;
  32746. break;
  32747. }
  32748. }
  32749. var length = (stream.pos - 4) - startPos;
  32750. var imageStream = stream.makeSubStream(startPos, length, dict);
  32751. // trying to cache repeat images, first we are trying to "warm up" caching
  32752. // using length, then comparing adler32
  32753. var MAX_LENGTH_TO_CACHE = 1000;
  32754. var cacheImage = false, adler32;
  32755. if (length < MAX_LENGTH_TO_CACHE && this.imageCache.length === length) {
  32756. var imageBytes = imageStream.getBytes();
  32757. imageStream.reset();
  32758. var a = 1;
  32759. var b = 0;
  32760. for (i = 0, ii = imageBytes.length; i < ii; ++i) {
  32761. a = (a + (imageBytes[i] & 0xff)) % 65521;
  32762. b = (b + a) % 65521;
  32763. }
  32764. adler32 = (b << 16) | a;
  32765. if (this.imageCache.stream && this.imageCache.adler32 === adler32) {
  32766. this.buf2 = Cmd.get('EI');
  32767. this.shift();
  32768. this.imageCache.stream.reset();
  32769. return this.imageCache.stream;
  32770. }
  32771. cacheImage = true;
  32772. }
  32773. if (!cacheImage && !this.imageCache.stream) {
  32774. this.imageCache.length = length;
  32775. this.imageCache.stream = null;
  32776. }
  32777. if (cipherTransform) {
  32778. imageStream = cipherTransform.createStream(imageStream, length);
  32779. }
  32780. imageStream = this.filter(imageStream, dict, length);
  32781. imageStream.dict = dict;
  32782. if (cacheImage) {
  32783. imageStream.cacheKey = 'inline_' + length + '_' + adler32;
  32784. this.imageCache.adler32 = adler32;
  32785. this.imageCache.stream = imageStream;
  32786. }
  32787. this.buf2 = Cmd.get('EI');
  32788. this.shift();
  32789. return imageStream;
  32790. },
  32791. fetchIfRef: function Parser_fetchIfRef(obj) {
  32792. // not relying on the xref.fetchIfRef -- xref might not be set
  32793. return (isRef(obj) ? this.xref.fetch(obj) : obj);
  32794. },
  32795. makeStream: function Parser_makeStream(dict, cipherTransform) {
  32796. var lexer = this.lexer;
  32797. var stream = lexer.stream;
  32798. // get stream start position
  32799. lexer.skipToNextLine();
  32800. var pos = stream.pos - 1;
  32801. // get length
  32802. var length = this.fetchIfRef(dict.get('Length'));
  32803. if (!isInt(length)) {
  32804. info('Bad ' + length + ' attribute in stream');
  32805. length = 0;
  32806. }
  32807. // skip over the stream data
  32808. stream.pos = pos + length;
  32809. lexer.nextChar();
  32810. this.shift(); // '>>'
  32811. this.shift(); // 'stream'
  32812. if (!isCmd(this.buf1, 'endstream')) {
  32813. // bad stream length, scanning for endstream
  32814. stream.pos = pos;
  32815. var SCAN_BLOCK_SIZE = 2048;
  32816. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  32817. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  32818. 0x61, 0x6D];
  32819. var skipped = 0, found = false, i, j;
  32820. while (stream.pos < stream.end) {
  32821. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  32822. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  32823. found = false;
  32824. for (i = 0, j = 0; i < scanLength; i++) {
  32825. var b = scanBytes[i];
  32826. if (b !== ENDSTREAM_SIGNATURE[j]) {
  32827. i -= j;
  32828. j = 0;
  32829. } else {
  32830. j++;
  32831. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  32832. i++;
  32833. found = true;
  32834. break;
  32835. }
  32836. }
  32837. }
  32838. if (found) {
  32839. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  32840. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  32841. break;
  32842. }
  32843. skipped += scanLength;
  32844. stream.pos += scanLength;
  32845. }
  32846. if (!found) {
  32847. error('Missing endstream');
  32848. }
  32849. length = skipped;
  32850. lexer.nextChar();
  32851. this.shift();
  32852. this.shift();
  32853. }
  32854. this.shift(); // 'endstream'
  32855. stream = stream.makeSubStream(pos, length, dict);
  32856. if (cipherTransform) {
  32857. stream = cipherTransform.createStream(stream, length);
  32858. }
  32859. stream = this.filter(stream, dict, length);
  32860. stream.dict = dict;
  32861. return stream;
  32862. },
  32863. filter: function Parser_filter(stream, dict, length) {
  32864. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  32865. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  32866. if (isName(filter)) {
  32867. return this.makeFilter(stream, filter.name, length, params);
  32868. }
  32869. var maybeLength = length;
  32870. if (isArray(filter)) {
  32871. var filterArray = filter;
  32872. var paramsArray = params;
  32873. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  32874. filter = filterArray[i];
  32875. if (!isName(filter)) {
  32876. error('Bad filter name: ' + filter);
  32877. }
  32878. params = null;
  32879. if (isArray(paramsArray) && (i in paramsArray)) {
  32880. params = paramsArray[i];
  32881. }
  32882. stream = this.makeFilter(stream, filter.name, maybeLength, params);
  32883. // after the first stream the length variable is invalid
  32884. maybeLength = null;
  32885. }
  32886. }
  32887. return stream;
  32888. },
  32889. makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
  32890. if (stream.dict.get('Length') === 0) {
  32891. return new NullStream(stream);
  32892. }
  32893. if (name == 'FlateDecode' || name == 'Fl') {
  32894. if (params) {
  32895. return new PredictorStream(new FlateStream(stream, maybeLength),
  32896. maybeLength, params);
  32897. }
  32898. return new FlateStream(stream, maybeLength);
  32899. }
  32900. if (name == 'LZWDecode' || name == 'LZW') {
  32901. var earlyChange = 1;
  32902. if (params) {
  32903. if (params.has('EarlyChange')) {
  32904. earlyChange = params.get('EarlyChange');
  32905. }
  32906. return new PredictorStream(
  32907. new LZWStream(stream, maybeLength, earlyChange),
  32908. maybeLength, params);
  32909. }
  32910. return new LZWStream(stream, maybeLength, earlyChange);
  32911. }
  32912. if (name == 'DCTDecode' || name == 'DCT') {
  32913. return new JpegStream(stream, maybeLength, stream.dict, this.xref);
  32914. }
  32915. if (name == 'JPXDecode' || name == 'JPX') {
  32916. return new JpxStream(stream, maybeLength, stream.dict);
  32917. }
  32918. if (name == 'ASCII85Decode' || name == 'A85') {
  32919. return new Ascii85Stream(stream, maybeLength);
  32920. }
  32921. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  32922. return new AsciiHexStream(stream, maybeLength);
  32923. }
  32924. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  32925. return new CCITTFaxStream(stream, maybeLength, params);
  32926. }
  32927. if (name == 'RunLengthDecode' || name == 'RL') {
  32928. return new RunLengthStream(stream, maybeLength);
  32929. }
  32930. if (name == 'JBIG2Decode') {
  32931. return new Jbig2Stream(stream, maybeLength, stream.dict);
  32932. }
  32933. warn('filter "' + name + '" not supported yet');
  32934. return stream;
  32935. }
  32936. };
  32937. return Parser;
  32938. })();
  32939. var Lexer = (function LexerClosure() {
  32940. function Lexer(stream, knownCommands) {
  32941. this.stream = stream;
  32942. this.nextChar();
  32943. // While lexing, we build up many strings one char at a time. Using += for
  32944. // this can result in lots of garbage strings. It's better to build an
  32945. // array of single-char strings and then join() them together at the end.
  32946. // And reusing a single array (i.e. |this.strBuf|) over and over for this
  32947. // purpose uses less memory than using a new array for each string.
  32948. this.strBuf = [];
  32949. // The PDFs might have "glued" commands with other commands, operands or
  32950. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  32951. // commands and their prefixes. The prefixes are built the following way:
  32952. // if there a command that is a prefix of the other valid command or
  32953. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  32954. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  32955. // other commands or literals as a prefix. The knowCommands is optional.
  32956. this.knownCommands = knownCommands;
  32957. }
  32958. Lexer.isSpace = function Lexer_isSpace(ch) {
  32959. // Space is one of the following characters: SPACE, TAB, CR or LF.
  32960. return (ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A);
  32961. };
  32962. // A '1' in this array means the character is white space. A '1' or
  32963. // '2' means the character ends a name or command.
  32964. var specialChars = [
  32965. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  32966. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  32967. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  32968. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  32969. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  32970. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  32971. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  32972. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  32973. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  32974. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  32975. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  32976. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  32977. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  32978. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  32979. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  32980. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  32981. ];
  32982. function toHexDigit(ch) {
  32983. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  32984. return ch & 0x0F;
  32985. }
  32986. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  32987. // 'A'-'F', 'a'-'f'
  32988. return (ch & 0x0F) + 9;
  32989. }
  32990. return -1;
  32991. }
  32992. Lexer.prototype = {
  32993. nextChar: function Lexer_nextChar() {
  32994. return (this.currentChar = this.stream.getByte());
  32995. },
  32996. peekChar: function Lexer_peekChar() {
  32997. return this.stream.peekBytes(1)[0];
  32998. },
  32999. getNumber: function Lexer_getNumber() {
  33000. var ch = this.currentChar;
  33001. var eNotation = false;
  33002. var divideBy = 0; // different from 0 if it's a floating point value
  33003. var sign = 1;
  33004. if (ch === 0x2D) { // '-'
  33005. sign = -1;
  33006. ch = this.nextChar();
  33007. } else if (ch === 0x2B) { // '+'
  33008. ch = this.nextChar();
  33009. }
  33010. if (ch === 0x2E) { // '.'
  33011. divideBy = 10;
  33012. ch = this.nextChar();
  33013. }
  33014. if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  33015. error('Invalid number: ' + String.fromCharCode(ch));
  33016. return 0;
  33017. }
  33018. var baseValue = ch - 0x30; // '0'
  33019. var powerValue = 0;
  33020. var powerValueSign = 1;
  33021. while ((ch = this.nextChar()) >= 0) {
  33022. if (0x30 <= ch && ch <= 0x39) { // '0' - '9'
  33023. var currentDigit = ch - 0x30; // '0'
  33024. if (eNotation) { // We are after an 'e' or 'E'
  33025. powerValue = powerValue * 10 + currentDigit;
  33026. } else {
  33027. if (divideBy !== 0) { // We are after a point
  33028. divideBy *= 10;
  33029. }
  33030. baseValue = baseValue * 10 + currentDigit;
  33031. }
  33032. } else if (ch === 0x2E) { // '.'
  33033. if (divideBy === 0) {
  33034. divideBy = 1;
  33035. } else {
  33036. // A number can have only one '.'
  33037. break;
  33038. }
  33039. } else if (ch === 0x2D) { // '-'
  33040. // ignore minus signs in the middle of numbers to match
  33041. // Adobe's behavior
  33042. warn('Badly formated number');
  33043. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  33044. // 'E' can be either a scientific notation or the beginning of a new
  33045. // operator
  33046. ch = this.peekChar();
  33047. if (ch === 0x2B || ch === 0x2D) { // '+', '-'
  33048. powerValueSign = (ch === 0x2D) ? -1 : 1;
  33049. this.nextChar(); // Consume the sign character
  33050. } else if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  33051. // The 'E' must be the beginning of a new operator
  33052. break;
  33053. }
  33054. eNotation = true;
  33055. } else {
  33056. // the last character doesn't belong to us
  33057. break;
  33058. }
  33059. }
  33060. if (divideBy !== 0) {
  33061. baseValue /= divideBy;
  33062. }
  33063. if (eNotation) {
  33064. baseValue *= Math.pow(10, powerValueSign * powerValue);
  33065. }
  33066. return sign * baseValue;
  33067. },
  33068. getString: function Lexer_getString() {
  33069. var numParen = 1;
  33070. var done = false;
  33071. var strBuf = this.strBuf;
  33072. strBuf.length = 0;
  33073. var ch = this.nextChar();
  33074. while (true) {
  33075. var charBuffered = false;
  33076. switch (ch | 0) {
  33077. case -1:
  33078. warn('Unterminated string');
  33079. done = true;
  33080. break;
  33081. case 0x28: // '('
  33082. ++numParen;
  33083. strBuf.push('(');
  33084. break;
  33085. case 0x29: // ')'
  33086. if (--numParen === 0) {
  33087. this.nextChar(); // consume strings ')'
  33088. done = true;
  33089. } else {
  33090. strBuf.push(')');
  33091. }
  33092. break;
  33093. case 0x5C: // '\\'
  33094. ch = this.nextChar();
  33095. switch (ch) {
  33096. case -1:
  33097. warn('Unterminated string');
  33098. done = true;
  33099. break;
  33100. case 0x6E: // 'n'
  33101. strBuf.push('\n');
  33102. break;
  33103. case 0x72: // 'r'
  33104. strBuf.push('\r');
  33105. break;
  33106. case 0x74: // 't'
  33107. strBuf.push('\t');
  33108. break;
  33109. case 0x62: // 'b'
  33110. strBuf.push('\b');
  33111. break;
  33112. case 0x66: // 'f'
  33113. strBuf.push('\f');
  33114. break;
  33115. case 0x5C: // '\'
  33116. case 0x28: // '('
  33117. case 0x29: // ')'
  33118. strBuf.push(String.fromCharCode(ch));
  33119. break;
  33120. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  33121. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  33122. var x = ch & 0x0F;
  33123. ch = this.nextChar();
  33124. charBuffered = true;
  33125. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  33126. x = (x << 3) + (ch & 0x0F);
  33127. ch = this.nextChar();
  33128. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  33129. charBuffered = false;
  33130. x = (x << 3) + (ch & 0x0F);
  33131. }
  33132. }
  33133. strBuf.push(String.fromCharCode(x));
  33134. break;
  33135. case 0x0D: // CR
  33136. if (this.peekChar() === 0x0A) { // LF
  33137. this.nextChar();
  33138. }
  33139. break;
  33140. case 0x0A: // LF
  33141. break;
  33142. default:
  33143. strBuf.push(String.fromCharCode(ch));
  33144. break;
  33145. }
  33146. break;
  33147. default:
  33148. strBuf.push(String.fromCharCode(ch));
  33149. break;
  33150. }
  33151. if (done) {
  33152. break;
  33153. }
  33154. if (!charBuffered) {
  33155. ch = this.nextChar();
  33156. }
  33157. }
  33158. return strBuf.join('');
  33159. },
  33160. getName: function Lexer_getName() {
  33161. var ch;
  33162. var strBuf = this.strBuf;
  33163. strBuf.length = 0;
  33164. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  33165. if (ch === 0x23) { // '#'
  33166. ch = this.nextChar();
  33167. var x = toHexDigit(ch);
  33168. if (x != -1) {
  33169. var x2 = toHexDigit(this.nextChar());
  33170. if (x2 === -1) {
  33171. error('Illegal digit in hex char in name: ' + x2);
  33172. }
  33173. strBuf.push(String.fromCharCode((x << 4) | x2));
  33174. } else {
  33175. strBuf.push('#', String.fromCharCode(ch));
  33176. }
  33177. } else {
  33178. strBuf.push(String.fromCharCode(ch));
  33179. }
  33180. }
  33181. if (strBuf.length > 128) {
  33182. error('Warning: name token is longer than allowed by the spec: ' +
  33183. strBuf.length);
  33184. }
  33185. return Name.get(strBuf.join(''));
  33186. },
  33187. getHexString: function Lexer_getHexString() {
  33188. var strBuf = this.strBuf;
  33189. strBuf.length = 0;
  33190. var ch = this.currentChar;
  33191. var isFirstHex = true;
  33192. var firstDigit;
  33193. var secondDigit;
  33194. while (true) {
  33195. if (ch < 0) {
  33196. warn('Unterminated hex string');
  33197. break;
  33198. } else if (ch === 0x3E) { // '>'
  33199. this.nextChar();
  33200. break;
  33201. } else if (specialChars[ch] === 1) {
  33202. ch = this.nextChar();
  33203. continue;
  33204. } else {
  33205. if (isFirstHex) {
  33206. firstDigit = toHexDigit(ch);
  33207. if (firstDigit === -1) {
  33208. warn('Ignoring invalid character "' + ch + '" in hex string');
  33209. ch = this.nextChar();
  33210. continue;
  33211. }
  33212. } else {
  33213. secondDigit = toHexDigit(ch);
  33214. if (secondDigit === -1) {
  33215. warn('Ignoring invalid character "' + ch + '" in hex string');
  33216. ch = this.nextChar();
  33217. continue;
  33218. }
  33219. strBuf.push(String.fromCharCode((firstDigit << 4) | secondDigit));
  33220. }
  33221. isFirstHex = !isFirstHex;
  33222. ch = this.nextChar();
  33223. }
  33224. }
  33225. return strBuf.join('');
  33226. },
  33227. getObj: function Lexer_getObj() {
  33228. // skip whitespace and comments
  33229. var comment = false;
  33230. var ch = this.currentChar;
  33231. while (true) {
  33232. if (ch < 0) {
  33233. return EOF;
  33234. }
  33235. if (comment) {
  33236. if (ch === 0x0A || ch === 0x0D) { // LF, CR
  33237. comment = false;
  33238. }
  33239. } else if (ch === 0x25) { // '%'
  33240. comment = true;
  33241. } else if (specialChars[ch] !== 1) {
  33242. break;
  33243. }
  33244. ch = this.nextChar();
  33245. }
  33246. // start reading token
  33247. switch (ch | 0) {
  33248. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  33249. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  33250. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  33251. return this.getNumber();
  33252. case 0x28: // '('
  33253. return this.getString();
  33254. case 0x2F: // '/'
  33255. return this.getName();
  33256. // array punctuation
  33257. case 0x5B: // '['
  33258. this.nextChar();
  33259. return Cmd.get('[');
  33260. case 0x5D: // ']'
  33261. this.nextChar();
  33262. return Cmd.get(']');
  33263. // hex string or dict punctuation
  33264. case 0x3C: // '<'
  33265. ch = this.nextChar();
  33266. if (ch === 0x3C) {
  33267. // dict punctuation
  33268. this.nextChar();
  33269. return Cmd.get('<<');
  33270. }
  33271. return this.getHexString();
  33272. // dict punctuation
  33273. case 0x3E: // '>'
  33274. ch = this.nextChar();
  33275. if (ch === 0x3E) {
  33276. this.nextChar();
  33277. return Cmd.get('>>');
  33278. }
  33279. return Cmd.get('>');
  33280. case 0x7B: // '{'
  33281. this.nextChar();
  33282. return Cmd.get('{');
  33283. case 0x7D: // '}'
  33284. this.nextChar();
  33285. return Cmd.get('}');
  33286. case 0x29: // ')'
  33287. error('Illegal character: ' + ch);
  33288. break;
  33289. }
  33290. // command
  33291. var str = String.fromCharCode(ch);
  33292. var knownCommands = this.knownCommands;
  33293. var knownCommandFound = knownCommands && (str in knownCommands);
  33294. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  33295. // stop if known command is found and next character does not make
  33296. // the str a command
  33297. var possibleCommand = str + String.fromCharCode(ch);
  33298. if (knownCommandFound && !(possibleCommand in knownCommands)) {
  33299. break;
  33300. }
  33301. if (str.length === 128) {
  33302. error('Command token too long: ' + str.length);
  33303. }
  33304. str = possibleCommand;
  33305. knownCommandFound = knownCommands && (str in knownCommands);
  33306. }
  33307. if (str === 'true') {
  33308. return true;
  33309. }
  33310. if (str === 'false') {
  33311. return false;
  33312. }
  33313. if (str === 'null') {
  33314. return null;
  33315. }
  33316. return Cmd.get(str);
  33317. },
  33318. skipToNextLine: function Lexer_skipToNextLine() {
  33319. var ch = this.currentChar;
  33320. while (ch >= 0) {
  33321. if (ch === 0x0D) { // CR
  33322. ch = this.nextChar();
  33323. if (ch === 0x0A) { // LF
  33324. this.nextChar();
  33325. }
  33326. break;
  33327. } else if (ch === 0x0A) { // LF
  33328. this.nextChar();
  33329. break;
  33330. }
  33331. ch = this.nextChar();
  33332. }
  33333. }
  33334. };
  33335. return Lexer;
  33336. })();
  33337. var Linearization = (function LinearizationClosure() {
  33338. function Linearization(stream) {
  33339. this.parser = new Parser(new Lexer(stream), false, null);
  33340. var obj1 = this.parser.getObj();
  33341. var obj2 = this.parser.getObj();
  33342. var obj3 = this.parser.getObj();
  33343. this.linDict = this.parser.getObj();
  33344. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  33345. isDict(this.linDict)) {
  33346. var obj = this.linDict.get('Linearized');
  33347. if (!(isNum(obj) && obj > 0)) {
  33348. this.linDict = null;
  33349. }
  33350. }
  33351. }
  33352. Linearization.prototype = {
  33353. getInt: function Linearization_getInt(name) {
  33354. var linDict = this.linDict;
  33355. var obj;
  33356. if (isDict(linDict) && isInt(obj = linDict.get(name)) && obj > 0) {
  33357. return obj;
  33358. }
  33359. error('"' + name + '" field in linearization table is invalid');
  33360. },
  33361. getHint: function Linearization_getHint(index) {
  33362. var linDict = this.linDict;
  33363. var obj1, obj2;
  33364. if (isDict(linDict) && isArray(obj1 = linDict.get('H')) &&
  33365. obj1.length >= 2 && isInt(obj2 = obj1[index]) && obj2 > 0) {
  33366. return obj2;
  33367. }
  33368. error('Hints table in linearization table is invalid: ' + index);
  33369. },
  33370. get length() {
  33371. if (!isDict(this.linDict)) {
  33372. return 0;
  33373. }
  33374. return this.getInt('L');
  33375. },
  33376. get hintsOffset() {
  33377. return this.getHint(0);
  33378. },
  33379. get hintsLength() {
  33380. return this.getHint(1);
  33381. },
  33382. get hintsOffset2() {
  33383. return this.getHint(2);
  33384. },
  33385. get hintsLenth2() {
  33386. return this.getHint(3);
  33387. },
  33388. get objectNumberFirst() {
  33389. return this.getInt('O');
  33390. },
  33391. get endFirst() {
  33392. return this.getInt('E');
  33393. },
  33394. get numPages() {
  33395. return this.getInt('N');
  33396. },
  33397. get mainXRefEntriesOffset() {
  33398. return this.getInt('T');
  33399. },
  33400. get pageFirst() {
  33401. return this.getInt('P');
  33402. }
  33403. };
  33404. return Linearization;
  33405. })();
  33406. var PostScriptParser = (function PostScriptParserClosure() {
  33407. function PostScriptParser(lexer) {
  33408. this.lexer = lexer;
  33409. this.operators = [];
  33410. this.token = null;
  33411. this.prev = null;
  33412. }
  33413. PostScriptParser.prototype = {
  33414. nextToken: function PostScriptParser_nextToken() {
  33415. this.prev = this.token;
  33416. this.token = this.lexer.getToken();
  33417. },
  33418. accept: function PostScriptParser_accept(type) {
  33419. if (this.token.type == type) {
  33420. this.nextToken();
  33421. return true;
  33422. }
  33423. return false;
  33424. },
  33425. expect: function PostScriptParser_expect(type) {
  33426. if (this.accept(type)) {
  33427. return true;
  33428. }
  33429. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  33430. type + '.');
  33431. },
  33432. parse: function PostScriptParser_parse() {
  33433. this.nextToken();
  33434. this.expect(PostScriptTokenTypes.LBRACE);
  33435. this.parseBlock();
  33436. this.expect(PostScriptTokenTypes.RBRACE);
  33437. return this.operators;
  33438. },
  33439. parseBlock: function PostScriptParser_parseBlock() {
  33440. while (true) {
  33441. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  33442. this.operators.push(this.prev.value);
  33443. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  33444. this.operators.push(this.prev.value);
  33445. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33446. this.parseCondition();
  33447. } else {
  33448. return;
  33449. }
  33450. }
  33451. },
  33452. parseCondition: function PostScriptParser_parseCondition() {
  33453. // Add two place holders that will be updated later
  33454. var conditionLocation = this.operators.length;
  33455. this.operators.push(null, null);
  33456. this.parseBlock();
  33457. this.expect(PostScriptTokenTypes.RBRACE);
  33458. if (this.accept(PostScriptTokenTypes.IF)) {
  33459. // The true block is right after the 'if' so it just falls through on
  33460. // true else it jumps and skips the true block.
  33461. this.operators[conditionLocation] = this.operators.length;
  33462. this.operators[conditionLocation + 1] = 'jz';
  33463. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33464. var jumpLocation = this.operators.length;
  33465. this.operators.push(null, null);
  33466. var endOfTrue = this.operators.length;
  33467. this.parseBlock();
  33468. this.expect(PostScriptTokenTypes.RBRACE);
  33469. this.expect(PostScriptTokenTypes.IFELSE);
  33470. // The jump is added at the end of the true block to skip the false
  33471. // block.
  33472. this.operators[jumpLocation] = this.operators.length;
  33473. this.operators[jumpLocation + 1] = 'j';
  33474. this.operators[conditionLocation] = endOfTrue;
  33475. this.operators[conditionLocation + 1] = 'jz';
  33476. } else {
  33477. error('PS Function: error parsing conditional.');
  33478. }
  33479. }
  33480. };
  33481. return PostScriptParser;
  33482. })();
  33483. var PostScriptTokenTypes = {
  33484. LBRACE: 0,
  33485. RBRACE: 1,
  33486. NUMBER: 2,
  33487. OPERATOR: 3,
  33488. IF: 4,
  33489. IFELSE: 5
  33490. };
  33491. var PostScriptToken = (function PostScriptTokenClosure() {
  33492. function PostScriptToken(type, value) {
  33493. this.type = type;
  33494. this.value = value;
  33495. }
  33496. var opCache = {};
  33497. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  33498. var opValue = opCache[op];
  33499. if (opValue) {
  33500. return opValue;
  33501. }
  33502. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  33503. };
  33504. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  33505. '{');
  33506. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  33507. '}');
  33508. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  33509. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  33510. 'IFELSE');
  33511. return PostScriptToken;
  33512. })();
  33513. var PostScriptLexer = (function PostScriptLexerClosure() {
  33514. function PostScriptLexer(stream) {
  33515. this.stream = stream;
  33516. this.nextChar();
  33517. }
  33518. PostScriptLexer.prototype = {
  33519. nextChar: function PostScriptLexer_nextChar() {
  33520. return (this.currentChar = this.stream.getByte());
  33521. },
  33522. getToken: function PostScriptLexer_getToken() {
  33523. var comment = false;
  33524. var ch = this.currentChar;
  33525. // skip comments
  33526. while (true) {
  33527. if (ch < 0) {
  33528. return EOF;
  33529. }
  33530. if (comment) {
  33531. if (ch === 0x0A || ch === 0x0D) {
  33532. comment = false;
  33533. }
  33534. } else if (ch == 0x25) { // '%'
  33535. comment = true;
  33536. } else if (!Lexer.isSpace(ch)) {
  33537. break;
  33538. }
  33539. ch = this.nextChar();
  33540. }
  33541. switch (ch | 0) {
  33542. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  33543. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  33544. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  33545. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  33546. this.getNumber());
  33547. case 0x7B: // '{'
  33548. this.nextChar();
  33549. return PostScriptToken.LBRACE;
  33550. case 0x7D: // '}'
  33551. this.nextChar();
  33552. return PostScriptToken.RBRACE;
  33553. }
  33554. // operator
  33555. var str = String.fromCharCode(ch);
  33556. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  33557. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  33558. str += String.fromCharCode(ch);
  33559. }
  33560. switch (str.toLowerCase()) {
  33561. case 'if':
  33562. return PostScriptToken.IF;
  33563. case 'ifelse':
  33564. return PostScriptToken.IFELSE;
  33565. default:
  33566. return PostScriptToken.getOperator(str);
  33567. }
  33568. },
  33569. getNumber: function PostScriptLexer_getNumber() {
  33570. var ch = this.currentChar;
  33571. var str = String.fromCharCode(ch);
  33572. while ((ch = this.nextChar()) >= 0) {
  33573. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  33574. ch === 0x2D || ch === 0x2E) { // '-', '.'
  33575. str += String.fromCharCode(ch);
  33576. } else {
  33577. break;
  33578. }
  33579. }
  33580. var value = parseFloat(str);
  33581. if (isNaN(value)) {
  33582. error('Invalid floating point number: ' + value);
  33583. }
  33584. return value;
  33585. }
  33586. };
  33587. return PostScriptLexer;
  33588. })();
  33589. var Stream = (function StreamClosure() {
  33590. function Stream(arrayBuffer, start, length, dict) {
  33591. this.bytes = (arrayBuffer instanceof Uint8Array ?
  33592. arrayBuffer : new Uint8Array(arrayBuffer));
  33593. this.start = start || 0;
  33594. this.pos = this.start;
  33595. this.end = (start + length) || this.bytes.length;
  33596. this.dict = dict;
  33597. }
  33598. // required methods for a stream. if a particular stream does not
  33599. // implement these, an error should be thrown
  33600. Stream.prototype = {
  33601. get length() {
  33602. return this.end - this.start;
  33603. },
  33604. get isEmpty() {
  33605. return this.length === 0;
  33606. },
  33607. getByte: function Stream_getByte() {
  33608. if (this.pos >= this.end) {
  33609. return -1;
  33610. }
  33611. return this.bytes[this.pos++];
  33612. },
  33613. getUint16: function Stream_getUint16() {
  33614. var b0 = this.getByte();
  33615. var b1 = this.getByte();
  33616. return (b0 << 8) + b1;
  33617. },
  33618. getInt32: function Stream_getInt32() {
  33619. var b0 = this.getByte();
  33620. var b1 = this.getByte();
  33621. var b2 = this.getByte();
  33622. var b3 = this.getByte();
  33623. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33624. },
  33625. // returns subarray of original buffer
  33626. // should only be read
  33627. getBytes: function Stream_getBytes(length) {
  33628. var bytes = this.bytes;
  33629. var pos = this.pos;
  33630. var strEnd = this.end;
  33631. if (!length) {
  33632. return bytes.subarray(pos, strEnd);
  33633. }
  33634. var end = pos + length;
  33635. if (end > strEnd) {
  33636. end = strEnd;
  33637. }
  33638. this.pos = end;
  33639. return bytes.subarray(pos, end);
  33640. },
  33641. peekBytes: function Stream_peekBytes(length) {
  33642. var bytes = this.getBytes(length);
  33643. this.pos -= bytes.length;
  33644. return bytes;
  33645. },
  33646. skip: function Stream_skip(n) {
  33647. if (!n) {
  33648. n = 1;
  33649. }
  33650. this.pos += n;
  33651. },
  33652. reset: function Stream_reset() {
  33653. this.pos = this.start;
  33654. },
  33655. moveStart: function Stream_moveStart() {
  33656. this.start = this.pos;
  33657. },
  33658. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  33659. return new Stream(this.bytes.buffer, start, length, dict);
  33660. },
  33661. isStream: true
  33662. };
  33663. return Stream;
  33664. })();
  33665. var StringStream = (function StringStreamClosure() {
  33666. function StringStream(str) {
  33667. var length = str.length;
  33668. var bytes = new Uint8Array(length);
  33669. for (var n = 0; n < length; ++n) {
  33670. bytes[n] = str.charCodeAt(n);
  33671. }
  33672. Stream.call(this, bytes);
  33673. }
  33674. StringStream.prototype = Stream.prototype;
  33675. return StringStream;
  33676. })();
  33677. // super class for the decoding streams
  33678. var DecodeStream = (function DecodeStreamClosure() {
  33679. function DecodeStream(maybeMinBufferLength) {
  33680. this.pos = 0;
  33681. this.bufferLength = 0;
  33682. this.eof = false;
  33683. this.buffer = null;
  33684. this.minBufferLength = 512;
  33685. if (maybeMinBufferLength) {
  33686. // Compute the first power of two that is as big as maybeMinBufferLength.
  33687. while (this.minBufferLength < maybeMinBufferLength) {
  33688. this.minBufferLength *= 2;
  33689. }
  33690. }
  33691. }
  33692. DecodeStream.prototype = {
  33693. get isEmpty() {
  33694. while (!this.eof && this.bufferLength === 0) {
  33695. this.readBlock();
  33696. }
  33697. return this.bufferLength === 0;
  33698. },
  33699. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  33700. var buffer = this.buffer;
  33701. var current;
  33702. if (buffer) {
  33703. current = buffer.byteLength;
  33704. if (requested <= current) {
  33705. return buffer;
  33706. }
  33707. } else {
  33708. current = 0;
  33709. }
  33710. var size = this.minBufferLength;
  33711. while (size < requested) {
  33712. size *= 2;
  33713. }
  33714. var buffer2 = new Uint8Array(size);
  33715. if (buffer) {
  33716. buffer2.set(buffer);
  33717. }
  33718. return (this.buffer = buffer2);
  33719. },
  33720. getByte: function DecodeStream_getByte() {
  33721. var pos = this.pos;
  33722. while (this.bufferLength <= pos) {
  33723. if (this.eof) {
  33724. return -1;
  33725. }
  33726. this.readBlock();
  33727. }
  33728. return this.buffer[this.pos++];
  33729. },
  33730. getUint16: function DecodeStream_getUint16() {
  33731. var b0 = this.getByte();
  33732. var b1 = this.getByte();
  33733. return (b0 << 8) + b1;
  33734. },
  33735. getInt32: function DecodeStream_getInt32() {
  33736. var b0 = this.getByte();
  33737. var b1 = this.getByte();
  33738. var b2 = this.getByte();
  33739. var b3 = this.getByte();
  33740. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33741. },
  33742. getBytes: function DecodeStream_getBytes(length) {
  33743. var end, pos = this.pos;
  33744. if (length) {
  33745. this.ensureBuffer(pos + length);
  33746. end = pos + length;
  33747. while (!this.eof && this.bufferLength < end) {
  33748. this.readBlock();
  33749. }
  33750. var bufEnd = this.bufferLength;
  33751. if (end > bufEnd) {
  33752. end = bufEnd;
  33753. }
  33754. } else {
  33755. while (!this.eof) {
  33756. this.readBlock();
  33757. }
  33758. end = this.bufferLength;
  33759. // checking if bufferLength is still 0 then
  33760. // the buffer has to be initialized
  33761. if (!end) {
  33762. this.buffer = new Uint8Array(0);
  33763. }
  33764. }
  33765. this.pos = end;
  33766. return this.buffer.subarray(pos, end);
  33767. },
  33768. peekBytes: function DecodeStream_peekBytes(length) {
  33769. var bytes = this.getBytes(length);
  33770. this.pos -= bytes.length;
  33771. return bytes;
  33772. },
  33773. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  33774. var end = start + length;
  33775. while (this.bufferLength <= end && !this.eof) {
  33776. this.readBlock();
  33777. }
  33778. return new Stream(this.buffer, start, length, dict);
  33779. },
  33780. skip: function DecodeStream_skip(n) {
  33781. if (!n) {
  33782. n = 1;
  33783. }
  33784. this.pos += n;
  33785. },
  33786. reset: function DecodeStream_reset() {
  33787. this.pos = 0;
  33788. },
  33789. getBaseStreams: function DecodeStream_getBaseStreams() {
  33790. if (this.str && this.str.getBaseStreams) {
  33791. return this.str.getBaseStreams();
  33792. }
  33793. return [];
  33794. }
  33795. };
  33796. return DecodeStream;
  33797. })();
  33798. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  33799. function StreamsSequenceStream(streams) {
  33800. this.streams = streams;
  33801. DecodeStream.call(this, /* maybeLength = */ null);
  33802. }
  33803. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  33804. StreamsSequenceStream.prototype.readBlock =
  33805. function streamSequenceStreamReadBlock() {
  33806. var streams = this.streams;
  33807. if (streams.length === 0) {
  33808. this.eof = true;
  33809. return;
  33810. }
  33811. var stream = streams.shift();
  33812. var chunk = stream.getBytes();
  33813. var bufferLength = this.bufferLength;
  33814. var newLength = bufferLength + chunk.length;
  33815. var buffer = this.ensureBuffer(newLength);
  33816. buffer.set(chunk, bufferLength);
  33817. this.bufferLength = newLength;
  33818. };
  33819. StreamsSequenceStream.prototype.getBaseStreams =
  33820. function StreamsSequenceStream_getBaseStreams() {
  33821. var baseStreams = [];
  33822. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  33823. var stream = this.streams[i];
  33824. if (stream.getBaseStreams) {
  33825. Util.concatenateToArray(baseStreams, stream.getBaseStreams());
  33826. }
  33827. }
  33828. return baseStreams;
  33829. };
  33830. return StreamsSequenceStream;
  33831. })();
  33832. var FlateStream = (function FlateStreamClosure() {
  33833. var codeLenCodeMap = new Uint32Array([
  33834. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  33835. ]);
  33836. var lengthDecode = new Uint32Array([
  33837. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  33838. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  33839. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  33840. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  33841. ]);
  33842. var distDecode = new Uint32Array([
  33843. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  33844. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  33845. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  33846. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  33847. ]);
  33848. var fixedLitCodeTab = [new Uint32Array([
  33849. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  33850. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  33851. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  33852. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  33853. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  33854. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  33855. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  33856. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  33857. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  33858. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  33859. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  33860. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  33861. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  33862. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  33863. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  33864. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  33865. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  33866. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  33867. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  33868. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  33869. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  33870. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  33871. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  33872. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  33873. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  33874. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  33875. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  33876. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  33877. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  33878. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  33879. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  33880. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  33881. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  33882. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  33883. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  33884. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  33885. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  33886. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  33887. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  33888. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  33889. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  33890. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  33891. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  33892. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  33893. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  33894. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  33895. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  33896. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  33897. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  33898. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  33899. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  33900. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  33901. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  33902. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  33903. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  33904. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  33905. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  33906. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  33907. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  33908. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  33909. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  33910. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  33911. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  33912. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  33913. ]), 9];
  33914. var fixedDistCodeTab = [new Uint32Array([
  33915. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  33916. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  33917. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  33918. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  33919. ]), 5];
  33920. function FlateStream(str, maybeLength) {
  33921. this.str = str;
  33922. this.dict = str.dict;
  33923. var cmf = str.getByte();
  33924. var flg = str.getByte();
  33925. if (cmf == -1 || flg == -1) {
  33926. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  33927. }
  33928. if ((cmf & 0x0f) != 0x08) {
  33929. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  33930. }
  33931. if ((((cmf << 8) + flg) % 31) !== 0) {
  33932. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  33933. }
  33934. if (flg & 0x20) {
  33935. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  33936. }
  33937. this.codeSize = 0;
  33938. this.codeBuf = 0;
  33939. DecodeStream.call(this, maybeLength);
  33940. }
  33941. FlateStream.prototype = Object.create(DecodeStream.prototype);
  33942. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  33943. var str = this.str;
  33944. var codeSize = this.codeSize;
  33945. var codeBuf = this.codeBuf;
  33946. var b;
  33947. while (codeSize < bits) {
  33948. if ((b = str.getByte()) === -1) {
  33949. error('Bad encoding in flate stream');
  33950. }
  33951. codeBuf |= b << codeSize;
  33952. codeSize += 8;
  33953. }
  33954. b = codeBuf & ((1 << bits) - 1);
  33955. this.codeBuf = codeBuf >> bits;
  33956. this.codeSize = codeSize -= bits;
  33957. return b;
  33958. };
  33959. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  33960. var str = this.str;
  33961. var codes = table[0];
  33962. var maxLen = table[1];
  33963. var codeSize = this.codeSize;
  33964. var codeBuf = this.codeBuf;
  33965. while (codeSize < maxLen) {
  33966. var b;
  33967. if ((b = str.getByte()) === -1) {
  33968. error('Bad encoding in flate stream');
  33969. }
  33970. codeBuf |= (b << codeSize);
  33971. codeSize += 8;
  33972. }
  33973. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  33974. var codeLen = code >> 16;
  33975. var codeVal = code & 0xffff;
  33976. if (codeSize === 0 || codeSize < codeLen || codeLen === 0) {
  33977. error('Bad encoding in flate stream');
  33978. }
  33979. this.codeBuf = (codeBuf >> codeLen);
  33980. this.codeSize = (codeSize - codeLen);
  33981. return codeVal;
  33982. };
  33983. FlateStream.prototype.generateHuffmanTable =
  33984. function flateStreamGenerateHuffmanTable(lengths) {
  33985. var n = lengths.length;
  33986. // find max code length
  33987. var maxLen = 0;
  33988. var i;
  33989. for (i = 0; i < n; ++i) {
  33990. if (lengths[i] > maxLen) {
  33991. maxLen = lengths[i];
  33992. }
  33993. }
  33994. // build the table
  33995. var size = 1 << maxLen;
  33996. var codes = new Uint32Array(size);
  33997. for (var len = 1, code = 0, skip = 2;
  33998. len <= maxLen;
  33999. ++len, code <<= 1, skip <<= 1) {
  34000. for (var val = 0; val < n; ++val) {
  34001. if (lengths[val] == len) {
  34002. // bit-reverse the code
  34003. var code2 = 0;
  34004. var t = code;
  34005. for (i = 0; i < len; ++i) {
  34006. code2 = (code2 << 1) | (t & 1);
  34007. t >>= 1;
  34008. }
  34009. // fill the table entries
  34010. for (i = code2; i < size; i += skip) {
  34011. codes[i] = (len << 16) | val;
  34012. }
  34013. ++code;
  34014. }
  34015. }
  34016. }
  34017. return [codes, maxLen];
  34018. };
  34019. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  34020. var buffer, len;
  34021. var str = this.str;
  34022. // read block header
  34023. var hdr = this.getBits(3);
  34024. if (hdr & 1) {
  34025. this.eof = true;
  34026. }
  34027. hdr >>= 1;
  34028. if (hdr === 0) { // uncompressed block
  34029. var b;
  34030. if ((b = str.getByte()) === -1) {
  34031. error('Bad block header in flate stream');
  34032. }
  34033. var blockLen = b;
  34034. if ((b = str.getByte()) === -1) {
  34035. error('Bad block header in flate stream');
  34036. }
  34037. blockLen |= (b << 8);
  34038. if ((b = str.getByte()) === -1) {
  34039. error('Bad block header in flate stream');
  34040. }
  34041. var check = b;
  34042. if ((b = str.getByte()) === -1) {
  34043. error('Bad block header in flate stream');
  34044. }
  34045. check |= (b << 8);
  34046. if (check != (~blockLen & 0xffff) &&
  34047. (blockLen !== 0 || check !== 0)) {
  34048. // Ignoring error for bad "empty" block (see issue 1277)
  34049. error('Bad uncompressed block length in flate stream');
  34050. }
  34051. this.codeBuf = 0;
  34052. this.codeSize = 0;
  34053. var bufferLength = this.bufferLength;
  34054. buffer = this.ensureBuffer(bufferLength + blockLen);
  34055. var end = bufferLength + blockLen;
  34056. this.bufferLength = end;
  34057. if (blockLen === 0) {
  34058. if (str.peekBytes(1).length === 0) {
  34059. this.eof = true;
  34060. }
  34061. } else {
  34062. for (var n = bufferLength; n < end; ++n) {
  34063. if ((b = str.getByte()) === -1) {
  34064. this.eof = true;
  34065. break;
  34066. }
  34067. buffer[n] = b;
  34068. }
  34069. }
  34070. return;
  34071. }
  34072. var litCodeTable;
  34073. var distCodeTable;
  34074. if (hdr == 1) { // compressed block, fixed codes
  34075. litCodeTable = fixedLitCodeTab;
  34076. distCodeTable = fixedDistCodeTab;
  34077. } else if (hdr == 2) { // compressed block, dynamic codes
  34078. var numLitCodes = this.getBits(5) + 257;
  34079. var numDistCodes = this.getBits(5) + 1;
  34080. var numCodeLenCodes = this.getBits(4) + 4;
  34081. // build the code lengths code table
  34082. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  34083. var i;
  34084. for (i = 0; i < numCodeLenCodes; ++i) {
  34085. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  34086. }
  34087. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  34088. // build the literal and distance code tables
  34089. len = 0;
  34090. i = 0;
  34091. var codes = numLitCodes + numDistCodes;
  34092. var codeLengths = new Uint8Array(codes);
  34093. var bitsLength, bitsOffset, what;
  34094. while (i < codes) {
  34095. var code = this.getCode(codeLenCodeTab);
  34096. if (code == 16) {
  34097. bitsLength = 2; bitsOffset = 3; what = len;
  34098. } else if (code == 17) {
  34099. bitsLength = 3; bitsOffset = 3; what = (len = 0);
  34100. } else if (code == 18) {
  34101. bitsLength = 7; bitsOffset = 11; what = (len = 0);
  34102. } else {
  34103. codeLengths[i++] = len = code;
  34104. continue;
  34105. }
  34106. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  34107. while (repeatLength-- > 0) {
  34108. codeLengths[i++] = what;
  34109. }
  34110. }
  34111. litCodeTable =
  34112. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  34113. distCodeTable =
  34114. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  34115. } else {
  34116. error('Unknown block type in flate stream');
  34117. }
  34118. buffer = this.buffer;
  34119. var limit = buffer ? buffer.length : 0;
  34120. var pos = this.bufferLength;
  34121. while (true) {
  34122. var code1 = this.getCode(litCodeTable);
  34123. if (code1 < 256) {
  34124. if (pos + 1 >= limit) {
  34125. buffer = this.ensureBuffer(pos + 1);
  34126. limit = buffer.length;
  34127. }
  34128. buffer[pos++] = code1;
  34129. continue;
  34130. }
  34131. if (code1 == 256) {
  34132. this.bufferLength = pos;
  34133. return;
  34134. }
  34135. code1 -= 257;
  34136. code1 = lengthDecode[code1];
  34137. var code2 = code1 >> 16;
  34138. if (code2 > 0) {
  34139. code2 = this.getBits(code2);
  34140. }
  34141. len = (code1 & 0xffff) + code2;
  34142. code1 = this.getCode(distCodeTable);
  34143. code1 = distDecode[code1];
  34144. code2 = code1 >> 16;
  34145. if (code2 > 0) {
  34146. code2 = this.getBits(code2);
  34147. }
  34148. var dist = (code1 & 0xffff) + code2;
  34149. if (pos + len >= limit) {
  34150. buffer = this.ensureBuffer(pos + len);
  34151. limit = buffer.length;
  34152. }
  34153. for (var k = 0; k < len; ++k, ++pos) {
  34154. buffer[pos] = buffer[pos - dist];
  34155. }
  34156. }
  34157. };
  34158. return FlateStream;
  34159. })();
  34160. var PredictorStream = (function PredictorStreamClosure() {
  34161. function PredictorStream(str, maybeLength, params) {
  34162. var predictor = this.predictor = params.get('Predictor') || 1;
  34163. if (predictor <= 1) {
  34164. return str; // no prediction
  34165. }
  34166. if (predictor !== 2 && (predictor < 10 || predictor > 15)) {
  34167. error('Unsupported predictor: ' + predictor);
  34168. }
  34169. if (predictor === 2) {
  34170. this.readBlock = this.readBlockTiff;
  34171. } else {
  34172. this.readBlock = this.readBlockPng;
  34173. }
  34174. this.str = str;
  34175. this.dict = str.dict;
  34176. var colors = this.colors = params.get('Colors') || 1;
  34177. var bits = this.bits = params.get('BitsPerComponent') || 8;
  34178. var columns = this.columns = params.get('Columns') || 1;
  34179. this.pixBytes = (colors * bits + 7) >> 3;
  34180. this.rowBytes = (columns * colors * bits + 7) >> 3;
  34181. DecodeStream.call(this, maybeLength);
  34182. return this;
  34183. }
  34184. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  34185. PredictorStream.prototype.readBlockTiff =
  34186. function predictorStreamReadBlockTiff() {
  34187. var rowBytes = this.rowBytes;
  34188. var bufferLength = this.bufferLength;
  34189. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  34190. var bits = this.bits;
  34191. var colors = this.colors;
  34192. var rawBytes = this.str.getBytes(rowBytes);
  34193. this.eof = !rawBytes.length;
  34194. if (this.eof) {
  34195. return;
  34196. }
  34197. var inbuf = 0, outbuf = 0;
  34198. var inbits = 0, outbits = 0;
  34199. var pos = bufferLength;
  34200. var i;
  34201. if (bits === 1) {
  34202. for (i = 0; i < rowBytes; ++i) {
  34203. var c = rawBytes[i];
  34204. inbuf = (inbuf << 8) | c;
  34205. // bitwise addition is exclusive or
  34206. // first shift inbuf and then add
  34207. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  34208. // truncate inbuf (assumes colors < 16)
  34209. inbuf &= 0xFFFF;
  34210. }
  34211. } else if (bits === 8) {
  34212. for (i = 0; i < colors; ++i) {
  34213. buffer[pos++] = rawBytes[i];
  34214. }
  34215. for (; i < rowBytes; ++i) {
  34216. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  34217. pos++;
  34218. }
  34219. } else {
  34220. var compArray = new Uint8Array(colors + 1);
  34221. var bitMask = (1 << bits) - 1;
  34222. var j = 0, k = bufferLength;
  34223. var columns = this.columns;
  34224. for (i = 0; i < columns; ++i) {
  34225. for (var kk = 0; kk < colors; ++kk) {
  34226. if (inbits < bits) {
  34227. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  34228. inbits += 8;
  34229. }
  34230. compArray[kk] = (compArray[kk] +
  34231. (inbuf >> (inbits - bits))) & bitMask;
  34232. inbits -= bits;
  34233. outbuf = (outbuf << bits) | compArray[kk];
  34234. outbits += bits;
  34235. if (outbits >= 8) {
  34236. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  34237. outbits -= 8;
  34238. }
  34239. }
  34240. }
  34241. if (outbits > 0) {
  34242. buffer[k++] = (outbuf << (8 - outbits)) +
  34243. (inbuf & ((1 << (8 - outbits)) - 1));
  34244. }
  34245. }
  34246. this.bufferLength += rowBytes;
  34247. };
  34248. PredictorStream.prototype.readBlockPng =
  34249. function predictorStreamReadBlockPng() {
  34250. var rowBytes = this.rowBytes;
  34251. var pixBytes = this.pixBytes;
  34252. var predictor = this.str.getByte();
  34253. var rawBytes = this.str.getBytes(rowBytes);
  34254. this.eof = !rawBytes.length;
  34255. if (this.eof) {
  34256. return;
  34257. }
  34258. var bufferLength = this.bufferLength;
  34259. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  34260. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  34261. if (prevRow.length === 0) {
  34262. prevRow = new Uint8Array(rowBytes);
  34263. }
  34264. var i, j = bufferLength, up, c;
  34265. switch (predictor) {
  34266. case 0:
  34267. for (i = 0; i < rowBytes; ++i) {
  34268. buffer[j++] = rawBytes[i];
  34269. }
  34270. break;
  34271. case 1:
  34272. for (i = 0; i < pixBytes; ++i) {
  34273. buffer[j++] = rawBytes[i];
  34274. }
  34275. for (; i < rowBytes; ++i) {
  34276. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  34277. j++;
  34278. }
  34279. break;
  34280. case 2:
  34281. for (i = 0; i < rowBytes; ++i) {
  34282. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  34283. }
  34284. break;
  34285. case 3:
  34286. for (i = 0; i < pixBytes; ++i) {
  34287. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  34288. }
  34289. for (; i < rowBytes; ++i) {
  34290. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  34291. rawBytes[i]) & 0xFF;
  34292. j++;
  34293. }
  34294. break;
  34295. case 4:
  34296. // we need to save the up left pixels values. the simplest way
  34297. // is to create a new buffer
  34298. for (i = 0; i < pixBytes; ++i) {
  34299. up = prevRow[i];
  34300. c = rawBytes[i];
  34301. buffer[j++] = up + c;
  34302. }
  34303. for (; i < rowBytes; ++i) {
  34304. up = prevRow[i];
  34305. var upLeft = prevRow[i - pixBytes];
  34306. var left = buffer[j - pixBytes];
  34307. var p = left + up - upLeft;
  34308. var pa = p - left;
  34309. if (pa < 0) {
  34310. pa = -pa;
  34311. }
  34312. var pb = p - up;
  34313. if (pb < 0) {
  34314. pb = -pb;
  34315. }
  34316. var pc = p - upLeft;
  34317. if (pc < 0) {
  34318. pc = -pc;
  34319. }
  34320. c = rawBytes[i];
  34321. if (pa <= pb && pa <= pc) {
  34322. buffer[j++] = left + c;
  34323. } else if (pb <= pc) {
  34324. buffer[j++] = up + c;
  34325. } else {
  34326. buffer[j++] = upLeft + c;
  34327. }
  34328. }
  34329. break;
  34330. default:
  34331. error('Unsupported predictor: ' + predictor);
  34332. }
  34333. this.bufferLength += rowBytes;
  34334. };
  34335. return PredictorStream;
  34336. })();
  34337. /**
  34338. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  34339. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  34340. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  34341. * a library to decode these images and the stream behaves like all the other
  34342. * DecodeStreams.
  34343. */
  34344. var JpegStream = (function JpegStreamClosure() {
  34345. function JpegStream(stream, maybeLength, dict, xref) {
  34346. // TODO: per poppler, some images may have 'junk' before that
  34347. // need to be removed
  34348. this.stream = stream;
  34349. this.maybeLength = maybeLength;
  34350. this.dict = dict;
  34351. DecodeStream.call(this, maybeLength);
  34352. }
  34353. JpegStream.prototype = Object.create(DecodeStream.prototype);
  34354. Object.defineProperty(JpegStream.prototype, 'bytes', {
  34355. get: function JpegStream_bytes() {
  34356. // If this.maybeLength is null, we'll get the entire stream.
  34357. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34358. },
  34359. configurable: true
  34360. });
  34361. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  34362. if (this.bufferLength) {
  34363. return;
  34364. }
  34365. try {
  34366. var jpegImage = new JpegImage();
  34367. if (this.colorTransform != -1) {
  34368. jpegImage.colorTransform = this.colorTransform;
  34369. }
  34370. jpegImage.parse(this.bytes);
  34371. var data = jpegImage.getData(this.drawWidth, this.drawHeight,
  34372. /* forceRGBoutput = */true);
  34373. this.buffer = data;
  34374. this.bufferLength = data.length;
  34375. this.eof = true;
  34376. } catch (e) {
  34377. error('JPEG error: ' + e);
  34378. }
  34379. };
  34380. JpegStream.prototype.getBytes = function JpegStream_getBytes(length) {
  34381. this.ensureBuffer();
  34382. return this.buffer;
  34383. };
  34384. JpegStream.prototype.getIR = function JpegStream_getIR() {
  34385. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  34386. };
  34387. /**
  34388. * Checks if the image can be decoded and displayed by the browser without any
  34389. * further processing such as color space conversions.
  34390. */
  34391. JpegStream.prototype.isNativelySupported =
  34392. function JpegStream_isNativelySupported(xref, res) {
  34393. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34394. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  34395. };
  34396. /**
  34397. * Checks if the image can be decoded by the browser.
  34398. */
  34399. JpegStream.prototype.isNativelyDecodable =
  34400. function JpegStream_isNativelyDecodable(xref, res) {
  34401. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34402. var numComps = cs.numComps;
  34403. return numComps == 1 || numComps == 3;
  34404. };
  34405. return JpegStream;
  34406. })();
  34407. /**
  34408. * For JPEG 2000's we use a library to decode these images and
  34409. * the stream behaves like all the other DecodeStreams.
  34410. */
  34411. var JpxStream = (function JpxStreamClosure() {
  34412. function JpxStream(stream, maybeLength, dict) {
  34413. this.stream = stream;
  34414. this.maybeLength = maybeLength;
  34415. this.dict = dict;
  34416. DecodeStream.call(this, maybeLength);
  34417. }
  34418. JpxStream.prototype = Object.create(DecodeStream.prototype);
  34419. Object.defineProperty(JpxStream.prototype, 'bytes', {
  34420. get: function JpxStream_bytes() {
  34421. // If this.maybeLength is null, we'll get the entire stream.
  34422. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34423. },
  34424. configurable: true
  34425. });
  34426. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  34427. if (this.bufferLength) {
  34428. return;
  34429. }
  34430. var jpxImage = new JpxImage();
  34431. jpxImage.parse(this.bytes);
  34432. var width = jpxImage.width;
  34433. var height = jpxImage.height;
  34434. var componentsCount = jpxImage.componentsCount;
  34435. var tileCount = jpxImage.tiles.length;
  34436. if (tileCount === 1) {
  34437. this.buffer = jpxImage.tiles[0].items;
  34438. } else {
  34439. var data = new Uint8Array(width * height * componentsCount);
  34440. for (var k = 0; k < tileCount; k++) {
  34441. var tileComponents = jpxImage.tiles[k];
  34442. var tileWidth = tileComponents.width;
  34443. var tileHeight = tileComponents.height;
  34444. var tileLeft = tileComponents.left;
  34445. var tileTop = tileComponents.top;
  34446. var src = tileComponents.items;
  34447. var srcPosition = 0;
  34448. var dataPosition = (width * tileTop + tileLeft) * componentsCount;
  34449. var imgRowSize = width * componentsCount;
  34450. var tileRowSize = tileWidth * componentsCount;
  34451. for (var j = 0; j < tileHeight; j++) {
  34452. var rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize);
  34453. data.set(rowBytes, dataPosition);
  34454. srcPosition += tileRowSize;
  34455. dataPosition += imgRowSize;
  34456. }
  34457. }
  34458. this.buffer = data;
  34459. }
  34460. this.bufferLength = this.buffer.length;
  34461. this.eof = true;
  34462. };
  34463. return JpxStream;
  34464. })();
  34465. /**
  34466. * For JBIG2's we use a library to decode these images and
  34467. * the stream behaves like all the other DecodeStreams.
  34468. */
  34469. var Jbig2Stream = (function Jbig2StreamClosure() {
  34470. function Jbig2Stream(stream, maybeLength, dict) {
  34471. this.stream = stream;
  34472. this.maybeLength = maybeLength;
  34473. this.dict = dict;
  34474. DecodeStream.call(this, maybeLength);
  34475. }
  34476. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  34477. Object.defineProperty(Jbig2Stream.prototype, 'bytes', {
  34478. get: function Jbig2Stream_bytes() {
  34479. // If this.maybeLength is null, we'll get the entire stream.
  34480. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34481. },
  34482. configurable: true
  34483. });
  34484. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  34485. if (this.bufferLength) {
  34486. return;
  34487. }
  34488. var jbig2Image = new Jbig2Image();
  34489. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  34490. // According to the PDF specification, DecodeParms can be either
  34491. // a dictionary, or an array whose elements are dictionaries.
  34492. if (isArray(decodeParams)) {
  34493. if (decodeParams.length > 1) {
  34494. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  34495. 'not supported.');
  34496. }
  34497. decodeParams = decodeParams[0];
  34498. }
  34499. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  34500. var globalsStream = decodeParams.get('JBIG2Globals');
  34501. var globals = globalsStream.getBytes();
  34502. chunks.push({data: globals, start: 0, end: globals.length});
  34503. }
  34504. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  34505. var data = jbig2Image.parseChunks(chunks);
  34506. var dataLength = data.length;
  34507. // JBIG2 had black as 1 and white as 0, inverting the colors
  34508. for (var i = 0; i < dataLength; i++) {
  34509. data[i] ^= 0xFF;
  34510. }
  34511. this.buffer = data;
  34512. this.bufferLength = dataLength;
  34513. this.eof = true;
  34514. };
  34515. return Jbig2Stream;
  34516. })();
  34517. var DecryptStream = (function DecryptStreamClosure() {
  34518. function DecryptStream(str, maybeLength, decrypt) {
  34519. this.str = str;
  34520. this.dict = str.dict;
  34521. this.decrypt = decrypt;
  34522. this.nextChunk = null;
  34523. this.initialized = false;
  34524. DecodeStream.call(this, maybeLength);
  34525. }
  34526. var chunkSize = 512;
  34527. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  34528. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  34529. var chunk;
  34530. if (this.initialized) {
  34531. chunk = this.nextChunk;
  34532. } else {
  34533. chunk = this.str.getBytes(chunkSize);
  34534. this.initialized = true;
  34535. }
  34536. if (!chunk || chunk.length === 0) {
  34537. this.eof = true;
  34538. return;
  34539. }
  34540. this.nextChunk = this.str.getBytes(chunkSize);
  34541. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  34542. var decrypt = this.decrypt;
  34543. chunk = decrypt(chunk, !hasMoreData);
  34544. var bufferLength = this.bufferLength;
  34545. var i, n = chunk.length;
  34546. var buffer = this.ensureBuffer(bufferLength + n);
  34547. for (i = 0; i < n; i++) {
  34548. buffer[bufferLength++] = chunk[i];
  34549. }
  34550. this.bufferLength = bufferLength;
  34551. };
  34552. return DecryptStream;
  34553. })();
  34554. var Ascii85Stream = (function Ascii85StreamClosure() {
  34555. function Ascii85Stream(str, maybeLength) {
  34556. this.str = str;
  34557. this.dict = str.dict;
  34558. this.input = new Uint8Array(5);
  34559. // Most streams increase in size when decoded, but Ascii85 streams
  34560. // typically shrink by ~20%.
  34561. if (maybeLength) {
  34562. maybeLength = 0.8 * maybeLength;
  34563. }
  34564. DecodeStream.call(this, maybeLength);
  34565. }
  34566. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  34567. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  34568. var TILDA_CHAR = 0x7E; // '~'
  34569. var Z_LOWER_CHAR = 0x7A; // 'z'
  34570. var EOF = -1;
  34571. var str = this.str;
  34572. var c = str.getByte();
  34573. while (Lexer.isSpace(c)) {
  34574. c = str.getByte();
  34575. }
  34576. if (c === EOF || c === TILDA_CHAR) {
  34577. this.eof = true;
  34578. return;
  34579. }
  34580. var bufferLength = this.bufferLength, buffer;
  34581. var i;
  34582. // special code for z
  34583. if (c == Z_LOWER_CHAR) {
  34584. buffer = this.ensureBuffer(bufferLength + 4);
  34585. for (i = 0; i < 4; ++i) {
  34586. buffer[bufferLength + i] = 0;
  34587. }
  34588. this.bufferLength += 4;
  34589. } else {
  34590. var input = this.input;
  34591. input[0] = c;
  34592. for (i = 1; i < 5; ++i) {
  34593. c = str.getByte();
  34594. while (Lexer.isSpace(c)) {
  34595. c = str.getByte();
  34596. }
  34597. input[i] = c;
  34598. if (c === EOF || c == TILDA_CHAR) {
  34599. break;
  34600. }
  34601. }
  34602. buffer = this.ensureBuffer(bufferLength + i - 1);
  34603. this.bufferLength += i - 1;
  34604. // partial ending;
  34605. if (i < 5) {
  34606. for (; i < 5; ++i) {
  34607. input[i] = 0x21 + 84;
  34608. }
  34609. this.eof = true;
  34610. }
  34611. var t = 0;
  34612. for (i = 0; i < 5; ++i) {
  34613. t = t * 85 + (input[i] - 0x21);
  34614. }
  34615. for (i = 3; i >= 0; --i) {
  34616. buffer[bufferLength + i] = t & 0xFF;
  34617. t >>= 8;
  34618. }
  34619. }
  34620. };
  34621. return Ascii85Stream;
  34622. })();
  34623. var AsciiHexStream = (function AsciiHexStreamClosure() {
  34624. function AsciiHexStream(str, maybeLength) {
  34625. this.str = str;
  34626. this.dict = str.dict;
  34627. this.firstDigit = -1;
  34628. // Most streams increase in size when decoded, but AsciiHex streams shrink
  34629. // by 50%.
  34630. if (maybeLength) {
  34631. maybeLength = 0.5 * maybeLength;
  34632. }
  34633. DecodeStream.call(this, maybeLength);
  34634. }
  34635. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  34636. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  34637. var UPSTREAM_BLOCK_SIZE = 8000;
  34638. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  34639. if (!bytes.length) {
  34640. this.eof = true;
  34641. return;
  34642. }
  34643. var maxDecodeLength = (bytes.length + 1) >> 1;
  34644. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  34645. var bufferLength = this.bufferLength;
  34646. var firstDigit = this.firstDigit;
  34647. for (var i = 0, ii = bytes.length; i < ii; i++) {
  34648. var ch = bytes[i], digit;
  34649. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  34650. digit = ch & 0x0F;
  34651. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  34652. // 'A'-'Z', 'a'-'z'
  34653. digit = (ch & 0x0F) + 9;
  34654. } else if (ch === 0x3E) { // '>'
  34655. this.eof = true;
  34656. break;
  34657. } else { // probably whitespace
  34658. continue; // ignoring
  34659. }
  34660. if (firstDigit < 0) {
  34661. firstDigit = digit;
  34662. } else {
  34663. buffer[bufferLength++] = (firstDigit << 4) | digit;
  34664. firstDigit = -1;
  34665. }
  34666. }
  34667. if (firstDigit >= 0 && this.eof) {
  34668. // incomplete byte
  34669. buffer[bufferLength++] = (firstDigit << 4);
  34670. firstDigit = -1;
  34671. }
  34672. this.firstDigit = firstDigit;
  34673. this.bufferLength = bufferLength;
  34674. };
  34675. return AsciiHexStream;
  34676. })();
  34677. var RunLengthStream = (function RunLengthStreamClosure() {
  34678. function RunLengthStream(str, maybeLength) {
  34679. this.str = str;
  34680. this.dict = str.dict;
  34681. DecodeStream.call(this, maybeLength);
  34682. }
  34683. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  34684. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  34685. // The repeatHeader has following format. The first byte defines type of run
  34686. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  34687. // (in addition to the second byte from the header), n = 129 through 255 -
  34688. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  34689. var repeatHeader = this.str.getBytes(2);
  34690. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  34691. this.eof = true;
  34692. return;
  34693. }
  34694. var buffer;
  34695. var bufferLength = this.bufferLength;
  34696. var n = repeatHeader[0];
  34697. if (n < 128) {
  34698. // copy n bytes
  34699. buffer = this.ensureBuffer(bufferLength + n + 1);
  34700. buffer[bufferLength++] = repeatHeader[1];
  34701. if (n > 0) {
  34702. var source = this.str.getBytes(n);
  34703. buffer.set(source, bufferLength);
  34704. bufferLength += n;
  34705. }
  34706. } else {
  34707. n = 257 - n;
  34708. var b = repeatHeader[1];
  34709. buffer = this.ensureBuffer(bufferLength + n + 1);
  34710. for (var i = 0; i < n; i++) {
  34711. buffer[bufferLength++] = b;
  34712. }
  34713. }
  34714. this.bufferLength = bufferLength;
  34715. };
  34716. return RunLengthStream;
  34717. })();
  34718. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  34719. var ccittEOL = -2;
  34720. var twoDimPass = 0;
  34721. var twoDimHoriz = 1;
  34722. var twoDimVert0 = 2;
  34723. var twoDimVertR1 = 3;
  34724. var twoDimVertL1 = 4;
  34725. var twoDimVertR2 = 5;
  34726. var twoDimVertL2 = 6;
  34727. var twoDimVertR3 = 7;
  34728. var twoDimVertL3 = 8;
  34729. var twoDimTable = [
  34730. [-1, -1], [-1, -1], // 000000x
  34731. [7, twoDimVertL3], // 0000010
  34732. [7, twoDimVertR3], // 0000011
  34733. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  34734. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  34735. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  34736. [4, twoDimPass], [4, twoDimPass],
  34737. [4, twoDimPass], [4, twoDimPass],
  34738. [4, twoDimPass], [4, twoDimPass],
  34739. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  34740. [3, twoDimHoriz], [3, twoDimHoriz],
  34741. [3, twoDimHoriz], [3, twoDimHoriz],
  34742. [3, twoDimHoriz], [3, twoDimHoriz],
  34743. [3, twoDimHoriz], [3, twoDimHoriz],
  34744. [3, twoDimHoriz], [3, twoDimHoriz],
  34745. [3, twoDimHoriz], [3, twoDimHoriz],
  34746. [3, twoDimHoriz], [3, twoDimHoriz],
  34747. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  34748. [3, twoDimVertL1], [3, twoDimVertL1],
  34749. [3, twoDimVertL1], [3, twoDimVertL1],
  34750. [3, twoDimVertL1], [3, twoDimVertL1],
  34751. [3, twoDimVertL1], [3, twoDimVertL1],
  34752. [3, twoDimVertL1], [3, twoDimVertL1],
  34753. [3, twoDimVertL1], [3, twoDimVertL1],
  34754. [3, twoDimVertL1], [3, twoDimVertL1],
  34755. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  34756. [3, twoDimVertR1], [3, twoDimVertR1],
  34757. [3, twoDimVertR1], [3, twoDimVertR1],
  34758. [3, twoDimVertR1], [3, twoDimVertR1],
  34759. [3, twoDimVertR1], [3, twoDimVertR1],
  34760. [3, twoDimVertR1], [3, twoDimVertR1],
  34761. [3, twoDimVertR1], [3, twoDimVertR1],
  34762. [3, twoDimVertR1], [3, twoDimVertR1],
  34763. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  34764. [1, twoDimVert0], [1, twoDimVert0],
  34765. [1, twoDimVert0], [1, twoDimVert0],
  34766. [1, twoDimVert0], [1, twoDimVert0],
  34767. [1, twoDimVert0], [1, twoDimVert0],
  34768. [1, twoDimVert0], [1, twoDimVert0],
  34769. [1, twoDimVert0], [1, twoDimVert0],
  34770. [1, twoDimVert0], [1, twoDimVert0],
  34771. [1, twoDimVert0], [1, twoDimVert0],
  34772. [1, twoDimVert0], [1, twoDimVert0],
  34773. [1, twoDimVert0], [1, twoDimVert0],
  34774. [1, twoDimVert0], [1, twoDimVert0],
  34775. [1, twoDimVert0], [1, twoDimVert0],
  34776. [1, twoDimVert0], [1, twoDimVert0],
  34777. [1, twoDimVert0], [1, twoDimVert0],
  34778. [1, twoDimVert0], [1, twoDimVert0],
  34779. [1, twoDimVert0], [1, twoDimVert0],
  34780. [1, twoDimVert0], [1, twoDimVert0],
  34781. [1, twoDimVert0], [1, twoDimVert0],
  34782. [1, twoDimVert0], [1, twoDimVert0],
  34783. [1, twoDimVert0], [1, twoDimVert0],
  34784. [1, twoDimVert0], [1, twoDimVert0],
  34785. [1, twoDimVert0], [1, twoDimVert0],
  34786. [1, twoDimVert0], [1, twoDimVert0],
  34787. [1, twoDimVert0], [1, twoDimVert0],
  34788. [1, twoDimVert0], [1, twoDimVert0],
  34789. [1, twoDimVert0], [1, twoDimVert0],
  34790. [1, twoDimVert0], [1, twoDimVert0],
  34791. [1, twoDimVert0], [1, twoDimVert0],
  34792. [1, twoDimVert0], [1, twoDimVert0],
  34793. [1, twoDimVert0], [1, twoDimVert0],
  34794. [1, twoDimVert0], [1, twoDimVert0]
  34795. ];
  34796. var whiteTable1 = [
  34797. [-1, -1], // 00000
  34798. [12, ccittEOL], // 00001
  34799. [-1, -1], [-1, -1], // 0001x
  34800. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  34801. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  34802. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  34803. [11, 1792], [11, 1792], // 1000x
  34804. [12, 1984], // 10010
  34805. [12, 2048], // 10011
  34806. [12, 2112], // 10100
  34807. [12, 2176], // 10101
  34808. [12, 2240], // 10110
  34809. [12, 2304], // 10111
  34810. [11, 1856], [11, 1856], // 1100x
  34811. [11, 1920], [11, 1920], // 1101x
  34812. [12, 2368], // 11100
  34813. [12, 2432], // 11101
  34814. [12, 2496], // 11110
  34815. [12, 2560] // 11111
  34816. ];
  34817. var whiteTable2 = [
  34818. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  34819. [8, 29], [8, 29], // 00000010x
  34820. [8, 30], [8, 30], // 00000011x
  34821. [8, 45], [8, 45], // 00000100x
  34822. [8, 46], [8, 46], // 00000101x
  34823. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  34824. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  34825. [8, 47], [8, 47], // 00001010x
  34826. [8, 48], [8, 48], // 00001011x
  34827. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  34828. [6, 13], [6, 13], [6, 13], [6, 13],
  34829. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  34830. [8, 33], [8, 33], // 00010010x
  34831. [8, 34], [8, 34], // 00010011x
  34832. [8, 35], [8, 35], // 00010100x
  34833. [8, 36], [8, 36], // 00010101x
  34834. [8, 37], [8, 37], // 00010110x
  34835. [8, 38], [8, 38], // 00010111x
  34836. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  34837. [8, 31], [8, 31], // 00011010x
  34838. [8, 32], [8, 32], // 00011011x
  34839. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  34840. [6, 1], [6, 1], [6, 1], [6, 1],
  34841. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  34842. [6, 12], [6, 12], [6, 12], [6, 12],
  34843. [8, 53], [8, 53], // 00100100x
  34844. [8, 54], [8, 54], // 00100101x
  34845. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  34846. [8, 39], [8, 39], // 00101000x
  34847. [8, 40], [8, 40], // 00101001x
  34848. [8, 41], [8, 41], // 00101010x
  34849. [8, 42], [8, 42], // 00101011x
  34850. [8, 43], [8, 43], // 00101100x
  34851. [8, 44], [8, 44], // 00101101x
  34852. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  34853. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  34854. [8, 61], [8, 61], // 00110010x
  34855. [8, 62], [8, 62], // 00110011x
  34856. [8, 63], [8, 63], // 00110100x
  34857. [8, 0], [8, 0], // 00110101x
  34858. [8, 320], [8, 320], // 00110110x
  34859. [8, 384], [8, 384], // 00110111x
  34860. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  34861. [5, 10], [5, 10], [5, 10], [5, 10],
  34862. [5, 10], [5, 10], [5, 10], [5, 10],
  34863. [5, 10], [5, 10], [5, 10], [5, 10],
  34864. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  34865. [5, 11], [5, 11], [5, 11], [5, 11],
  34866. [5, 11], [5, 11], [5, 11], [5, 11],
  34867. [5, 11], [5, 11], [5, 11], [5, 11],
  34868. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  34869. [8, 59], [8, 59], // 01001010x
  34870. [8, 60], [8, 60], // 01001011x
  34871. [9, 1472], // 010011000
  34872. [9, 1536], // 010011001
  34873. [9, 1600], // 010011010
  34874. [9, 1728], // 010011011
  34875. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  34876. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  34877. [8, 49], [8, 49], // 01010010x
  34878. [8, 50], [8, 50], // 01010011x
  34879. [8, 51], [8, 51], // 01010100x
  34880. [8, 52], [8, 52], // 01010101x
  34881. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  34882. [8, 55], [8, 55], // 01011000x
  34883. [8, 56], [8, 56], // 01011001x
  34884. [8, 57], [8, 57], // 01011010x
  34885. [8, 58], [8, 58], // 01011011x
  34886. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  34887. [6, 192], [6, 192], [6, 192], [6, 192],
  34888. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  34889. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  34890. [8, 448], [8, 448], // 01100100x
  34891. [8, 512], [8, 512], // 01100101x
  34892. [9, 704], // 011001100
  34893. [9, 768], // 011001101
  34894. [8, 640], [8, 640], // 01100111x
  34895. [8, 576], [8, 576], // 01101000x
  34896. [9, 832], // 011010010
  34897. [9, 896], // 011010011
  34898. [9, 960], // 011010100
  34899. [9, 1024], // 011010101
  34900. [9, 1088], // 011010110
  34901. [9, 1152], // 011010111
  34902. [9, 1216], // 011011000
  34903. [9, 1280], // 011011001
  34904. [9, 1344], // 011011010
  34905. [9, 1408], // 011011011
  34906. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  34907. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  34908. [4, 2], [4, 2], [4, 2], [4, 2],
  34909. [4, 2], [4, 2], [4, 2], [4, 2],
  34910. [4, 2], [4, 2], [4, 2], [4, 2],
  34911. [4, 2], [4, 2], [4, 2], [4, 2],
  34912. [4, 2], [4, 2], [4, 2], [4, 2],
  34913. [4, 2], [4, 2], [4, 2], [4, 2],
  34914. [4, 2], [4, 2], [4, 2], [4, 2],
  34915. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  34916. [4, 3], [4, 3], [4, 3], [4, 3],
  34917. [4, 3], [4, 3], [4, 3], [4, 3],
  34918. [4, 3], [4, 3], [4, 3], [4, 3],
  34919. [4, 3], [4, 3], [4, 3], [4, 3],
  34920. [4, 3], [4, 3], [4, 3], [4, 3],
  34921. [4, 3], [4, 3], [4, 3], [4, 3],
  34922. [4, 3], [4, 3], [4, 3], [4, 3],
  34923. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  34924. [5, 128], [5, 128], [5, 128], [5, 128],
  34925. [5, 128], [5, 128], [5, 128], [5, 128],
  34926. [5, 128], [5, 128], [5, 128], [5, 128],
  34927. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  34928. [5, 8], [5, 8], [5, 8], [5, 8],
  34929. [5, 8], [5, 8], [5, 8], [5, 8],
  34930. [5, 8], [5, 8], [5, 8], [5, 8],
  34931. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  34932. [5, 9], [5, 9], [5, 9], [5, 9],
  34933. [5, 9], [5, 9], [5, 9], [5, 9],
  34934. [5, 9], [5, 9], [5, 9], [5, 9],
  34935. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  34936. [6, 16], [6, 16], [6, 16], [6, 16],
  34937. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  34938. [6, 17], [6, 17], [6, 17], [6, 17],
  34939. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  34940. [4, 4], [4, 4], [4, 4], [4, 4],
  34941. [4, 4], [4, 4], [4, 4], [4, 4],
  34942. [4, 4], [4, 4], [4, 4], [4, 4],
  34943. [4, 4], [4, 4], [4, 4], [4, 4],
  34944. [4, 4], [4, 4], [4, 4], [4, 4],
  34945. [4, 4], [4, 4], [4, 4], [4, 4],
  34946. [4, 4], [4, 4], [4, 4], [4, 4],
  34947. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  34948. [4, 5], [4, 5], [4, 5], [4, 5],
  34949. [4, 5], [4, 5], [4, 5], [4, 5],
  34950. [4, 5], [4, 5], [4, 5], [4, 5],
  34951. [4, 5], [4, 5], [4, 5], [4, 5],
  34952. [4, 5], [4, 5], [4, 5], [4, 5],
  34953. [4, 5], [4, 5], [4, 5], [4, 5],
  34954. [4, 5], [4, 5], [4, 5], [4, 5],
  34955. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  34956. [6, 14], [6, 14], [6, 14], [6, 14],
  34957. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  34958. [6, 15], [6, 15], [6, 15], [6, 15],
  34959. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  34960. [5, 64], [5, 64], [5, 64], [5, 64],
  34961. [5, 64], [5, 64], [5, 64], [5, 64],
  34962. [5, 64], [5, 64], [5, 64], [5, 64],
  34963. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  34964. [4, 6], [4, 6], [4, 6], [4, 6],
  34965. [4, 6], [4, 6], [4, 6], [4, 6],
  34966. [4, 6], [4, 6], [4, 6], [4, 6],
  34967. [4, 6], [4, 6], [4, 6], [4, 6],
  34968. [4, 6], [4, 6], [4, 6], [4, 6],
  34969. [4, 6], [4, 6], [4, 6], [4, 6],
  34970. [4, 6], [4, 6], [4, 6], [4, 6],
  34971. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  34972. [4, 7], [4, 7], [4, 7], [4, 7],
  34973. [4, 7], [4, 7], [4, 7], [4, 7],
  34974. [4, 7], [4, 7], [4, 7], [4, 7],
  34975. [4, 7], [4, 7], [4, 7], [4, 7],
  34976. [4, 7], [4, 7], [4, 7], [4, 7],
  34977. [4, 7], [4, 7], [4, 7], [4, 7],
  34978. [4, 7], [4, 7], [4, 7], [4, 7]
  34979. ];
  34980. var blackTable1 = [
  34981. [-1, -1], [-1, -1], // 000000000000x
  34982. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  34983. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  34984. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  34985. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  34986. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  34987. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  34988. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  34989. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  34990. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  34991. [12, 1984], [12, 1984], // 000000010010x
  34992. [12, 2048], [12, 2048], // 000000010011x
  34993. [12, 2112], [12, 2112], // 000000010100x
  34994. [12, 2176], [12, 2176], // 000000010101x
  34995. [12, 2240], [12, 2240], // 000000010110x
  34996. [12, 2304], [12, 2304], // 000000010111x
  34997. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  34998. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  34999. [12, 2368], [12, 2368], // 000000011100x
  35000. [12, 2432], [12, 2432], // 000000011101x
  35001. [12, 2496], [12, 2496], // 000000011110x
  35002. [12, 2560], [12, 2560], // 000000011111x
  35003. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  35004. [10, 18], [10, 18], [10, 18], [10, 18],
  35005. [12, 52], [12, 52], // 000000100100x
  35006. [13, 640], // 0000001001010
  35007. [13, 704], // 0000001001011
  35008. [13, 768], // 0000001001100
  35009. [13, 832], // 0000001001101
  35010. [12, 55], [12, 55], // 000000100111x
  35011. [12, 56], [12, 56], // 000000101000x
  35012. [13, 1280], // 0000001010010
  35013. [13, 1344], // 0000001010011
  35014. [13, 1408], // 0000001010100
  35015. [13, 1472], // 0000001010101
  35016. [12, 59], [12, 59], // 000000101011x
  35017. [12, 60], [12, 60], // 000000101100x
  35018. [13, 1536], // 0000001011010
  35019. [13, 1600], // 0000001011011
  35020. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  35021. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  35022. [13, 1664], // 0000001100100
  35023. [13, 1728], // 0000001100101
  35024. [12, 320], [12, 320], // 000000110011x
  35025. [12, 384], [12, 384], // 000000110100x
  35026. [12, 448], [12, 448], // 000000110101x
  35027. [13, 512], // 0000001101100
  35028. [13, 576], // 0000001101101
  35029. [12, 53], [12, 53], // 000000110111x
  35030. [12, 54], [12, 54], // 000000111000x
  35031. [13, 896], // 0000001110010
  35032. [13, 960], // 0000001110011
  35033. [13, 1024], // 0000001110100
  35034. [13, 1088], // 0000001110101
  35035. [13, 1152], // 0000001110110
  35036. [13, 1216], // 0000001110111
  35037. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  35038. [10, 64], [10, 64], [10, 64], [10, 64]
  35039. ];
  35040. var blackTable2 = [
  35041. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  35042. [8, 13], [8, 13], [8, 13], [8, 13],
  35043. [8, 13], [8, 13], [8, 13], [8, 13],
  35044. [8, 13], [8, 13], [8, 13], [8, 13],
  35045. [11, 23], [11, 23], // 00000101000x
  35046. [12, 50], // 000001010010
  35047. [12, 51], // 000001010011
  35048. [12, 44], // 000001010100
  35049. [12, 45], // 000001010101
  35050. [12, 46], // 000001010110
  35051. [12, 47], // 000001010111
  35052. [12, 57], // 000001011000
  35053. [12, 58], // 000001011001
  35054. [12, 61], // 000001011010
  35055. [12, 256], // 000001011011
  35056. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  35057. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  35058. [12, 48], // 000001100100
  35059. [12, 49], // 000001100101
  35060. [12, 62], // 000001100110
  35061. [12, 63], // 000001100111
  35062. [12, 30], // 000001101000
  35063. [12, 31], // 000001101001
  35064. [12, 32], // 000001101010
  35065. [12, 33], // 000001101011
  35066. [12, 40], // 000001101100
  35067. [12, 41], // 000001101101
  35068. [11, 22], [11, 22], // 00000110111x
  35069. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  35070. [8, 14], [8, 14], [8, 14], [8, 14],
  35071. [8, 14], [8, 14], [8, 14], [8, 14],
  35072. [8, 14], [8, 14], [8, 14], [8, 14],
  35073. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  35074. [7, 10], [7, 10], [7, 10], [7, 10],
  35075. [7, 10], [7, 10], [7, 10], [7, 10],
  35076. [7, 10], [7, 10], [7, 10], [7, 10],
  35077. [7, 10], [7, 10], [7, 10], [7, 10],
  35078. [7, 10], [7, 10], [7, 10], [7, 10],
  35079. [7, 10], [7, 10], [7, 10], [7, 10],
  35080. [7, 10], [7, 10], [7, 10], [7, 10],
  35081. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  35082. [7, 11], [7, 11], [7, 11], [7, 11],
  35083. [7, 11], [7, 11], [7, 11], [7, 11],
  35084. [7, 11], [7, 11], [7, 11], [7, 11],
  35085. [7, 11], [7, 11], [7, 11], [7, 11],
  35086. [7, 11], [7, 11], [7, 11], [7, 11],
  35087. [7, 11], [7, 11], [7, 11], [7, 11],
  35088. [7, 11], [7, 11], [7, 11], [7, 11],
  35089. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  35090. [9, 15], [9, 15], [9, 15], [9, 15],
  35091. [12, 128], // 000011001000
  35092. [12, 192], // 000011001001
  35093. [12, 26], // 000011001010
  35094. [12, 27], // 000011001011
  35095. [12, 28], // 000011001100
  35096. [12, 29], // 000011001101
  35097. [11, 19], [11, 19], // 00001100111x
  35098. [11, 20], [11, 20], // 00001101000x
  35099. [12, 34], // 000011010010
  35100. [12, 35], // 000011010011
  35101. [12, 36], // 000011010100
  35102. [12, 37], // 000011010101
  35103. [12, 38], // 000011010110
  35104. [12, 39], // 000011010111
  35105. [11, 21], [11, 21], // 00001101100x
  35106. [12, 42], // 000011011010
  35107. [12, 43], // 000011011011
  35108. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  35109. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  35110. [7, 12], [7, 12], [7, 12], [7, 12],
  35111. [7, 12], [7, 12], [7, 12], [7, 12],
  35112. [7, 12], [7, 12], [7, 12], [7, 12],
  35113. [7, 12], [7, 12], [7, 12], [7, 12],
  35114. [7, 12], [7, 12], [7, 12], [7, 12],
  35115. [7, 12], [7, 12], [7, 12], [7, 12],
  35116. [7, 12], [7, 12], [7, 12], [7, 12]
  35117. ];
  35118. var blackTable3 = [
  35119. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  35120. [6, 9], // 000100
  35121. [6, 8], // 000101
  35122. [5, 7], [5, 7], // 00011x
  35123. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  35124. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  35125. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  35126. [3, 1], [3, 1], [3, 1], [3, 1],
  35127. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  35128. [3, 4], [3, 4], [3, 4], [3, 4],
  35129. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  35130. [2, 3], [2, 3], [2, 3], [2, 3],
  35131. [2, 3], [2, 3], [2, 3], [2, 3],
  35132. [2, 3], [2, 3], [2, 3], [2, 3],
  35133. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  35134. [2, 2], [2, 2], [2, 2], [2, 2],
  35135. [2, 2], [2, 2], [2, 2], [2, 2],
  35136. [2, 2], [2, 2], [2, 2], [2, 2]
  35137. ];
  35138. function CCITTFaxStream(str, maybeLength, params) {
  35139. this.str = str;
  35140. this.dict = str.dict;
  35141. params = params || Dict.empty;
  35142. this.encoding = params.get('K') || 0;
  35143. this.eoline = params.get('EndOfLine') || false;
  35144. this.byteAlign = params.get('EncodedByteAlign') || false;
  35145. this.columns = params.get('Columns') || 1728;
  35146. this.rows = params.get('Rows') || 0;
  35147. var eoblock = params.get('EndOfBlock');
  35148. if (eoblock === null || eoblock === undefined) {
  35149. eoblock = true;
  35150. }
  35151. this.eoblock = eoblock;
  35152. this.black = params.get('BlackIs1') || false;
  35153. this.codingLine = new Uint32Array(this.columns + 1);
  35154. this.refLine = new Uint32Array(this.columns + 2);
  35155. this.codingLine[0] = this.columns;
  35156. this.codingPos = 0;
  35157. this.row = 0;
  35158. this.nextLine2D = this.encoding < 0;
  35159. this.inputBits = 0;
  35160. this.inputBuf = 0;
  35161. this.outputBits = 0;
  35162. var code1;
  35163. while ((code1 = this.lookBits(12)) === 0) {
  35164. this.eatBits(1);
  35165. }
  35166. if (code1 == 1) {
  35167. this.eatBits(12);
  35168. }
  35169. if (this.encoding > 0) {
  35170. this.nextLine2D = !this.lookBits(1);
  35171. this.eatBits(1);
  35172. }
  35173. DecodeStream.call(this, maybeLength);
  35174. }
  35175. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  35176. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  35177. while (!this.eof) {
  35178. var c = this.lookChar();
  35179. this.ensureBuffer(this.bufferLength + 1);
  35180. this.buffer[this.bufferLength++] = c;
  35181. }
  35182. };
  35183. CCITTFaxStream.prototype.addPixels =
  35184. function ccittFaxStreamAddPixels(a1, blackPixels) {
  35185. var codingLine = this.codingLine;
  35186. var codingPos = this.codingPos;
  35187. if (a1 > codingLine[codingPos]) {
  35188. if (a1 > this.columns) {
  35189. info('row is wrong length');
  35190. this.err = true;
  35191. a1 = this.columns;
  35192. }
  35193. if ((codingPos & 1) ^ blackPixels) {
  35194. ++codingPos;
  35195. }
  35196. codingLine[codingPos] = a1;
  35197. }
  35198. this.codingPos = codingPos;
  35199. };
  35200. CCITTFaxStream.prototype.addPixelsNeg =
  35201. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  35202. var codingLine = this.codingLine;
  35203. var codingPos = this.codingPos;
  35204. if (a1 > codingLine[codingPos]) {
  35205. if (a1 > this.columns) {
  35206. info('row is wrong length');
  35207. this.err = true;
  35208. a1 = this.columns;
  35209. }
  35210. if ((codingPos & 1) ^ blackPixels) {
  35211. ++codingPos;
  35212. }
  35213. codingLine[codingPos] = a1;
  35214. } else if (a1 < codingLine[codingPos]) {
  35215. if (a1 < 0) {
  35216. info('invalid code');
  35217. this.err = true;
  35218. a1 = 0;
  35219. }
  35220. while (codingPos > 0 && a1 < codingLine[codingPos - 1]) {
  35221. --codingPos;
  35222. }
  35223. codingLine[codingPos] = a1;
  35224. }
  35225. this.codingPos = codingPos;
  35226. };
  35227. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  35228. var refLine = this.refLine;
  35229. var codingLine = this.codingLine;
  35230. var columns = this.columns;
  35231. var refPos, blackPixels, bits, i;
  35232. if (this.outputBits === 0) {
  35233. if (this.eof) {
  35234. return null;
  35235. }
  35236. this.err = false;
  35237. var code1, code2, code3;
  35238. if (this.nextLine2D) {
  35239. for (i = 0; codingLine[i] < columns; ++i) {
  35240. refLine[i] = codingLine[i];
  35241. }
  35242. refLine[i++] = columns;
  35243. refLine[i] = columns;
  35244. codingLine[0] = 0;
  35245. this.codingPos = 0;
  35246. refPos = 0;
  35247. blackPixels = 0;
  35248. while (codingLine[this.codingPos] < columns) {
  35249. code1 = this.getTwoDimCode();
  35250. switch (code1) {
  35251. case twoDimPass:
  35252. this.addPixels(refLine[refPos + 1], blackPixels);
  35253. if (refLine[refPos + 1] < columns) {
  35254. refPos += 2;
  35255. }
  35256. break;
  35257. case twoDimHoriz:
  35258. code1 = code2 = 0;
  35259. if (blackPixels) {
  35260. do {
  35261. code1 += (code3 = this.getBlackCode());
  35262. } while (code3 >= 64);
  35263. do {
  35264. code2 += (code3 = this.getWhiteCode());
  35265. } while (code3 >= 64);
  35266. } else {
  35267. do {
  35268. code1 += (code3 = this.getWhiteCode());
  35269. } while (code3 >= 64);
  35270. do {
  35271. code2 += (code3 = this.getBlackCode());
  35272. } while (code3 >= 64);
  35273. }
  35274. this.addPixels(codingLine[this.codingPos] +
  35275. code1, blackPixels);
  35276. if (codingLine[this.codingPos] < columns) {
  35277. this.addPixels(codingLine[this.codingPos] + code2,
  35278. blackPixels ^ 1);
  35279. }
  35280. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35281. refLine[refPos] < columns) {
  35282. refPos += 2;
  35283. }
  35284. break;
  35285. case twoDimVertR3:
  35286. this.addPixels(refLine[refPos] + 3, blackPixels);
  35287. blackPixels ^= 1;
  35288. if (codingLine[this.codingPos] < columns) {
  35289. ++refPos;
  35290. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35291. refLine[refPos] < columns) {
  35292. refPos += 2;
  35293. }
  35294. }
  35295. break;
  35296. case twoDimVertR2:
  35297. this.addPixels(refLine[refPos] + 2, blackPixels);
  35298. blackPixels ^= 1;
  35299. if (codingLine[this.codingPos] < columns) {
  35300. ++refPos;
  35301. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35302. refLine[refPos] < columns) {
  35303. refPos += 2;
  35304. }
  35305. }
  35306. break;
  35307. case twoDimVertR1:
  35308. this.addPixels(refLine[refPos] + 1, blackPixels);
  35309. blackPixels ^= 1;
  35310. if (codingLine[this.codingPos] < columns) {
  35311. ++refPos;
  35312. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35313. refLine[refPos] < columns) {
  35314. refPos += 2;
  35315. }
  35316. }
  35317. break;
  35318. case twoDimVert0:
  35319. this.addPixels(refLine[refPos], blackPixels);
  35320. blackPixels ^= 1;
  35321. if (codingLine[this.codingPos] < columns) {
  35322. ++refPos;
  35323. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35324. refLine[refPos] < columns) {
  35325. refPos += 2;
  35326. }
  35327. }
  35328. break;
  35329. case twoDimVertL3:
  35330. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  35331. blackPixels ^= 1;
  35332. if (codingLine[this.codingPos] < columns) {
  35333. if (refPos > 0) {
  35334. --refPos;
  35335. } else {
  35336. ++refPos;
  35337. }
  35338. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35339. refLine[refPos] < columns) {
  35340. refPos += 2;
  35341. }
  35342. }
  35343. break;
  35344. case twoDimVertL2:
  35345. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  35346. blackPixels ^= 1;
  35347. if (codingLine[this.codingPos] < columns) {
  35348. if (refPos > 0) {
  35349. --refPos;
  35350. } else {
  35351. ++refPos;
  35352. }
  35353. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35354. refLine[refPos] < columns) {
  35355. refPos += 2;
  35356. }
  35357. }
  35358. break;
  35359. case twoDimVertL1:
  35360. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  35361. blackPixels ^= 1;
  35362. if (codingLine[this.codingPos] < columns) {
  35363. if (refPos > 0) {
  35364. --refPos;
  35365. } else {
  35366. ++refPos;
  35367. }
  35368. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35369. refLine[refPos] < columns) {
  35370. refPos += 2;
  35371. }
  35372. }
  35373. break;
  35374. case EOF:
  35375. this.addPixels(columns, 0);
  35376. this.eof = true;
  35377. break;
  35378. default:
  35379. info('bad 2d code');
  35380. this.addPixels(columns, 0);
  35381. this.err = true;
  35382. }
  35383. }
  35384. } else {
  35385. codingLine[0] = 0;
  35386. this.codingPos = 0;
  35387. blackPixels = 0;
  35388. while (codingLine[this.codingPos] < columns) {
  35389. code1 = 0;
  35390. if (blackPixels) {
  35391. do {
  35392. code1 += (code3 = this.getBlackCode());
  35393. } while (code3 >= 64);
  35394. } else {
  35395. do {
  35396. code1 += (code3 = this.getWhiteCode());
  35397. } while (code3 >= 64);
  35398. }
  35399. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  35400. blackPixels ^= 1;
  35401. }
  35402. }
  35403. if (this.byteAlign) {
  35404. this.inputBits &= ~7;
  35405. }
  35406. var gotEOL = false;
  35407. if (!this.eoblock && this.row == this.rows - 1) {
  35408. this.eof = true;
  35409. } else {
  35410. code1 = this.lookBits(12);
  35411. while (code1 === 0) {
  35412. this.eatBits(1);
  35413. code1 = this.lookBits(12);
  35414. }
  35415. if (code1 == 1) {
  35416. this.eatBits(12);
  35417. gotEOL = true;
  35418. } else if (code1 == EOF) {
  35419. this.eof = true;
  35420. }
  35421. }
  35422. if (!this.eof && this.encoding > 0) {
  35423. this.nextLine2D = !this.lookBits(1);
  35424. this.eatBits(1);
  35425. }
  35426. if (this.eoblock && gotEOL) {
  35427. code1 = this.lookBits(12);
  35428. if (code1 == 1) {
  35429. this.eatBits(12);
  35430. if (this.encoding > 0) {
  35431. this.lookBits(1);
  35432. this.eatBits(1);
  35433. }
  35434. if (this.encoding >= 0) {
  35435. for (i = 0; i < 4; ++i) {
  35436. code1 = this.lookBits(12);
  35437. if (code1 != 1) {
  35438. info('bad rtc code: ' + code1);
  35439. }
  35440. this.eatBits(12);
  35441. if (this.encoding > 0) {
  35442. this.lookBits(1);
  35443. this.eatBits(1);
  35444. }
  35445. }
  35446. }
  35447. this.eof = true;
  35448. }
  35449. } else if (this.err && this.eoline) {
  35450. while (true) {
  35451. code1 = this.lookBits(13);
  35452. if (code1 == EOF) {
  35453. this.eof = true;
  35454. return null;
  35455. }
  35456. if ((code1 >> 1) == 1) {
  35457. break;
  35458. }
  35459. this.eatBits(1);
  35460. }
  35461. this.eatBits(12);
  35462. if (this.encoding > 0) {
  35463. this.eatBits(1);
  35464. this.nextLine2D = !(code1 & 1);
  35465. }
  35466. }
  35467. if (codingLine[0] > 0) {
  35468. this.outputBits = codingLine[this.codingPos = 0];
  35469. } else {
  35470. this.outputBits = codingLine[this.codingPos = 1];
  35471. }
  35472. this.row++;
  35473. }
  35474. var c;
  35475. if (this.outputBits >= 8) {
  35476. c = (this.codingPos & 1) ? 0 : 0xFF;
  35477. this.outputBits -= 8;
  35478. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  35479. this.codingPos++;
  35480. this.outputBits = (codingLine[this.codingPos] -
  35481. codingLine[this.codingPos - 1]);
  35482. }
  35483. } else {
  35484. bits = 8;
  35485. c = 0;
  35486. do {
  35487. if (this.outputBits > bits) {
  35488. c <<= bits;
  35489. if (!(this.codingPos & 1)) {
  35490. c |= 0xFF >> (8 - bits);
  35491. }
  35492. this.outputBits -= bits;
  35493. bits = 0;
  35494. } else {
  35495. c <<= this.outputBits;
  35496. if (!(this.codingPos & 1)) {
  35497. c |= 0xFF >> (8 - this.outputBits);
  35498. }
  35499. bits -= this.outputBits;
  35500. this.outputBits = 0;
  35501. if (codingLine[this.codingPos] < columns) {
  35502. this.codingPos++;
  35503. this.outputBits = (codingLine[this.codingPos] -
  35504. codingLine[this.codingPos - 1]);
  35505. } else if (bits > 0) {
  35506. c <<= bits;
  35507. bits = 0;
  35508. }
  35509. }
  35510. } while (bits);
  35511. }
  35512. if (this.black) {
  35513. c ^= 0xFF;
  35514. }
  35515. return c;
  35516. };
  35517. // This functions returns the code found from the table.
  35518. // The start and end parameters set the boundaries for searching the table.
  35519. // The limit parameter is optional. Function returns an array with three
  35520. // values. The first array element indicates whether a valid code is being
  35521. // returned. The second array element is the actual code. The third array
  35522. // element indicates whether EOF was reached.
  35523. CCITTFaxStream.prototype.findTableCode =
  35524. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  35525. var limitValue = limit || 0;
  35526. for (var i = start; i <= end; ++i) {
  35527. var code = this.lookBits(i);
  35528. if (code == EOF) {
  35529. return [true, 1, false];
  35530. }
  35531. if (i < end) {
  35532. code <<= end - i;
  35533. }
  35534. if (!limitValue || code >= limitValue) {
  35535. var p = table[code - limitValue];
  35536. if (p[0] == i) {
  35537. this.eatBits(i);
  35538. return [true, p[1], true];
  35539. }
  35540. }
  35541. }
  35542. return [false, 0, false];
  35543. };
  35544. CCITTFaxStream.prototype.getTwoDimCode =
  35545. function ccittFaxStreamGetTwoDimCode() {
  35546. var code = 0;
  35547. var p;
  35548. if (this.eoblock) {
  35549. code = this.lookBits(7);
  35550. p = twoDimTable[code];
  35551. if (p && p[0] > 0) {
  35552. this.eatBits(p[0]);
  35553. return p[1];
  35554. }
  35555. } else {
  35556. var result = this.findTableCode(1, 7, twoDimTable);
  35557. if (result[0] && result[2]) {
  35558. return result[1];
  35559. }
  35560. }
  35561. info('Bad two dim code');
  35562. return EOF;
  35563. };
  35564. CCITTFaxStream.prototype.getWhiteCode =
  35565. function ccittFaxStreamGetWhiteCode() {
  35566. var code = 0;
  35567. var p;
  35568. if (this.eoblock) {
  35569. code = this.lookBits(12);
  35570. if (code == EOF) {
  35571. return 1;
  35572. }
  35573. if ((code >> 5) === 0) {
  35574. p = whiteTable1[code];
  35575. } else {
  35576. p = whiteTable2[code >> 3];
  35577. }
  35578. if (p[0] > 0) {
  35579. this.eatBits(p[0]);
  35580. return p[1];
  35581. }
  35582. } else {
  35583. var result = this.findTableCode(1, 9, whiteTable2);
  35584. if (result[0]) {
  35585. return result[1];
  35586. }
  35587. result = this.findTableCode(11, 12, whiteTable1);
  35588. if (result[0]) {
  35589. return result[1];
  35590. }
  35591. }
  35592. info('bad white code');
  35593. this.eatBits(1);
  35594. return 1;
  35595. };
  35596. CCITTFaxStream.prototype.getBlackCode =
  35597. function ccittFaxStreamGetBlackCode() {
  35598. var code, p;
  35599. if (this.eoblock) {
  35600. code = this.lookBits(13);
  35601. if (code == EOF) {
  35602. return 1;
  35603. }
  35604. if ((code >> 7) === 0) {
  35605. p = blackTable1[code];
  35606. } else if ((code >> 9) === 0 && (code >> 7) !== 0) {
  35607. p = blackTable2[(code >> 1) - 64];
  35608. } else {
  35609. p = blackTable3[code >> 7];
  35610. }
  35611. if (p[0] > 0) {
  35612. this.eatBits(p[0]);
  35613. return p[1];
  35614. }
  35615. } else {
  35616. var result = this.findTableCode(2, 6, blackTable3);
  35617. if (result[0]) {
  35618. return result[1];
  35619. }
  35620. result = this.findTableCode(7, 12, blackTable2, 64);
  35621. if (result[0]) {
  35622. return result[1];
  35623. }
  35624. result = this.findTableCode(10, 13, blackTable1);
  35625. if (result[0]) {
  35626. return result[1];
  35627. }
  35628. }
  35629. info('bad black code');
  35630. this.eatBits(1);
  35631. return 1;
  35632. };
  35633. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  35634. var c;
  35635. while (this.inputBits < n) {
  35636. if ((c = this.str.getByte()) === -1) {
  35637. if (this.inputBits === 0) {
  35638. return EOF;
  35639. }
  35640. return ((this.inputBuf << (n - this.inputBits)) &
  35641. (0xFFFF >> (16 - n)));
  35642. }
  35643. this.inputBuf = (this.inputBuf << 8) + c;
  35644. this.inputBits += 8;
  35645. }
  35646. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  35647. };
  35648. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  35649. if ((this.inputBits -= n) < 0) {
  35650. this.inputBits = 0;
  35651. }
  35652. };
  35653. return CCITTFaxStream;
  35654. })();
  35655. var LZWStream = (function LZWStreamClosure() {
  35656. function LZWStream(str, maybeLength, earlyChange) {
  35657. this.str = str;
  35658. this.dict = str.dict;
  35659. this.cachedData = 0;
  35660. this.bitsCached = 0;
  35661. var maxLzwDictionarySize = 4096;
  35662. var lzwState = {
  35663. earlyChange: earlyChange,
  35664. codeLength: 9,
  35665. nextCode: 258,
  35666. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  35667. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  35668. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  35669. currentSequence: new Uint8Array(maxLzwDictionarySize),
  35670. currentSequenceLength: 0
  35671. };
  35672. for (var i = 0; i < 256; ++i) {
  35673. lzwState.dictionaryValues[i] = i;
  35674. lzwState.dictionaryLengths[i] = 1;
  35675. }
  35676. this.lzwState = lzwState;
  35677. DecodeStream.call(this, maybeLength);
  35678. }
  35679. LZWStream.prototype = Object.create(DecodeStream.prototype);
  35680. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  35681. var bitsCached = this.bitsCached;
  35682. var cachedData = this.cachedData;
  35683. while (bitsCached < n) {
  35684. var c = this.str.getByte();
  35685. if (c === -1) {
  35686. this.eof = true;
  35687. return null;
  35688. }
  35689. cachedData = (cachedData << 8) | c;
  35690. bitsCached += 8;
  35691. }
  35692. this.bitsCached = (bitsCached -= n);
  35693. this.cachedData = cachedData;
  35694. this.lastCode = null;
  35695. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  35696. };
  35697. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  35698. var blockSize = 512;
  35699. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  35700. var i, j, q;
  35701. var lzwState = this.lzwState;
  35702. if (!lzwState) {
  35703. return; // eof was found
  35704. }
  35705. var earlyChange = lzwState.earlyChange;
  35706. var nextCode = lzwState.nextCode;
  35707. var dictionaryValues = lzwState.dictionaryValues;
  35708. var dictionaryLengths = lzwState.dictionaryLengths;
  35709. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  35710. var codeLength = lzwState.codeLength;
  35711. var prevCode = lzwState.prevCode;
  35712. var currentSequence = lzwState.currentSequence;
  35713. var currentSequenceLength = lzwState.currentSequenceLength;
  35714. var decodedLength = 0;
  35715. var currentBufferLength = this.bufferLength;
  35716. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35717. for (i = 0; i < blockSize; i++) {
  35718. var code = this.readBits(codeLength);
  35719. var hasPrev = currentSequenceLength > 0;
  35720. if (code < 256) {
  35721. currentSequence[0] = code;
  35722. currentSequenceLength = 1;
  35723. } else if (code >= 258) {
  35724. if (code < nextCode) {
  35725. currentSequenceLength = dictionaryLengths[code];
  35726. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  35727. currentSequence[j] = dictionaryValues[q];
  35728. q = dictionaryPrevCodes[q];
  35729. }
  35730. } else {
  35731. currentSequence[currentSequenceLength++] = currentSequence[0];
  35732. }
  35733. } else if (code == 256) {
  35734. codeLength = 9;
  35735. nextCode = 258;
  35736. currentSequenceLength = 0;
  35737. continue;
  35738. } else {
  35739. this.eof = true;
  35740. delete this.lzwState;
  35741. break;
  35742. }
  35743. if (hasPrev) {
  35744. dictionaryPrevCodes[nextCode] = prevCode;
  35745. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  35746. dictionaryValues[nextCode] = currentSequence[0];
  35747. nextCode++;
  35748. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  35749. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  35750. 0.6931471805599453 + 1, 12) | 0;
  35751. }
  35752. prevCode = code;
  35753. decodedLength += currentSequenceLength;
  35754. if (estimatedDecodedSize < decodedLength) {
  35755. do {
  35756. estimatedDecodedSize += decodedSizeDelta;
  35757. } while (estimatedDecodedSize < decodedLength);
  35758. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35759. }
  35760. for (j = 0; j < currentSequenceLength; j++) {
  35761. buffer[currentBufferLength++] = currentSequence[j];
  35762. }
  35763. }
  35764. lzwState.nextCode = nextCode;
  35765. lzwState.codeLength = codeLength;
  35766. lzwState.prevCode = prevCode;
  35767. lzwState.currentSequenceLength = currentSequenceLength;
  35768. this.bufferLength = currentBufferLength;
  35769. };
  35770. return LZWStream;
  35771. })();
  35772. var NullStream = (function NullStreamClosure() {
  35773. function NullStream() {
  35774. Stream.call(this, new Uint8Array(0));
  35775. }
  35776. NullStream.prototype = Stream.prototype;
  35777. return NullStream;
  35778. })();
  35779. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  35780. setup: function wphSetup(handler) {
  35781. var pdfManager;
  35782. function loadDocument(recoveryMode) {
  35783. var loadDocumentCapability = createPromiseCapability();
  35784. var parseSuccess = function parseSuccess() {
  35785. var numPagesPromise = pdfManager.ensureDoc('numPages');
  35786. var fingerprintPromise = pdfManager.ensureDoc('fingerprint');
  35787. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  35788. Promise.all([numPagesPromise, fingerprintPromise,
  35789. encryptedPromise]).then(function onDocReady(results) {
  35790. var doc = {
  35791. numPages: results[0],
  35792. fingerprint: results[1],
  35793. encrypted: !!results[2],
  35794. };
  35795. loadDocumentCapability.resolve(doc);
  35796. },
  35797. parseFailure);
  35798. };
  35799. var parseFailure = function parseFailure(e) {
  35800. loadDocumentCapability.reject(e);
  35801. };
  35802. pdfManager.ensureDoc('checkHeader', []).then(function() {
  35803. pdfManager.ensureDoc('parseStartXRef', []).then(function() {
  35804. pdfManager.ensureDoc('parse', [recoveryMode]).then(
  35805. parseSuccess, parseFailure);
  35806. }, parseFailure);
  35807. }, parseFailure);
  35808. return loadDocumentCapability.promise;
  35809. }
  35810. function getPdfManager(data) {
  35811. var pdfManagerCapability = createPromiseCapability();
  35812. var source = data.source;
  35813. var disableRange = data.disableRange;
  35814. if (source.data) {
  35815. try {
  35816. pdfManager = new LocalPdfManager(source.data, source.password);
  35817. pdfManagerCapability.resolve();
  35818. } catch (ex) {
  35819. pdfManagerCapability.reject(ex);
  35820. }
  35821. return pdfManagerCapability.promise;
  35822. } else if (source.chunkedViewerLoading) {
  35823. try {
  35824. pdfManager = new NetworkPdfManager(source, handler);
  35825. pdfManagerCapability.resolve();
  35826. } catch (ex) {
  35827. pdfManagerCapability.reject(ex);
  35828. }
  35829. return pdfManagerCapability.promise;
  35830. }
  35831. var networkManager = new NetworkManager(source.url, {
  35832. httpHeaders: source.httpHeaders,
  35833. withCredentials: source.withCredentials
  35834. });
  35835. var fullRequestXhrId = networkManager.requestFull({
  35836. onHeadersReceived: function onHeadersReceived() {
  35837. if (disableRange) {
  35838. return;
  35839. }
  35840. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  35841. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  35842. return;
  35843. }
  35844. var contentEncoding =
  35845. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  35846. if (contentEncoding !== 'identity') {
  35847. return;
  35848. }
  35849. var length = fullRequestXhr.getResponseHeader('Content-Length');
  35850. length = parseInt(length, 10);
  35851. if (!isInt(length)) {
  35852. return;
  35853. }
  35854. source.length = length;
  35855. if (length <= 2 * RANGE_CHUNK_SIZE) {
  35856. // The file size is smaller than the size of two chunks, so it does
  35857. // not make any sense to abort the request and retry with a range
  35858. // request.
  35859. return;
  35860. }
  35861. // NOTE: by cancelling the full request, and then issuing range
  35862. // requests, there will be an issue for sites where you can only
  35863. // request the pdf once. However, if this is the case, then the
  35864. // server should not be returning that it can support range requests.
  35865. networkManager.abortRequest(fullRequestXhrId);
  35866. try {
  35867. pdfManager = new NetworkPdfManager(source, handler);
  35868. pdfManagerCapability.resolve(pdfManager);
  35869. } catch (ex) {
  35870. pdfManagerCapability.reject(ex);
  35871. }
  35872. },
  35873. onDone: function onDone(args) {
  35874. // the data is array, instantiating directly from it
  35875. try {
  35876. pdfManager = new LocalPdfManager(args.chunk, source.password);
  35877. pdfManagerCapability.resolve();
  35878. } catch (ex) {
  35879. pdfManagerCapability.reject(ex);
  35880. }
  35881. },
  35882. onError: function onError(status) {
  35883. if (status == 404) {
  35884. var exception = new MissingPDFException('Missing PDF "' +
  35885. source.url + '".');
  35886. handler.send('MissingPDF', { exception: exception });
  35887. } else {
  35888. handler.send('DocError', 'Unexpected server response (' +
  35889. status + ') while retrieving PDF "' +
  35890. source.url + '".');
  35891. }
  35892. },
  35893. onProgress: function onProgress(evt) {
  35894. handler.send('DocProgress', {
  35895. loaded: evt.loaded,
  35896. total: evt.lengthComputable ? evt.total : source.length
  35897. });
  35898. }
  35899. });
  35900. return pdfManagerCapability.promise;
  35901. }
  35902. handler.on('test', function wphSetupTest(data) {
  35903. // check if Uint8Array can be sent to worker
  35904. if (!(data instanceof Uint8Array)) {
  35905. handler.send('test', false);
  35906. return;
  35907. }
  35908. // making sure postMessage transfers are working
  35909. var supportTransfers = data[0] === 255;
  35910. handler.postMessageTransfers = supportTransfers;
  35911. // check if the response property is supported by xhr
  35912. var xhr = new XMLHttpRequest();
  35913. var responseExists = 'response' in xhr;
  35914. // check if the property is actually implemented
  35915. try {
  35916. var dummy = xhr.responseType;
  35917. } catch (e) {
  35918. responseExists = false;
  35919. }
  35920. if (!responseExists) {
  35921. handler.send('test', false);
  35922. return;
  35923. }
  35924. handler.send('test', {
  35925. supportTypedArray: true,
  35926. supportTransfers: supportTransfers
  35927. });
  35928. });
  35929. handler.on('GetDocRequest', function wphSetupDoc(data) {
  35930. var onSuccess = function(doc) {
  35931. handler.send('GetDoc', { pdfInfo: doc });
  35932. };
  35933. var onFailure = function(e) {
  35934. if (e instanceof PasswordException) {
  35935. if (e.code === PasswordResponses.NEED_PASSWORD) {
  35936. handler.send('NeedPassword', {
  35937. exception: e
  35938. });
  35939. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  35940. handler.send('IncorrectPassword', {
  35941. exception: e
  35942. });
  35943. }
  35944. } else if (e instanceof InvalidPDFException) {
  35945. handler.send('InvalidPDF', {
  35946. exception: e
  35947. });
  35948. } else if (e instanceof MissingPDFException) {
  35949. handler.send('MissingPDF', {
  35950. exception: e
  35951. });
  35952. } else {
  35953. handler.send('UnknownError', {
  35954. exception: new UnknownErrorException(e.message, e.toString())
  35955. });
  35956. }
  35957. };
  35958. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  35959. -1 : data.maxImageSize;
  35960. PDFJS.disableFontFace = data.disableFontFace;
  35961. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  35962. PDFJS.verbosity = data.verbosity;
  35963. PDFJS.cMapUrl = data.cMapUrl === undefined ?
  35964. null : data.cMapUrl;
  35965. PDFJS.cMapPacked = data.cMapPacked === true;
  35966. getPdfManager(data).then(function () {
  35967. pdfManager.onLoadedStream().then(function(stream) {
  35968. handler.send('DataLoaded', { length: stream.bytes.byteLength });
  35969. });
  35970. }).then(function pdfManagerReady() {
  35971. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  35972. // Try again with recoveryMode == true
  35973. if (!(ex instanceof XRefParseException)) {
  35974. if (ex instanceof PasswordException) {
  35975. // after password exception prepare to receive a new password
  35976. // to repeat loading
  35977. pdfManager.passwordChanged().then(pdfManagerReady);
  35978. }
  35979. onFailure(ex);
  35980. return;
  35981. }
  35982. pdfManager.requestLoadedStream();
  35983. pdfManager.onLoadedStream().then(function() {
  35984. loadDocument(true).then(onSuccess, onFailure);
  35985. });
  35986. }, onFailure);
  35987. }, onFailure);
  35988. });
  35989. handler.on('GetPage', function wphSetupGetPage(data) {
  35990. return pdfManager.getPage(data.pageIndex).then(function(page) {
  35991. var rotatePromise = pdfManager.ensure(page, 'rotate');
  35992. var refPromise = pdfManager.ensure(page, 'ref');
  35993. var viewPromise = pdfManager.ensure(page, 'view');
  35994. return Promise.all([rotatePromise, refPromise, viewPromise]).then(
  35995. function(results) {
  35996. return {
  35997. rotate: results[0],
  35998. ref: results[1],
  35999. view: results[2]
  36000. };
  36001. });
  36002. });
  36003. });
  36004. handler.on('GetPageIndex', function wphSetupGetPageIndex(data) {
  36005. var ref = new Ref(data.ref.num, data.ref.gen);
  36006. var catalog = pdfManager.pdfDocument.catalog;
  36007. return catalog.getPageIndex(ref);
  36008. });
  36009. handler.on('GetDestinations',
  36010. function wphSetupGetDestinations(data) {
  36011. return pdfManager.ensureCatalog('destinations');
  36012. }
  36013. );
  36014. handler.on('GetAttachments',
  36015. function wphSetupGetAttachments(data) {
  36016. return pdfManager.ensureCatalog('attachments');
  36017. }
  36018. );
  36019. handler.on('GetJavaScript',
  36020. function wphSetupGetJavaScript(data) {
  36021. return pdfManager.ensureCatalog('javaScript');
  36022. }
  36023. );
  36024. handler.on('GetOutline',
  36025. function wphSetupGetOutline(data) {
  36026. return pdfManager.ensureCatalog('documentOutline');
  36027. }
  36028. );
  36029. handler.on('GetMetadata',
  36030. function wphSetupGetMetadata(data) {
  36031. return Promise.all([pdfManager.ensureDoc('documentInfo'),
  36032. pdfManager.ensureCatalog('metadata')]);
  36033. }
  36034. );
  36035. handler.on('GetData', function wphSetupGetData(data) {
  36036. pdfManager.requestLoadedStream();
  36037. return pdfManager.onLoadedStream().then(function(stream) {
  36038. return stream.bytes;
  36039. });
  36040. });
  36041. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  36042. pdfManager.updatePassword(data);
  36043. });
  36044. handler.on('GetAnnotations', function wphSetupGetAnnotations(data) {
  36045. return pdfManager.getPage(data.pageIndex).then(function(page) {
  36046. return pdfManager.ensure(page, 'getAnnotationsData', []);
  36047. });
  36048. });
  36049. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  36050. pdfManager.getPage(data.pageIndex).then(function(page) {
  36051. var pageNum = data.pageIndex + 1;
  36052. var start = Date.now();
  36053. // Pre compile the pdf page and fetch the fonts/images.
  36054. page.getOperatorList(handler, data.intent).then(function(operatorList) {
  36055. info('page=' + pageNum + ' - getOperatorList: time=' +
  36056. (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);
  36057. }, function(e) {
  36058. var minimumStackMessage =
  36059. 'worker.js: while trying to getPage() and getOperatorList()';
  36060. var wrappedException;
  36061. // Turn the error into an obj that can be serialized
  36062. if (typeof e === 'string') {
  36063. wrappedException = {
  36064. message: e,
  36065. stack: minimumStackMessage
  36066. };
  36067. } else if (typeof e === 'object') {
  36068. wrappedException = {
  36069. message: e.message || e.toString(),
  36070. stack: e.stack || minimumStackMessage
  36071. };
  36072. } else {
  36073. wrappedException = {
  36074. message: 'Unknown exception type: ' + (typeof e),
  36075. stack: minimumStackMessage
  36076. };
  36077. }
  36078. handler.send('PageError', {
  36079. pageNum: pageNum,
  36080. error: wrappedException,
  36081. intent: data.intent
  36082. });
  36083. });
  36084. });
  36085. }, this);
  36086. handler.on('GetTextContent', function wphExtractText(data) {
  36087. return pdfManager.getPage(data.pageIndex).then(function(page) {
  36088. var pageNum = data.pageIndex + 1;
  36089. var start = Date.now();
  36090. return page.extractTextContent().then(function(textContent) {
  36091. info('text indexing: page=' + pageNum + ' - time=' +
  36092. (Date.now() - start) + 'ms');
  36093. return textContent;
  36094. });
  36095. });
  36096. });
  36097. handler.on('Cleanup', function wphCleanup(data) {
  36098. return pdfManager.cleanup();
  36099. });
  36100. handler.on('Terminate', function wphTerminate(data) {
  36101. pdfManager.terminate();
  36102. });
  36103. }
  36104. };
  36105. var consoleTimer = {};
  36106. var workerConsole = {
  36107. log: function log() {
  36108. var args = Array.prototype.slice.call(arguments);
  36109. globalScope.postMessage({
  36110. action: 'console_log',
  36111. data: args
  36112. });
  36113. },
  36114. error: function error() {
  36115. var args = Array.prototype.slice.call(arguments);
  36116. globalScope.postMessage({
  36117. action: 'console_error',
  36118. data: args
  36119. });
  36120. throw 'pdf.js execution error';
  36121. },
  36122. time: function time(name) {
  36123. consoleTimer[name] = Date.now();
  36124. },
  36125. timeEnd: function timeEnd(name) {
  36126. var time = consoleTimer[name];
  36127. if (!time) {
  36128. error('Unknown timer name ' + name);
  36129. }
  36130. this.log('Timer:', name, Date.now() - time);
  36131. }
  36132. };
  36133. // Worker thread?
  36134. if (typeof window === 'undefined') {
  36135. if (!('console' in globalScope)) {
  36136. globalScope.console = workerConsole;
  36137. }
  36138. // Listen for unsupported features so we can pass them on to the main thread.
  36139. PDFJS.UnsupportedManager.listen(function (msg) {
  36140. globalScope.postMessage({
  36141. action: '_unsupported_feature',
  36142. data: msg
  36143. });
  36144. });
  36145. var handler = new MessageHandler('worker_processor', this);
  36146. WorkerMessageHandler.setup(handler);
  36147. }
  36148. /* This class implements the QM Coder decoding as defined in
  36149. * JPEG 2000 Part I Final Committee Draft Version 1.0
  36150. * Annex C.3 Arithmetic decoding procedure
  36151. * available at http://www.jpeg.org/public/fcd15444-1.pdf
  36152. *
  36153. * The arithmetic decoder is used in conjunction with context models to decode
  36154. * JPEG2000 and JBIG2 streams.
  36155. */
  36156. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  36157. // Table C-2
  36158. var QeTable = [
  36159. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  36160. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  36161. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  36162. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  36163. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  36164. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  36165. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  36166. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  36167. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  36168. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  36169. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  36170. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  36171. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  36172. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  36173. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  36174. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  36175. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  36176. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  36177. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  36178. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  36179. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  36180. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  36181. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  36182. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  36183. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  36184. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  36185. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  36186. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  36187. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  36188. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  36189. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  36190. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  36191. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  36192. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  36193. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  36194. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  36195. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  36196. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  36197. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  36198. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  36199. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  36200. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  36201. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  36202. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  36203. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  36204. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  36205. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  36206. ];
  36207. // C.3.5 Initialisation of the decoder (INITDEC)
  36208. function ArithmeticDecoder(data, start, end) {
  36209. this.data = data;
  36210. this.bp = start;
  36211. this.dataEnd = end;
  36212. this.chigh = data[start];
  36213. this.clow = 0;
  36214. this.byteIn();
  36215. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  36216. this.clow = (this.clow << 7) & 0xFFFF;
  36217. this.ct -= 7;
  36218. this.a = 0x8000;
  36219. }
  36220. ArithmeticDecoder.prototype = {
  36221. // C.3.4 Compressed data input (BYTEIN)
  36222. byteIn: function ArithmeticDecoder_byteIn() {
  36223. var data = this.data;
  36224. var bp = this.bp;
  36225. if (data[bp] == 0xFF) {
  36226. var b1 = data[bp + 1];
  36227. if (b1 > 0x8F) {
  36228. this.clow += 0xFF00;
  36229. this.ct = 8;
  36230. } else {
  36231. bp++;
  36232. this.clow += (data[bp] << 9);
  36233. this.ct = 7;
  36234. this.bp = bp;
  36235. }
  36236. } else {
  36237. bp++;
  36238. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  36239. this.ct = 8;
  36240. this.bp = bp;
  36241. }
  36242. if (this.clow > 0xFFFF) {
  36243. this.chigh += (this.clow >> 16);
  36244. this.clow &= 0xFFFF;
  36245. }
  36246. },
  36247. // C.3.2 Decoding a decision (DECODE)
  36248. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  36249. // contexts are packed into 1 byte:
  36250. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  36251. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  36252. var qeTableIcx = QeTable[cx_index];
  36253. var qeIcx = qeTableIcx.qe;
  36254. var d;
  36255. var a = this.a - qeIcx;
  36256. if (this.chigh < qeIcx) {
  36257. // exchangeLps
  36258. if (a < qeIcx) {
  36259. a = qeIcx;
  36260. d = cx_mps;
  36261. cx_index = qeTableIcx.nmps;
  36262. } else {
  36263. a = qeIcx;
  36264. d = 1 ^ cx_mps;
  36265. if (qeTableIcx.switchFlag === 1) {
  36266. cx_mps = d;
  36267. }
  36268. cx_index = qeTableIcx.nlps;
  36269. }
  36270. } else {
  36271. this.chigh -= qeIcx;
  36272. if ((a & 0x8000) !== 0) {
  36273. this.a = a;
  36274. return cx_mps;
  36275. }
  36276. // exchangeMps
  36277. if (a < qeIcx) {
  36278. d = 1 ^ cx_mps;
  36279. if (qeTableIcx.switchFlag === 1) {
  36280. cx_mps = d;
  36281. }
  36282. cx_index = qeTableIcx.nlps;
  36283. } else {
  36284. d = cx_mps;
  36285. cx_index = qeTableIcx.nmps;
  36286. }
  36287. }
  36288. // C.3.3 renormD;
  36289. do {
  36290. if (this.ct === 0) {
  36291. this.byteIn();
  36292. }
  36293. a <<= 1;
  36294. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  36295. this.clow = (this.clow << 1) & 0xFFFF;
  36296. this.ct--;
  36297. } while ((a & 0x8000) === 0);
  36298. this.a = a;
  36299. contexts[pos] = cx_index << 1 | cx_mps;
  36300. return d;
  36301. }
  36302. };
  36303. return ArithmeticDecoder;
  36304. })();
  36305. var JpegImage = (function jpegImage() {
  36306. var dctZigZag = new Int32Array([
  36307. 0,
  36308. 1, 8,
  36309. 16, 9, 2,
  36310. 3, 10, 17, 24,
  36311. 32, 25, 18, 11, 4,
  36312. 5, 12, 19, 26, 33, 40,
  36313. 48, 41, 34, 27, 20, 13, 6,
  36314. 7, 14, 21, 28, 35, 42, 49, 56,
  36315. 57, 50, 43, 36, 29, 22, 15,
  36316. 23, 30, 37, 44, 51, 58,
  36317. 59, 52, 45, 38, 31,
  36318. 39, 46, 53, 60,
  36319. 61, 54, 47,
  36320. 55, 62,
  36321. 63
  36322. ]);
  36323. var dctCos1 = 4017; // cos(pi/16)
  36324. var dctSin1 = 799; // sin(pi/16)
  36325. var dctCos3 = 3406; // cos(3*pi/16)
  36326. var dctSin3 = 2276; // sin(3*pi/16)
  36327. var dctCos6 = 1567; // cos(6*pi/16)
  36328. var dctSin6 = 3784; // sin(6*pi/16)
  36329. var dctSqrt2 = 5793; // sqrt(2)
  36330. var dctSqrt1d2 = 2896; // sqrt(2) / 2
  36331. function constructor() {
  36332. }
  36333. function buildHuffmanTable(codeLengths, values) {
  36334. var k = 0, code = [], i, j, length = 16;
  36335. while (length > 0 && !codeLengths[length - 1]) {
  36336. length--;
  36337. }
  36338. code.push({children: [], index: 0});
  36339. var p = code[0], q;
  36340. for (i = 0; i < length; i++) {
  36341. for (j = 0; j < codeLengths[i]; j++) {
  36342. p = code.pop();
  36343. p.children[p.index] = values[k];
  36344. while (p.index > 0) {
  36345. p = code.pop();
  36346. }
  36347. p.index++;
  36348. code.push(p);
  36349. while (code.length <= i) {
  36350. code.push(q = {children: [], index: 0});
  36351. p.children[p.index] = q.children;
  36352. p = q;
  36353. }
  36354. k++;
  36355. }
  36356. if (i + 1 < length) {
  36357. // p here points to last code
  36358. code.push(q = {children: [], index: 0});
  36359. p.children[p.index] = q.children;
  36360. p = q;
  36361. }
  36362. }
  36363. return code[0].children;
  36364. }
  36365. function getBlockBufferOffset(component, row, col) {
  36366. return 64 * ((component.blocksPerLine + 1) * row + col);
  36367. }
  36368. function decodeScan(data, offset,
  36369. frame, components, resetInterval,
  36370. spectralStart, spectralEnd,
  36371. successivePrev, successive) {
  36372. var precision = frame.precision;
  36373. var samplesPerLine = frame.samplesPerLine;
  36374. var scanLines = frame.scanLines;
  36375. var mcusPerLine = frame.mcusPerLine;
  36376. var progressive = frame.progressive;
  36377. var maxH = frame.maxH, maxV = frame.maxV;
  36378. var startOffset = offset, bitsData = 0, bitsCount = 0;
  36379. function readBit() {
  36380. if (bitsCount > 0) {
  36381. bitsCount--;
  36382. return (bitsData >> bitsCount) & 1;
  36383. }
  36384. bitsData = data[offset++];
  36385. if (bitsData == 0xFF) {
  36386. var nextByte = data[offset++];
  36387. if (nextByte) {
  36388. throw 'unexpected marker: ' +
  36389. ((bitsData << 8) | nextByte).toString(16);
  36390. }
  36391. // unstuff 0
  36392. }
  36393. bitsCount = 7;
  36394. return bitsData >>> 7;
  36395. }
  36396. function decodeHuffman(tree) {
  36397. var node = tree;
  36398. var bit;
  36399. while ((bit = readBit()) !== null) {
  36400. node = node[bit];
  36401. if (typeof node === 'number') {
  36402. return node;
  36403. }
  36404. if (typeof node !== 'object') {
  36405. throw 'invalid huffman sequence';
  36406. }
  36407. }
  36408. return null;
  36409. }
  36410. function receive(length) {
  36411. var n = 0;
  36412. while (length > 0) {
  36413. var bit = readBit();
  36414. if (bit === null) {
  36415. return;
  36416. }
  36417. n = (n << 1) | bit;
  36418. length--;
  36419. }
  36420. return n;
  36421. }
  36422. function receiveAndExtend(length) {
  36423. var n = receive(length);
  36424. if (n >= 1 << (length - 1)) {
  36425. return n;
  36426. }
  36427. return n + (-1 << length) + 1;
  36428. }
  36429. function decodeBaseline(component, offset) {
  36430. var t = decodeHuffman(component.huffmanTableDC);
  36431. var diff = t === 0 ? 0 : receiveAndExtend(t);
  36432. component.blockData[offset] = (component.pred += diff);
  36433. var k = 1;
  36434. while (k < 64) {
  36435. var rs = decodeHuffman(component.huffmanTableAC);
  36436. var s = rs & 15, r = rs >> 4;
  36437. if (s === 0) {
  36438. if (r < 15) {
  36439. break;
  36440. }
  36441. k += 16;
  36442. continue;
  36443. }
  36444. k += r;
  36445. var z = dctZigZag[k];
  36446. component.blockData[offset + z] = receiveAndExtend(s);
  36447. k++;
  36448. }
  36449. }
  36450. function decodeDCFirst(component, offset) {
  36451. var t = decodeHuffman(component.huffmanTableDC);
  36452. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  36453. component.blockData[offset] = (component.pred += diff);
  36454. }
  36455. function decodeDCSuccessive(component, offset) {
  36456. component.blockData[offset] |= readBit() << successive;
  36457. }
  36458. var eobrun = 0;
  36459. function decodeACFirst(component, offset) {
  36460. if (eobrun > 0) {
  36461. eobrun--;
  36462. return;
  36463. }
  36464. var k = spectralStart, e = spectralEnd;
  36465. while (k <= e) {
  36466. var rs = decodeHuffman(component.huffmanTableAC);
  36467. var s = rs & 15, r = rs >> 4;
  36468. if (s === 0) {
  36469. if (r < 15) {
  36470. eobrun = receive(r) + (1 << r) - 1;
  36471. break;
  36472. }
  36473. k += 16;
  36474. continue;
  36475. }
  36476. k += r;
  36477. var z = dctZigZag[k];
  36478. component.blockData[offset + z] =
  36479. receiveAndExtend(s) * (1 << successive);
  36480. k++;
  36481. }
  36482. }
  36483. var successiveACState = 0, successiveACNextValue;
  36484. function decodeACSuccessive(component, offset) {
  36485. var k = spectralStart;
  36486. var e = spectralEnd;
  36487. var r = 0;
  36488. var s;
  36489. var rs;
  36490. while (k <= e) {
  36491. var z = dctZigZag[k];
  36492. switch (successiveACState) {
  36493. case 0: // initial state
  36494. rs = decodeHuffman(component.huffmanTableAC);
  36495. s = rs & 15;
  36496. r = rs >> 4;
  36497. if (s === 0) {
  36498. if (r < 15) {
  36499. eobrun = receive(r) + (1 << r);
  36500. successiveACState = 4;
  36501. } else {
  36502. r = 16;
  36503. successiveACState = 1;
  36504. }
  36505. } else {
  36506. if (s !== 1) {
  36507. throw 'invalid ACn encoding';
  36508. }
  36509. successiveACNextValue = receiveAndExtend(s);
  36510. successiveACState = r ? 2 : 3;
  36511. }
  36512. continue;
  36513. case 1: // skipping r zero items
  36514. case 2:
  36515. if (component.blockData[offset + z]) {
  36516. component.blockData[offset + z] += (readBit() << successive);
  36517. } else {
  36518. r--;
  36519. if (r === 0) {
  36520. successiveACState = successiveACState == 2 ? 3 : 0;
  36521. }
  36522. }
  36523. break;
  36524. case 3: // set value for a zero item
  36525. if (component.blockData[offset + z]) {
  36526. component.blockData[offset + z] += (readBit() << successive);
  36527. } else {
  36528. component.blockData[offset + z] =
  36529. successiveACNextValue << successive;
  36530. successiveACState = 0;
  36531. }
  36532. break;
  36533. case 4: // eob
  36534. if (component.blockData[offset + z]) {
  36535. component.blockData[offset + z] += (readBit() << successive);
  36536. }
  36537. break;
  36538. }
  36539. k++;
  36540. }
  36541. if (successiveACState === 4) {
  36542. eobrun--;
  36543. if (eobrun === 0) {
  36544. successiveACState = 0;
  36545. }
  36546. }
  36547. }
  36548. function decodeMcu(component, decode, mcu, row, col) {
  36549. var mcuRow = (mcu / mcusPerLine) | 0;
  36550. var mcuCol = mcu % mcusPerLine;
  36551. var blockRow = mcuRow * component.v + row;
  36552. var blockCol = mcuCol * component.h + col;
  36553. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36554. decode(component, offset);
  36555. }
  36556. function decodeBlock(component, decode, mcu) {
  36557. var blockRow = (mcu / component.blocksPerLine) | 0;
  36558. var blockCol = mcu % component.blocksPerLine;
  36559. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36560. decode(component, offset);
  36561. }
  36562. var componentsLength = components.length;
  36563. var component, i, j, k, n;
  36564. var decodeFn;
  36565. if (progressive) {
  36566. if (spectralStart === 0) {
  36567. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  36568. } else {
  36569. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  36570. }
  36571. } else {
  36572. decodeFn = decodeBaseline;
  36573. }
  36574. var mcu = 0, marker;
  36575. var mcuExpected;
  36576. if (componentsLength == 1) {
  36577. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  36578. } else {
  36579. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  36580. }
  36581. if (!resetInterval) {
  36582. resetInterval = mcuExpected;
  36583. }
  36584. var h, v;
  36585. while (mcu < mcuExpected) {
  36586. // reset interval stuff
  36587. for (i = 0; i < componentsLength; i++) {
  36588. components[i].pred = 0;
  36589. }
  36590. eobrun = 0;
  36591. if (componentsLength == 1) {
  36592. component = components[0];
  36593. for (n = 0; n < resetInterval; n++) {
  36594. decodeBlock(component, decodeFn, mcu);
  36595. mcu++;
  36596. }
  36597. } else {
  36598. for (n = 0; n < resetInterval; n++) {
  36599. for (i = 0; i < componentsLength; i++) {
  36600. component = components[i];
  36601. h = component.h;
  36602. v = component.v;
  36603. for (j = 0; j < v; j++) {
  36604. for (k = 0; k < h; k++) {
  36605. decodeMcu(component, decodeFn, mcu, j, k);
  36606. }
  36607. }
  36608. }
  36609. mcu++;
  36610. }
  36611. }
  36612. // find marker
  36613. bitsCount = 0;
  36614. marker = (data[offset] << 8) | data[offset + 1];
  36615. if (marker <= 0xFF00) {
  36616. throw 'marker was not found';
  36617. }
  36618. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  36619. offset += 2;
  36620. } else {
  36621. break;
  36622. }
  36623. }
  36624. return offset - startOffset;
  36625. }
  36626. // A port of poppler's IDCT method which in turn is taken from:
  36627. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  36628. // 'Practical Fast 1-D DCT Algorithms with 11 Multiplications',
  36629. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  36630. // 988-991.
  36631. function quantizeAndInverse(component, blockBufferOffset, p) {
  36632. var qt = component.quantizationTable;
  36633. var v0, v1, v2, v3, v4, v5, v6, v7, t;
  36634. var i;
  36635. // dequant
  36636. for (i = 0; i < 64; i++) {
  36637. p[i] = component.blockData[blockBufferOffset + i] * qt[i];
  36638. }
  36639. // inverse DCT on rows
  36640. for (i = 0; i < 8; ++i) {
  36641. var row = 8 * i;
  36642. // check for all-zero AC coefficients
  36643. if (p[1 + row] === 0 && p[2 + row] === 0 && p[3 + row] === 0 &&
  36644. p[4 + row] === 0 && p[5 + row] === 0 && p[6 + row] === 0 &&
  36645. p[7 + row] === 0) {
  36646. t = (dctSqrt2 * p[0 + row] + 512) >> 10;
  36647. p[0 + row] = t;
  36648. p[1 + row] = t;
  36649. p[2 + row] = t;
  36650. p[3 + row] = t;
  36651. p[4 + row] = t;
  36652. p[5 + row] = t;
  36653. p[6 + row] = t;
  36654. p[7 + row] = t;
  36655. continue;
  36656. }
  36657. // stage 4
  36658. v0 = (dctSqrt2 * p[0 + row] + 128) >> 8;
  36659. v1 = (dctSqrt2 * p[4 + row] + 128) >> 8;
  36660. v2 = p[2 + row];
  36661. v3 = p[6 + row];
  36662. v4 = (dctSqrt1d2 * (p[1 + row] - p[7 + row]) + 128) >> 8;
  36663. v7 = (dctSqrt1d2 * (p[1 + row] + p[7 + row]) + 128) >> 8;
  36664. v5 = p[3 + row] << 4;
  36665. v6 = p[5 + row] << 4;
  36666. // stage 3
  36667. t = (v0 - v1+ 1) >> 1;
  36668. v0 = (v0 + v1 + 1) >> 1;
  36669. v1 = t;
  36670. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  36671. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  36672. v3 = t;
  36673. t = (v4 - v6 + 1) >> 1;
  36674. v4 = (v4 + v6 + 1) >> 1;
  36675. v6 = t;
  36676. t = (v7 + v5 + 1) >> 1;
  36677. v5 = (v7 - v5 + 1) >> 1;
  36678. v7 = t;
  36679. // stage 2
  36680. t = (v0 - v3 + 1) >> 1;
  36681. v0 = (v0 + v3 + 1) >> 1;
  36682. v3 = t;
  36683. t = (v1 - v2 + 1) >> 1;
  36684. v1 = (v1 + v2 + 1) >> 1;
  36685. v2 = t;
  36686. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36687. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36688. v7 = t;
  36689. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36690. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36691. v6 = t;
  36692. // stage 1
  36693. p[0 + row] = v0 + v7;
  36694. p[7 + row] = v0 - v7;
  36695. p[1 + row] = v1 + v6;
  36696. p[6 + row] = v1 - v6;
  36697. p[2 + row] = v2 + v5;
  36698. p[5 + row] = v2 - v5;
  36699. p[3 + row] = v3 + v4;
  36700. p[4 + row] = v3 - v4;
  36701. }
  36702. // inverse DCT on columns
  36703. for (i = 0; i < 8; ++i) {
  36704. var col = i;
  36705. // check for all-zero AC coefficients
  36706. if (p[1*8 + col] === 0 && p[2*8 + col] === 0 && p[3*8 + col] === 0 &&
  36707. p[4*8 + col] === 0 && p[5*8 + col] === 0 && p[6*8 + col] === 0 &&
  36708. p[7*8 + col] === 0) {
  36709. t = (dctSqrt2 * p[i+0] + 8192) >> 14;
  36710. p[0*8 + col] = t;
  36711. p[1*8 + col] = t;
  36712. p[2*8 + col] = t;
  36713. p[3*8 + col] = t;
  36714. p[4*8 + col] = t;
  36715. p[5*8 + col] = t;
  36716. p[6*8 + col] = t;
  36717. p[7*8 + col] = t;
  36718. continue;
  36719. }
  36720. // stage 4
  36721. v0 = (dctSqrt2 * p[0*8 + col] + 2048) >> 12;
  36722. v1 = (dctSqrt2 * p[4*8 + col] + 2048) >> 12;
  36723. v2 = p[2*8 + col];
  36724. v3 = p[6*8 + col];
  36725. v4 = (dctSqrt1d2 * (p[1*8 + col] - p[7*8 + col]) + 2048) >> 12;
  36726. v7 = (dctSqrt1d2 * (p[1*8 + col] + p[7*8 + col]) + 2048) >> 12;
  36727. v5 = p[3*8 + col];
  36728. v6 = p[5*8 + col];
  36729. // stage 3
  36730. t = (v0 - v1 + 1) >> 1;
  36731. v0 = (v0 + v1 + 1) >> 1;
  36732. v1 = t;
  36733. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  36734. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  36735. v3 = t;
  36736. t = (v4 - v6 + 1) >> 1;
  36737. v4 = (v4 + v6 + 1) >> 1;
  36738. v6 = t;
  36739. t = (v7 + v5 + 1) >> 1;
  36740. v5 = (v7 - v5 + 1) >> 1;
  36741. v7 = t;
  36742. // stage 2
  36743. t = (v0 - v3 + 1) >> 1;
  36744. v0 = (v0 + v3 + 1) >> 1;
  36745. v3 = t;
  36746. t = (v1 - v2 + 1) >> 1;
  36747. v1 = (v1 + v2 + 1) >> 1;
  36748. v2 = t;
  36749. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36750. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36751. v7 = t;
  36752. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36753. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36754. v6 = t;
  36755. // stage 1
  36756. p[0*8 + col] = v0 + v7;
  36757. p[7*8 + col] = v0 - v7;
  36758. p[1*8 + col] = v1 + v6;
  36759. p[6*8 + col] = v1 - v6;
  36760. p[2*8 + col] = v2 + v5;
  36761. p[5*8 + col] = v2 - v5;
  36762. p[3*8 + col] = v3 + v4;
  36763. p[4*8 + col] = v3 - v4;
  36764. }
  36765. // convert to 8-bit integers
  36766. for (i = 0; i < 64; ++i) {
  36767. var index = blockBufferOffset + i;
  36768. var q = p[i];
  36769. q = (q <= -2056) ? 0 : (q >= 2024) ? 255 : (q + 2056) >> 4;
  36770. component.blockData[index] = q;
  36771. }
  36772. }
  36773. function buildComponentData(frame, component) {
  36774. var lines = [];
  36775. var blocksPerLine = component.blocksPerLine;
  36776. var blocksPerColumn = component.blocksPerColumn;
  36777. var samplesPerLine = blocksPerLine << 3;
  36778. var computationBuffer = new Int32Array(64);
  36779. var i, j, ll = 0;
  36780. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  36781. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  36782. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36783. quantizeAndInverse(component, offset, computationBuffer);
  36784. }
  36785. }
  36786. return component.blockData;
  36787. }
  36788. function clamp0to255(a) {
  36789. return a <= 0 ? 0 : a >= 255 ? 255 : a;
  36790. }
  36791. constructor.prototype = {
  36792. parse: function parse(data) {
  36793. function readUint16() {
  36794. var value = (data[offset] << 8) | data[offset + 1];
  36795. offset += 2;
  36796. return value;
  36797. }
  36798. function readDataBlock() {
  36799. var length = readUint16();
  36800. var array = data.subarray(offset, offset + length - 2);
  36801. offset += array.length;
  36802. return array;
  36803. }
  36804. function prepareComponents(frame) {
  36805. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH);
  36806. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV);
  36807. for (var i = 0; i < frame.components.length; i++) {
  36808. component = frame.components[i];
  36809. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
  36810. component.h / frame.maxH);
  36811. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
  36812. component.v / frame.maxV);
  36813. var blocksPerLineForMcu = mcusPerLine * component.h;
  36814. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  36815. var blocksBufferSize = 64 * blocksPerColumnForMcu *
  36816. (blocksPerLineForMcu + 1);
  36817. component.blockData = new Int16Array(blocksBufferSize);
  36818. component.blocksPerLine = blocksPerLine;
  36819. component.blocksPerColumn = blocksPerColumn;
  36820. }
  36821. frame.mcusPerLine = mcusPerLine;
  36822. frame.mcusPerColumn = mcusPerColumn;
  36823. }
  36824. var offset = 0, length = data.length;
  36825. var jfif = null;
  36826. var adobe = null;
  36827. var pixels = null;
  36828. var frame, resetInterval;
  36829. var quantizationTables = [];
  36830. var huffmanTablesAC = [], huffmanTablesDC = [];
  36831. var fileMarker = readUint16();
  36832. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  36833. throw 'SOI not found';
  36834. }
  36835. fileMarker = readUint16();
  36836. while (fileMarker != 0xFFD9) { // EOI (End of image)
  36837. var i, j, l;
  36838. switch(fileMarker) {
  36839. case 0xFFE0: // APP0 (Application Specific)
  36840. case 0xFFE1: // APP1
  36841. case 0xFFE2: // APP2
  36842. case 0xFFE3: // APP3
  36843. case 0xFFE4: // APP4
  36844. case 0xFFE5: // APP5
  36845. case 0xFFE6: // APP6
  36846. case 0xFFE7: // APP7
  36847. case 0xFFE8: // APP8
  36848. case 0xFFE9: // APP9
  36849. case 0xFFEA: // APP10
  36850. case 0xFFEB: // APP11
  36851. case 0xFFEC: // APP12
  36852. case 0xFFED: // APP13
  36853. case 0xFFEE: // APP14
  36854. case 0xFFEF: // APP15
  36855. case 0xFFFE: // COM (Comment)
  36856. var appData = readDataBlock();
  36857. if (fileMarker === 0xFFE0) {
  36858. if (appData[0] === 0x4A && appData[1] === 0x46 &&
  36859. appData[2] === 0x49 && appData[3] === 0x46 &&
  36860. appData[4] === 0) { // 'JFIF\x00'
  36861. jfif = {
  36862. version: { major: appData[5], minor: appData[6] },
  36863. densityUnits: appData[7],
  36864. xDensity: (appData[8] << 8) | appData[9],
  36865. yDensity: (appData[10] << 8) | appData[11],
  36866. thumbWidth: appData[12],
  36867. thumbHeight: appData[13],
  36868. thumbData: appData.subarray(14, 14 +
  36869. 3 * appData[12] * appData[13])
  36870. };
  36871. }
  36872. }
  36873. // TODO APP1 - Exif
  36874. if (fileMarker === 0xFFEE) {
  36875. if (appData[0] === 0x41 && appData[1] === 0x64 &&
  36876. appData[2] === 0x6F && appData[3] === 0x62 &&
  36877. appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  36878. adobe = {
  36879. version: appData[6],
  36880. flags0: (appData[7] << 8) | appData[8],
  36881. flags1: (appData[9] << 8) | appData[10],
  36882. transformCode: appData[11]
  36883. };
  36884. }
  36885. }
  36886. break;
  36887. case 0xFFDB: // DQT (Define Quantization Tables)
  36888. var quantizationTablesLength = readUint16();
  36889. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  36890. var z;
  36891. while (offset < quantizationTablesEnd) {
  36892. var quantizationTableSpec = data[offset++];
  36893. var tableData = new Int32Array(64);
  36894. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  36895. for (j = 0; j < 64; j++) {
  36896. z = dctZigZag[j];
  36897. tableData[z] = data[offset++];
  36898. }
  36899. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  36900. for (j = 0; j < 64; j++) {
  36901. z = dctZigZag[j];
  36902. tableData[z] = readUint16();
  36903. }
  36904. } else {
  36905. throw 'DQT: invalid table spec';
  36906. }
  36907. quantizationTables[quantizationTableSpec & 15] = tableData;
  36908. }
  36909. break;
  36910. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  36911. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  36912. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  36913. if (frame) {
  36914. throw 'Only single frame JPEGs supported';
  36915. }
  36916. readUint16(); // skip data length
  36917. frame = {};
  36918. frame.extended = (fileMarker === 0xFFC1);
  36919. frame.progressive = (fileMarker === 0xFFC2);
  36920. frame.precision = data[offset++];
  36921. frame.scanLines = readUint16();
  36922. frame.samplesPerLine = readUint16();
  36923. frame.components = [];
  36924. frame.componentIds = {};
  36925. var componentsCount = data[offset++], componentId;
  36926. var maxH = 0, maxV = 0;
  36927. for (i = 0; i < componentsCount; i++) {
  36928. componentId = data[offset];
  36929. var h = data[offset + 1] >> 4;
  36930. var v = data[offset + 1] & 15;
  36931. if (maxH < h) {
  36932. maxH = h;
  36933. }
  36934. if (maxV < v) {
  36935. maxV = v;
  36936. }
  36937. var qId = data[offset + 2];
  36938. l = frame.components.push({
  36939. h: h,
  36940. v: v,
  36941. quantizationTable: quantizationTables[qId]
  36942. });
  36943. frame.componentIds[componentId] = l - 1;
  36944. offset += 3;
  36945. }
  36946. frame.maxH = maxH;
  36947. frame.maxV = maxV;
  36948. prepareComponents(frame);
  36949. break;
  36950. case 0xFFC4: // DHT (Define Huffman Tables)
  36951. var huffmanLength = readUint16();
  36952. for (i = 2; i < huffmanLength;) {
  36953. var huffmanTableSpec = data[offset++];
  36954. var codeLengths = new Uint8Array(16);
  36955. var codeLengthSum = 0;
  36956. for (j = 0; j < 16; j++, offset++) {
  36957. codeLengthSum += (codeLengths[j] = data[offset]);
  36958. }
  36959. var huffmanValues = new Uint8Array(codeLengthSum);
  36960. for (j = 0; j < codeLengthSum; j++, offset++) {
  36961. huffmanValues[j] = data[offset];
  36962. }
  36963. i += 17 + codeLengthSum;
  36964. ((huffmanTableSpec >> 4) === 0 ?
  36965. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  36966. buildHuffmanTable(codeLengths, huffmanValues);
  36967. }
  36968. break;
  36969. case 0xFFDD: // DRI (Define Restart Interval)
  36970. readUint16(); // skip data length
  36971. resetInterval = readUint16();
  36972. break;
  36973. case 0xFFDA: // SOS (Start of Scan)
  36974. var scanLength = readUint16();
  36975. var selectorsCount = data[offset++];
  36976. var components = [], component;
  36977. for (i = 0; i < selectorsCount; i++) {
  36978. var componentIndex = frame.componentIds[data[offset++]];
  36979. component = frame.components[componentIndex];
  36980. var tableSpec = data[offset++];
  36981. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  36982. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  36983. components.push(component);
  36984. }
  36985. var spectralStart = data[offset++];
  36986. var spectralEnd = data[offset++];
  36987. var successiveApproximation = data[offset++];
  36988. var processed = decodeScan(data, offset,
  36989. frame, components, resetInterval,
  36990. spectralStart, spectralEnd,
  36991. successiveApproximation >> 4, successiveApproximation & 15);
  36992. offset += processed;
  36993. break;
  36994. default:
  36995. if (data[offset - 3] == 0xFF &&
  36996. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  36997. // could be incorrect encoding -- last 0xFF byte of the previous
  36998. // block was eaten by the encoder
  36999. offset -= 3;
  37000. break;
  37001. }
  37002. throw 'unknown JPEG marker ' + fileMarker.toString(16);
  37003. }
  37004. fileMarker = readUint16();
  37005. }
  37006. this.width = frame.samplesPerLine;
  37007. this.height = frame.scanLines;
  37008. this.jfif = jfif;
  37009. this.adobe = adobe;
  37010. this.components = [];
  37011. for (i = 0; i < frame.components.length; i++) {
  37012. component = frame.components[i];
  37013. this.components.push({
  37014. output: buildComponentData(frame, component),
  37015. scaleX: component.h / frame.maxH,
  37016. scaleY: component.v / frame.maxV,
  37017. blocksPerLine: component.blocksPerLine,
  37018. blocksPerColumn: component.blocksPerColumn
  37019. });
  37020. }
  37021. this.numComponents = this.components.length;
  37022. },
  37023. _getLinearizedBlockData: function getLinearizedBlockData(width, height) {
  37024. var scaleX = this.width / width, scaleY = this.height / height;
  37025. var component, componentScaleX, componentScaleY, blocksPerScanline;
  37026. var x, y, i, j;
  37027. var index;
  37028. var offset = 0;
  37029. var output;
  37030. var numComponents = this.components.length;
  37031. var dataLength = width * height * numComponents;
  37032. var data = new Uint8Array(dataLength);
  37033. var xScaleBlockOffset = new Uint32Array(width);
  37034. var mask3LSB = 0xfffffff8; // used to clear the 3 LSBs
  37035. for (i = 0; i < numComponents; i++) {
  37036. component = this.components[i];
  37037. componentScaleX = component.scaleX * scaleX;
  37038. componentScaleY = component.scaleY * scaleY;
  37039. offset = i;
  37040. output = component.output;
  37041. blocksPerScanline = (component.blocksPerLine + 1) << 3;
  37042. // precalculate the xScaleBlockOffset
  37043. for (x = 0; x < width; x++) {
  37044. j = 0 | (x * componentScaleX);
  37045. xScaleBlockOffset[x] = ((j & mask3LSB) << 3) | (j & 7);
  37046. }
  37047. // linearize the blocks of the component
  37048. for (y = 0; y < height; y++) {
  37049. j = 0 | (y * componentScaleY);
  37050. index = blocksPerScanline * (j & mask3LSB) | ((j & 7) << 3);
  37051. for (x = 0; x < width; x++) {
  37052. data[offset] = output[index + xScaleBlockOffset[x]];
  37053. offset += numComponents;
  37054. }
  37055. }
  37056. }
  37057. return data;
  37058. },
  37059. _isColorConversionNeeded: function isColorConversionNeeded() {
  37060. if (this.adobe && this.adobe.transformCode) {
  37061. // The adobe transform marker overrides any previous setting
  37062. return true;
  37063. } else if (this.numComponents == 3) {
  37064. return true;
  37065. } else if (typeof this.colorTransform !== 'undefined') {
  37066. return !!this.colorTransform;
  37067. } else {
  37068. return false;
  37069. }
  37070. },
  37071. _convertYccToRgb: function convertYccToRgb(data) {
  37072. var Y, Cb, Cr;
  37073. for (var i = 0; i < data.length; i += this.numComponents) {
  37074. Y = data[i ];
  37075. Cb = data[i + 1];
  37076. Cr = data[i + 2];
  37077. data[i ] = clamp0to255(Y - 179.456 + 1.402 * Cr);
  37078. data[i + 1] = clamp0to255(Y + 135.459 - 0.344 * Cb - 0.714 * Cr);
  37079. data[i + 2] = clamp0to255(Y - 226.816 + 1.772 * Cb);
  37080. }
  37081. return data;
  37082. },
  37083. _convertYcckToRgb: function convertYcckToRgb(data) {
  37084. var Y, Cb, Cr, k, CbCb, CbCr, CbY, Cbk, CrCr, Crk, CrY, YY, Yk, kk;
  37085. var offset = 0;
  37086. for (var i = 0; i < data.length; i += this.numComponents) {
  37087. Y = data[i];
  37088. Cb = data[i + 1];
  37089. Cr = data[i + 2];
  37090. k = data[i + 3];
  37091. CbCb = Cb * Cb;
  37092. CbCr = Cb * Cr;
  37093. CbY = Cb * Y;
  37094. Cbk = Cb * k;
  37095. CrCr = Cr * Cr;
  37096. Crk = Cr * k;
  37097. CrY = Cr * Y;
  37098. YY = Y * Y;
  37099. Yk = Y * k;
  37100. kk = k * k;
  37101. var r = - 122.67195406894 -
  37102. 6.60635669420364e-5 * CbCb + 0.000437130475926232 * CbCr -
  37103. 5.4080610064599e-5* CbY + 0.00048449797120281* Cbk -
  37104. 0.154362151871126 * Cb - 0.000957964378445773 * CrCr +
  37105. 0.000817076911346625 * CrY - 0.00477271405408747 * Crk +
  37106. 1.53380253221734 * Cr + 0.000961250184130688 * YY -
  37107. 0.00266257332283933 * Yk + 0.48357088451265 * Y -
  37108. 0.000336197177618394 * kk + 0.484791561490776 * k;
  37109. var g = 107.268039397724 +
  37110. 2.19927104525741e-5 * CbCb - 0.000640992018297945 * CbCr +
  37111. 0.000659397001245577* CbY + 0.000426105652938837* Cbk -
  37112. 0.176491792462875 * Cb - 0.000778269941513683 * CrCr +
  37113. 0.00130872261408275 * CrY + 0.000770482631801132 * Crk -
  37114. 0.151051492775562 * Cr + 0.00126935368114843 * YY -
  37115. 0.00265090189010898 * Yk + 0.25802910206845 * Y -
  37116. 0.000318913117588328 * kk - 0.213742400323665 * k;
  37117. var b = - 20.810012546947 -
  37118. 0.000570115196973677 * CbCb - 2.63409051004589e-5 * CbCr +
  37119. 0.0020741088115012* CbY - 0.00288260236853442* Cbk +
  37120. 0.814272968359295 * Cb - 1.53496057440975e-5 * CrCr -
  37121. 0.000132689043961446 * CrY + 0.000560833691242812 * Crk -
  37122. 0.195152027534049 * Cr + 0.00174418132927582 * YY -
  37123. 0.00255243321439347 * Yk + 0.116935020465145 * Y -
  37124. 0.000343531996510555 * kk + 0.24165260232407 * k;
  37125. data[offset++] = clamp0to255(r);
  37126. data[offset++] = clamp0to255(g);
  37127. data[offset++] = clamp0to255(b);
  37128. }
  37129. return data;
  37130. },
  37131. _convertYcckToCmyk: function convertYcckToCmyk(data) {
  37132. var Y, Cb, Cr;
  37133. for (var i = 0; i < data.length; i += this.numComponents) {
  37134. Y = data[i];
  37135. Cb = data[i + 1];
  37136. Cr = data[i + 2];
  37137. data[i ] = clamp0to255(434.456 - Y - 1.402 * Cr);
  37138. data[i + 1] = clamp0to255(119.541 - Y + 0.344 * Cb + 0.714 * Cr);
  37139. data[i + 2] = clamp0to255(481.816 - Y - 1.772 * Cb);
  37140. // K in data[i + 3] is unchanged
  37141. }
  37142. return data;
  37143. },
  37144. _convertCmykToRgb: function convertCmykToRgb(data) {
  37145. var c, m, y, k;
  37146. var offset = 0;
  37147. var length = data.length;
  37148. var min = -255 * 255 * 255;
  37149. var scale = 1 / 255 / 255;
  37150. for (var i = 0; i < length;) {
  37151. c = data[i++];
  37152. m = data[i++];
  37153. y = data[i++];
  37154. k = data[i++];
  37155. var r =
  37156. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  37157. 18.82290502165302 * y + 212.25662451639585 * k -
  37158. 72734.4411664936) +
  37159. m * (1.7149763477362134 * m - 5.6096736904047315 * y -
  37160. 17.873870861415444 * k - 1401.7366389350734) +
  37161. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  37162. 4465.541406466231) -
  37163. k * (21.86122147463605 * k + 48317.86113160301);
  37164. var g =
  37165. c * (8.841041422036149 * c + 60.118027045597366 * m +
  37166. 6.871425592049007 * y + 31.159100130055922 * k -
  37167. 20220.756542821975) +
  37168. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  37169. 131.35250912493976 * k - 48691.05921601825) +
  37170. y * (4.444339102852739 * y + 9.8632861493405 * k -
  37171. 6341.191035517494) -
  37172. k * (20.737325471181034 * k + 47890.15695978492);
  37173. var b =
  37174. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  37175. 30.89978309703729 * y - 0.23883238689178934 * k -
  37176. 3616.812083916688) +
  37177. m * (10.49593273432072 * m + 63.02378494754052 * y +
  37178. 50.606957656360734 * k - 28620.90484698408) +
  37179. y * (0.03296041114873217 * y + 115.60384449646641 * k -
  37180. 49363.43385999684) -
  37181. k * (22.33816807309886 * k + 45932.16563550634);
  37182. data[offset++] = r >= 0 ? 255 : r <= min ? 0 : 255 + r * scale | 0;
  37183. data[offset++] = g >= 0 ? 255 : g <= min ? 0 : 255 + g * scale | 0;
  37184. data[offset++] = b >= 0 ? 255 : b <= min ? 0 : 255 + b * scale | 0;
  37185. }
  37186. return data;
  37187. },
  37188. getData: function getData(width, height, forceRGBoutput) {
  37189. if (this.numComponents > 4) {
  37190. throw 'Unsupported color mode';
  37191. }
  37192. // type of data: Uint8Array(width * height * numComponents)
  37193. var data = this._getLinearizedBlockData(width, height);
  37194. if (this.numComponents === 3) {
  37195. return this._convertYccToRgb(data);
  37196. } else if (this.numComponents === 4) {
  37197. if (this._isColorConversionNeeded()) {
  37198. if (forceRGBoutput) {
  37199. return this._convertYcckToRgb(data);
  37200. } else {
  37201. return this._convertYcckToCmyk(data);
  37202. }
  37203. } else {
  37204. return this._convertCmykToRgb(data);
  37205. }
  37206. }
  37207. return data;
  37208. }
  37209. };
  37210. return constructor;
  37211. })();
  37212. var JpxImage = (function JpxImageClosure() {
  37213. // Table E.1
  37214. var SubbandsGainLog2 = {
  37215. 'LL': 0,
  37216. 'LH': 1,
  37217. 'HL': 1,
  37218. 'HH': 2
  37219. };
  37220. function JpxImage() {
  37221. this.failOnCorruptedImage = false;
  37222. }
  37223. JpxImage.prototype = {
  37224. load: function JpxImage_load(url) {
  37225. var xhr = new XMLHttpRequest();
  37226. xhr.open('GET', url, true);
  37227. xhr.responseType = 'arraybuffer';
  37228. xhr.onload = (function() {
  37229. // TODO catch parse error
  37230. var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
  37231. this.parse(data);
  37232. if (this.onload) {
  37233. this.onload();
  37234. }
  37235. }).bind(this);
  37236. xhr.send(null);
  37237. },
  37238. parse: function JpxImage_parse(data) {
  37239. var head = readUint16(data, 0);
  37240. // No box header, immediate start of codestream (SOC)
  37241. if (head === 0xFF4F) {
  37242. this.parseCodestream(data, 0, data.length);
  37243. return;
  37244. }
  37245. var position = 0, length = data.length;
  37246. while (position < length) {
  37247. var headerSize = 8;
  37248. var lbox = readUint32(data, position);
  37249. var tbox = readUint32(data, position + 4);
  37250. position += headerSize;
  37251. if (lbox === 1) {
  37252. // XLBox: read UInt64 according to spec.
  37253. // JavaScript's int precision of 53 bit should be sufficient here.
  37254. lbox = readUint32(data, position) * 4294967296 +
  37255. readUint32(data, position + 4);
  37256. position += 8;
  37257. headerSize += 8;
  37258. }
  37259. if (lbox === 0) {
  37260. lbox = length - position + headerSize;
  37261. }
  37262. if (lbox < headerSize) {
  37263. error('JPX error: Invalid box field size');
  37264. }
  37265. var dataLength = lbox - headerSize;
  37266. var jumpDataLength = true;
  37267. switch (tbox) {
  37268. case 0x6A501A1A: // 'jP\032\032'
  37269. // TODO
  37270. break;
  37271. case 0x6A703268: // 'jp2h'
  37272. jumpDataLength = false; // parsing child boxes
  37273. break;
  37274. case 0x636F6C72: // 'colr'
  37275. // TODO
  37276. break;
  37277. case 0x6A703263: // 'jp2c'
  37278. this.parseCodestream(data, position, position + dataLength);
  37279. break;
  37280. }
  37281. if (jumpDataLength) {
  37282. position += dataLength;
  37283. }
  37284. }
  37285. },
  37286. parseImageProperties: function JpxImage_parseImageProperties(stream) {
  37287. try {
  37288. var newByte = stream.getByte();
  37289. while (newByte >= 0) {
  37290. var oldByte = newByte;
  37291. newByte = stream.getByte();
  37292. var code = (oldByte << 8) | newByte;
  37293. // Image and tile size (SIZ)
  37294. if (code == 0xFF51) {
  37295. stream.skip(4);
  37296. var Xsiz = stream.getInt32() >>> 0; // Byte 4
  37297. var Ysiz = stream.getInt32() >>> 0; // Byte 8
  37298. var XOsiz = stream.getInt32() >>> 0; // Byte 12
  37299. var YOsiz = stream.getInt32() >>> 0; // Byte 16
  37300. stream.skip(16);
  37301. var Csiz = stream.getUint16(); // Byte 36
  37302. this.width = Xsiz - XOsiz;
  37303. this.height = Ysiz - YOsiz;
  37304. this.componentsCount = Csiz;
  37305. // Results are always returned as Uint8Arrays
  37306. this.bitsPerComponent = 8;
  37307. return;
  37308. }
  37309. }
  37310. throw 'No size marker found in JPX stream';
  37311. } catch (e) {
  37312. if (this.failOnCorruptedImage) {
  37313. error('JPX error: ' + e);
  37314. } else {
  37315. warn('JPX error: ' + e + '. Trying to recover');
  37316. }
  37317. }
  37318. },
  37319. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  37320. var context = {};
  37321. try {
  37322. var position = start;
  37323. while (position + 1 < end) {
  37324. var code = readUint16(data, position);
  37325. position += 2;
  37326. var length = 0, j, sqcd, spqcds, spqcdSize, scalarExpounded, tile;
  37327. switch (code) {
  37328. case 0xFF4F: // Start of codestream (SOC)
  37329. context.mainHeader = true;
  37330. break;
  37331. case 0xFFD9: // End of codestream (EOC)
  37332. break;
  37333. case 0xFF51: // Image and tile size (SIZ)
  37334. length = readUint16(data, position);
  37335. var siz = {};
  37336. siz.Xsiz = readUint32(data, position + 4);
  37337. siz.Ysiz = readUint32(data, position + 8);
  37338. siz.XOsiz = readUint32(data, position + 12);
  37339. siz.YOsiz = readUint32(data, position + 16);
  37340. siz.XTsiz = readUint32(data, position + 20);
  37341. siz.YTsiz = readUint32(data, position + 24);
  37342. siz.XTOsiz = readUint32(data, position + 28);
  37343. siz.YTOsiz = readUint32(data, position + 32);
  37344. var componentsCount = readUint16(data, position + 36);
  37345. siz.Csiz = componentsCount;
  37346. var components = [];
  37347. j = position + 38;
  37348. for (var i = 0; i < componentsCount; i++) {
  37349. var component = {
  37350. precision: (data[j] & 0x7F) + 1,
  37351. isSigned: !!(data[j] & 0x80),
  37352. XRsiz: data[j + 1],
  37353. YRsiz: data[j + 1]
  37354. };
  37355. calculateComponentDimensions(component, siz);
  37356. components.push(component);
  37357. }
  37358. context.SIZ = siz;
  37359. context.components = components;
  37360. calculateTileGrids(context, components);
  37361. context.QCC = [];
  37362. context.COC = [];
  37363. break;
  37364. case 0xFF5C: // Quantization default (QCD)
  37365. length = readUint16(data, position);
  37366. var qcd = {};
  37367. j = position + 2;
  37368. sqcd = data[j++];
  37369. switch (sqcd & 0x1F) {
  37370. case 0:
  37371. spqcdSize = 8;
  37372. scalarExpounded = true;
  37373. break;
  37374. case 1:
  37375. spqcdSize = 16;
  37376. scalarExpounded = false;
  37377. break;
  37378. case 2:
  37379. spqcdSize = 16;
  37380. scalarExpounded = true;
  37381. break;
  37382. default:
  37383. throw 'Invalid SQcd value ' + sqcd;
  37384. }
  37385. qcd.noQuantization = (spqcdSize == 8);
  37386. qcd.scalarExpounded = scalarExpounded;
  37387. qcd.guardBits = sqcd >> 5;
  37388. spqcds = [];
  37389. while (j < length + position) {
  37390. var spqcd = {};
  37391. if (spqcdSize == 8) {
  37392. spqcd.epsilon = data[j++] >> 3;
  37393. spqcd.mu = 0;
  37394. } else {
  37395. spqcd.epsilon = data[j] >> 3;
  37396. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37397. j += 2;
  37398. }
  37399. spqcds.push(spqcd);
  37400. }
  37401. qcd.SPqcds = spqcds;
  37402. if (context.mainHeader) {
  37403. context.QCD = qcd;
  37404. } else {
  37405. context.currentTile.QCD = qcd;
  37406. context.currentTile.QCC = [];
  37407. }
  37408. break;
  37409. case 0xFF5D: // Quantization component (QCC)
  37410. length = readUint16(data, position);
  37411. var qcc = {};
  37412. j = position + 2;
  37413. var cqcc;
  37414. if (context.SIZ.Csiz < 257) {
  37415. cqcc = data[j++];
  37416. } else {
  37417. cqcc = readUint16(data, j);
  37418. j += 2;
  37419. }
  37420. sqcd = data[j++];
  37421. switch (sqcd & 0x1F) {
  37422. case 0:
  37423. spqcdSize = 8;
  37424. scalarExpounded = true;
  37425. break;
  37426. case 1:
  37427. spqcdSize = 16;
  37428. scalarExpounded = false;
  37429. break;
  37430. case 2:
  37431. spqcdSize = 16;
  37432. scalarExpounded = true;
  37433. break;
  37434. default:
  37435. throw 'Invalid SQcd value ' + sqcd;
  37436. }
  37437. qcc.noQuantization = (spqcdSize == 8);
  37438. qcc.scalarExpounded = scalarExpounded;
  37439. qcc.guardBits = sqcd >> 5;
  37440. spqcds = [];
  37441. while (j < (length + position)) {
  37442. spqcd = {};
  37443. if (spqcdSize == 8) {
  37444. spqcd.epsilon = data[j++] >> 3;
  37445. spqcd.mu = 0;
  37446. } else {
  37447. spqcd.epsilon = data[j] >> 3;
  37448. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37449. j += 2;
  37450. }
  37451. spqcds.push(spqcd);
  37452. }
  37453. qcc.SPqcds = spqcds;
  37454. if (context.mainHeader) {
  37455. context.QCC[cqcc] = qcc;
  37456. } else {
  37457. context.currentTile.QCC[cqcc] = qcc;
  37458. }
  37459. break;
  37460. case 0xFF52: // Coding style default (COD)
  37461. length = readUint16(data, position);
  37462. var cod = {};
  37463. j = position + 2;
  37464. var scod = data[j++];
  37465. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  37466. cod.sopMarkerUsed = !!(scod & 2);
  37467. cod.ephMarkerUsed = !!(scod & 4);
  37468. cod.progressionOrder = data[j++];
  37469. cod.layersCount = readUint16(data, j);
  37470. j += 2;
  37471. cod.multipleComponentTransform = data[j++];
  37472. cod.decompositionLevelsCount = data[j++];
  37473. cod.xcb = (data[j++] & 0xF) + 2;
  37474. cod.ycb = (data[j++] & 0xF) + 2;
  37475. var blockStyle = data[j++];
  37476. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  37477. cod.resetContextProbabilities = !!(blockStyle & 2);
  37478. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  37479. cod.verticalyStripe = !!(blockStyle & 8);
  37480. cod.predictableTermination = !!(blockStyle & 16);
  37481. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  37482. cod.reversibleTransformation = data[j++];
  37483. if (cod.entropyCoderWithCustomPrecincts) {
  37484. var precinctsSizes = [];
  37485. while (j < length + position) {
  37486. var precinctsSize = data[j++];
  37487. precinctsSizes.push({
  37488. PPx: precinctsSize & 0xF,
  37489. PPy: precinctsSize >> 4
  37490. });
  37491. }
  37492. cod.precinctsSizes = precinctsSizes;
  37493. }
  37494. if (cod.sopMarkerUsed || cod.ephMarkerUsed ||
  37495. cod.selectiveArithmeticCodingBypass ||
  37496. cod.resetContextProbabilities ||
  37497. cod.terminationOnEachCodingPass ||
  37498. cod.verticalyStripe || cod.predictableTermination) {
  37499. throw 'Unsupported COD options: ' +
  37500. globalScope.JSON.stringify(cod);
  37501. }
  37502. if (context.mainHeader) {
  37503. context.COD = cod;
  37504. } else {
  37505. context.currentTile.COD = cod;
  37506. context.currentTile.COC = [];
  37507. }
  37508. break;
  37509. case 0xFF90: // Start of tile-part (SOT)
  37510. length = readUint16(data, position);
  37511. tile = {};
  37512. tile.index = readUint16(data, position + 2);
  37513. tile.length = readUint32(data, position + 4);
  37514. tile.dataEnd = tile.length + position - 2;
  37515. tile.partIndex = data[position + 8];
  37516. tile.partsCount = data[position + 9];
  37517. context.mainHeader = false;
  37518. if (tile.partIndex === 0) {
  37519. // reset component specific settings
  37520. tile.COD = context.COD;
  37521. tile.COC = context.COC.slice(0); // clone of the global COC
  37522. tile.QCD = context.QCD;
  37523. tile.QCC = context.QCC.slice(0); // clone of the global COC
  37524. }
  37525. context.currentTile = tile;
  37526. break;
  37527. case 0xFF93: // Start of data (SOD)
  37528. tile = context.currentTile;
  37529. if (tile.partIndex === 0) {
  37530. initializeTile(context, tile.index);
  37531. buildPackets(context);
  37532. }
  37533. // moving to the end of the data
  37534. length = tile.dataEnd - position;
  37535. parseTilePackets(context, data, position, length);
  37536. break;
  37537. case 0xFF64: // Comment (COM)
  37538. length = readUint16(data, position);
  37539. // skipping content
  37540. break;
  37541. case 0xFF53: // Coding style component (COC)
  37542. throw 'Codestream code 0xFF53 (COC) is not implemented';
  37543. default:
  37544. throw 'Unknown codestream code: ' + code.toString(16);
  37545. }
  37546. position += length;
  37547. }
  37548. } catch (e) {
  37549. if (this.failOnCorruptedImage) {
  37550. error('JPX error: ' + e);
  37551. } else {
  37552. warn('JPX error: ' + e + '. Trying to recover');
  37553. }
  37554. }
  37555. this.tiles = transformComponents(context);
  37556. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  37557. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  37558. this.componentsCount = context.SIZ.Csiz;
  37559. }
  37560. };
  37561. function calculateComponentDimensions(component, siz) {
  37562. // Section B.2 Component mapping
  37563. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  37564. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  37565. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  37566. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  37567. component.width = component.x1 - component.x0;
  37568. component.height = component.y1 - component.y0;
  37569. }
  37570. function calculateTileGrids(context, components) {
  37571. var siz = context.SIZ;
  37572. // Section B.3 Division into tile and tile-components
  37573. var tile, tiles = [];
  37574. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  37575. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  37576. for (var q = 0; q < numYtiles; q++) {
  37577. for (var p = 0; p < numXtiles; p++) {
  37578. tile = {};
  37579. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  37580. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  37581. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  37582. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  37583. tile.width = tile.tx1 - tile.tx0;
  37584. tile.height = tile.ty1 - tile.ty0;
  37585. tile.components = [];
  37586. tiles.push(tile);
  37587. }
  37588. }
  37589. context.tiles = tiles;
  37590. var componentsCount = siz.Csiz;
  37591. for (var i = 0, ii = componentsCount; i < ii; i++) {
  37592. var component = components[i];
  37593. for (var j = 0, jj = tiles.length; j < jj; j++) {
  37594. var tileComponent = {};
  37595. tile = tiles[j];
  37596. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  37597. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  37598. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  37599. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  37600. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  37601. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  37602. tile.components[i] = tileComponent;
  37603. }
  37604. }
  37605. }
  37606. function getBlocksDimensions(context, component, r) {
  37607. var codOrCoc = component.codingStyleParameters;
  37608. var result = {};
  37609. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  37610. result.PPx = 15;
  37611. result.PPy = 15;
  37612. } else {
  37613. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  37614. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  37615. }
  37616. // calculate codeblock size as described in section B.7
  37617. result.xcb_ = (r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  37618. Math.min(codOrCoc.xcb, result.PPx));
  37619. result.ycb_ = (r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  37620. Math.min(codOrCoc.ycb, result.PPy));
  37621. return result;
  37622. }
  37623. function buildPrecincts(context, resolution, dimensions) {
  37624. // Section B.6 Division resolution to precincts
  37625. var precinctWidth = 1 << dimensions.PPx;
  37626. var precinctHeight = 1 << dimensions.PPy;
  37627. var numprecinctswide = (resolution.trx1 > resolution.trx0 ?
  37628. Math.ceil(resolution.trx1 / precinctWidth) -
  37629. Math.floor(resolution.trx0 / precinctWidth) : 0);
  37630. var numprecinctshigh = (resolution.try1 > resolution.try0 ?
  37631. Math.ceil(resolution.try1 / precinctHeight) -
  37632. Math.floor(resolution.try0 / precinctHeight) : 0);
  37633. var numprecincts = numprecinctswide * numprecinctshigh;
  37634. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  37635. precinctWidth;
  37636. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  37637. precinctHeight;
  37638. resolution.precinctParameters = {
  37639. precinctXOffset: precinctXOffset,
  37640. precinctYOffset: precinctYOffset,
  37641. precinctWidth: precinctWidth,
  37642. precinctHeight: precinctHeight,
  37643. numprecinctswide: numprecinctswide,
  37644. numprecinctshigh: numprecinctshigh,
  37645. numprecincts: numprecincts
  37646. };
  37647. }
  37648. function buildCodeblocks(context, subband, dimensions) {
  37649. // Section B.7 Division sub-band into code-blocks
  37650. var xcb_ = dimensions.xcb_;
  37651. var ycb_ = dimensions.ycb_;
  37652. var codeblockWidth = 1 << xcb_;
  37653. var codeblockHeight = 1 << ycb_;
  37654. var cbx0 = subband.tbx0 >> xcb_;
  37655. var cby0 = subband.tby0 >> ycb_;
  37656. var cbx1 = (subband.tbx1 + codeblockWidth - 1) >> xcb_;
  37657. var cby1 = (subband.tby1 + codeblockHeight - 1) >> ycb_;
  37658. var precinctParameters = subband.resolution.precinctParameters;
  37659. var codeblocks = [];
  37660. var precincts = [];
  37661. var i, j, codeblock, precinctNumber;
  37662. for (j = cby0; j < cby1; j++) {
  37663. for (i = cbx0; i < cbx1; i++) {
  37664. codeblock = {
  37665. cbx: i,
  37666. cby: j,
  37667. tbx0: codeblockWidth * i,
  37668. tby0: codeblockHeight * j,
  37669. tbx1: codeblockWidth * (i + 1),
  37670. tby1: codeblockHeight * (j + 1)
  37671. };
  37672. // calculate precinct number
  37673. var pi = Math.floor((codeblock.tbx0 -
  37674. precinctParameters.precinctXOffset) /
  37675. precinctParameters.precinctWidth);
  37676. var pj = Math.floor((codeblock.tby0 -
  37677. precinctParameters.precinctYOffset) /
  37678. precinctParameters.precinctHeight);
  37679. precinctNumber = pj + pi * precinctParameters.numprecinctswide;
  37680. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  37681. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  37682. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  37683. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  37684. codeblock.precinctNumber = precinctNumber;
  37685. codeblock.subbandType = subband.type;
  37686. codeblock.Lblock = 3;
  37687. codeblocks.push(codeblock);
  37688. // building precinct for the sub-band
  37689. var precinct = precincts[precinctNumber];
  37690. if (precinct !== undefined) {
  37691. if (i < precinct.cbxMin) {
  37692. precinct.cbxMin = i;
  37693. } else if (i > precinct.cbxMax) {
  37694. precinct.cbxMax = i;
  37695. }
  37696. if (j < precinct.cbyMin) {
  37697. precinct.cbxMin = j;
  37698. } else if (j > precinct.cbyMax) {
  37699. precinct.cbyMax = j;
  37700. }
  37701. } else {
  37702. precincts[precinctNumber] = precinct = {
  37703. cbxMin: i,
  37704. cbyMin: j,
  37705. cbxMax: i,
  37706. cbyMax: j
  37707. };
  37708. }
  37709. codeblock.precinct = precinct;
  37710. }
  37711. }
  37712. subband.codeblockParameters = {
  37713. codeblockWidth: xcb_,
  37714. codeblockHeight: ycb_,
  37715. numcodeblockwide: cbx1 - cbx0 + 1,
  37716. numcodeblockhigh: cby1 - cby1 + 1
  37717. };
  37718. subband.codeblocks = codeblocks;
  37719. subband.precincts = precincts;
  37720. }
  37721. function createPacket(resolution, precinctNumber, layerNumber) {
  37722. var precinctCodeblocks = [];
  37723. // Section B.10.8 Order of info in packet
  37724. var subbands = resolution.subbands;
  37725. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  37726. for (var i = 0, ii = subbands.length; i < ii; i++) {
  37727. var subband = subbands[i];
  37728. var codeblocks = subband.codeblocks;
  37729. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  37730. var codeblock = codeblocks[j];
  37731. if (codeblock.precinctNumber != precinctNumber) {
  37732. continue;
  37733. }
  37734. precinctCodeblocks.push(codeblock);
  37735. }
  37736. }
  37737. return {
  37738. layerNumber: layerNumber,
  37739. codeblocks: precinctCodeblocks
  37740. };
  37741. }
  37742. function LayerResolutionComponentPositionIterator(context) {
  37743. var siz = context.SIZ;
  37744. var tileIndex = context.currentTile.index;
  37745. var tile = context.tiles[tileIndex];
  37746. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37747. var componentsCount = siz.Csiz;
  37748. var maxDecompositionLevelsCount = 0;
  37749. for (var q = 0; q < componentsCount; q++) {
  37750. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37751. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37752. }
  37753. var l = 0, r = 0, i = 0, k = 0;
  37754. this.nextPacket = function JpxImage_nextPacket() {
  37755. // Section B.12.1.1 Layer-resolution-component-position
  37756. for (; l < layersCount; l++) {
  37757. for (; r <= maxDecompositionLevelsCount; r++) {
  37758. for (; i < componentsCount; i++) {
  37759. var component = tile.components[i];
  37760. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37761. continue;
  37762. }
  37763. var resolution = component.resolutions[r];
  37764. var numprecincts = resolution.precinctParameters.numprecincts;
  37765. for (; k < numprecincts;) {
  37766. var packet = createPacket(resolution, k, l);
  37767. k++;
  37768. return packet;
  37769. }
  37770. k = 0;
  37771. }
  37772. i = 0;
  37773. }
  37774. r = 0;
  37775. }
  37776. throw 'Out of packets';
  37777. };
  37778. }
  37779. function ResolutionLayerComponentPositionIterator(context) {
  37780. var siz = context.SIZ;
  37781. var tileIndex = context.currentTile.index;
  37782. var tile = context.tiles[tileIndex];
  37783. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37784. var componentsCount = siz.Csiz;
  37785. var maxDecompositionLevelsCount = 0;
  37786. for (var q = 0; q < componentsCount; q++) {
  37787. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37788. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37789. }
  37790. var r = 0, l = 0, i = 0, k = 0;
  37791. this.nextPacket = function JpxImage_nextPacket() {
  37792. // Section B.12.1.2 Resolution-layer-component-position
  37793. for (; r <= maxDecompositionLevelsCount; r++) {
  37794. for (; l < layersCount; l++) {
  37795. for (; i < componentsCount; i++) {
  37796. var component = tile.components[i];
  37797. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37798. continue;
  37799. }
  37800. var resolution = component.resolutions[r];
  37801. var numprecincts = resolution.precinctParameters.numprecincts;
  37802. for (; k < numprecincts;) {
  37803. var packet = createPacket(resolution, k, l);
  37804. k++;
  37805. return packet;
  37806. }
  37807. k = 0;
  37808. }
  37809. i = 0;
  37810. }
  37811. l = 0;
  37812. }
  37813. throw 'Out of packets';
  37814. };
  37815. }
  37816. function buildPackets(context) {
  37817. var siz = context.SIZ;
  37818. var tileIndex = context.currentTile.index;
  37819. var tile = context.tiles[tileIndex];
  37820. var componentsCount = siz.Csiz;
  37821. // Creating resolutions and sub-bands for each component
  37822. for (var c = 0; c < componentsCount; c++) {
  37823. var component = tile.components[c];
  37824. var decompositionLevelsCount =
  37825. component.codingStyleParameters.decompositionLevelsCount;
  37826. // Section B.5 Resolution levels and sub-bands
  37827. var resolutions = [];
  37828. var subbands = [];
  37829. for (var r = 0; r <= decompositionLevelsCount; r++) {
  37830. var blocksDimensions = getBlocksDimensions(context, component, r);
  37831. var resolution = {};
  37832. var scale = 1 << (decompositionLevelsCount - r);
  37833. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  37834. resolution.try0 = Math.ceil(component.tcy0 / scale);
  37835. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  37836. resolution.try1 = Math.ceil(component.tcy1 / scale);
  37837. buildPrecincts(context, resolution, blocksDimensions);
  37838. resolutions.push(resolution);
  37839. var subband;
  37840. if (r === 0) {
  37841. // one sub-band (LL) with last decomposition
  37842. subband = {};
  37843. subband.type = 'LL';
  37844. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  37845. subband.tby0 = Math.ceil(component.tcy0 / scale);
  37846. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  37847. subband.tby1 = Math.ceil(component.tcy1 / scale);
  37848. subband.resolution = resolution;
  37849. buildCodeblocks(context, subband, blocksDimensions);
  37850. subbands.push(subband);
  37851. resolution.subbands = [subband];
  37852. } else {
  37853. var bscale = 1 << (decompositionLevelsCount - r + 1);
  37854. var resolutionSubbands = [];
  37855. // three sub-bands (HL, LH and HH) with rest of decompositions
  37856. subband = {};
  37857. subband.type = 'HL';
  37858. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37859. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  37860. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37861. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  37862. subband.resolution = resolution;
  37863. buildCodeblocks(context, subband, blocksDimensions);
  37864. subbands.push(subband);
  37865. resolutionSubbands.push(subband);
  37866. subband = {};
  37867. subband.type = 'LH';
  37868. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  37869. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37870. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  37871. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37872. subband.resolution = resolution;
  37873. buildCodeblocks(context, subband, blocksDimensions);
  37874. subbands.push(subband);
  37875. resolutionSubbands.push(subband);
  37876. subband = {};
  37877. subband.type = 'HH';
  37878. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37879. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37880. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37881. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37882. subband.resolution = resolution;
  37883. buildCodeblocks(context, subband, blocksDimensions);
  37884. subbands.push(subband);
  37885. resolutionSubbands.push(subband);
  37886. resolution.subbands = resolutionSubbands;
  37887. }
  37888. }
  37889. component.resolutions = resolutions;
  37890. component.subbands = subbands;
  37891. }
  37892. // Generate the packets sequence
  37893. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  37894. switch (progressionOrder) {
  37895. case 0:
  37896. tile.packetsIterator =
  37897. new LayerResolutionComponentPositionIterator(context);
  37898. break;
  37899. case 1:
  37900. tile.packetsIterator =
  37901. new ResolutionLayerComponentPositionIterator(context);
  37902. break;
  37903. default:
  37904. throw 'Unsupported progression order ' + progressionOrder;
  37905. }
  37906. }
  37907. function parseTilePackets(context, data, offset, dataLength) {
  37908. var position = 0;
  37909. var buffer, bufferSize = 0, skipNextBit = false;
  37910. function readBits(count) {
  37911. while (bufferSize < count) {
  37912. var b = data[offset + position];
  37913. position++;
  37914. if (skipNextBit) {
  37915. buffer = (buffer << 7) | b;
  37916. bufferSize += 7;
  37917. skipNextBit = false;
  37918. } else {
  37919. buffer = (buffer << 8) | b;
  37920. bufferSize += 8;
  37921. }
  37922. if (b == 0xFF) {
  37923. skipNextBit = true;
  37924. }
  37925. }
  37926. bufferSize -= count;
  37927. return (buffer >>> bufferSize) & ((1 << count) - 1);
  37928. }
  37929. function alignToByte() {
  37930. bufferSize = 0;
  37931. if (skipNextBit) {
  37932. position++;
  37933. skipNextBit = false;
  37934. }
  37935. }
  37936. function readCodingpasses() {
  37937. if (readBits(1) === 0) {
  37938. return 1;
  37939. }
  37940. if (readBits(1) === 0) {
  37941. return 2;
  37942. }
  37943. var value = readBits(2);
  37944. if (value < 3) {
  37945. return value + 3;
  37946. }
  37947. value = readBits(5);
  37948. if (value < 31) {
  37949. return value + 6;
  37950. }
  37951. value = readBits(7);
  37952. return value + 37;
  37953. }
  37954. var tileIndex = context.currentTile.index;
  37955. var tile = context.tiles[tileIndex];
  37956. var packetsIterator = tile.packetsIterator;
  37957. while (position < dataLength) {
  37958. var packet = packetsIterator.nextPacket();
  37959. if (!readBits(1)) {
  37960. alignToByte();
  37961. continue;
  37962. }
  37963. var layerNumber = packet.layerNumber;
  37964. var queue = [], codeblock;
  37965. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  37966. codeblock = packet.codeblocks[i];
  37967. var precinct = codeblock.precinct;
  37968. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  37969. var codeblockRow = codeblock.cby - precinct.cbyMin;
  37970. var codeblockIncluded = false;
  37971. var firstTimeInclusion = false;
  37972. var valueReady;
  37973. if ('included' in codeblock) {
  37974. codeblockIncluded = !!readBits(1);
  37975. } else {
  37976. // reading inclusion tree
  37977. precinct = codeblock.precinct;
  37978. var inclusionTree, zeroBitPlanesTree;
  37979. if ('inclusionTree' in precinct) {
  37980. inclusionTree = precinct.inclusionTree;
  37981. } else {
  37982. // building inclusion and zero bit-planes trees
  37983. var width = precinct.cbxMax - precinct.cbxMin + 1;
  37984. var height = precinct.cbyMax - precinct.cbyMin + 1;
  37985. inclusionTree = new InclusionTree(width, height, layerNumber);
  37986. zeroBitPlanesTree = new TagTree(width, height);
  37987. precinct.inclusionTree = inclusionTree;
  37988. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  37989. }
  37990. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  37991. while (true) {
  37992. if (readBits(1)) {
  37993. valueReady = !inclusionTree.nextLevel();
  37994. if (valueReady) {
  37995. codeblock.included = true;
  37996. codeblockIncluded = firstTimeInclusion = true;
  37997. break;
  37998. }
  37999. } else {
  38000. inclusionTree.incrementValue(layerNumber);
  38001. break;
  38002. }
  38003. }
  38004. }
  38005. }
  38006. if (!codeblockIncluded) {
  38007. continue;
  38008. }
  38009. if (firstTimeInclusion) {
  38010. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  38011. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  38012. while (true) {
  38013. if (readBits(1)) {
  38014. valueReady = !zeroBitPlanesTree.nextLevel();
  38015. if (valueReady) {
  38016. break;
  38017. }
  38018. } else {
  38019. zeroBitPlanesTree.incrementValue();
  38020. }
  38021. }
  38022. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  38023. }
  38024. var codingpasses = readCodingpasses();
  38025. while (readBits(1)) {
  38026. codeblock.Lblock++;
  38027. }
  38028. var codingpassesLog2 = log2(codingpasses);
  38029. // rounding down log2
  38030. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  38031. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  38032. var codedDataLength = readBits(bits);
  38033. queue.push({
  38034. codeblock: codeblock,
  38035. codingpasses: codingpasses,
  38036. dataLength: codedDataLength
  38037. });
  38038. }
  38039. alignToByte();
  38040. while (queue.length > 0) {
  38041. var packetItem = queue.shift();
  38042. codeblock = packetItem.codeblock;
  38043. if (!('data' in codeblock)) {
  38044. codeblock.data = [];
  38045. }
  38046. codeblock.data.push({
  38047. data: data,
  38048. start: offset + position,
  38049. end: offset + position + packetItem.dataLength,
  38050. codingpasses: packetItem.codingpasses
  38051. });
  38052. position += packetItem.dataLength;
  38053. }
  38054. }
  38055. return position;
  38056. }
  38057. function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
  38058. delta, mb, reversible, segmentationSymbolUsed) {
  38059. var x0 = subband.tbx0;
  38060. var y0 = subband.tby0;
  38061. var width = subband.tbx1 - subband.tbx0;
  38062. var codeblocks = subband.codeblocks;
  38063. var right = subband.type.charAt(0) === 'H' ? 1 : 0;
  38064. var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0;
  38065. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  38066. var codeblock = codeblocks[i];
  38067. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  38068. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  38069. if (blockWidth === 0 || blockHeight === 0) {
  38070. continue;
  38071. }
  38072. if (!('data' in codeblock)) {
  38073. continue;
  38074. }
  38075. var bitModel, currentCodingpassType;
  38076. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  38077. codeblock.zeroBitPlanes, mb);
  38078. currentCodingpassType = 2; // first bit plane starts from cleanup
  38079. // collect data
  38080. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  38081. var j, jj, dataItem;
  38082. for (j = 0, jj = data.length; j < jj; j++) {
  38083. dataItem = data[j];
  38084. totalLength += dataItem.end - dataItem.start;
  38085. codingpasses += dataItem.codingpasses;
  38086. }
  38087. var encodedData = new Uint8Array(totalLength);
  38088. var position = 0;
  38089. for (j = 0, jj = data.length; j < jj; j++) {
  38090. dataItem = data[j];
  38091. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  38092. encodedData.set(chunk, position);
  38093. position += chunk.length;
  38094. }
  38095. // decoding the item
  38096. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  38097. bitModel.setDecoder(decoder);
  38098. for (j = 0; j < codingpasses; j++) {
  38099. switch (currentCodingpassType) {
  38100. case 0:
  38101. bitModel.runSignificancePropogationPass();
  38102. break;
  38103. case 1:
  38104. bitModel.runMagnitudeRefinementPass();
  38105. break;
  38106. case 2:
  38107. bitModel.runCleanupPass();
  38108. if (segmentationSymbolUsed) {
  38109. bitModel.checkSegmentationSymbol();
  38110. }
  38111. break;
  38112. }
  38113. currentCodingpassType = (currentCodingpassType + 1) % 3;
  38114. }
  38115. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  38116. var sign = bitModel.coefficentsSign;
  38117. var magnitude = bitModel.coefficentsMagnitude;
  38118. var bitsDecoded = bitModel.bitsDecoded;
  38119. var magnitudeCorrection = reversible ? 0 : 0.5;
  38120. var k, n, nb;
  38121. position = 0;
  38122. // Do the interleaving of Section F.3.3 here, so we do not need
  38123. // to copy later. LL level is not interleaved, just copied.
  38124. var interleave = (subband.type !== 'LL');
  38125. for (j = 0; j < blockHeight; j++) {
  38126. var row = (offset / width) | 0; // row in the non-interleaved subband
  38127. var levelOffset = 2 * row * (levelWidth - width) + right + bottom;
  38128. for (k = 0; k < blockWidth; k++) {
  38129. n = magnitude[position];
  38130. if (n !== 0) {
  38131. n = (n + magnitudeCorrection) * delta;
  38132. if (sign[position] !== 0) {
  38133. n = -n;
  38134. }
  38135. nb = bitsDecoded[position];
  38136. var pos = interleave ? (levelOffset + (offset << 1)) : offset;
  38137. if (reversible && (nb >= mb)) {
  38138. coefficients[pos] = n;
  38139. } else {
  38140. coefficients[pos] = n * (1 << (mb - nb));
  38141. }
  38142. }
  38143. offset++;
  38144. position++;
  38145. }
  38146. offset += width - blockWidth;
  38147. }
  38148. }
  38149. }
  38150. function transformTile(context, tile, c) {
  38151. var component = tile.components[c];
  38152. var codingStyleParameters = component.codingStyleParameters;
  38153. var quantizationParameters = component.quantizationParameters;
  38154. var decompositionLevelsCount =
  38155. codingStyleParameters.decompositionLevelsCount;
  38156. var spqcds = quantizationParameters.SPqcds;
  38157. var scalarExpounded = quantizationParameters.scalarExpounded;
  38158. var guardBits = quantizationParameters.guardBits;
  38159. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  38160. var precision = context.components[c].precision;
  38161. var reversible = codingStyleParameters.reversibleTransformation;
  38162. var transform = (reversible ? new ReversibleTransform() :
  38163. new IrreversibleTransform());
  38164. var subbandCoefficients = [];
  38165. var b = 0;
  38166. for (var i = 0; i <= decompositionLevelsCount; i++) {
  38167. var resolution = component.resolutions[i];
  38168. var width = resolution.trx1 - resolution.trx0;
  38169. var height = resolution.try1 - resolution.try0;
  38170. // Allocate space for the whole sublevel.
  38171. var coefficients = new Float32Array(width * height);
  38172. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  38173. var mu, epsilon;
  38174. if (!scalarExpounded) {
  38175. // formula E-5
  38176. mu = spqcds[0].mu;
  38177. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  38178. } else {
  38179. mu = spqcds[b].mu;
  38180. epsilon = spqcds[b].epsilon;
  38181. b++;
  38182. }
  38183. var subband = resolution.subbands[j];
  38184. var gainLog2 = SubbandsGainLog2[subband.type];
  38185. // calulate quantization coefficient (Section E.1.1.1)
  38186. var delta = (reversible ? 1 :
  38187. Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048));
  38188. var mb = (guardBits + epsilon - 1);
  38189. // In the first resolution level, copyCoefficients will fill the
  38190. // whole array with coefficients. In the succeding passes,
  38191. // copyCoefficients will consecutively fill in the values that belong
  38192. // to the interleaved positions of the HL, LH, and HH coefficients.
  38193. // The LL coefficients will then be interleaved in Transform.iterate().
  38194. copyCoefficients(coefficients, width, height, subband, delta, mb,
  38195. reversible, segmentationSymbolUsed);
  38196. }
  38197. subbandCoefficients.push({
  38198. width: width,
  38199. height: height,
  38200. items: coefficients
  38201. });
  38202. }
  38203. var result = transform.calculate(subbandCoefficients,
  38204. component.tcx0, component.tcy0);
  38205. return {
  38206. left: component.tcx0,
  38207. top: component.tcy0,
  38208. width: result.width,
  38209. height: result.height,
  38210. items: result.items
  38211. };
  38212. }
  38213. function transformComponents(context) {
  38214. var siz = context.SIZ;
  38215. var components = context.components;
  38216. var componentsCount = siz.Csiz;
  38217. var resultImages = [];
  38218. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  38219. var tile = context.tiles[i];
  38220. var transformedTiles = [];
  38221. var c;
  38222. for (c = 0; c < componentsCount; c++) {
  38223. transformedTiles[c] = transformTile(context, tile, c);
  38224. }
  38225. var tile0 = transformedTiles[0];
  38226. var out = new Uint8Array(tile0.items.length * componentsCount);
  38227. var result = {
  38228. left: tile0.left,
  38229. top: tile0.top,
  38230. width: tile0.width,
  38231. height: tile0.height,
  38232. items: out
  38233. };
  38234. // Section G.2.2 Inverse multi component transform
  38235. var shift, offset, max, min, maxK;
  38236. var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val;
  38237. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  38238. var fourComponents = componentsCount === 4;
  38239. var y0items = transformedTiles[0].items;
  38240. var y1items = transformedTiles[1].items;
  38241. var y2items = transformedTiles[2].items;
  38242. var y3items = fourComponents ? transformedTiles[3].items : null;
  38243. // HACK: The multiple component transform formulas below assume that
  38244. // all components have the same precision. With this in mind, we
  38245. // compute shift and offset only once.
  38246. shift = components[0].precision - 8;
  38247. offset = (128 << shift) + 0.5;
  38248. max = 255 * (1 << shift);
  38249. maxK = max * 0.5;
  38250. min = -maxK;
  38251. var component0 = tile.components[0];
  38252. var alpha01 = componentsCount - 3;
  38253. jj = y0items.length;
  38254. if (!component0.codingStyleParameters.reversibleTransformation) {
  38255. // inverse irreversible multiple component transform
  38256. for (j = 0; j < jj; j++, pos += alpha01) {
  38257. y0 = y0items[j] + offset;
  38258. y1 = y1items[j];
  38259. y2 = y2items[j];
  38260. r = y0 + 1.402 * y2;
  38261. g = y0 - 0.34413 * y1 - 0.71414 * y2;
  38262. b = y0 + 1.772 * y1;
  38263. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  38264. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  38265. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  38266. }
  38267. } else {
  38268. // inverse reversible multiple component transform
  38269. for (j = 0; j < jj; j++, pos += alpha01) {
  38270. y0 = y0items[j] + offset;
  38271. y1 = y1items[j];
  38272. y2 = y2items[j];
  38273. g = y0 - ((y2 + y1) >> 2);
  38274. r = g + y2;
  38275. b = g + y1;
  38276. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  38277. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  38278. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  38279. }
  38280. }
  38281. if (fourComponents) {
  38282. for (j = 0, pos = 3; j < jj; j++, pos += 4) {
  38283. k = y3items[j];
  38284. out[pos] = k <= min ? 0 : k >= maxK ? 255 : (k + offset) >> shift;
  38285. }
  38286. }
  38287. } else { // no multi-component transform
  38288. for (c = 0; c < componentsCount; c++) {
  38289. var items = transformedTiles[c].items;
  38290. shift = components[c].precision - 8;
  38291. offset = (128 << shift) + 0.5;
  38292. max = (127.5 * (1 << shift));
  38293. min = -max;
  38294. for (pos = c, j = 0, jj = items.length; j < jj; j++) {
  38295. val = items[j];
  38296. out[pos] = val <= min ? 0 :
  38297. val >= max ? 255 : (val + offset) >> shift;
  38298. pos += componentsCount;
  38299. }
  38300. }
  38301. }
  38302. resultImages.push(result);
  38303. }
  38304. return resultImages;
  38305. }
  38306. function initializeTile(context, tileIndex) {
  38307. var siz = context.SIZ;
  38308. var componentsCount = siz.Csiz;
  38309. var tile = context.tiles[tileIndex];
  38310. for (var c = 0; c < componentsCount; c++) {
  38311. var component = tile.components[c];
  38312. var qcdOrQcc = (c in context.currentTile.QCC ?
  38313. context.currentTile.QCC[c] : context.currentTile.QCD);
  38314. component.quantizationParameters = qcdOrQcc;
  38315. var codOrCoc = (c in context.currentTile.COC ?
  38316. context.currentTile.COC[c] : context.currentTile.COD);
  38317. component.codingStyleParameters = codOrCoc;
  38318. }
  38319. tile.codingStyleDefaultParameters = context.currentTile.COD;
  38320. }
  38321. // Section B.10.2 Tag trees
  38322. var TagTree = (function TagTreeClosure() {
  38323. function TagTree(width, height) {
  38324. var levelsLength = log2(Math.max(width, height)) + 1;
  38325. this.levels = [];
  38326. for (var i = 0; i < levelsLength; i++) {
  38327. var level = {
  38328. width: width,
  38329. height: height,
  38330. items: []
  38331. };
  38332. this.levels.push(level);
  38333. width = Math.ceil(width / 2);
  38334. height = Math.ceil(height / 2);
  38335. }
  38336. }
  38337. TagTree.prototype = {
  38338. reset: function TagTree_reset(i, j) {
  38339. var currentLevel = 0, value = 0, level;
  38340. while (currentLevel < this.levels.length) {
  38341. level = this.levels[currentLevel];
  38342. var index = i + j * level.width;
  38343. if (index in level.items) {
  38344. value = level.items[index];
  38345. break;
  38346. }
  38347. level.index = index;
  38348. i >>= 1;
  38349. j >>= 1;
  38350. currentLevel++;
  38351. }
  38352. currentLevel--;
  38353. level = this.levels[currentLevel];
  38354. level.items[level.index] = value;
  38355. this.currentLevel = currentLevel;
  38356. delete this.value;
  38357. },
  38358. incrementValue: function TagTree_incrementValue() {
  38359. var level = this.levels[this.currentLevel];
  38360. level.items[level.index]++;
  38361. },
  38362. nextLevel: function TagTree_nextLevel() {
  38363. var currentLevel = this.currentLevel;
  38364. var level = this.levels[currentLevel];
  38365. var value = level.items[level.index];
  38366. currentLevel--;
  38367. if (currentLevel < 0) {
  38368. this.value = value;
  38369. return false;
  38370. }
  38371. this.currentLevel = currentLevel;
  38372. level = this.levels[currentLevel];
  38373. level.items[level.index] = value;
  38374. return true;
  38375. }
  38376. };
  38377. return TagTree;
  38378. })();
  38379. var InclusionTree = (function InclusionTreeClosure() {
  38380. function InclusionTree(width, height, defaultValue) {
  38381. var levelsLength = log2(Math.max(width, height)) + 1;
  38382. this.levels = [];
  38383. for (var i = 0; i < levelsLength; i++) {
  38384. var items = new Uint8Array(width * height);
  38385. for (var j = 0, jj = items.length; j < jj; j++) {
  38386. items[j] = defaultValue;
  38387. }
  38388. var level = {
  38389. width: width,
  38390. height: height,
  38391. items: items
  38392. };
  38393. this.levels.push(level);
  38394. width = Math.ceil(width / 2);
  38395. height = Math.ceil(height / 2);
  38396. }
  38397. }
  38398. InclusionTree.prototype = {
  38399. reset: function InclusionTree_reset(i, j, stopValue) {
  38400. var currentLevel = 0;
  38401. while (currentLevel < this.levels.length) {
  38402. var level = this.levels[currentLevel];
  38403. var index = i + j * level.width;
  38404. level.index = index;
  38405. var value = level.items[index];
  38406. if (value == 0xFF) {
  38407. break;
  38408. }
  38409. if (value > stopValue) {
  38410. this.currentLevel = currentLevel;
  38411. // already know about this one, propagating the value to top levels
  38412. this.propagateValues();
  38413. return false;
  38414. }
  38415. i >>= 1;
  38416. j >>= 1;
  38417. currentLevel++;
  38418. }
  38419. this.currentLevel = currentLevel - 1;
  38420. return true;
  38421. },
  38422. incrementValue: function InclusionTree_incrementValue(stopValue) {
  38423. var level = this.levels[this.currentLevel];
  38424. level.items[level.index] = stopValue + 1;
  38425. this.propagateValues();
  38426. },
  38427. propagateValues: function InclusionTree_propagateValues() {
  38428. var levelIndex = this.currentLevel;
  38429. var level = this.levels[levelIndex];
  38430. var currentValue = level.items[level.index];
  38431. while (--levelIndex >= 0) {
  38432. level = this.levels[levelIndex];
  38433. level.items[level.index] = currentValue;
  38434. }
  38435. },
  38436. nextLevel: function InclusionTree_nextLevel() {
  38437. var currentLevel = this.currentLevel;
  38438. var level = this.levels[currentLevel];
  38439. var value = level.items[level.index];
  38440. level.items[level.index] = 0xFF;
  38441. currentLevel--;
  38442. if (currentLevel < 0) {
  38443. return false;
  38444. }
  38445. this.currentLevel = currentLevel;
  38446. level = this.levels[currentLevel];
  38447. level.items[level.index] = value;
  38448. return true;
  38449. }
  38450. };
  38451. return InclusionTree;
  38452. })();
  38453. // Section D. Coefficient bit modeling
  38454. var BitModel = (function BitModelClosure() {
  38455. var UNIFORM_CONTEXT = 17;
  38456. var RUNLENGTH_CONTEXT = 18;
  38457. // Table D-1
  38458. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  38459. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  38460. var LLAndLHContextsLabel = new Uint8Array([
  38461. 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,
  38462. 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,
  38463. 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
  38464. ]);
  38465. var HLContextLabel = new Uint8Array([
  38466. 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,
  38467. 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,
  38468. 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
  38469. ]);
  38470. var HHContextLabel = new Uint8Array([
  38471. 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,
  38472. 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,
  38473. 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
  38474. ]);
  38475. function BitModel(width, height, subband, zeroBitPlanes, mb) {
  38476. this.width = width;
  38477. this.height = height;
  38478. this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
  38479. (subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel));
  38480. var coefficientCount = width * height;
  38481. // coefficients outside the encoding region treated as insignificant
  38482. // add border state cells for significanceState
  38483. this.neighborsSignificance = new Uint8Array(coefficientCount);
  38484. this.coefficentsSign = new Uint8Array(coefficientCount);
  38485. this.coefficentsMagnitude = mb > 14 ? new Uint32Array(coefficientCount) :
  38486. mb > 6 ? new Uint16Array(coefficientCount) :
  38487. new Uint8Array(coefficientCount);
  38488. this.processingFlags = new Uint8Array(coefficientCount);
  38489. var bitsDecoded = new Uint8Array(coefficientCount);
  38490. if (zeroBitPlanes !== 0) {
  38491. for (var i = 0; i < coefficientCount; i++) {
  38492. bitsDecoded[i] = zeroBitPlanes;
  38493. }
  38494. }
  38495. this.bitsDecoded = bitsDecoded;
  38496. this.reset();
  38497. }
  38498. BitModel.prototype = {
  38499. setDecoder: function BitModel_setDecoder(decoder) {
  38500. this.decoder = decoder;
  38501. },
  38502. reset: function BitModel_reset() {
  38503. // We have 17 contexts that are accessed via context labels,
  38504. // plus the uniform and runlength context.
  38505. this.contexts = new Int8Array(19);
  38506. // Contexts are packed into 1 byte:
  38507. // highest 7 bits carry the index, lowest bit carries mps
  38508. this.contexts[0] = (4 << 1) | 0;
  38509. this.contexts[UNIFORM_CONTEXT] = (46 << 1) | 0;
  38510. this.contexts[RUNLENGTH_CONTEXT] = (3 << 1) | 0;
  38511. },
  38512. setNeighborsSignificance:
  38513. function BitModel_setNeighborsSignificance(row, column, index) {
  38514. var neighborsSignificance = this.neighborsSignificance;
  38515. var width = this.width, height = this.height;
  38516. var left = (column > 0);
  38517. var right = (column + 1 < width);
  38518. var i;
  38519. if (row > 0) {
  38520. i = index - width;
  38521. if (left) {
  38522. neighborsSignificance[i - 1] += 0x10;
  38523. }
  38524. if (right) {
  38525. neighborsSignificance[i + 1] += 0x10;
  38526. }
  38527. neighborsSignificance[i] += 0x04;
  38528. }
  38529. if (row + 1 < height) {
  38530. i = index + width;
  38531. if (left) {
  38532. neighborsSignificance[i - 1] += 0x10;
  38533. }
  38534. if (right) {
  38535. neighborsSignificance[i + 1] += 0x10;
  38536. }
  38537. neighborsSignificance[i] += 0x04;
  38538. }
  38539. if (left) {
  38540. neighborsSignificance[index - 1] += 0x01;
  38541. }
  38542. if (right) {
  38543. neighborsSignificance[index + 1] += 0x01;
  38544. }
  38545. neighborsSignificance[index] |= 0x80;
  38546. },
  38547. runSignificancePropogationPass:
  38548. function BitModel_runSignificancePropogationPass() {
  38549. var decoder = this.decoder;
  38550. var width = this.width, height = this.height;
  38551. var coefficentsMagnitude = this.coefficentsMagnitude;
  38552. var coefficentsSign = this.coefficentsSign;
  38553. var neighborsSignificance = this.neighborsSignificance;
  38554. var processingFlags = this.processingFlags;
  38555. var contexts = this.contexts;
  38556. var labels = this.contextLabelTable;
  38557. var bitsDecoded = this.bitsDecoded;
  38558. var processedInverseMask = ~1;
  38559. var processedMask = 1;
  38560. var firstMagnitudeBitMask = 2;
  38561. for (var i0 = 0; i0 < height; i0 += 4) {
  38562. for (var j = 0; j < width; j++) {
  38563. var index = i0 * width + j;
  38564. for (var i1 = 0; i1 < 4; i1++, index += width) {
  38565. var i = i0 + i1;
  38566. if (i >= height) {
  38567. break;
  38568. }
  38569. // clear processed flag first
  38570. processingFlags[index] &= processedInverseMask;
  38571. if (coefficentsMagnitude[index] ||
  38572. !neighborsSignificance[index]) {
  38573. continue;
  38574. }
  38575. var contextLabel = labels[neighborsSignificance[index]];
  38576. var decision = decoder.readBit(contexts, contextLabel);
  38577. if (decision) {
  38578. var sign = this.decodeSignBit(i, j, index);
  38579. coefficentsSign[index] = sign;
  38580. coefficentsMagnitude[index] = 1;
  38581. this.setNeighborsSignificance(i, j, index);
  38582. processingFlags[index] |= firstMagnitudeBitMask;
  38583. }
  38584. bitsDecoded[index]++;
  38585. processingFlags[index] |= processedMask;
  38586. }
  38587. }
  38588. }
  38589. },
  38590. decodeSignBit: function BitModel_decodeSignBit(row, column, index) {
  38591. var width = this.width, height = this.height;
  38592. var coefficentsMagnitude = this.coefficentsMagnitude;
  38593. var coefficentsSign = this.coefficentsSign;
  38594. var contribution, sign0, sign1, significance1;
  38595. var contextLabel, decoded;
  38596. // calculate horizontal contribution
  38597. significance1 = (column > 0 && coefficentsMagnitude[index - 1] !== 0);
  38598. if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) {
  38599. sign1 = coefficentsSign[index + 1];
  38600. if (significance1) {
  38601. sign0 = coefficentsSign[index - 1];
  38602. contribution = 1 - sign1 - sign0;
  38603. } else {
  38604. contribution = 1 - sign1 - sign1;
  38605. }
  38606. } else if (significance1) {
  38607. sign0 = coefficentsSign[index - 1];
  38608. contribution = 1 - sign0 - sign0;
  38609. } else {
  38610. contribution = 0;
  38611. }
  38612. var horizontalContribution = 3 * contribution;
  38613. // calculate vertical contribution and combine with the horizontal
  38614. significance1 = (row > 0 && coefficentsMagnitude[index - width] !== 0);
  38615. if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) {
  38616. sign1 = coefficentsSign[index + width];
  38617. if (significance1) {
  38618. sign0 = coefficentsSign[index - width];
  38619. contribution = 1 - sign1 - sign0 + horizontalContribution;
  38620. } else {
  38621. contribution = 1 - sign1 - sign1 + horizontalContribution;
  38622. }
  38623. } else if (significance1) {
  38624. sign0 = coefficentsSign[index - width];
  38625. contribution = 1 - sign0 - sign0 + horizontalContribution;
  38626. } else {
  38627. contribution = horizontalContribution;
  38628. }
  38629. if (contribution >= 0) {
  38630. contextLabel = 9 + contribution;
  38631. decoded = this.decoder.readBit(this.contexts, contextLabel);
  38632. } else {
  38633. contextLabel = 9 - contribution;
  38634. decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1;
  38635. }
  38636. return decoded;
  38637. },
  38638. runMagnitudeRefinementPass:
  38639. function BitModel_runMagnitudeRefinementPass() {
  38640. var decoder = this.decoder;
  38641. var width = this.width, height = this.height;
  38642. var coefficentsMagnitude = this.coefficentsMagnitude;
  38643. var neighborsSignificance = this.neighborsSignificance;
  38644. var contexts = this.contexts;
  38645. var bitsDecoded = this.bitsDecoded;
  38646. var processingFlags = this.processingFlags;
  38647. var processedMask = 1;
  38648. var firstMagnitudeBitMask = 2;
  38649. var length = width * height;
  38650. var width4 = width * 4;
  38651. for (var index0 = 0, indexNext; index0 < length; index0 = indexNext) {
  38652. indexNext = Math.min(length, index0 + width4);
  38653. for (var j = 0; j < width; j++) {
  38654. for (var index = index0 + j; index < indexNext; index += width) {
  38655. // significant but not those that have just become
  38656. if (!coefficentsMagnitude[index] ||
  38657. (processingFlags[index] & processedMask) !== 0) {
  38658. continue;
  38659. }
  38660. var contextLabel = 16;
  38661. if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) {
  38662. processingFlags[index] ^= firstMagnitudeBitMask;
  38663. // first refinement
  38664. var significance = neighborsSignificance[index] & 127;
  38665. contextLabel = significance === 0 ? 15 : 14;
  38666. }
  38667. var bit = decoder.readBit(contexts, contextLabel);
  38668. coefficentsMagnitude[index] =
  38669. (coefficentsMagnitude[index] << 1) | bit;
  38670. bitsDecoded[index]++;
  38671. processingFlags[index] |= processedMask;
  38672. }
  38673. }
  38674. }
  38675. },
  38676. runCleanupPass: function BitModel_runCleanupPass() {
  38677. var decoder = this.decoder;
  38678. var width = this.width, height = this.height;
  38679. var neighborsSignificance = this.neighborsSignificance;
  38680. var coefficentsMagnitude = this.coefficentsMagnitude;
  38681. var coefficentsSign = this.coefficentsSign;
  38682. var contexts = this.contexts;
  38683. var labels = this.contextLabelTable;
  38684. var bitsDecoded = this.bitsDecoded;
  38685. var processingFlags = this.processingFlags;
  38686. var processedMask = 1;
  38687. var firstMagnitudeBitMask = 2;
  38688. var oneRowDown = width;
  38689. var twoRowsDown = width * 2;
  38690. var threeRowsDown = width * 3;
  38691. var iNext;
  38692. for (var i0 = 0; i0 < height; i0 = iNext) {
  38693. iNext = Math.min(i0 + 4, height);
  38694. var indexBase = i0 * width;
  38695. var checkAllEmpty = i0 + 3 < height;
  38696. for (var j = 0; j < width; j++) {
  38697. var index0 = indexBase + j;
  38698. // using the property: labels[neighborsSignificance[index]] == 0
  38699. // when neighborsSignificance[index] == 0
  38700. var allEmpty = (checkAllEmpty &&
  38701. processingFlags[index0] === 0 &&
  38702. processingFlags[index0 + oneRowDown] === 0 &&
  38703. processingFlags[index0 + twoRowsDown] === 0 &&
  38704. processingFlags[index0 + threeRowsDown] === 0 &&
  38705. neighborsSignificance[index0] === 0 &&
  38706. neighborsSignificance[index0 + oneRowDown] === 0 &&
  38707. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  38708. neighborsSignificance[index0 + threeRowsDown] === 0);
  38709. var i1 = 0, index = index0;
  38710. var i = i0, sign;
  38711. if (allEmpty) {
  38712. var hasSignificantCoefficent =
  38713. decoder.readBit(contexts, RUNLENGTH_CONTEXT);
  38714. if (!hasSignificantCoefficent) {
  38715. bitsDecoded[index0]++;
  38716. bitsDecoded[index0 + oneRowDown]++;
  38717. bitsDecoded[index0 + twoRowsDown]++;
  38718. bitsDecoded[index0 + threeRowsDown]++;
  38719. continue; // next column
  38720. }
  38721. i1 = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38722. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38723. if (i1 !== 0) {
  38724. i = i0 + i1;
  38725. index += i1 * width;
  38726. }
  38727. sign = this.decodeSignBit(i, j, index);
  38728. coefficentsSign[index] = sign;
  38729. coefficentsMagnitude[index] = 1;
  38730. this.setNeighborsSignificance(i, j, index);
  38731. processingFlags[index] |= firstMagnitudeBitMask;
  38732. index = index0;
  38733. for (var i2 = i0; i2 <= i; i2++, index += width) {
  38734. bitsDecoded[index]++;
  38735. }
  38736. i1++;
  38737. }
  38738. for (i = i0 + i1; i < iNext; i++, index += width) {
  38739. if (coefficentsMagnitude[index] ||
  38740. (processingFlags[index] & processedMask) !== 0) {
  38741. continue;
  38742. }
  38743. var contextLabel = labels[neighborsSignificance[index]];
  38744. var decision = decoder.readBit(contexts, contextLabel);
  38745. if (decision === 1) {
  38746. sign = this.decodeSignBit(i, j, index);
  38747. coefficentsSign[index] = sign;
  38748. coefficentsMagnitude[index] = 1;
  38749. this.setNeighborsSignificance(i, j, index);
  38750. processingFlags[index] |= firstMagnitudeBitMask;
  38751. }
  38752. bitsDecoded[index]++;
  38753. }
  38754. }
  38755. }
  38756. },
  38757. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  38758. var decoder = this.decoder;
  38759. var contexts = this.contexts;
  38760. var symbol = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 3) |
  38761. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 2) |
  38762. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38763. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38764. if (symbol != 0xA) {
  38765. throw 'Invalid segmentation symbol';
  38766. }
  38767. }
  38768. };
  38769. return BitModel;
  38770. })();
  38771. // Section F, Discrete wavelet transformation
  38772. var Transform = (function TransformClosure() {
  38773. function Transform() {}
  38774. Transform.prototype.calculate =
  38775. function transformCalculate(subbands, u0, v0) {
  38776. var ll = subbands[0];
  38777. for (var i = 1, ii = subbands.length; i < ii; i++) {
  38778. ll = this.iterate(ll, subbands[i], u0, v0);
  38779. }
  38780. return ll;
  38781. };
  38782. Transform.prototype.extend = function extend(buffer, offset, size) {
  38783. // Section F.3.7 extending... using max extension of 4
  38784. var i1 = offset - 1, j1 = offset + 1;
  38785. var i2 = offset + size - 2, j2 = offset + size;
  38786. buffer[i1--] = buffer[j1++];
  38787. buffer[j2++] = buffer[i2--];
  38788. buffer[i1--] = buffer[j1++];
  38789. buffer[j2++] = buffer[i2--];
  38790. buffer[i1--] = buffer[j1++];
  38791. buffer[j2++] = buffer[i2--];
  38792. buffer[i1] = buffer[j1];
  38793. buffer[j2] = buffer[i2];
  38794. };
  38795. Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
  38796. u0, v0) {
  38797. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  38798. var width = hl_lh_hh.width;
  38799. var height = hl_lh_hh.height;
  38800. var items = hl_lh_hh.items;
  38801. var i, j, k, l, u, v;
  38802. // Interleave LL according to Section F.3.3
  38803. for (k = 0, i = 0; i < llHeight; i++) {
  38804. l = i * 2 * width;
  38805. for (j = 0; j < llWidth; j++, k++, l += 2) {
  38806. items[l] = llItems[k];
  38807. }
  38808. }
  38809. // The LL band is not needed anymore.
  38810. llItems = ll.items = null;
  38811. var bufferPadding = 4;
  38812. var rowBuffer = new Float32Array(width + 2 * bufferPadding);
  38813. // Section F.3.4 HOR_SR
  38814. if (width === 1) {
  38815. // if width = 1, when u0 even keep items as is, when odd divide by 2
  38816. if ((u0 & 1) !== 0) {
  38817. for (v = 0, k = 0; v < height; v++, k += width) {
  38818. items[k] *= 0.5;
  38819. }
  38820. }
  38821. } else {
  38822. for (v = 0, k = 0; v < height; v++, k += width) {
  38823. rowBuffer.set(items.subarray(k, k + width), bufferPadding);
  38824. this.extend(rowBuffer, bufferPadding, width);
  38825. this.filter(rowBuffer, bufferPadding, width);
  38826. items.set(
  38827. rowBuffer.subarray(bufferPadding, bufferPadding + width),
  38828. k);
  38829. }
  38830. }
  38831. // Accesses to the items array can take long, because it may not fit into
  38832. // CPU cache and has to be fetched from main memory. Since subsequent
  38833. // accesses to the items array are not local when reading columns, we
  38834. // have a cache miss every time. To reduce cache misses, get up to
  38835. // 'numBuffers' items at a time and store them into the individual
  38836. // buffers. The colBuffers should be small enough to fit into CPU cache.
  38837. var numBuffers = 16;
  38838. var colBuffers = [];
  38839. for (i = 0; i < numBuffers; i++) {
  38840. colBuffers.push(new Float32Array(height + 2 * bufferPadding));
  38841. }
  38842. var b, currentBuffer = 0;
  38843. ll = bufferPadding + height;
  38844. // Section F.3.5 VER_SR
  38845. if (height === 1) {
  38846. // if height = 1, when v0 even keep items as is, when odd divide by 2
  38847. if ((v0 & 1) !== 0) {
  38848. for (u = 0; u < width; u++) {
  38849. items[u] *= 0.5;
  38850. }
  38851. }
  38852. } else {
  38853. for (u = 0; u < width; u++) {
  38854. // if we ran out of buffers, copy several image columns at once
  38855. if (currentBuffer === 0) {
  38856. numBuffers = Math.min(width - u, numBuffers);
  38857. for (k = u, l = bufferPadding; l < ll; k += width, l++) {
  38858. for (b = 0; b < numBuffers; b++) {
  38859. colBuffers[b][l] = items[k + b];
  38860. }
  38861. }
  38862. currentBuffer = numBuffers;
  38863. }
  38864. currentBuffer--;
  38865. var buffer = colBuffers[currentBuffer];
  38866. this.extend(buffer, bufferPadding, height);
  38867. this.filter(buffer, bufferPadding, height);
  38868. // If this is last buffer in this group of buffers, flush all buffers.
  38869. if (currentBuffer === 0) {
  38870. k = u - numBuffers + 1;
  38871. for (l = bufferPadding; l < ll; k += width, l++) {
  38872. for (b = 0; b < numBuffers; b++) {
  38873. items[k + b] = colBuffers[b][l];
  38874. }
  38875. }
  38876. }
  38877. }
  38878. }
  38879. return {
  38880. width: width,
  38881. height: height,
  38882. items: items
  38883. };
  38884. };
  38885. return Transform;
  38886. })();
  38887. // Section 3.8.2 Irreversible 9-7 filter
  38888. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  38889. function IrreversibleTransform() {
  38890. Transform.call(this);
  38891. }
  38892. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  38893. IrreversibleTransform.prototype.filter =
  38894. function irreversibleTransformFilter(x, offset, length) {
  38895. var len = length >> 1;
  38896. offset = offset | 0;
  38897. var j, n, current, next;
  38898. var alpha = -1.586134342059924;
  38899. var beta = -0.052980118572961;
  38900. var gamma = 0.882911075530934;
  38901. var delta = 0.443506852043971;
  38902. var K = 1.230174104914001;
  38903. var K_ = 1 / K;
  38904. // step 1 is combined with step 3
  38905. // step 2
  38906. j = offset - 3;
  38907. for (n = len + 4; n--; j += 2) {
  38908. x[j] *= K_;
  38909. }
  38910. // step 1 & 3
  38911. j = offset - 2;
  38912. current = delta * x[j -1];
  38913. for (n = len + 3; n--; j += 2) {
  38914. next = delta * x[j + 1];
  38915. x[j] = K * x[j] - current - next;
  38916. if (n--) {
  38917. j += 2;
  38918. current = delta * x[j + 1];
  38919. x[j] = K * x[j] - current - next;
  38920. } else {
  38921. break;
  38922. }
  38923. }
  38924. // step 4
  38925. j = offset - 1;
  38926. current = gamma * x[j - 1];
  38927. for (n = len + 2; n--; j += 2) {
  38928. next = gamma * x[j + 1];
  38929. x[j] -= current + next;
  38930. if (n--) {
  38931. j += 2;
  38932. current = gamma * x[j + 1];
  38933. x[j] -= current + next;
  38934. } else {
  38935. break;
  38936. }
  38937. }
  38938. // step 5
  38939. j = offset;
  38940. current = beta * x[j - 1];
  38941. for (n = len + 1; n--; j += 2) {
  38942. next = beta * x[j + 1];
  38943. x[j] -= current + next;
  38944. if (n--) {
  38945. j += 2;
  38946. current = beta * x[j + 1];
  38947. x[j] -= current + next;
  38948. } else {
  38949. break;
  38950. }
  38951. }
  38952. // step 6
  38953. if (len !== 0) {
  38954. j = offset + 1;
  38955. current = alpha * x[j - 1];
  38956. for (n = len; n--; j += 2) {
  38957. next = alpha * x[j + 1];
  38958. x[j] -= current + next;
  38959. if (n--) {
  38960. j += 2;
  38961. current = alpha * x[j + 1];
  38962. x[j] -= current + next;
  38963. } else {
  38964. break;
  38965. }
  38966. }
  38967. }
  38968. };
  38969. return IrreversibleTransform;
  38970. })();
  38971. // Section 3.8.1 Reversible 5-3 filter
  38972. var ReversibleTransform = (function ReversibleTransformClosure() {
  38973. function ReversibleTransform() {
  38974. Transform.call(this);
  38975. }
  38976. ReversibleTransform.prototype = Object.create(Transform.prototype);
  38977. ReversibleTransform.prototype.filter =
  38978. function reversibleTransformFilter(x, offset, length) {
  38979. var len = length >> 1;
  38980. offset = offset | 0;
  38981. var j, n;
  38982. for (j = offset, n = len + 1; n--; j += 2) {
  38983. x[j] -= (x[j - 1] + x[j + 1] + 2) >> 2;
  38984. }
  38985. for (j = offset + 1, n = len; n--; j += 2) {
  38986. x[j] += (x[j - 1] + x[j + 1]) >> 1;
  38987. }
  38988. };
  38989. return ReversibleTransform;
  38990. })();
  38991. return JpxImage;
  38992. })();
  38993. var Jbig2Image = (function Jbig2ImageClosure() {
  38994. // Utility data structures
  38995. function ContextCache() {}
  38996. ContextCache.prototype = {
  38997. getContexts: function(id) {
  38998. if (id in this) {
  38999. return this[id];
  39000. }
  39001. return (this[id] = new Int8Array(1 << 16));
  39002. }
  39003. };
  39004. function DecodingContext(data, start, end) {
  39005. this.data = data;
  39006. this.start = start;
  39007. this.end = end;
  39008. }
  39009. DecodingContext.prototype = {
  39010. get decoder() {
  39011. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  39012. return shadow(this, 'decoder', decoder);
  39013. },
  39014. get contextCache() {
  39015. var cache = new ContextCache();
  39016. return shadow(this, 'contextCache', cache);
  39017. }
  39018. };
  39019. // Annex A. Arithmetic Integer Decoding Procedure
  39020. // A.2 Procedure for decoding values
  39021. function decodeInteger(contextCache, procedure, decoder) {
  39022. var contexts = contextCache.getContexts(procedure);
  39023. var prev = 1;
  39024. function readBits(length) {
  39025. var v = 0;
  39026. for (var i = 0; i < length; i++) {
  39027. var bit = decoder.readBit(contexts, prev);
  39028. prev = (prev < 256 ? (prev << 1) | bit :
  39029. (((prev << 1) | bit) & 511) | 256);
  39030. v = (v << 1) | bit;
  39031. }
  39032. return v >>> 0;
  39033. }
  39034. var sign = readBits(1);
  39035. var value = readBits(1) ?
  39036. (readBits(1) ?
  39037. (readBits(1) ?
  39038. (readBits(1) ?
  39039. (readBits(1) ?
  39040. (readBits(32) + 4436) :
  39041. readBits(12) + 340) :
  39042. readBits(8) + 84) :
  39043. readBits(6) + 20) :
  39044. readBits(4) + 4) :
  39045. readBits(2);
  39046. return (sign === 0 ? value : (value > 0 ? -value : null));
  39047. }
  39048. // A.3 The IAID decoding procedure
  39049. function decodeIAID(contextCache, decoder, codeLength) {
  39050. var contexts = contextCache.getContexts('IAID');
  39051. var prev = 1;
  39052. for (var i = 0; i < codeLength; i++) {
  39053. var bit = decoder.readBit(contexts, prev);
  39054. prev = (prev << 1) | bit;
  39055. }
  39056. if (codeLength < 31) {
  39057. return prev & ((1 << codeLength) - 1);
  39058. }
  39059. return prev & 0x7FFFFFFF;
  39060. }
  39061. // 7.3 Segment types
  39062. var SegmentTypes = [
  39063. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  39064. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  39065. null, null, null, null, null, 'patternDictionary', null, null, null,
  39066. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  39067. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  39068. null, null, null, null, null, 'IntermediateGenericRegion', null,
  39069. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  39070. 'IntermediateGenericRefinementRegion', null,
  39071. 'ImmediateGenericRefinementRegion',
  39072. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  39073. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  39074. 'Tables', null, null, null, null, null, null, null, null,
  39075. 'Extension'
  39076. ];
  39077. var CodingTemplates = [
  39078. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  39079. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: 2, y: -1},
  39080. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  39081. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  39082. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  39083. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  39084. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  39085. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  39086. {x: -1, y: 0}],
  39087. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  39088. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  39089. ];
  39090. var RefinementTemplates = [
  39091. {
  39092. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  39093. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  39094. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  39095. },
  39096. {
  39097. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  39098. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  39099. {x: 0, y: 1}, {x: 1, y: 1}]
  39100. }
  39101. ];
  39102. var ReusedContexts = [
  39103. 0x1CD3, // '00111001101' (template) + '0011' (at),
  39104. 0x079A, // '001111001101' + '0',
  39105. 0x00E3, // '001110001' + '1',
  39106. 0x018B // '011000101' + '1'
  39107. ];
  39108. var RefinementReusedContexts = [
  39109. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  39110. 0x0008 // '0000' + '001000'
  39111. ];
  39112. // 6.2 Generic Region Decoding Procedure
  39113. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  39114. decodingContext) {
  39115. if (mmr) {
  39116. error('JBIG2 error: MMR encoding is not supported');
  39117. }
  39118. var useskip = !!skip;
  39119. var template = CodingTemplates[templateIndex].concat(at);
  39120. // Sorting is non-standard, and it is not required. But sorting increases
  39121. // the number of template bits that can be reused from the previous
  39122. // contextLabel in the main loop.
  39123. template.sort(function (a, b) {
  39124. return (a.y - b.y) || (a.x - b.x);
  39125. });
  39126. var templateLength = template.length;
  39127. var templateX = new Int8Array(templateLength);
  39128. var templateY = new Int8Array(templateLength);
  39129. var changingTemplateEntries = [];
  39130. var reuseMask = 0, minX = 0, maxX = 0, minY = 0;
  39131. var c, k;
  39132. for (k = 0; k < templateLength; k++) {
  39133. templateX[k] = template[k].x;
  39134. templateY[k] = template[k].y;
  39135. minX = Math.min(minX, template[k].x);
  39136. maxX = Math.max(maxX, template[k].x);
  39137. minY = Math.min(minY, template[k].y);
  39138. // Check if the template pixel appears in two consecutive context labels,
  39139. // so it can be reused. Otherwise, we add it to the list of changing
  39140. // template entries.
  39141. if (k < templateLength - 1 &&
  39142. template[k].y === template[k + 1].y &&
  39143. template[k].x === template[k + 1].x - 1) {
  39144. reuseMask |= 1 << (templateLength - 1 - k);
  39145. } else {
  39146. changingTemplateEntries.push(k);
  39147. }
  39148. }
  39149. var changingEntriesLength = changingTemplateEntries.length;
  39150. var changingTemplateX = new Int8Array(changingEntriesLength);
  39151. var changingTemplateY = new Int8Array(changingEntriesLength);
  39152. var changingTemplateBit = new Uint16Array(changingEntriesLength);
  39153. for (c = 0; c < changingEntriesLength; c++) {
  39154. k = changingTemplateEntries[c];
  39155. changingTemplateX[c] = template[k].x;
  39156. changingTemplateY[c] = template[k].y;
  39157. changingTemplateBit[c] = 1 << (templateLength - 1 - k);
  39158. }
  39159. // Get the safe bounding box edges from the width, height, minX, maxX, minY
  39160. var sbb_left = -minX;
  39161. var sbb_top = -minY;
  39162. var sbb_right = width - maxX;
  39163. var pseudoPixelContext = ReusedContexts[templateIndex];
  39164. var row = new Uint8Array(width);
  39165. var bitmap = [];
  39166. var decoder = decodingContext.decoder;
  39167. var contexts = decodingContext.contextCache.getContexts('GB');
  39168. var ltp = 0, j, i0, j0, contextLabel = 0, bit, shift;
  39169. for (var i = 0; i < height; i++) {
  39170. if (prediction) {
  39171. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  39172. ltp ^= sltp;
  39173. if (ltp) {
  39174. bitmap.push(row); // duplicate previous row
  39175. continue;
  39176. }
  39177. }
  39178. row = new Uint8Array(row);
  39179. bitmap.push(row);
  39180. for (j = 0; j < width; j++) {
  39181. if (useskip && skip[i][j]) {
  39182. row[j] = 0;
  39183. continue;
  39184. }
  39185. // Are we in the middle of a scanline, so we can reuse contextLabel
  39186. // bits?
  39187. if (j >= sbb_left && j < sbb_right && i >= sbb_top) {
  39188. // If yes, we can just shift the bits that are reusable and only
  39189. // fetch the remaining ones.
  39190. contextLabel = (contextLabel << 1) & reuseMask;
  39191. for (k = 0; k < changingEntriesLength; k++) {
  39192. i0 = i + changingTemplateY[k];
  39193. j0 = j + changingTemplateX[k];
  39194. bit = bitmap[i0][j0];
  39195. if (bit) {
  39196. bit = changingTemplateBit[k];
  39197. contextLabel |= bit;
  39198. }
  39199. }
  39200. } else {
  39201. // compute the contextLabel from scratch
  39202. contextLabel = 0;
  39203. shift = templateLength - 1;
  39204. for (k = 0; k < templateLength; k++, shift--) {
  39205. j0 = j + templateX[k];
  39206. if (j0 >= 0 && j0 < width) {
  39207. i0 = i + templateY[k];
  39208. if (i0 >= 0) {
  39209. bit = bitmap[i0][j0];
  39210. if (bit) {
  39211. contextLabel |= bit << shift;
  39212. }
  39213. }
  39214. }
  39215. }
  39216. }
  39217. var pixel = decoder.readBit(contexts, contextLabel);
  39218. row[j] = pixel;
  39219. }
  39220. }
  39221. return bitmap;
  39222. }
  39223. // 6.3.2 Generic Refinement Region Decoding Procedure
  39224. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  39225. offsetX, offsetY, prediction, at,
  39226. decodingContext) {
  39227. var codingTemplate = RefinementTemplates[templateIndex].coding;
  39228. if (templateIndex === 0) {
  39229. codingTemplate = codingTemplate.concat([at[0]]);
  39230. }
  39231. var codingTemplateLength = codingTemplate.length;
  39232. var codingTemplateX = new Int32Array(codingTemplateLength);
  39233. var codingTemplateY = new Int32Array(codingTemplateLength);
  39234. var k;
  39235. for (k = 0; k < codingTemplateLength; k++) {
  39236. codingTemplateX[k] = codingTemplate[k].x;
  39237. codingTemplateY[k] = codingTemplate[k].y;
  39238. }
  39239. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  39240. if (templateIndex === 0) {
  39241. referenceTemplate = referenceTemplate.concat([at[1]]);
  39242. }
  39243. var referenceTemplateLength = referenceTemplate.length;
  39244. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  39245. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  39246. for (k = 0; k < referenceTemplateLength; k++) {
  39247. referenceTemplateX[k] = referenceTemplate[k].x;
  39248. referenceTemplateY[k] = referenceTemplate[k].y;
  39249. }
  39250. var referenceWidth = referenceBitmap[0].length;
  39251. var referenceHeight = referenceBitmap.length;
  39252. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  39253. var bitmap = [];
  39254. var decoder = decodingContext.decoder;
  39255. var contexts = decodingContext.contextCache.getContexts('GR');
  39256. var ltp = 0;
  39257. for (var i = 0; i < height; i++) {
  39258. if (prediction) {
  39259. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  39260. ltp ^= sltp;
  39261. if (ltp) {
  39262. error('JBIG2 error: prediction is not supported');
  39263. }
  39264. }
  39265. var row = new Uint8Array(width);
  39266. bitmap.push(row);
  39267. for (var j = 0; j < width; j++) {
  39268. var i0, j0;
  39269. var contextLabel = 0;
  39270. for (k = 0; k < codingTemplateLength; k++) {
  39271. i0 = i + codingTemplateY[k];
  39272. j0 = j + codingTemplateX[k];
  39273. if (i0 < 0 || j0 < 0 || j0 >= width) {
  39274. contextLabel <<= 1; // out of bound pixel
  39275. } else {
  39276. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  39277. }
  39278. }
  39279. for (k = 0; k < referenceTemplateLength; k++) {
  39280. i0 = i + referenceTemplateY[k] + offsetY;
  39281. j0 = j + referenceTemplateX[k] + offsetX;
  39282. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 ||
  39283. j0 >= referenceWidth) {
  39284. contextLabel <<= 1; // out of bound pixel
  39285. } else {
  39286. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  39287. }
  39288. }
  39289. var pixel = decoder.readBit(contexts, contextLabel);
  39290. row[j] = pixel;
  39291. }
  39292. }
  39293. return bitmap;
  39294. }
  39295. // 6.5.5 Decoding the symbol dictionary
  39296. function decodeSymbolDictionary(huffman, refinement, symbols,
  39297. numberOfNewSymbols, numberOfExportedSymbols,
  39298. huffmanTables, templateIndex, at,
  39299. refinementTemplateIndex, refinementAt,
  39300. decodingContext) {
  39301. if (huffman) {
  39302. error('JBIG2 error: huffman is not supported');
  39303. }
  39304. var newSymbols = [];
  39305. var currentHeight = 0;
  39306. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  39307. var decoder = decodingContext.decoder;
  39308. var contextCache = decodingContext.contextCache;
  39309. while (newSymbols.length < numberOfNewSymbols) {
  39310. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  39311. currentHeight += deltaHeight;
  39312. var currentWidth = 0;
  39313. var totalWidth = 0;
  39314. while (true) {
  39315. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  39316. if (deltaWidth === null) {
  39317. break; // OOB
  39318. }
  39319. currentWidth += deltaWidth;
  39320. totalWidth += currentWidth;
  39321. var bitmap;
  39322. if (refinement) {
  39323. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  39324. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  39325. if (numberOfInstances > 1) {
  39326. bitmap = decodeTextRegion(huffman, refinement,
  39327. currentWidth, currentHeight, 0,
  39328. numberOfInstances, 1, //strip size
  39329. symbols.concat(newSymbols),
  39330. symbolCodeLength,
  39331. 0, //transposed
  39332. 0, //ds offset
  39333. 1, //top left 7.4.3.1.1
  39334. 0, //OR operator
  39335. huffmanTables,
  39336. refinementTemplateIndex, refinementAt,
  39337. decodingContext);
  39338. } else {
  39339. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39340. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39341. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39342. var symbol = (symbolId < symbols.length ? symbols[symbolId] :
  39343. newSymbols[symbolId - symbols.length]);
  39344. bitmap = decodeRefinement(currentWidth, currentHeight,
  39345. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  39346. decodingContext);
  39347. }
  39348. } else {
  39349. // 6.5.8.1 Direct-coded symbol bitmap
  39350. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  39351. templateIndex, false, null, at, decodingContext);
  39352. }
  39353. newSymbols.push(bitmap);
  39354. }
  39355. }
  39356. // 6.5.10 Exported symbols
  39357. var exportedSymbols = [];
  39358. var flags = [], currentFlag = false;
  39359. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  39360. while (flags.length < totalSymbolsLength) {
  39361. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  39362. while (runLength--) {
  39363. flags.push(currentFlag);
  39364. }
  39365. currentFlag = !currentFlag;
  39366. }
  39367. for (var i = 0, ii = symbols.length; i < ii; i++) {
  39368. if (flags[i]) {
  39369. exportedSymbols.push(symbols[i]);
  39370. }
  39371. }
  39372. for (var j = 0; j < numberOfNewSymbols; i++, j++) {
  39373. if (flags[i]) {
  39374. exportedSymbols.push(newSymbols[j]);
  39375. }
  39376. }
  39377. return exportedSymbols;
  39378. }
  39379. function decodeTextRegion(huffman, refinement, width, height,
  39380. defaultPixelValue, numberOfSymbolInstances,
  39381. stripSize, inputSymbols, symbolCodeLength,
  39382. transposed, dsOffset, referenceCorner,
  39383. combinationOperator, huffmanTables,
  39384. refinementTemplateIndex, refinementAt,
  39385. decodingContext) {
  39386. if (huffman) {
  39387. error('JBIG2 error: huffman is not supported');
  39388. }
  39389. // Prepare bitmap
  39390. var bitmap = [];
  39391. var i, row;
  39392. for (i = 0; i < height; i++) {
  39393. row = new Uint8Array(width);
  39394. if (defaultPixelValue) {
  39395. for (var j = 0; j < width; j++) {
  39396. row[j] = defaultPixelValue;
  39397. }
  39398. }
  39399. bitmap.push(row);
  39400. }
  39401. var decoder = decodingContext.decoder;
  39402. var contextCache = decodingContext.contextCache;
  39403. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39404. var firstS = 0;
  39405. i = 0;
  39406. while (i < numberOfSymbolInstances) {
  39407. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39408. stripT += deltaT;
  39409. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  39410. firstS += deltaFirstS;
  39411. var currentS = firstS;
  39412. do {
  39413. var currentT = (stripSize == 1 ? 0 :
  39414. decodeInteger(contextCache, 'IAIT', decoder)); // 6.4.9
  39415. var t = stripSize * stripT + currentT;
  39416. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39417. var applyRefinement = (refinement &&
  39418. decodeInteger(contextCache, 'IARI', decoder));
  39419. var symbolBitmap = inputSymbols[symbolId];
  39420. var symbolWidth = symbolBitmap[0].length;
  39421. var symbolHeight = symbolBitmap.length;
  39422. if (applyRefinement) {
  39423. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  39424. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  39425. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39426. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39427. symbolWidth += rdw;
  39428. symbolHeight += rdh;
  39429. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  39430. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  39431. (rdh >> 1) + rdy, false, refinementAt,
  39432. decodingContext);
  39433. }
  39434. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  39435. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  39436. var s2, t2, symbolRow;
  39437. if (transposed) {
  39438. // Place Symbol Bitmap from T1,S1
  39439. for (s2 = 0; s2 < symbolHeight; s2++) {
  39440. row = bitmap[offsetS + s2];
  39441. if (!row) {
  39442. continue;
  39443. }
  39444. symbolRow = symbolBitmap[s2];
  39445. // To ignore Parts of Symbol bitmap which goes
  39446. // outside bitmap region
  39447. var maxWidth = Math.min(width - offsetT, symbolWidth);
  39448. switch (combinationOperator) {
  39449. case 0: // OR
  39450. for (t2 = 0; t2 < maxWidth; t2++) {
  39451. row[offsetT + t2] |= symbolRow[t2];
  39452. }
  39453. break;
  39454. case 2: // XOR
  39455. for (t2 = 0; t2 < maxWidth; t2++) {
  39456. row[offsetT + t2] ^= symbolRow[t2];
  39457. }
  39458. break;
  39459. default:
  39460. error('JBIG2 error: operator ' + combinationOperator +
  39461. ' is not supported');
  39462. }
  39463. }
  39464. currentS += symbolHeight - 1;
  39465. } else {
  39466. for (t2 = 0; t2 < symbolHeight; t2++) {
  39467. row = bitmap[offsetT + t2];
  39468. if (!row) {
  39469. continue;
  39470. }
  39471. symbolRow = symbolBitmap[t2];
  39472. switch (combinationOperator) {
  39473. case 0: // OR
  39474. for (s2 = 0; s2 < symbolWidth; s2++) {
  39475. row[offsetS + s2] |= symbolRow[s2];
  39476. }
  39477. break;
  39478. case 2: // XOR
  39479. for (s2 = 0; s2 < symbolWidth; s2++) {
  39480. row[offsetS + s2] ^= symbolRow[s2];
  39481. }
  39482. break;
  39483. default:
  39484. error('JBIG2 error: operator ' + combinationOperator +
  39485. ' is not supported');
  39486. }
  39487. }
  39488. currentS += symbolWidth - 1;
  39489. }
  39490. i++;
  39491. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  39492. if (deltaS === null) {
  39493. break; // OOB
  39494. }
  39495. currentS += deltaS + dsOffset;
  39496. } while (true);
  39497. }
  39498. return bitmap;
  39499. }
  39500. function readSegmentHeader(data, start) {
  39501. var segmentHeader = {};
  39502. segmentHeader.number = readUint32(data, start);
  39503. var flags = data[start + 4];
  39504. var segmentType = flags & 0x3F;
  39505. if (!SegmentTypes[segmentType]) {
  39506. error('JBIG2 error: invalid segment type: ' + segmentType);
  39507. }
  39508. segmentHeader.type = segmentType;
  39509. segmentHeader.typeName = SegmentTypes[segmentType];
  39510. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  39511. var pageAssociationFieldSize = !!(flags & 0x40);
  39512. var referredFlags = data[start + 5];
  39513. var referredToCount = (referredFlags >> 5) & 7;
  39514. var retainBits = [referredFlags & 31];
  39515. var position = start + 6;
  39516. if (referredFlags == 7) {
  39517. referredToCount = readUint32(data, position - 1) & 0x1FFFFFFF;
  39518. position += 3;
  39519. var bytes = (referredToCount + 7) >> 3;
  39520. retainBits[0] = data[position++];
  39521. while (--bytes > 0) {
  39522. retainBits.push(data[position++]);
  39523. }
  39524. } else if (referredFlags == 5 || referredFlags == 6) {
  39525. error('JBIG2 error: invalid referred-to flags');
  39526. }
  39527. segmentHeader.retainBits = retainBits;
  39528. var referredToSegmentNumberSize = (segmentHeader.number <= 256 ? 1 :
  39529. (segmentHeader.number <= 65536 ? 2 : 4));
  39530. var referredTo = [];
  39531. var i, ii;
  39532. for (i = 0; i < referredToCount; i++) {
  39533. var number = (referredToSegmentNumberSize == 1 ? data[position] :
  39534. (referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  39535. readUint32(data, position)));
  39536. referredTo.push(number);
  39537. position += referredToSegmentNumberSize;
  39538. }
  39539. segmentHeader.referredTo = referredTo;
  39540. if (!pageAssociationFieldSize) {
  39541. segmentHeader.pageAssociation = data[position++];
  39542. } else {
  39543. segmentHeader.pageAssociation = readUint32(data, position);
  39544. position += 4;
  39545. }
  39546. segmentHeader.length = readUint32(data, position);
  39547. position += 4;
  39548. if (segmentHeader.length == 0xFFFFFFFF) {
  39549. // 7.2.7 Segment data length, unknown segment length
  39550. if (segmentType === 38) { // ImmediateGenericRegion
  39551. var genericRegionInfo = readRegionSegmentInformation(data, position);
  39552. var genericRegionSegmentFlags = data[position +
  39553. RegionSegmentInformationFieldLength];
  39554. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  39555. // searching for the segment end
  39556. var searchPatternLength = 6;
  39557. var searchPattern = new Uint8Array(searchPatternLength);
  39558. if (!genericRegionMmr) {
  39559. searchPattern[0] = 0xFF;
  39560. searchPattern[1] = 0xAC;
  39561. }
  39562. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  39563. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  39564. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  39565. searchPattern[5] = genericRegionInfo.height & 0xFF;
  39566. for (i = position, ii = data.length; i < ii; i++) {
  39567. var j = 0;
  39568. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  39569. j++;
  39570. }
  39571. if (j == searchPatternLength) {
  39572. segmentHeader.length = i + searchPatternLength;
  39573. break;
  39574. }
  39575. }
  39576. if (segmentHeader.length == 0xFFFFFFFF) {
  39577. error('JBIG2 error: segment end was not found');
  39578. }
  39579. } else {
  39580. error('JBIG2 error: invalid unknown segment length');
  39581. }
  39582. }
  39583. segmentHeader.headerEnd = position;
  39584. return segmentHeader;
  39585. }
  39586. function readSegments(header, data, start, end) {
  39587. var segments = [];
  39588. var position = start;
  39589. while (position < end) {
  39590. var segmentHeader = readSegmentHeader(data, position);
  39591. position = segmentHeader.headerEnd;
  39592. var segment = {
  39593. header: segmentHeader,
  39594. data: data
  39595. };
  39596. if (!header.randomAccess) {
  39597. segment.start = position;
  39598. position += segmentHeader.length;
  39599. segment.end = position;
  39600. }
  39601. segments.push(segment);
  39602. if (segmentHeader.type == 51) {
  39603. break; // end of file is found
  39604. }
  39605. }
  39606. if (header.randomAccess) {
  39607. for (var i = 0, ii = segments.length; i < ii; i++) {
  39608. segments[i].start = position;
  39609. position += segments[i].header.length;
  39610. segments[i].end = position;
  39611. }
  39612. }
  39613. return segments;
  39614. }
  39615. // 7.4.1 Region segment information field
  39616. function readRegionSegmentInformation(data, start) {
  39617. return {
  39618. width: readUint32(data, start),
  39619. height: readUint32(data, start + 4),
  39620. x: readUint32(data, start + 8),
  39621. y: readUint32(data, start + 12),
  39622. combinationOperator: data[start + 16] & 7
  39623. };
  39624. }
  39625. var RegionSegmentInformationFieldLength = 17;
  39626. function processSegment(segment, visitor) {
  39627. var header = segment.header;
  39628. var data = segment.data, position = segment.start, end = segment.end;
  39629. var args, at, i, atLength;
  39630. switch (header.type) {
  39631. case 0: // SymbolDictionary
  39632. // 7.4.2 Symbol dictionary segment syntax
  39633. var dictionary = {};
  39634. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  39635. dictionary.huffman = !!(dictionaryFlags & 1);
  39636. dictionary.refinement = !!(dictionaryFlags & 2);
  39637. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  39638. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  39639. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  39640. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  39641. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  39642. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  39643. dictionary.template = (dictionaryFlags >> 10) & 3;
  39644. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  39645. position += 2;
  39646. if (!dictionary.huffman) {
  39647. atLength = dictionary.template === 0 ? 4 : 1;
  39648. at = [];
  39649. for (i = 0; i < atLength; i++) {
  39650. at.push({
  39651. x: readInt8(data, position),
  39652. y: readInt8(data, position + 1)
  39653. });
  39654. position += 2;
  39655. }
  39656. dictionary.at = at;
  39657. }
  39658. if (dictionary.refinement && !dictionary.refinementTemplate) {
  39659. at = [];
  39660. for (i = 0; i < 2; i++) {
  39661. at.push({
  39662. x: readInt8(data, position),
  39663. y: readInt8(data, position + 1)
  39664. });
  39665. position += 2;
  39666. }
  39667. dictionary.refinementAt = at;
  39668. }
  39669. dictionary.numberOfExportedSymbols = readUint32(data, position);
  39670. position += 4;
  39671. dictionary.numberOfNewSymbols = readUint32(data, position);
  39672. position += 4;
  39673. args = [dictionary, header.number, header.referredTo,
  39674. data, position, end];
  39675. break;
  39676. case 6: // ImmediateTextRegion
  39677. case 7: // ImmediateLosslessTextRegion
  39678. var textRegion = {};
  39679. textRegion.info = readRegionSegmentInformation(data, position);
  39680. position += RegionSegmentInformationFieldLength;
  39681. var textRegionSegmentFlags = readUint16(data, position);
  39682. position += 2;
  39683. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  39684. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  39685. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  39686. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  39687. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  39688. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  39689. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  39690. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  39691. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  39692. if (textRegion.huffman) {
  39693. var textRegionHuffmanFlags = readUint16(data, position);
  39694. position += 2;
  39695. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  39696. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  39697. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  39698. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  39699. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  39700. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  39701. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  39702. textRegion.huffmanRefinementSizeSelector =
  39703. !!(textRegionHuffmanFlags & 14);
  39704. }
  39705. if (textRegion.refinement && !textRegion.refinementTemplate) {
  39706. at = [];
  39707. for (i = 0; i < 2; i++) {
  39708. at.push({
  39709. x: readInt8(data, position),
  39710. y: readInt8(data, position + 1)
  39711. });
  39712. position += 2;
  39713. }
  39714. textRegion.refinementAt = at;
  39715. }
  39716. textRegion.numberOfSymbolInstances = readUint32(data, position);
  39717. position += 4;
  39718. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  39719. if (textRegion.huffman) {
  39720. error('JBIG2 error: huffman is not supported');
  39721. }
  39722. args = [textRegion, header.referredTo, data, position, end];
  39723. break;
  39724. case 38: // ImmediateGenericRegion
  39725. case 39: // ImmediateLosslessGenericRegion
  39726. var genericRegion = {};
  39727. genericRegion.info = readRegionSegmentInformation(data, position);
  39728. position += RegionSegmentInformationFieldLength;
  39729. var genericRegionSegmentFlags = data[position++];
  39730. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  39731. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  39732. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  39733. if (!genericRegion.mmr) {
  39734. atLength = genericRegion.template === 0 ? 4 : 1;
  39735. at = [];
  39736. for (i = 0; i < atLength; i++) {
  39737. at.push({
  39738. x: readInt8(data, position),
  39739. y: readInt8(data, position + 1)
  39740. });
  39741. position += 2;
  39742. }
  39743. genericRegion.at = at;
  39744. }
  39745. args = [genericRegion, data, position, end];
  39746. break;
  39747. case 48: // PageInformation
  39748. var pageInfo = {
  39749. width: readUint32(data, position),
  39750. height: readUint32(data, position + 4),
  39751. resolutionX: readUint32(data, position + 8),
  39752. resolutionY: readUint32(data, position + 12)
  39753. };
  39754. if (pageInfo.height == 0xFFFFFFFF) {
  39755. delete pageInfo.height;
  39756. }
  39757. var pageSegmentFlags = data[position + 16];
  39758. var pageStripingInformatiom = readUint16(data, position + 17);
  39759. pageInfo.lossless = !!(pageSegmentFlags & 1);
  39760. pageInfo.refinement = !!(pageSegmentFlags & 2);
  39761. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  39762. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  39763. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  39764. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  39765. args = [pageInfo];
  39766. break;
  39767. case 49: // EndOfPage
  39768. break;
  39769. case 50: // EndOfStripe
  39770. break;
  39771. case 51: // EndOfFile
  39772. break;
  39773. case 62: // 7.4.15 defines 2 extension types which
  39774. // are comments and can be ignored.
  39775. break;
  39776. default:
  39777. error('JBIG2 error: segment type ' + header.typeName + '(' +
  39778. header.type + ') is not implemented');
  39779. }
  39780. var callbackName = 'on' + header.typeName;
  39781. if (callbackName in visitor) {
  39782. visitor[callbackName].apply(visitor, args);
  39783. }
  39784. }
  39785. function processSegments(segments, visitor) {
  39786. for (var i = 0, ii = segments.length; i < ii; i++) {
  39787. processSegment(segments[i], visitor);
  39788. }
  39789. }
  39790. function parseJbig2(data, start, end) {
  39791. var position = start;
  39792. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  39793. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  39794. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  39795. data[position + 6] != 0x1A || data[position + 7] != 0x0A) {
  39796. error('JBIG2 error: invalid header');
  39797. }
  39798. var header = {};
  39799. position += 8;
  39800. var flags = data[position++];
  39801. header.randomAccess = !(flags & 1);
  39802. if (!(flags & 2)) {
  39803. header.numberOfPages = readUint32(data, position);
  39804. position += 4;
  39805. }
  39806. var segments = readSegments(header, data, position, end);
  39807. error('Not implemented');
  39808. // processSegments(segments, new SimpleSegmentVisitor());
  39809. }
  39810. function parseJbig2Chunks(chunks) {
  39811. var visitor = new SimpleSegmentVisitor();
  39812. for (var i = 0, ii = chunks.length; i < ii; i++) {
  39813. var chunk = chunks[i];
  39814. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  39815. processSegments(segments, visitor);
  39816. }
  39817. return visitor.buffer;
  39818. }
  39819. function SimpleSegmentVisitor() {}
  39820. SimpleSegmentVisitor.prototype = {
  39821. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  39822. this.currentPageInfo = info;
  39823. var rowSize = (info.width + 7) >> 3;
  39824. var buffer = new Uint8Array(rowSize * info.height);
  39825. // The contents of ArrayBuffers are initialized to 0.
  39826. // Fill the buffer with 0xFF only if info.defaultPixelValue is set
  39827. if (info.defaultPixelValue) {
  39828. for (var i = 0, ii = buffer.length; i < ii; i++) {
  39829. buffer[i] = 0xFF;
  39830. }
  39831. }
  39832. this.buffer = buffer;
  39833. },
  39834. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  39835. var pageInfo = this.currentPageInfo;
  39836. var width = regionInfo.width, height = regionInfo.height;
  39837. var rowSize = (pageInfo.width + 7) >> 3;
  39838. var combinationOperator = pageInfo.combinationOperatorOverride ?
  39839. regionInfo.combinationOperator : pageInfo.combinationOperator;
  39840. var buffer = this.buffer;
  39841. var mask0 = 128 >> (regionInfo.x & 7);
  39842. var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
  39843. var i, j, mask, offset;
  39844. switch (combinationOperator) {
  39845. case 0: // OR
  39846. for (i = 0; i < height; i++) {
  39847. mask = mask0;
  39848. offset = offset0;
  39849. for (j = 0; j < width; j++) {
  39850. if (bitmap[i][j]) {
  39851. buffer[offset] |= mask;
  39852. }
  39853. mask >>= 1;
  39854. if (!mask) {
  39855. mask = 128;
  39856. offset++;
  39857. }
  39858. }
  39859. offset0 += rowSize;
  39860. }
  39861. break;
  39862. case 2: // XOR
  39863. for (i = 0; i < height; i++) {
  39864. mask = mask0;
  39865. offset = offset0;
  39866. for (j = 0; j < width; j++) {
  39867. if (bitmap[i][j]) {
  39868. buffer[offset] ^= mask;
  39869. }
  39870. mask >>= 1;
  39871. if (!mask) {
  39872. mask = 128;
  39873. offset++;
  39874. }
  39875. }
  39876. offset0 += rowSize;
  39877. }
  39878. break;
  39879. default:
  39880. error('JBIG2 error: operator ' + combinationOperator +
  39881. ' is not supported');
  39882. }
  39883. },
  39884. onImmediateGenericRegion:
  39885. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  39886. start, end) {
  39887. var regionInfo = region.info;
  39888. var decodingContext = new DecodingContext(data, start, end);
  39889. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  39890. region.template, region.prediction, null,
  39891. region.at, decodingContext);
  39892. this.drawBitmap(regionInfo, bitmap);
  39893. },
  39894. onImmediateLosslessGenericRegion:
  39895. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  39896. this.onImmediateGenericRegion.apply(this, arguments);
  39897. },
  39898. onSymbolDictionary:
  39899. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  39900. currentSegment,
  39901. referredSegments,
  39902. data, start, end) {
  39903. var huffmanTables;
  39904. if (dictionary.huffman) {
  39905. error('JBIG2 error: huffman is not supported');
  39906. }
  39907. // Combines exported symbols from all referred segments
  39908. var symbols = this.symbols;
  39909. if (!symbols) {
  39910. this.symbols = symbols = {};
  39911. }
  39912. var inputSymbols = [];
  39913. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39914. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39915. }
  39916. var decodingContext = new DecodingContext(data, start, end);
  39917. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  39918. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  39919. dictionary.numberOfExportedSymbols, huffmanTables,
  39920. dictionary.template, dictionary.at,
  39921. dictionary.refinementTemplate, dictionary.refinementAt,
  39922. decodingContext);
  39923. },
  39924. onImmediateTextRegion:
  39925. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  39926. referredSegments,
  39927. data, start, end) {
  39928. var regionInfo = region.info;
  39929. var huffmanTables;
  39930. // Combines exported symbols from all referred segments
  39931. var symbols = this.symbols;
  39932. var inputSymbols = [];
  39933. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39934. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39935. }
  39936. var symbolCodeLength = log2(inputSymbols.length);
  39937. var decodingContext = new DecodingContext(data, start, end);
  39938. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  39939. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  39940. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  39941. symbolCodeLength, region.transposed, region.dsOffset,
  39942. region.referenceCorner, region.combinationOperator, huffmanTables,
  39943. region.refinementTemplate, region.refinementAt, decodingContext);
  39944. this.drawBitmap(regionInfo, bitmap);
  39945. },
  39946. onImmediateLosslessTextRegion:
  39947. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  39948. this.onImmediateTextRegion.apply(this, arguments);
  39949. }
  39950. };
  39951. function Jbig2Image() {}
  39952. Jbig2Image.prototype = {
  39953. parseChunks: function Jbig2Image_parseChunks(chunks) {
  39954. return parseJbig2Chunks(chunks);
  39955. }
  39956. };
  39957. return Jbig2Image;
  39958. })();
  39959. var bidi = PDFJS.bidi = (function bidiClosure() {
  39960. // Character types for symbols from 0000 to 00FF.
  39961. var baseTypes = [
  39962. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  39963. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39964. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  39965. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  39966. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  39967. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39968. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  39969. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39970. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39971. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  39972. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39973. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39974. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  39975. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  39976. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39977. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39978. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39979. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39980. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  39981. ];
  39982. // Character types for symbols from 0600 to 06FF
  39983. var arabicTypes = [
  39984. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39985. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL',
  39986. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39987. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39988. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39989. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39990. 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39991. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39992. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  39993. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39994. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39995. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39996. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39997. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39998. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39999. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  40000. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  40001. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  40002. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  40003. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  40004. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  40005. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  40006. ];
  40007. function isOdd(i) {
  40008. return (i & 1) !== 0;
  40009. }
  40010. function isEven(i) {
  40011. return (i & 1) === 0;
  40012. }
  40013. function findUnequal(arr, start, value) {
  40014. for (var j = start, jj = arr.length; j < jj; ++j) {
  40015. if (arr[j] != value) {
  40016. return j;
  40017. }
  40018. }
  40019. return j;
  40020. }
  40021. function setValues(arr, start, end, value) {
  40022. for (var j = start; j < end; ++j) {
  40023. arr[j] = value;
  40024. }
  40025. }
  40026. function reverseValues(arr, start, end) {
  40027. for (var i = start, j = end - 1; i < j; ++i, --j) {
  40028. var temp = arr[i];
  40029. arr[i] = arr[j];
  40030. arr[j] = temp;
  40031. }
  40032. }
  40033. function createBidiText(str, isLTR, vertical) {
  40034. return {
  40035. str: str,
  40036. dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
  40037. };
  40038. }
  40039. // These are used in bidi(), which is called frequently. We re-use them on
  40040. // each call to avoid unnecessary allocations.
  40041. var chars = [];
  40042. var types = [];
  40043. function bidi(str, startLevel, vertical) {
  40044. var isLTR = true;
  40045. var strLength = str.length;
  40046. if (strLength === 0 || vertical) {
  40047. return createBidiText(str, isLTR, vertical);
  40048. }
  40049. // Get types and fill arrays
  40050. chars.length = 0;
  40051. types.length = 0;
  40052. var numBidi = 0;
  40053. var i, ii;
  40054. for (i = 0; i < strLength; ++i) {
  40055. chars[i] = str.charAt(i);
  40056. var charCode = str.charCodeAt(i);
  40057. var charType = 'L';
  40058. if (charCode <= 0x00ff) {
  40059. charType = baseTypes[charCode];
  40060. } else if (0x0590 <= charCode && charCode <= 0x05f4) {
  40061. charType = 'R';
  40062. } else if (0x0600 <= charCode && charCode <= 0x06ff) {
  40063. charType = arabicTypes[charCode & 0xff];
  40064. } else if (0x0700 <= charCode && charCode <= 0x08AC) {
  40065. charType = 'AL';
  40066. }
  40067. if (charType == 'R' || charType == 'AL' || charType == 'AN') {
  40068. numBidi++;
  40069. }
  40070. types[i] = charType;
  40071. }
  40072. // Detect the bidi method
  40073. // - If there are no rtl characters then no bidi needed
  40074. // - If less than 30% chars are rtl then string is primarily ltr
  40075. // - If more than 30% chars are rtl then string is primarily rtl
  40076. if (numBidi === 0) {
  40077. isLTR = true;
  40078. return createBidiText(str, isLTR);
  40079. }
  40080. if (startLevel == -1) {
  40081. if ((strLength / numBidi) < 0.3) {
  40082. isLTR = true;
  40083. startLevel = 0;
  40084. } else {
  40085. isLTR = false;
  40086. startLevel = 1;
  40087. }
  40088. }
  40089. var levels = [];
  40090. for (i = 0; i < strLength; ++i) {
  40091. levels[i] = startLevel;
  40092. }
  40093. /*
  40094. X1-X10: skip most of this, since we are NOT doing the embeddings.
  40095. */
  40096. var e = (isOdd(startLevel) ? 'R' : 'L');
  40097. var sor = e;
  40098. var eor = sor;
  40099. /*
  40100. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  40101. type of the NSM to the type of the previous character. If the NSM is at the
  40102. start of the level run, it will get the type of sor.
  40103. */
  40104. var lastType = sor;
  40105. for (i = 0; i < strLength; ++i) {
  40106. if (types[i] == 'NSM') {
  40107. types[i] = lastType;
  40108. } else {
  40109. lastType = types[i];
  40110. }
  40111. }
  40112. /*
  40113. W2. Search backwards from each instance of a European number until the
  40114. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  40115. the type of the European number to Arabic number.
  40116. */
  40117. lastType = sor;
  40118. var t;
  40119. for (i = 0; i < strLength; ++i) {
  40120. t = types[i];
  40121. if (t == 'EN') {
  40122. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  40123. } else if (t == 'R' || t == 'L' || t == 'AL') {
  40124. lastType = t;
  40125. }
  40126. }
  40127. /*
  40128. W3. Change all ALs to R.
  40129. */
  40130. for (i = 0; i < strLength; ++i) {
  40131. t = types[i];
  40132. if (t == 'AL') {
  40133. types[i] = 'R';
  40134. }
  40135. }
  40136. /*
  40137. W4. A single European separator between two European numbers changes to a
  40138. European number. A single common separator between two numbers of the same
  40139. type changes to that type:
  40140. */
  40141. for (i = 1; i < strLength - 1; ++i) {
  40142. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN') {
  40143. types[i] = 'EN';
  40144. }
  40145. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  40146. types[i + 1] == types[i - 1]) {
  40147. types[i] = types[i - 1];
  40148. }
  40149. }
  40150. /*
  40151. W5. A sequence of European terminators adjacent to European numbers changes
  40152. to all European numbers:
  40153. */
  40154. for (i = 0; i < strLength; ++i) {
  40155. if (types[i] == 'EN') {
  40156. // do before
  40157. var j;
  40158. for (j = i - 1; j >= 0; --j) {
  40159. if (types[j] != 'ET') {
  40160. break;
  40161. }
  40162. types[j] = 'EN';
  40163. }
  40164. // do after
  40165. for (j = i + 1; j < strLength; --j) {
  40166. if (types[j] != 'ET') {
  40167. break;
  40168. }
  40169. types[j] = 'EN';
  40170. }
  40171. }
  40172. }
  40173. /*
  40174. W6. Otherwise, separators and terminators change to Other Neutral:
  40175. */
  40176. for (i = 0; i < strLength; ++i) {
  40177. t = types[i];
  40178. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS') {
  40179. types[i] = 'ON';
  40180. }
  40181. }
  40182. /*
  40183. W7. Search backwards from each instance of a European number until the
  40184. first strong type (R, L, or sor) is found. If an L is found, then change
  40185. the type of the European number to L.
  40186. */
  40187. lastType = sor;
  40188. for (i = 0; i < strLength; ++i) {
  40189. t = types[i];
  40190. if (t == 'EN') {
  40191. types[i] = ((lastType == 'L') ? 'L' : 'EN');
  40192. } else if (t == 'R' || t == 'L') {
  40193. lastType = t;
  40194. }
  40195. }
  40196. /*
  40197. N1. A sequence of neutrals takes the direction of the surrounding strong
  40198. text if the text on both sides has the same direction. European and Arabic
  40199. numbers are treated as though they were R. Start-of-level-run (sor) and
  40200. end-of-level-run (eor) are used at level run boundaries.
  40201. */
  40202. for (i = 0; i < strLength; ++i) {
  40203. if (types[i] == 'ON') {
  40204. var end = findUnequal(types, i + 1, 'ON');
  40205. var before = sor;
  40206. if (i > 0) {
  40207. before = types[i - 1];
  40208. }
  40209. var after = eor;
  40210. if (end + 1 < strLength) {
  40211. after = types[end + 1];
  40212. }
  40213. if (before != 'L') {
  40214. before = 'R';
  40215. }
  40216. if (after != 'L') {
  40217. after = 'R';
  40218. }
  40219. if (before == after) {
  40220. setValues(types, i, end, before);
  40221. }
  40222. i = end - 1; // reset to end (-1 so next iteration is ok)
  40223. }
  40224. }
  40225. /*
  40226. N2. Any remaining neutrals take the embedding direction.
  40227. */
  40228. for (i = 0; i < strLength; ++i) {
  40229. if (types[i] == 'ON') {
  40230. types[i] = e;
  40231. }
  40232. }
  40233. /*
  40234. I1. For all characters with an even (left-to-right) embedding direction,
  40235. those of type R go up one level and those of type AN or EN go up two
  40236. levels.
  40237. I2. For all characters with an odd (right-to-left) embedding direction,
  40238. those of type L, EN or AN go up one level.
  40239. */
  40240. for (i = 0; i < strLength; ++i) {
  40241. t = types[i];
  40242. if (isEven(levels[i])) {
  40243. if (t == 'R') {
  40244. levels[i] += 1;
  40245. } else if (t == 'AN' || t == 'EN') {
  40246. levels[i] += 2;
  40247. }
  40248. } else { // isOdd
  40249. if (t == 'L' || t == 'AN' || t == 'EN') {
  40250. levels[i] += 1;
  40251. }
  40252. }
  40253. }
  40254. /*
  40255. L1. On each line, reset the embedding level of the following characters to
  40256. the paragraph embedding level:
  40257. segment separators,
  40258. paragraph separators,
  40259. any sequence of whitespace characters preceding a segment separator or
  40260. paragraph separator, and any sequence of white space characters at the end
  40261. of the line.
  40262. */
  40263. // don't bother as text is only single line
  40264. /*
  40265. L2. From the highest level found in the text to the lowest odd level on
  40266. each line, reverse any contiguous sequence of characters that are at that
  40267. level or higher.
  40268. */
  40269. // find highest level & lowest odd level
  40270. var highestLevel = -1;
  40271. var lowestOddLevel = 99;
  40272. var level;
  40273. for (i = 0, ii = levels.length; i < ii; ++i) {
  40274. level = levels[i];
  40275. if (highestLevel < level) {
  40276. highestLevel = level;
  40277. }
  40278. if (lowestOddLevel > level && isOdd(level)) {
  40279. lowestOddLevel = level;
  40280. }
  40281. }
  40282. // now reverse between those limits
  40283. for (level = highestLevel; level >= lowestOddLevel; --level) {
  40284. // find segments to reverse
  40285. var start = -1;
  40286. for (i = 0, ii = levels.length; i < ii; ++i) {
  40287. if (levels[i] < level) {
  40288. if (start >= 0) {
  40289. reverseValues(chars, start, i);
  40290. start = -1;
  40291. }
  40292. } else if (start < 0) {
  40293. start = i;
  40294. }
  40295. }
  40296. if (start >= 0) {
  40297. reverseValues(chars, start, levels.length);
  40298. }
  40299. }
  40300. /*
  40301. L3. Combining marks applied to a right-to-left base character will at this
  40302. point precede their base character. If the rendering engine expects them to
  40303. follow the base characters in the final display process, then the ordering
  40304. of the marks and the base character must be reversed.
  40305. */
  40306. // don't bother for now
  40307. /*
  40308. L4. A character that possesses the mirrored property as specified by
  40309. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  40310. directionality of that character is R.
  40311. */
  40312. // don't mirror as characters are already mirrored in the pdf
  40313. // Finally, return string
  40314. var result = '';
  40315. for (i = 0, ii = chars.length; i < ii; ++i) {
  40316. var ch = chars[i];
  40317. if (ch != '<' && ch != '>') {
  40318. result += ch;
  40319. }
  40320. }
  40321. return createBidiText(result, isLTR);
  40322. }
  40323. return bidi;
  40324. })();
  40325. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  40326. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  40327. /* Copyright 2014 Opera Software ASA
  40328. *
  40329. * Licensed under the Apache License, Version 2.0 (the "License");
  40330. * you may not use this file except in compliance with the License.
  40331. * You may obtain a copy of the License at
  40332. *
  40333. * http://www.apache.org/licenses/LICENSE-2.0
  40334. *
  40335. * Unless required by applicable law or agreed to in writing, software
  40336. * distributed under the License is distributed on an "AS IS" BASIS,
  40337. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40338. * See the License for the specific language governing permissions and
  40339. * limitations under the License.
  40340. *
  40341. *
  40342. * Based on https://code.google.com/p/smhasher/wiki/MurmurHash3.
  40343. * Hashes roughly 100 KB per millisecond on i7 3.4 GHz.
  40344. */
  40345. /* globals Uint32ArrayView */
  40346. 'use strict';
  40347. var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
  40348. // Workaround for missing math precison in JS.
  40349. var MASK_HIGH = 0xffff0000;
  40350. var MASK_LOW = 0xffff;
  40351. function MurmurHash3_64 (seed) {
  40352. var SEED = 0xc3d2e1f0;
  40353. this.h1 = seed ? seed & 0xffffffff : SEED;
  40354. this.h2 = seed ? seed & 0xffffffff : SEED;
  40355. }
  40356. MurmurHash3_64.prototype = {
  40357. update: function MurmurHash3_64_update(input) {
  40358. var useUint32ArrayView = false;
  40359. var i;
  40360. if (typeof input == 'string') {
  40361. var data = new Uint8Array(input.length * 2);
  40362. var length = 0;
  40363. for (i = 0; i < input.length; i++) {
  40364. var code = input.charCodeAt(i);
  40365. if (code <= 0xff) {
  40366. data[length++] = code;
  40367. }
  40368. else {
  40369. data[length++] = code >>> 8;
  40370. data[length++] = code & 0xff;
  40371. }
  40372. }
  40373. } else if (input instanceof Uint8Array) {
  40374. data = input;
  40375. length = data.length;
  40376. } else if (typeof input === 'object' && ('length' in input)) {
  40377. // processing regular arrays as well, e.g. for IE9
  40378. data = input;
  40379. length = data.length;
  40380. useUint32ArrayView = true;
  40381. } else {
  40382. throw new Error('Wrong data format in MurmurHash3_64_update. ' +
  40383. 'Input must be a string or array.');
  40384. }
  40385. var blockCounts = length >> 2;
  40386. var tailLength = length - blockCounts * 4;
  40387. // we don't care about endianness here
  40388. var dataUint32 = useUint32ArrayView ?
  40389. new Uint32ArrayView(data, blockCounts) :
  40390. new Uint32Array(data.buffer, 0, blockCounts);
  40391. var k1 = 0;
  40392. var k2 = 0;
  40393. var h1 = this.h1;
  40394. var h2 = this.h2;
  40395. var C1 = 0xcc9e2d51;
  40396. var C2 = 0x1b873593;
  40397. var C1_LOW = C1 & MASK_LOW;
  40398. var C2_LOW = C2 & MASK_LOW;
  40399. for (i = 0; i < blockCounts; i++) {
  40400. if (i & 1) {
  40401. k1 = dataUint32[i];
  40402. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40403. k1 = k1 << 15 | k1 >>> 17;
  40404. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40405. h1 ^= k1;
  40406. h1 = h1 << 13 | h1 >>> 19;
  40407. h1 = h1 * 5 + 0xe6546b64;
  40408. } else {
  40409. k2 = dataUint32[i];
  40410. k2 = (k2 * C1 & MASK_HIGH) | (k2 * C1_LOW & MASK_LOW);
  40411. k2 = k2 << 15 | k2 >>> 17;
  40412. k2 = (k2 * C2 & MASK_HIGH) | (k2 * C2_LOW & MASK_LOW);
  40413. h2 ^= k2;
  40414. h2 = h2 << 13 | h2 >>> 19;
  40415. h2 = h2 * 5 + 0xe6546b64;
  40416. }
  40417. }
  40418. k1 = 0;
  40419. switch (tailLength) {
  40420. case 3:
  40421. k1 ^= data[blockCounts * 4 + 2] << 16;
  40422. /* falls through */
  40423. case 2:
  40424. k1 ^= data[blockCounts * 4 + 1] << 8;
  40425. /* falls through */
  40426. case 1:
  40427. k1 ^= data[blockCounts * 4];
  40428. /* falls through */
  40429. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40430. k1 = k1 << 15 | k1 >>> 17;
  40431. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40432. if (blockCounts & 1) {
  40433. h1 ^= k1;
  40434. } else {
  40435. h2 ^= k1;
  40436. }
  40437. }
  40438. this.h1 = h1;
  40439. this.h2 = h2;
  40440. return this;
  40441. },
  40442. hexdigest: function MurmurHash3_64_hexdigest () {
  40443. var h1 = this.h1;
  40444. var h2 = this.h2;
  40445. h1 ^= h2 >>> 1;
  40446. h1 = (h1 * 0xed558ccd & MASK_HIGH) | (h1 * 0x8ccd & MASK_LOW);
  40447. h2 = (h2 * 0xff51afd7 & MASK_HIGH) |
  40448. (((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16);
  40449. h1 ^= h2 >>> 1;
  40450. h1 = (h1 * 0x1a85ec53 & MASK_HIGH) | (h1 * 0xec53 & MASK_LOW);
  40451. h2 = (h2 * 0xc4ceb9fe & MASK_HIGH) |
  40452. (((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16);
  40453. h1 ^= h2 >>> 1;
  40454. for (var i = 0, arr = [h1, h2], str = ''; i < arr.length; i++) {
  40455. var hex = (arr[i] >>> 0).toString(16);
  40456. while (hex.length < 8) {
  40457. hex = '0' + hex;
  40458. }
  40459. str += hex;
  40460. }
  40461. return str;
  40462. }
  40463. };
  40464. return MurmurHash3_64;
  40465. })();
  40466. }).call((typeof window === 'undefined') ? this : window);
  40467. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  40468. // workerSrc is not set -- using last script url to define default location
  40469. PDFJS.workerSrc = (function () {
  40470. 'use strict';
  40471. var scriptTagContainer = document.body ||
  40472. document.getElementsByTagName('head')[0];
  40473. var pdfjsSrc = scriptTagContainer.lastChild.src;
  40474. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  40475. })();
  40476. }