pdf.worker.js 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607
  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.229';
  23. PDFJS.build = '7079992';
  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. Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) {
  493. var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0);
  494. return Util.makeCssRgb(rgb);
  495. };
  496. // Concatenates two transformation matrices together and returns the result.
  497. Util.transform = function Util_transform(m1, m2) {
  498. return [
  499. m1[0] * m2[0] + m1[2] * m2[1],
  500. m1[1] * m2[0] + m1[3] * m2[1],
  501. m1[0] * m2[2] + m1[2] * m2[3],
  502. m1[1] * m2[2] + m1[3] * m2[3],
  503. m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
  504. m1[1] * m2[4] + m1[3] * m2[5] + m1[5]
  505. ];
  506. };
  507. // For 2d affine transforms
  508. Util.applyTransform = function Util_applyTransform(p, m) {
  509. var xt = p[0] * m[0] + p[1] * m[2] + m[4];
  510. var yt = p[0] * m[1] + p[1] * m[3] + m[5];
  511. return [xt, yt];
  512. };
  513. Util.applyInverseTransform = function Util_applyInverseTransform(p, m) {
  514. var d = m[0] * m[3] - m[1] * m[2];
  515. var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
  516. var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
  517. return [xt, yt];
  518. };
  519. // Applies the transform to the rectangle and finds the minimum axially
  520. // aligned bounding box.
  521. Util.getAxialAlignedBoundingBox =
  522. function Util_getAxialAlignedBoundingBox(r, m) {
  523. var p1 = Util.applyTransform(r, m);
  524. var p2 = Util.applyTransform(r.slice(2, 4), m);
  525. var p3 = Util.applyTransform([r[0], r[3]], m);
  526. var p4 = Util.applyTransform([r[2], r[1]], m);
  527. return [
  528. Math.min(p1[0], p2[0], p3[0], p4[0]),
  529. Math.min(p1[1], p2[1], p3[1], p4[1]),
  530. Math.max(p1[0], p2[0], p3[0], p4[0]),
  531. Math.max(p1[1], p2[1], p3[1], p4[1])
  532. ];
  533. };
  534. Util.inverseTransform = function Util_inverseTransform(m) {
  535. var d = m[0] * m[3] - m[1] * m[2];
  536. return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d,
  537. (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  538. };
  539. // Apply a generic 3d matrix M on a 3-vector v:
  540. // | a b c | | X |
  541. // | d e f | x | Y |
  542. // | g h i | | Z |
  543. // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i],
  544. // with v as [X,Y,Z]
  545. Util.apply3dTransform = function Util_apply3dTransform(m, v) {
  546. return [
  547. m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
  548. m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
  549. m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
  550. ];
  551. };
  552. // This calculation uses Singular Value Decomposition.
  553. // The SVD can be represented with formula A = USV. We are interested in the
  554. // matrix S here because it represents the scale values.
  555. Util.singularValueDecompose2dScale =
  556. function Util_singularValueDecompose2dScale(m) {
  557. var transpose = [m[0], m[2], m[1], m[3]];
  558. // Multiply matrix m with its transpose.
  559. var a = m[0] * transpose[0] + m[1] * transpose[2];
  560. var b = m[0] * transpose[1] + m[1] * transpose[3];
  561. var c = m[2] * transpose[0] + m[3] * transpose[2];
  562. var d = m[2] * transpose[1] + m[3] * transpose[3];
  563. // Solve the second degree polynomial to get roots.
  564. var first = (a + d) / 2;
  565. var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
  566. var sx = first + second || 1;
  567. var sy = first - second || 1;
  568. // Scale values are the square roots of the eigenvalues.
  569. return [Math.sqrt(sx), Math.sqrt(sy)];
  570. };
  571. // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
  572. // For coordinate systems whose origin lies in the bottom-left, this
  573. // means normalization to (BL,TR) ordering. For systems with origin in the
  574. // top-left, this means (TL,BR) ordering.
  575. Util.normalizeRect = function Util_normalizeRect(rect) {
  576. var r = rect.slice(0); // clone rect
  577. if (rect[0] > rect[2]) {
  578. r[0] = rect[2];
  579. r[2] = rect[0];
  580. }
  581. if (rect[1] > rect[3]) {
  582. r[1] = rect[3];
  583. r[3] = rect[1];
  584. }
  585. return r;
  586. };
  587. // Returns a rectangle [x1, y1, x2, y2] corresponding to the
  588. // intersection of rect1 and rect2. If no intersection, returns 'false'
  589. // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
  590. Util.intersect = function Util_intersect(rect1, rect2) {
  591. function compare(a, b) {
  592. return a - b;
  593. }
  594. // Order points along the axes
  595. var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare),
  596. orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare),
  597. result = [];
  598. rect1 = Util.normalizeRect(rect1);
  599. rect2 = Util.normalizeRect(rect2);
  600. // X: first and second points belong to different rectangles?
  601. if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
  602. (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
  603. // Intersection must be between second and third points
  604. result[0] = orderedX[1];
  605. result[2] = orderedX[2];
  606. } else {
  607. return false;
  608. }
  609. // Y: first and second points belong to different rectangles?
  610. if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
  611. (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
  612. // Intersection must be between second and third points
  613. result[1] = orderedY[1];
  614. result[3] = orderedY[2];
  615. } else {
  616. return false;
  617. }
  618. return result;
  619. };
  620. Util.sign = function Util_sign(num) {
  621. return num < 0 ? -1 : 1;
  622. };
  623. // TODO(mack): Rename appendToArray
  624. Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
  625. Array.prototype.push.apply(arr1, arr2);
  626. };
  627. Util.prependToArray = function concatenateToArray(arr1, arr2) {
  628. Array.prototype.unshift.apply(arr1, arr2);
  629. };
  630. Util.extendObj = function extendObj(obj1, obj2) {
  631. for (var key in obj2) {
  632. obj1[key] = obj2[key];
  633. }
  634. };
  635. Util.getInheritableProperty = function Util_getInheritableProperty(dict,
  636. name) {
  637. while (dict && !dict.has(name)) {
  638. dict = dict.get('Parent');
  639. }
  640. if (!dict) {
  641. return null;
  642. }
  643. return dict.get(name);
  644. };
  645. Util.inherit = function Util_inherit(sub, base, prototype) {
  646. sub.prototype = Object.create(base.prototype);
  647. sub.prototype.constructor = sub;
  648. for (var prop in prototype) {
  649. sub.prototype[prop] = prototype[prop];
  650. }
  651. };
  652. Util.loadScript = function Util_loadScript(src, callback) {
  653. var script = document.createElement('script');
  654. var loaded = false;
  655. script.setAttribute('src', src);
  656. if (callback) {
  657. script.onload = function() {
  658. if (!loaded) {
  659. callback();
  660. }
  661. loaded = true;
  662. };
  663. }
  664. document.getElementsByTagName('head')[0].appendChild(script);
  665. };
  666. return Util;
  667. })();
  668. /**
  669. * PDF page viewport created based on scale, rotation and offset.
  670. * @class
  671. * @alias PDFJS.PageViewport
  672. */
  673. var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
  674. /**
  675. * @constructor
  676. * @private
  677. * @param viewBox {Array} xMin, yMin, xMax and yMax coordinates.
  678. * @param scale {number} scale of the viewport.
  679. * @param rotation {number} rotations of the viewport in degrees.
  680. * @param offsetX {number} offset X
  681. * @param offsetY {number} offset Y
  682. * @param dontFlip {boolean} if true, axis Y will not be flipped.
  683. */
  684. function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
  685. this.viewBox = viewBox;
  686. this.scale = scale;
  687. this.rotation = rotation;
  688. this.offsetX = offsetX;
  689. this.offsetY = offsetY;
  690. // creating transform to convert pdf coordinate system to the normal
  691. // canvas like coordinates taking in account scale and rotation
  692. var centerX = (viewBox[2] + viewBox[0]) / 2;
  693. var centerY = (viewBox[3] + viewBox[1]) / 2;
  694. var rotateA, rotateB, rotateC, rotateD;
  695. rotation = rotation % 360;
  696. rotation = rotation < 0 ? rotation + 360 : rotation;
  697. switch (rotation) {
  698. case 180:
  699. rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
  700. break;
  701. case 90:
  702. rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0;
  703. break;
  704. case 270:
  705. rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0;
  706. break;
  707. //case 0:
  708. default:
  709. rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1;
  710. break;
  711. }
  712. if (dontFlip) {
  713. rotateC = -rotateC; rotateD = -rotateD;
  714. }
  715. var offsetCanvasX, offsetCanvasY;
  716. var width, height;
  717. if (rotateA === 0) {
  718. offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
  719. offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
  720. width = Math.abs(viewBox[3] - viewBox[1]) * scale;
  721. height = Math.abs(viewBox[2] - viewBox[0]) * scale;
  722. } else {
  723. offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
  724. offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
  725. width = Math.abs(viewBox[2] - viewBox[0]) * scale;
  726. height = Math.abs(viewBox[3] - viewBox[1]) * scale;
  727. }
  728. // creating transform for the following operations:
  729. // translate(-centerX, -centerY), rotate and flip vertically,
  730. // scale, and translate(offsetCanvasX, offsetCanvasY)
  731. this.transform = [
  732. rotateA * scale,
  733. rotateB * scale,
  734. rotateC * scale,
  735. rotateD * scale,
  736. offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY,
  737. offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY
  738. ];
  739. this.width = width;
  740. this.height = height;
  741. this.fontScale = scale;
  742. }
  743. PageViewport.prototype = /** @lends PDFJS.PageViewport.prototype */ {
  744. /**
  745. * Clones viewport with additional properties.
  746. * @param args {Object} (optional) If specified, may contain the 'scale' or
  747. * 'rotation' properties to override the corresponding properties in
  748. * the cloned viewport.
  749. * @returns {PDFJS.PageViewport} Cloned viewport.
  750. */
  751. clone: function PageViewPort_clone(args) {
  752. args = args || {};
  753. var scale = 'scale' in args ? args.scale : this.scale;
  754. var rotation = 'rotation' in args ? args.rotation : this.rotation;
  755. return new PageViewport(this.viewBox.slice(), scale, rotation,
  756. this.offsetX, this.offsetY, args.dontFlip);
  757. },
  758. /**
  759. * Converts PDF point to the viewport coordinates. For examples, useful for
  760. * converting PDF location into canvas pixel coordinates.
  761. * @param x {number} X coordinate.
  762. * @param y {number} Y coordinate.
  763. * @returns {Object} Object that contains 'x' and 'y' properties of the
  764. * point in the viewport coordinate space.
  765. * @see {@link convertToPdfPoint}
  766. * @see {@link convertToViewportRectangle}
  767. */
  768. convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) {
  769. return Util.applyTransform([x, y], this.transform);
  770. },
  771. /**
  772. * Converts PDF rectangle to the viewport coordinates.
  773. * @param rect {Array} xMin, yMin, xMax and yMax coordinates.
  774. * @returns {Array} Contains corresponding coordinates of the rectangle
  775. * in the viewport coordinate space.
  776. * @see {@link convertToViewportPoint}
  777. */
  778. convertToViewportRectangle:
  779. function PageViewport_convertToViewportRectangle(rect) {
  780. var tl = Util.applyTransform([rect[0], rect[1]], this.transform);
  781. var br = Util.applyTransform([rect[2], rect[3]], this.transform);
  782. return [tl[0], tl[1], br[0], br[1]];
  783. },
  784. /**
  785. * Converts viewport coordinates to the PDF location. For examples, useful
  786. * for converting canvas pixel location into PDF one.
  787. * @param x {number} X coordinate.
  788. * @param y {number} Y coordinate.
  789. * @returns {Object} Object that contains 'x' and 'y' properties of the
  790. * point in the PDF coordinate space.
  791. * @see {@link convertToViewportPoint}
  792. */
  793. convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) {
  794. return Util.applyInverseTransform([x, y], this.transform);
  795. }
  796. };
  797. return PageViewport;
  798. })();
  799. var PDFStringTranslateTable = [
  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,
  801. 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0,
  802. 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,
  803. 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,
  804. 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,
  805. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014,
  806. 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C,
  807. 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160,
  808. 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC
  809. ];
  810. function stringToPDFString(str) {
  811. var i, n = str.length, strBuf = [];
  812. if (str[0] === '\xFE' && str[1] === '\xFF') {
  813. // UTF16BE BOM
  814. for (i = 2; i < n; i += 2) {
  815. strBuf.push(String.fromCharCode(
  816. (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1)));
  817. }
  818. } else {
  819. for (i = 0; i < n; ++i) {
  820. var code = PDFStringTranslateTable[str.charCodeAt(i)];
  821. strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
  822. }
  823. }
  824. return strBuf.join('');
  825. }
  826. function stringToUTF8String(str) {
  827. return decodeURIComponent(escape(str));
  828. }
  829. function isEmptyObj(obj) {
  830. for (var key in obj) {
  831. return false;
  832. }
  833. return true;
  834. }
  835. function isBool(v) {
  836. return typeof v == 'boolean';
  837. }
  838. function isInt(v) {
  839. return typeof v == 'number' && ((v | 0) == v);
  840. }
  841. function isNum(v) {
  842. return typeof v == 'number';
  843. }
  844. function isString(v) {
  845. return typeof v == 'string';
  846. }
  847. function isNull(v) {
  848. return v === null;
  849. }
  850. function isName(v) {
  851. return v instanceof Name;
  852. }
  853. function isCmd(v, cmd) {
  854. return v instanceof Cmd && (!cmd || v.cmd == cmd);
  855. }
  856. function isDict(v, type) {
  857. if (!(v instanceof Dict)) {
  858. return false;
  859. }
  860. if (!type) {
  861. return true;
  862. }
  863. var dictType = v.get('Type');
  864. return isName(dictType) && dictType.name == type;
  865. }
  866. function isArray(v) {
  867. return v instanceof Array;
  868. }
  869. function isStream(v) {
  870. return typeof v == 'object' && v !== null && v !== undefined &&
  871. ('getBytes' in v);
  872. }
  873. function isArrayBuffer(v) {
  874. return typeof v == 'object' && v !== null && v !== undefined &&
  875. ('byteLength' in v);
  876. }
  877. function isRef(v) {
  878. return v instanceof Ref;
  879. }
  880. function isPDFFunction(v) {
  881. var fnDict;
  882. if (typeof v != 'object') {
  883. return false;
  884. } else if (isDict(v)) {
  885. fnDict = v;
  886. } else if (isStream(v)) {
  887. fnDict = v.dict;
  888. } else {
  889. return false;
  890. }
  891. return fnDict.has('FunctionType');
  892. }
  893. /**
  894. * Promise Capability object.
  895. *
  896. * @typedef {Object} PromiseCapability
  897. * @property {Promise} promise - A promise object.
  898. * @property {function} resolve - Fullfills the promise.
  899. * @property {function} reject - Rejects the promise.
  900. */
  901. /**
  902. * Creates a promise capability object.
  903. * @alias PDFJS.createPromiseCapability
  904. *
  905. * @return {PromiseCapability} A capability object contains:
  906. * - a Promise, resolve and reject methods.
  907. */
  908. function createPromiseCapability() {
  909. var capability = {};
  910. capability.promise = new Promise(function (resolve, reject) {
  911. capability.resolve = resolve;
  912. capability.reject = reject;
  913. });
  914. return capability;
  915. }
  916. PDFJS.createPromiseCapability = createPromiseCapability;
  917. /**
  918. * Polyfill for Promises:
  919. * The following promise implementation tries to generally implment the
  920. * Promise/A+ spec. Some notable differences from other promise libaries are:
  921. * - There currently isn't a seperate deferred and promise object.
  922. * - Unhandled rejections eventually show an error if they aren't handled.
  923. *
  924. * Based off of the work in:
  925. * https://bugzilla.mozilla.org/show_bug.cgi?id=810490
  926. */
  927. (function PromiseClosure() {
  928. if (globalScope.Promise) {
  929. // Promises existing in the DOM/Worker, checking presence of all/resolve
  930. if (typeof globalScope.Promise.all !== 'function') {
  931. globalScope.Promise.all = function (iterable) {
  932. var count = 0, results = [], resolve, reject;
  933. var promise = new globalScope.Promise(function (resolve_, reject_) {
  934. resolve = resolve_;
  935. reject = reject_;
  936. });
  937. iterable.forEach(function (p, i) {
  938. count++;
  939. p.then(function (result) {
  940. results[i] = result;
  941. count--;
  942. if (count === 0) {
  943. resolve(results);
  944. }
  945. }, reject);
  946. });
  947. if (count === 0) {
  948. resolve(results);
  949. }
  950. return promise;
  951. };
  952. }
  953. if (typeof globalScope.Promise.resolve !== 'function') {
  954. globalScope.Promise.resolve = function (value) {
  955. return new globalScope.Promise(function (resolve) { resolve(value); });
  956. };
  957. }
  958. if (typeof globalScope.Promise.reject !== 'function') {
  959. globalScope.Promise.reject = function (reason) {
  960. return new globalScope.Promise(function (resolve, reject) {
  961. reject(reason);
  962. });
  963. };
  964. }
  965. return;
  966. }
  967. var STATUS_PENDING = 0;
  968. var STATUS_RESOLVED = 1;
  969. var STATUS_REJECTED = 2;
  970. // In an attempt to avoid silent exceptions, unhandled rejections are
  971. // tracked and if they aren't handled in a certain amount of time an
  972. // error is logged.
  973. var REJECTION_TIMEOUT = 500;
  974. var HandlerManager = {
  975. handlers: [],
  976. running: false,
  977. unhandledRejections: [],
  978. pendingRejectionCheck: false,
  979. scheduleHandlers: function scheduleHandlers(promise) {
  980. if (promise._status == STATUS_PENDING) {
  981. return;
  982. }
  983. this.handlers = this.handlers.concat(promise._handlers);
  984. promise._handlers = [];
  985. if (this.running) {
  986. return;
  987. }
  988. this.running = true;
  989. setTimeout(this.runHandlers.bind(this), 0);
  990. },
  991. runHandlers: function runHandlers() {
  992. var RUN_TIMEOUT = 1; // ms
  993. var timeoutAt = Date.now() + RUN_TIMEOUT;
  994. while (this.handlers.length > 0) {
  995. var handler = this.handlers.shift();
  996. var nextStatus = handler.thisPromise._status;
  997. var nextValue = handler.thisPromise._value;
  998. try {
  999. if (nextStatus === STATUS_RESOLVED) {
  1000. if (typeof(handler.onResolve) == 'function') {
  1001. nextValue = handler.onResolve(nextValue);
  1002. }
  1003. } else if (typeof(handler.onReject) === 'function') {
  1004. nextValue = handler.onReject(nextValue);
  1005. nextStatus = STATUS_RESOLVED;
  1006. if (handler.thisPromise._unhandledRejection) {
  1007. this.removeUnhandeledRejection(handler.thisPromise);
  1008. }
  1009. }
  1010. } catch (ex) {
  1011. nextStatus = STATUS_REJECTED;
  1012. nextValue = ex;
  1013. }
  1014. handler.nextPromise._updateStatus(nextStatus, nextValue);
  1015. if (Date.now() >= timeoutAt) {
  1016. break;
  1017. }
  1018. }
  1019. if (this.handlers.length > 0) {
  1020. setTimeout(this.runHandlers.bind(this), 0);
  1021. return;
  1022. }
  1023. this.running = false;
  1024. },
  1025. addUnhandledRejection: function addUnhandledRejection(promise) {
  1026. this.unhandledRejections.push({
  1027. promise: promise,
  1028. time: Date.now()
  1029. });
  1030. this.scheduleRejectionCheck();
  1031. },
  1032. removeUnhandeledRejection: function removeUnhandeledRejection(promise) {
  1033. promise._unhandledRejection = false;
  1034. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1035. if (this.unhandledRejections[i].promise === promise) {
  1036. this.unhandledRejections.splice(i);
  1037. i--;
  1038. }
  1039. }
  1040. },
  1041. scheduleRejectionCheck: function scheduleRejectionCheck() {
  1042. if (this.pendingRejectionCheck) {
  1043. return;
  1044. }
  1045. this.pendingRejectionCheck = true;
  1046. setTimeout(function rejectionCheck() {
  1047. this.pendingRejectionCheck = false;
  1048. var now = Date.now();
  1049. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1050. if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
  1051. var unhandled = this.unhandledRejections[i].promise._value;
  1052. var msg = 'Unhandled rejection: ' + unhandled;
  1053. if (unhandled.stack) {
  1054. msg += '\n' + unhandled.stack;
  1055. }
  1056. warn(msg);
  1057. this.unhandledRejections.splice(i);
  1058. i--;
  1059. }
  1060. }
  1061. if (this.unhandledRejections.length) {
  1062. this.scheduleRejectionCheck();
  1063. }
  1064. }.bind(this), REJECTION_TIMEOUT);
  1065. }
  1066. };
  1067. function Promise(resolver) {
  1068. this._status = STATUS_PENDING;
  1069. this._handlers = [];
  1070. resolver.call(this, this._resolve.bind(this), this._reject.bind(this));
  1071. }
  1072. /**
  1073. * Builds a promise that is resolved when all the passed in promises are
  1074. * resolved.
  1075. * @param {array} array of data and/or promises to wait for.
  1076. * @return {Promise} New dependant promise.
  1077. */
  1078. Promise.all = function Promise_all(promises) {
  1079. var resolveAll, rejectAll;
  1080. var deferred = new Promise(function (resolve, reject) {
  1081. resolveAll = resolve;
  1082. rejectAll = reject;
  1083. });
  1084. var unresolved = promises.length;
  1085. var results = [];
  1086. if (unresolved === 0) {
  1087. resolveAll(results);
  1088. return deferred;
  1089. }
  1090. function reject(reason) {
  1091. if (deferred._status === STATUS_REJECTED) {
  1092. return;
  1093. }
  1094. results = [];
  1095. rejectAll(reason);
  1096. }
  1097. for (var i = 0, ii = promises.length; i < ii; ++i) {
  1098. var promise = promises[i];
  1099. var resolve = (function(i) {
  1100. return function(value) {
  1101. if (deferred._status === STATUS_REJECTED) {
  1102. return;
  1103. }
  1104. results[i] = value;
  1105. unresolved--;
  1106. if (unresolved === 0) {
  1107. resolveAll(results);
  1108. }
  1109. };
  1110. })(i);
  1111. if (Promise.isPromise(promise)) {
  1112. promise.then(resolve, reject);
  1113. } else {
  1114. resolve(promise);
  1115. }
  1116. }
  1117. return deferred;
  1118. };
  1119. /**
  1120. * Checks if the value is likely a promise (has a 'then' function).
  1121. * @return {boolean} true if value is thenable
  1122. */
  1123. Promise.isPromise = function Promise_isPromise(value) {
  1124. return value && typeof value.then === 'function';
  1125. };
  1126. /**
  1127. * Creates resolved promise
  1128. * @param value resolve value
  1129. * @returns {Promise}
  1130. */
  1131. Promise.resolve = function Promise_resolve(value) {
  1132. return new Promise(function (resolve) { resolve(value); });
  1133. };
  1134. /**
  1135. * Creates rejected promise
  1136. * @param reason rejection value
  1137. * @returns {Promise}
  1138. */
  1139. Promise.reject = function Promise_reject(reason) {
  1140. return new Promise(function (resolve, reject) { reject(reason); });
  1141. };
  1142. Promise.prototype = {
  1143. _status: null,
  1144. _value: null,
  1145. _handlers: null,
  1146. _unhandledRejection: null,
  1147. _updateStatus: function Promise__updateStatus(status, value) {
  1148. if (this._status === STATUS_RESOLVED ||
  1149. this._status === STATUS_REJECTED) {
  1150. return;
  1151. }
  1152. if (status == STATUS_RESOLVED &&
  1153. Promise.isPromise(value)) {
  1154. value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
  1155. this._updateStatus.bind(this, STATUS_REJECTED));
  1156. return;
  1157. }
  1158. this._status = status;
  1159. this._value = value;
  1160. if (status === STATUS_REJECTED && this._handlers.length === 0) {
  1161. this._unhandledRejection = true;
  1162. HandlerManager.addUnhandledRejection(this);
  1163. }
  1164. HandlerManager.scheduleHandlers(this);
  1165. },
  1166. _resolve: function Promise_resolve(value) {
  1167. this._updateStatus(STATUS_RESOLVED, value);
  1168. },
  1169. _reject: function Promise_reject(reason) {
  1170. this._updateStatus(STATUS_REJECTED, reason);
  1171. },
  1172. then: function Promise_then(onResolve, onReject) {
  1173. var nextPromise = new Promise(function (resolve, reject) {
  1174. this.resolve = reject;
  1175. this.reject = reject;
  1176. });
  1177. this._handlers.push({
  1178. thisPromise: this,
  1179. onResolve: onResolve,
  1180. onReject: onReject,
  1181. nextPromise: nextPromise
  1182. });
  1183. HandlerManager.scheduleHandlers(this);
  1184. return nextPromise;
  1185. }
  1186. };
  1187. globalScope.Promise = Promise;
  1188. })();
  1189. var StatTimer = (function StatTimerClosure() {
  1190. function rpad(str, pad, length) {
  1191. while (str.length < length) {
  1192. str += pad;
  1193. }
  1194. return str;
  1195. }
  1196. function StatTimer() {
  1197. this.started = {};
  1198. this.times = [];
  1199. this.enabled = true;
  1200. }
  1201. StatTimer.prototype = {
  1202. time: function StatTimer_time(name) {
  1203. if (!this.enabled) {
  1204. return;
  1205. }
  1206. if (name in this.started) {
  1207. warn('Timer is already running for ' + name);
  1208. }
  1209. this.started[name] = Date.now();
  1210. },
  1211. timeEnd: function StatTimer_timeEnd(name) {
  1212. if (!this.enabled) {
  1213. return;
  1214. }
  1215. if (!(name in this.started)) {
  1216. warn('Timer has not been started for ' + name);
  1217. }
  1218. this.times.push({
  1219. 'name': name,
  1220. 'start': this.started[name],
  1221. 'end': Date.now()
  1222. });
  1223. // Remove timer from started so it can be called again.
  1224. delete this.started[name];
  1225. },
  1226. toString: function StatTimer_toString() {
  1227. var i, ii;
  1228. var times = this.times;
  1229. var out = '';
  1230. // Find the longest name for padding purposes.
  1231. var longest = 0;
  1232. for (i = 0, ii = times.length; i < ii; ++i) {
  1233. var name = times[i]['name'];
  1234. if (name.length > longest) {
  1235. longest = name.length;
  1236. }
  1237. }
  1238. for (i = 0, ii = times.length; i < ii; ++i) {
  1239. var span = times[i];
  1240. var duration = span.end - span.start;
  1241. out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n';
  1242. }
  1243. return out;
  1244. }
  1245. };
  1246. return StatTimer;
  1247. })();
  1248. PDFJS.createBlob = function createBlob(data, contentType) {
  1249. if (typeof Blob !== 'undefined') {
  1250. return new Blob([data], { type: contentType });
  1251. }
  1252. // Blob builder is deprecated in FF14 and removed in FF18.
  1253. var bb = new MozBlobBuilder();
  1254. bb.append(data);
  1255. return bb.getBlob(contentType);
  1256. };
  1257. PDFJS.createObjectURL = (function createObjectURLClosure() {
  1258. // Blob/createObjectURL is not available, falling back to data schema.
  1259. var digits =
  1260. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1261. return function createObjectURL(data, contentType) {
  1262. if (!PDFJS.disableCreateObjectURL &&
  1263. typeof URL !== 'undefined' && URL.createObjectURL) {
  1264. var blob = PDFJS.createBlob(data, contentType);
  1265. return URL.createObjectURL(blob);
  1266. }
  1267. var buffer = 'data:' + contentType + ';base64,';
  1268. for (var i = 0, ii = data.length; i < ii; i += 3) {
  1269. var b1 = data[i] & 0xFF;
  1270. var b2 = data[i + 1] & 0xFF;
  1271. var b3 = data[i + 2] & 0xFF;
  1272. var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
  1273. var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
  1274. var d4 = i + 2 < ii ? (b3 & 0x3F) : 64;
  1275. buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
  1276. }
  1277. return buffer;
  1278. };
  1279. })();
  1280. function MessageHandler(name, comObj) {
  1281. this.name = name;
  1282. this.comObj = comObj;
  1283. this.callbackIndex = 1;
  1284. this.postMessageTransfers = true;
  1285. var callbacksCapabilities = this.callbacksCapabilities = {};
  1286. var ah = this.actionHandler = {};
  1287. ah['console_log'] = [function ahConsoleLog(data) {
  1288. console.log.apply(console, data);
  1289. }];
  1290. ah['console_error'] = [function ahConsoleError(data) {
  1291. console.error.apply(console, data);
  1292. }];
  1293. ah['_unsupported_feature'] = [function ah_unsupportedFeature(data) {
  1294. UnsupportedManager.notify(data);
  1295. }];
  1296. comObj.onmessage = function messageHandlerComObjOnMessage(event) {
  1297. var data = event.data;
  1298. if (data.isReply) {
  1299. var callbackId = data.callbackId;
  1300. if (data.callbackId in callbacksCapabilities) {
  1301. var callback = callbacksCapabilities[callbackId];
  1302. delete callbacksCapabilities[callbackId];
  1303. if ('error' in data) {
  1304. callback.reject(data.error);
  1305. } else {
  1306. callback.resolve(data.data);
  1307. }
  1308. } else {
  1309. error('Cannot resolve callback ' + callbackId);
  1310. }
  1311. } else if (data.action in ah) {
  1312. var action = ah[data.action];
  1313. if (data.callbackId) {
  1314. Promise.resolve().then(function () {
  1315. return action[0].call(action[1], data.data);
  1316. }).then(function (result) {
  1317. comObj.postMessage({
  1318. isReply: true,
  1319. callbackId: data.callbackId,
  1320. data: result
  1321. });
  1322. }, function (reason) {
  1323. comObj.postMessage({
  1324. isReply: true,
  1325. callbackId: data.callbackId,
  1326. error: reason
  1327. });
  1328. });
  1329. } else {
  1330. action[0].call(action[1], data.data);
  1331. }
  1332. } else {
  1333. error('Unknown action from worker: ' + data.action);
  1334. }
  1335. };
  1336. }
  1337. MessageHandler.prototype = {
  1338. on: function messageHandlerOn(actionName, handler, scope) {
  1339. var ah = this.actionHandler;
  1340. if (ah[actionName]) {
  1341. error('There is already an actionName called "' + actionName + '"');
  1342. }
  1343. ah[actionName] = [handler, scope];
  1344. },
  1345. /**
  1346. * Sends a message to the comObj to invoke the action with the supplied data.
  1347. * @param {String} actionName Action to call.
  1348. * @param {JSON} data JSON data to send.
  1349. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers
  1350. */
  1351. send: function messageHandlerSend(actionName, data, transfers) {
  1352. var message = {
  1353. action: actionName,
  1354. data: data
  1355. };
  1356. this.postMessage(message, transfers);
  1357. },
  1358. /**
  1359. * Sends a message to the comObj to invoke the action with the supplied data.
  1360. * Expects that other side will callback with the response.
  1361. * @param {String} actionName Action to call.
  1362. * @param {JSON} data JSON data to send.
  1363. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers.
  1364. * @returns {Promise} Promise to be resolved with response data.
  1365. */
  1366. sendWithPromise:
  1367. function messageHandlerSendWithPromise(actionName, data, transfers) {
  1368. var callbackId = this.callbackIndex++;
  1369. var message = {
  1370. action: actionName,
  1371. data: data,
  1372. callbackId: callbackId
  1373. };
  1374. var capability = createPromiseCapability();
  1375. this.callbacksCapabilities[callbackId] = capability;
  1376. try {
  1377. this.postMessage(message, transfers);
  1378. } catch (e) {
  1379. capability.reject(e);
  1380. }
  1381. return capability.promise;
  1382. },
  1383. /**
  1384. * Sends raw message to the comObj.
  1385. * @private
  1386. * @param message {Object} Raw message.
  1387. * @param transfers List of transfers/ArrayBuffers, or undefined.
  1388. */
  1389. postMessage: function (message, transfers) {
  1390. if (transfers && this.postMessageTransfers) {
  1391. this.comObj.postMessage(message, transfers);
  1392. } else {
  1393. this.comObj.postMessage(message);
  1394. }
  1395. }
  1396. };
  1397. function loadJpegStream(id, imageUrl, objs) {
  1398. var img = new Image();
  1399. img.onload = (function loadJpegStream_onloadClosure() {
  1400. objs.resolve(id, img);
  1401. });
  1402. img.src = imageUrl;
  1403. }
  1404. var ColorSpace = (function ColorSpaceClosure() {
  1405. // Constructor should define this.numComps, this.defaultColor, this.name
  1406. function ColorSpace() {
  1407. error('should not call ColorSpace constructor');
  1408. }
  1409. ColorSpace.prototype = {
  1410. /**
  1411. * Converts the color value to the RGB color. The color components are
  1412. * located in the src array starting from the srcOffset. Returns the array
  1413. * of the rgb components, each value ranging from [0,255].
  1414. */
  1415. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  1416. var rgb = new Uint8Array(3);
  1417. this.getRgbItem(src, srcOffset, rgb, 0);
  1418. return rgb;
  1419. },
  1420. /**
  1421. * Converts the color value to the RGB color, similar to the getRgb method.
  1422. * The result placed into the dest array starting from the destOffset.
  1423. */
  1424. getRgbItem: function ColorSpace_getRgbItem(src, srcOffset,
  1425. dest, destOffset) {
  1426. error('Should not call ColorSpace.getRgbItem');
  1427. },
  1428. /**
  1429. * Converts the specified number of the color values to the RGB colors.
  1430. * The colors are located in the src array starting from the srcOffset.
  1431. * The result is placed into the dest array starting from the destOffset.
  1432. * The src array items shall be in [0,2^bits) range, the dest array items
  1433. * will be in [0,255] range. alpha01 indicates how many alpha components
  1434. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  1435. * array).
  1436. */
  1437. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  1438. dest, destOffset, bits,
  1439. alpha01) {
  1440. error('Should not call ColorSpace.getRgbBuffer');
  1441. },
  1442. /**
  1443. * Determines the number of bytes required to store the result of the
  1444. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  1445. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  1446. */
  1447. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  1448. alpha01) {
  1449. error('Should not call ColorSpace.getOutputLength');
  1450. },
  1451. /**
  1452. * Returns true if source data will be equal the result/output data.
  1453. */
  1454. isPassthrough: function ColorSpace_isPassthrough(bits) {
  1455. return false;
  1456. },
  1457. /**
  1458. * Fills in the RGB colors in the destination buffer. alpha01 indicates
  1459. * how many alpha components there are in the dest array; it will be either
  1460. * 0 (RGB array) or 1 (RGBA array).
  1461. */
  1462. fillRgb: function ColorSpace_fillRgb(dest, originalWidth,
  1463. originalHeight, width, height,
  1464. actualHeight, bpc, comps, alpha01) {
  1465. var count = originalWidth * originalHeight;
  1466. var rgbBuf = null;
  1467. var numComponentColors = 1 << bpc;
  1468. var needsResizing = originalHeight != height || originalWidth != width;
  1469. var i, ii;
  1470. if (this.isPassthrough(bpc)) {
  1471. rgbBuf = comps;
  1472. } else if (this.numComps === 1 && count > numComponentColors &&
  1473. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  1474. // Optimization: create a color map when there is just one component and
  1475. // we are converting more colors than the size of the color map. We
  1476. // don't build the map if the colorspace is gray or rgb since those
  1477. // methods are faster than building a map. This mainly offers big speed
  1478. // ups for indexed and alternate colorspaces.
  1479. //
  1480. // TODO it may be worth while to cache the color map. While running
  1481. // testing I never hit a cache so I will leave that out for now (perhaps
  1482. // we are reparsing colorspaces too much?).
  1483. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  1484. new Uint16Array(numComponentColors);
  1485. var key;
  1486. for (i = 0; i < numComponentColors; i++) {
  1487. allColors[i] = i;
  1488. }
  1489. var colorMap = new Uint8Array(numComponentColors * 3);
  1490. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  1491. /* alpha01 = */ 0);
  1492. var destPos, rgbPos;
  1493. if (!needsResizing) {
  1494. // Fill in the RGB values directly into |dest|.
  1495. destPos = 0;
  1496. for (i = 0; i < count; ++i) {
  1497. key = comps[i] * 3;
  1498. dest[destPos++] = colorMap[key];
  1499. dest[destPos++] = colorMap[key + 1];
  1500. dest[destPos++] = colorMap[key + 2];
  1501. destPos += alpha01;
  1502. }
  1503. } else {
  1504. rgbBuf = new Uint8Array(count * 3);
  1505. rgbPos = 0;
  1506. for (i = 0; i < count; ++i) {
  1507. key = comps[i] * 3;
  1508. rgbBuf[rgbPos++] = colorMap[key];
  1509. rgbBuf[rgbPos++] = colorMap[key + 1];
  1510. rgbBuf[rgbPos++] = colorMap[key + 2];
  1511. }
  1512. }
  1513. } else {
  1514. if (!needsResizing) {
  1515. // Fill in the RGB values directly into |dest|.
  1516. this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc,
  1517. alpha01);
  1518. } else {
  1519. rgbBuf = new Uint8Array(count * 3);
  1520. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  1521. /* alpha01 = */ 0);
  1522. }
  1523. }
  1524. if (rgbBuf) {
  1525. if (needsResizing) {
  1526. PDFImage.resize(rgbBuf, bpc, 3, originalWidth, originalHeight, width,
  1527. height, dest, alpha01);
  1528. } else {
  1529. rgbPos = 0;
  1530. destPos = 0;
  1531. for (i = 0, ii = width * actualHeight; i < ii; i++) {
  1532. dest[destPos++] = rgbBuf[rgbPos++];
  1533. dest[destPos++] = rgbBuf[rgbPos++];
  1534. dest[destPos++] = rgbBuf[rgbPos++];
  1535. destPos += alpha01;
  1536. }
  1537. }
  1538. }
  1539. },
  1540. /**
  1541. * True if the colorspace has components in the default range of [0, 1].
  1542. * This should be true for all colorspaces except for lab color spaces
  1543. * which are [0,100], [-128, 127], [-128, 127].
  1544. */
  1545. usesZeroToOneRange: true
  1546. };
  1547. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  1548. var IR = ColorSpace.parseToIR(cs, xref, res);
  1549. if (IR instanceof AlternateCS) {
  1550. return IR;
  1551. }
  1552. return ColorSpace.fromIR(IR);
  1553. };
  1554. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  1555. var name = isArray(IR) ? IR[0] : IR;
  1556. var whitePoint, blackPoint;
  1557. switch (name) {
  1558. case 'DeviceGrayCS':
  1559. return this.singletons.gray;
  1560. case 'DeviceRgbCS':
  1561. return this.singletons.rgb;
  1562. case 'DeviceCmykCS':
  1563. return this.singletons.cmyk;
  1564. case 'CalGrayCS':
  1565. whitePoint = IR[1].WhitePoint;
  1566. blackPoint = IR[1].BlackPoint;
  1567. var gamma = IR[1].Gamma;
  1568. return new CalGrayCS(whitePoint, blackPoint, gamma);
  1569. case 'PatternCS':
  1570. var basePatternCS = IR[1];
  1571. if (basePatternCS) {
  1572. basePatternCS = ColorSpace.fromIR(basePatternCS);
  1573. }
  1574. return new PatternCS(basePatternCS);
  1575. case 'IndexedCS':
  1576. var baseIndexedCS = IR[1];
  1577. var hiVal = IR[2];
  1578. var lookup = IR[3];
  1579. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  1580. case 'AlternateCS':
  1581. var numComps = IR[1];
  1582. var alt = IR[2];
  1583. var tintFnIR = IR[3];
  1584. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  1585. PDFFunction.fromIR(tintFnIR));
  1586. case 'LabCS':
  1587. whitePoint = IR[1].WhitePoint;
  1588. blackPoint = IR[1].BlackPoint;
  1589. var range = IR[1].Range;
  1590. return new LabCS(whitePoint, blackPoint, range);
  1591. default:
  1592. error('Unkown name ' + name);
  1593. }
  1594. return null;
  1595. };
  1596. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  1597. if (isName(cs)) {
  1598. var colorSpaces = res.get('ColorSpace');
  1599. if (isDict(colorSpaces)) {
  1600. var refcs = colorSpaces.get(cs.name);
  1601. if (refcs) {
  1602. cs = refcs;
  1603. }
  1604. }
  1605. }
  1606. cs = xref.fetchIfRef(cs);
  1607. var mode;
  1608. if (isName(cs)) {
  1609. mode = cs.name;
  1610. this.mode = mode;
  1611. switch (mode) {
  1612. case 'DeviceGray':
  1613. case 'G':
  1614. return 'DeviceGrayCS';
  1615. case 'DeviceRGB':
  1616. case 'RGB':
  1617. return 'DeviceRgbCS';
  1618. case 'DeviceCMYK':
  1619. case 'CMYK':
  1620. return 'DeviceCmykCS';
  1621. case 'Pattern':
  1622. return ['PatternCS', null];
  1623. default:
  1624. error('unrecognized colorspace ' + mode);
  1625. }
  1626. } else if (isArray(cs)) {
  1627. mode = cs[0].name;
  1628. this.mode = mode;
  1629. var numComps, params;
  1630. switch (mode) {
  1631. case 'DeviceGray':
  1632. case 'G':
  1633. return 'DeviceGrayCS';
  1634. case 'DeviceRGB':
  1635. case 'RGB':
  1636. return 'DeviceRgbCS';
  1637. case 'DeviceCMYK':
  1638. case 'CMYK':
  1639. return 'DeviceCmykCS';
  1640. case 'CalGray':
  1641. params = cs[1].getAll();
  1642. return ['CalGrayCS', params];
  1643. case 'CalRGB':
  1644. return 'DeviceRgbCS';
  1645. case 'ICCBased':
  1646. var stream = xref.fetchIfRef(cs[1]);
  1647. var dict = stream.dict;
  1648. numComps = dict.get('N');
  1649. if (numComps == 1) {
  1650. return 'DeviceGrayCS';
  1651. } else if (numComps == 3) {
  1652. return 'DeviceRgbCS';
  1653. } else if (numComps == 4) {
  1654. return 'DeviceCmykCS';
  1655. }
  1656. break;
  1657. case 'Pattern':
  1658. var basePatternCS = cs[1];
  1659. if (basePatternCS) {
  1660. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  1661. }
  1662. return ['PatternCS', basePatternCS];
  1663. case 'Indexed':
  1664. case 'I':
  1665. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  1666. var hiVal = cs[2] + 1;
  1667. var lookup = xref.fetchIfRef(cs[3]);
  1668. if (isStream(lookup)) {
  1669. lookup = lookup.getBytes();
  1670. }
  1671. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  1672. case 'Separation':
  1673. case 'DeviceN':
  1674. var name = cs[1];
  1675. numComps = 1;
  1676. if (isName(name)) {
  1677. numComps = 1;
  1678. } else if (isArray(name)) {
  1679. numComps = name.length;
  1680. }
  1681. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  1682. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  1683. return ['AlternateCS', numComps, alt, tintFnIR];
  1684. case 'Lab':
  1685. params = cs[1].getAll();
  1686. return ['LabCS', params];
  1687. default:
  1688. error('unimplemented color space object "' + mode + '"');
  1689. }
  1690. } else {
  1691. error('unrecognized color space object: "' + cs + '"');
  1692. }
  1693. return null;
  1694. };
  1695. /**
  1696. * Checks if a decode map matches the default decode map for a color space.
  1697. * This handles the general decode maps where there are two values per
  1698. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  1699. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  1700. * slightly different.
  1701. * @param {Array} decode Decode map (usually from an image).
  1702. * @param {Number} n Number of components the color space has.
  1703. */
  1704. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  1705. if (!decode) {
  1706. return true;
  1707. }
  1708. if (n * 2 !== decode.length) {
  1709. warn('The decode map is not the correct length');
  1710. return true;
  1711. }
  1712. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  1713. if (decode[i] !== 0 || decode[i + 1] != 1) {
  1714. return false;
  1715. }
  1716. }
  1717. return true;
  1718. };
  1719. ColorSpace.singletons = {
  1720. get gray() {
  1721. return shadow(this, 'gray', new DeviceGrayCS());
  1722. },
  1723. get rgb() {
  1724. return shadow(this, 'rgb', new DeviceRgbCS());
  1725. },
  1726. get cmyk() {
  1727. return shadow(this, 'cmyk', new DeviceCmykCS());
  1728. }
  1729. };
  1730. return ColorSpace;
  1731. })();
  1732. /**
  1733. * Alternate color space handles both Separation and DeviceN color spaces. A
  1734. * Separation color space is actually just a DeviceN with one color component.
  1735. * Both color spaces use a tinting function to convert colors to a base color
  1736. * space.
  1737. */
  1738. var AlternateCS = (function AlternateCSClosure() {
  1739. function AlternateCS(numComps, base, tintFn) {
  1740. this.name = 'Alternate';
  1741. this.numComps = numComps;
  1742. this.defaultColor = new Float32Array(numComps);
  1743. for (var i = 0; i < numComps; ++i) {
  1744. this.defaultColor[i] = 1;
  1745. }
  1746. this.base = base;
  1747. this.tintFn = tintFn;
  1748. }
  1749. AlternateCS.prototype = {
  1750. getRgb: ColorSpace.prototype.getRgb,
  1751. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  1752. dest, destOffset) {
  1753. var baseNumComps = this.base.numComps;
  1754. var input = 'subarray' in src ?
  1755. src.subarray(srcOffset, srcOffset + this.numComps) :
  1756. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  1757. var tinted = this.tintFn(input);
  1758. this.base.getRgbItem(tinted, 0, dest, destOffset);
  1759. },
  1760. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  1761. dest, destOffset, bits,
  1762. alpha01) {
  1763. var tinted;
  1764. var tintFn = this.tintFn;
  1765. var base = this.base;
  1766. var scale = 1 / ((1 << bits) - 1);
  1767. var baseNumComps = base.numComps;
  1768. var usesZeroToOneRange = base.usesZeroToOneRange;
  1769. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  1770. alpha01 === 0;
  1771. var pos = isPassthrough ? destOffset : 0;
  1772. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  1773. var numComps = this.numComps;
  1774. var scaled = new Float32Array(numComps);
  1775. var i, j;
  1776. if (usesZeroToOneRange) {
  1777. for (i = 0; i < count; i++) {
  1778. for (j = 0; j < numComps; j++) {
  1779. scaled[j] = src[srcOffset++] * scale;
  1780. }
  1781. tinted = tintFn(scaled);
  1782. for (j = 0; j < baseNumComps; j++) {
  1783. baseBuf[pos++] = tinted[j] * 255;
  1784. }
  1785. }
  1786. } else {
  1787. for (i = 0; i < count; i++) {
  1788. for (j = 0; j < numComps; j++) {
  1789. scaled[j] = src[srcOffset++] * scale;
  1790. }
  1791. tinted = tintFn(scaled);
  1792. base.getRgbItem(tinted, 0, baseBuf, pos);
  1793. pos += baseNumComps;
  1794. }
  1795. }
  1796. if (!isPassthrough) {
  1797. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  1798. }
  1799. },
  1800. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  1801. alpha01) {
  1802. return this.base.getOutputLength(inputLength *
  1803. this.base.numComps / this.numComps,
  1804. alpha01);
  1805. },
  1806. isPassthrough: ColorSpace.prototype.isPassthrough,
  1807. fillRgb: ColorSpace.prototype.fillRgb,
  1808. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  1809. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1810. },
  1811. usesZeroToOneRange: true
  1812. };
  1813. return AlternateCS;
  1814. })();
  1815. var PatternCS = (function PatternCSClosure() {
  1816. function PatternCS(baseCS) {
  1817. this.name = 'Pattern';
  1818. this.base = baseCS;
  1819. }
  1820. PatternCS.prototype = {};
  1821. return PatternCS;
  1822. })();
  1823. var IndexedCS = (function IndexedCSClosure() {
  1824. function IndexedCS(base, highVal, lookup) {
  1825. this.name = 'Indexed';
  1826. this.numComps = 1;
  1827. this.defaultColor = new Uint8Array([0]);
  1828. this.base = base;
  1829. this.highVal = highVal;
  1830. var baseNumComps = base.numComps;
  1831. var length = baseNumComps * highVal;
  1832. var lookupArray;
  1833. if (isStream(lookup)) {
  1834. lookupArray = new Uint8Array(length);
  1835. var bytes = lookup.getBytes(length);
  1836. lookupArray.set(bytes);
  1837. } else if (isString(lookup)) {
  1838. lookupArray = new Uint8Array(length);
  1839. for (var i = 0; i < length; ++i) {
  1840. lookupArray[i] = lookup.charCodeAt(i);
  1841. }
  1842. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  1843. lookupArray = lookup;
  1844. } else {
  1845. error('Unrecognized lookup table: ' + lookup);
  1846. }
  1847. this.lookup = lookupArray;
  1848. }
  1849. IndexedCS.prototype = {
  1850. getRgb: ColorSpace.prototype.getRgb,
  1851. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  1852. dest, destOffset) {
  1853. var numComps = this.base.numComps;
  1854. var start = src[srcOffset] * numComps;
  1855. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  1856. },
  1857. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  1858. dest, destOffset, bits,
  1859. alpha01) {
  1860. var base = this.base;
  1861. var numComps = base.numComps;
  1862. var outputDelta = base.getOutputLength(numComps, alpha01);
  1863. var lookup = this.lookup;
  1864. for (var i = 0; i < count; ++i) {
  1865. var lookupPos = src[srcOffset++] * numComps;
  1866. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  1867. destOffset += outputDelta;
  1868. }
  1869. },
  1870. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  1871. return this.base.getOutputLength(inputLength * this.base.numComps,
  1872. alpha01);
  1873. },
  1874. isPassthrough: ColorSpace.prototype.isPassthrough,
  1875. fillRgb: ColorSpace.prototype.fillRgb,
  1876. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  1877. // indexed color maps shouldn't be changed
  1878. return true;
  1879. },
  1880. usesZeroToOneRange: true
  1881. };
  1882. return IndexedCS;
  1883. })();
  1884. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  1885. function DeviceGrayCS() {
  1886. this.name = 'DeviceGray';
  1887. this.numComps = 1;
  1888. this.defaultColor = new Float32Array([0]);
  1889. }
  1890. DeviceGrayCS.prototype = {
  1891. getRgb: ColorSpace.prototype.getRgb,
  1892. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  1893. dest, destOffset) {
  1894. var c = (src[srcOffset] * 255) | 0;
  1895. c = c < 0 ? 0 : c > 255 ? 255 : c;
  1896. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  1897. },
  1898. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  1899. dest, destOffset, bits,
  1900. alpha01) {
  1901. var scale = 255 / ((1 << bits) - 1);
  1902. var j = srcOffset, q = destOffset;
  1903. for (var i = 0; i < count; ++i) {
  1904. var c = (scale * src[j++]) | 0;
  1905. dest[q++] = c;
  1906. dest[q++] = c;
  1907. dest[q++] = c;
  1908. q += alpha01;
  1909. }
  1910. },
  1911. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  1912. alpha01) {
  1913. return inputLength * (3 + alpha01);
  1914. },
  1915. isPassthrough: ColorSpace.prototype.isPassthrough,
  1916. fillRgb: ColorSpace.prototype.fillRgb,
  1917. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  1918. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1919. },
  1920. usesZeroToOneRange: true
  1921. };
  1922. return DeviceGrayCS;
  1923. })();
  1924. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  1925. function DeviceRgbCS() {
  1926. this.name = 'DeviceRGB';
  1927. this.numComps = 3;
  1928. this.defaultColor = new Float32Array([0, 0, 0]);
  1929. }
  1930. DeviceRgbCS.prototype = {
  1931. getRgb: ColorSpace.prototype.getRgb,
  1932. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  1933. dest, destOffset) {
  1934. var r = (src[srcOffset] * 255) | 0;
  1935. var g = (src[srcOffset + 1] * 255) | 0;
  1936. var b = (src[srcOffset + 2] * 255) | 0;
  1937. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  1938. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  1939. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  1940. },
  1941. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  1942. dest, destOffset, bits,
  1943. alpha01) {
  1944. if (bits === 8 && alpha01 === 0) {
  1945. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  1946. return;
  1947. }
  1948. var scale = 255 / ((1 << bits) - 1);
  1949. var j = srcOffset, q = destOffset;
  1950. for (var i = 0; i < count; ++i) {
  1951. dest[q++] = (scale * src[j++]) | 0;
  1952. dest[q++] = (scale * src[j++]) | 0;
  1953. dest[q++] = (scale * src[j++]) | 0;
  1954. q += alpha01;
  1955. }
  1956. },
  1957. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  1958. alpha01) {
  1959. return (inputLength * (3 + alpha01) / 3) | 0;
  1960. },
  1961. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  1962. return bits == 8;
  1963. },
  1964. fillRgb: ColorSpace.prototype.fillRgb,
  1965. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  1966. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1967. },
  1968. usesZeroToOneRange: true
  1969. };
  1970. return DeviceRgbCS;
  1971. })();
  1972. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  1973. // The coefficients below was found using numerical analysis: the method of
  1974. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  1975. // where color_value is the tabular value from the table of sampled RGB colors
  1976. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  1977. // CMYK color conversion using the estimation below:
  1978. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  1979. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  1980. var c = src[srcOffset + 0] * srcScale;
  1981. var m = src[srcOffset + 1] * srcScale;
  1982. var y = src[srcOffset + 2] * srcScale;
  1983. var k = src[srcOffset + 3] * srcScale;
  1984. var r =
  1985. (c * (-4.387332384609988 * c + 54.48615194189176 * m +
  1986. 18.82290502165302 * y + 212.25662451639585 * k +
  1987. -285.2331026137004) +
  1988. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  1989. -17.873870861415444 * k - 5.497006427196366) +
  1990. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  1991. 17.5119270841813) +
  1992. k * (-21.86122147463605 * k - 189.48180835922747) + 255) | 0;
  1993. var g =
  1994. (c * (8.841041422036149 * c + 60.118027045597366 * m +
  1995. 6.871425592049007 * y + 31.159100130055922 * k +
  1996. -79.2970844816548) +
  1997. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  1998. 131.35250912493976 * k - 190.9453302588951) +
  1999. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  2000. k * (-20.737325471181034 * k - 187.80453709719578) + 255) | 0;
  2001. var b =
  2002. (c * (0.8842522430003296 * c + 8.078677503112928 * m +
  2003. 30.89978309703729 * y - 0.23883238689178934 * k +
  2004. -14.183576799673286) +
  2005. m * (10.49593273432072 * m + 63.02378494754052 * y +
  2006. 50.606957656360734 * k - 112.23884253719248) +
  2007. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  2008. -193.58209356861505) +
  2009. k * (-22.33816807309886 * k - 180.12613974708367) + 255) | 0;
  2010. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  2011. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  2012. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  2013. }
  2014. function DeviceCmykCS() {
  2015. this.name = 'DeviceCMYK';
  2016. this.numComps = 4;
  2017. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  2018. }
  2019. DeviceCmykCS.prototype = {
  2020. getRgb: ColorSpace.prototype.getRgb,
  2021. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  2022. dest, destOffset) {
  2023. convertToRgb(src, srcOffset, 1, dest, destOffset);
  2024. },
  2025. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  2026. dest, destOffset, bits,
  2027. alpha01) {
  2028. var scale = 1 / ((1 << bits) - 1);
  2029. for (var i = 0; i < count; i++) {
  2030. convertToRgb(src, srcOffset, scale, dest, destOffset);
  2031. srcOffset += 4;
  2032. destOffset += 3 + alpha01;
  2033. }
  2034. },
  2035. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  2036. alpha01) {
  2037. return (inputLength / 4 * (3 + alpha01)) | 0;
  2038. },
  2039. isPassthrough: ColorSpace.prototype.isPassthrough,
  2040. fillRgb: ColorSpace.prototype.fillRgb,
  2041. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  2042. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  2043. },
  2044. usesZeroToOneRange: true
  2045. };
  2046. return DeviceCmykCS;
  2047. })();
  2048. //
  2049. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  2050. //
  2051. var CalGrayCS = (function CalGrayCSClosure() {
  2052. function CalGrayCS(whitePoint, blackPoint, gamma) {
  2053. this.name = 'CalGray';
  2054. this.numComps = 1;
  2055. this.defaultColor = new Float32Array([0]);
  2056. if (!whitePoint) {
  2057. error('WhitePoint missing - required for color space CalGray');
  2058. }
  2059. blackPoint = blackPoint || [0, 0, 0];
  2060. gamma = gamma || 1;
  2061. // Translate arguments to spec variables.
  2062. this.XW = whitePoint[0];
  2063. this.YW = whitePoint[1];
  2064. this.ZW = whitePoint[2];
  2065. this.XB = blackPoint[0];
  2066. this.YB = blackPoint[1];
  2067. this.ZB = blackPoint[2];
  2068. this.G = gamma;
  2069. // Validate variables as per spec.
  2070. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  2071. error('Invalid WhitePoint components for ' + this.name +
  2072. ', no fallback available');
  2073. }
  2074. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  2075. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  2076. this.XB = this.YB = this.ZB = 0;
  2077. }
  2078. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  2079. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  2080. ', ZB: ' + this.ZB + ', only default values are supported.');
  2081. }
  2082. if (this.G < 1) {
  2083. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  2084. ', falling back to default');
  2085. this.G = 1;
  2086. }
  2087. }
  2088. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  2089. // A represents a gray component of a calibrated gray space.
  2090. // A <---> AG in the spec
  2091. var A = src[srcOffset] * scale;
  2092. var AG = Math.pow(A, cs.G);
  2093. // Computes L as per spec. ( = cs.YW * AG )
  2094. // Except if other than default BlackPoint values are used.
  2095. var L = cs.YW * AG;
  2096. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  2097. // Convert values to rgb range [0, 255].
  2098. var val = Math.max(295.8 * Math.pow(L, 0.333333333333333333) - 40.8, 0) | 0;
  2099. dest[destOffset] = val;
  2100. dest[destOffset + 1] = val;
  2101. dest[destOffset + 2] = val;
  2102. }
  2103. CalGrayCS.prototype = {
  2104. getRgb: ColorSpace.prototype.getRgb,
  2105. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  2106. dest, destOffset) {
  2107. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  2108. },
  2109. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  2110. dest, destOffset, bits,
  2111. alpha01) {
  2112. var scale = 1 / ((1 << bits) - 1);
  2113. for (var i = 0; i < count; ++i) {
  2114. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  2115. srcOffset += 1;
  2116. destOffset += 3 + alpha01;
  2117. }
  2118. },
  2119. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  2120. return inputLength * (3 + alpha01);
  2121. },
  2122. isPassthrough: ColorSpace.prototype.isPassthrough,
  2123. fillRgb: ColorSpace.prototype.fillRgb,
  2124. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  2125. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  2126. },
  2127. usesZeroToOneRange: true
  2128. };
  2129. return CalGrayCS;
  2130. })();
  2131. //
  2132. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  2133. //
  2134. var LabCS = (function LabCSClosure() {
  2135. function LabCS(whitePoint, blackPoint, range) {
  2136. this.name = 'Lab';
  2137. this.numComps = 3;
  2138. this.defaultColor = new Float32Array([0, 0, 0]);
  2139. if (!whitePoint) {
  2140. error('WhitePoint missing - required for color space Lab');
  2141. }
  2142. blackPoint = blackPoint || [0, 0, 0];
  2143. range = range || [-100, 100, -100, 100];
  2144. // Translate args to spec variables
  2145. this.XW = whitePoint[0];
  2146. this.YW = whitePoint[1];
  2147. this.ZW = whitePoint[2];
  2148. this.amin = range[0];
  2149. this.amax = range[1];
  2150. this.bmin = range[2];
  2151. this.bmax = range[3];
  2152. // These are here just for completeness - the spec doesn't offer any
  2153. // formulas that use BlackPoint in Lab
  2154. this.XB = blackPoint[0];
  2155. this.YB = blackPoint[1];
  2156. this.ZB = blackPoint[2];
  2157. // Validate vars as per spec
  2158. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  2159. error('Invalid WhitePoint components, no fallback available');
  2160. }
  2161. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  2162. info('Invalid BlackPoint, falling back to default');
  2163. this.XB = this.YB = this.ZB = 0;
  2164. }
  2165. if (this.amin > this.amax || this.bmin > this.bmax) {
  2166. info('Invalid Range, falling back to defaults');
  2167. this.amin = -100;
  2168. this.amax = 100;
  2169. this.bmin = -100;
  2170. this.bmax = 100;
  2171. }
  2172. }
  2173. // Function g(x) from spec
  2174. function fn_g(x) {
  2175. if (x >= 6 / 29) {
  2176. return x * x * x;
  2177. } else {
  2178. return (108 / 841) * (x - 4 / 29);
  2179. }
  2180. }
  2181. function decode(value, high1, low2, high2) {
  2182. return low2 + (value) * (high2 - low2) / (high1);
  2183. }
  2184. // If decoding is needed maxVal should be 2^bits per component - 1.
  2185. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  2186. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  2187. // not the usual [0, 1]. If a command like setFillColor is used the src
  2188. // values will already be within the correct range. However, if we are
  2189. // converting an image we have to map the values to the correct range given
  2190. // above.
  2191. // Ls,as,bs <---> L*,a*,b* in the spec
  2192. var Ls = src[srcOffset];
  2193. var as = src[srcOffset + 1];
  2194. var bs = src[srcOffset + 2];
  2195. if (maxVal !== false) {
  2196. Ls = decode(Ls, maxVal, 0, 100);
  2197. as = decode(as, maxVal, cs.amin, cs.amax);
  2198. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  2199. }
  2200. // Adjust limits of 'as' and 'bs'
  2201. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  2202. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  2203. // Computes intermediate variables X,Y,Z as per spec
  2204. var M = (Ls + 16) / 116;
  2205. var L = M + (as / 500);
  2206. var N = M - (bs / 200);
  2207. var X = cs.XW * fn_g(L);
  2208. var Y = cs.YW * fn_g(M);
  2209. var Z = cs.ZW * fn_g(N);
  2210. var r, g, b;
  2211. // Using different conversions for D50 and D65 white points,
  2212. // per http://www.color.org/srgb.pdf
  2213. if (cs.ZW < 1) {
  2214. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  2215. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  2216. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  2217. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  2218. } else {
  2219. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  2220. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  2221. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  2222. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  2223. }
  2224. // clamp color values to [0,1] range then convert to [0,255] range.
  2225. dest[destOffset] = r <= 0 ? 0 : r >= 1 ? 255 : Math.sqrt(r) * 255 | 0;
  2226. dest[destOffset + 1] = g <= 0 ? 0 : g >= 1 ? 255 : Math.sqrt(g) * 255 | 0;
  2227. dest[destOffset + 2] = b <= 0 ? 0 : b >= 1 ? 255 : Math.sqrt(b) * 255 | 0;
  2228. }
  2229. LabCS.prototype = {
  2230. getRgb: ColorSpace.prototype.getRgb,
  2231. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  2232. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  2233. },
  2234. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  2235. dest, destOffset, bits,
  2236. alpha01) {
  2237. var maxVal = (1 << bits) - 1;
  2238. for (var i = 0; i < count; i++) {
  2239. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  2240. srcOffset += 3;
  2241. destOffset += 3 + alpha01;
  2242. }
  2243. },
  2244. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  2245. return (inputLength * (3 + alpha01) / 3) | 0;
  2246. },
  2247. isPassthrough: ColorSpace.prototype.isPassthrough,
  2248. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  2249. // XXX: Decoding is handled with the lab conversion because of the strange
  2250. // ranges that are used.
  2251. return true;
  2252. },
  2253. usesZeroToOneRange: false
  2254. };
  2255. return LabCS;
  2256. })();
  2257. var PDFFunction = (function PDFFunctionClosure() {
  2258. var CONSTRUCT_SAMPLED = 0;
  2259. var CONSTRUCT_INTERPOLATED = 2;
  2260. var CONSTRUCT_STICHED = 3;
  2261. var CONSTRUCT_POSTSCRIPT = 4;
  2262. return {
  2263. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  2264. str) {
  2265. var i, ii;
  2266. var length = 1;
  2267. for (i = 0, ii = size.length; i < ii; i++) {
  2268. length *= size[i];
  2269. }
  2270. length *= outputSize;
  2271. var array = [];
  2272. var codeSize = 0;
  2273. var codeBuf = 0;
  2274. // 32 is a valid bps so shifting won't work
  2275. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  2276. var strBytes = str.getBytes((length * bps + 7) / 8);
  2277. var strIdx = 0;
  2278. for (i = 0; i < length; i++) {
  2279. while (codeSize < bps) {
  2280. codeBuf <<= 8;
  2281. codeBuf |= strBytes[strIdx++];
  2282. codeSize += 8;
  2283. }
  2284. codeSize -= bps;
  2285. array.push((codeBuf >> codeSize) * sampleMul);
  2286. codeBuf &= (1 << codeSize) - 1;
  2287. }
  2288. return array;
  2289. },
  2290. getIR: function PDFFunction_getIR(xref, fn) {
  2291. var dict = fn.dict;
  2292. if (!dict) {
  2293. dict = fn;
  2294. }
  2295. var types = [this.constructSampled,
  2296. null,
  2297. this.constructInterpolated,
  2298. this.constructStiched,
  2299. this.constructPostScript];
  2300. var typeNum = dict.get('FunctionType');
  2301. var typeFn = types[typeNum];
  2302. if (!typeFn) {
  2303. error('Unknown type of function');
  2304. }
  2305. return typeFn.call(this, fn, dict, xref);
  2306. },
  2307. fromIR: function PDFFunction_fromIR(IR) {
  2308. var type = IR[0];
  2309. switch (type) {
  2310. case CONSTRUCT_SAMPLED:
  2311. return this.constructSampledFromIR(IR);
  2312. case CONSTRUCT_INTERPOLATED:
  2313. return this.constructInterpolatedFromIR(IR);
  2314. case CONSTRUCT_STICHED:
  2315. return this.constructStichedFromIR(IR);
  2316. //case CONSTRUCT_POSTSCRIPT:
  2317. default:
  2318. return this.constructPostScriptFromIR(IR);
  2319. }
  2320. },
  2321. parse: function PDFFunction_parse(xref, fn) {
  2322. var IR = this.getIR(xref, fn);
  2323. return this.fromIR(IR);
  2324. },
  2325. constructSampled: function PDFFunction_constructSampled(str, dict) {
  2326. function toMultiArray(arr) {
  2327. var inputLength = arr.length;
  2328. var out = [];
  2329. var index = 0;
  2330. for (var i = 0; i < inputLength; i += 2) {
  2331. out[index] = [arr[i], arr[i + 1]];
  2332. ++index;
  2333. }
  2334. return out;
  2335. }
  2336. var domain = dict.get('Domain');
  2337. var range = dict.get('Range');
  2338. if (!domain || !range) {
  2339. error('No domain or range');
  2340. }
  2341. var inputSize = domain.length / 2;
  2342. var outputSize = range.length / 2;
  2343. domain = toMultiArray(domain);
  2344. range = toMultiArray(range);
  2345. var size = dict.get('Size');
  2346. var bps = dict.get('BitsPerSample');
  2347. var order = dict.get('Order') || 1;
  2348. if (order !== 1) {
  2349. // No description how cubic spline interpolation works in PDF32000:2008
  2350. // As in poppler, ignoring order, linear interpolation may work as good
  2351. info('No support for cubic spline interpolation: ' + order);
  2352. }
  2353. var encode = dict.get('Encode');
  2354. if (!encode) {
  2355. encode = [];
  2356. for (var i = 0; i < inputSize; ++i) {
  2357. encode.push(0);
  2358. encode.push(size[i] - 1);
  2359. }
  2360. }
  2361. encode = toMultiArray(encode);
  2362. var decode = dict.get('Decode');
  2363. if (!decode) {
  2364. decode = range;
  2365. } else {
  2366. decode = toMultiArray(decode);
  2367. }
  2368. var samples = this.getSampleArray(size, outputSize, bps, str);
  2369. return [
  2370. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  2371. outputSize, Math.pow(2, bps) - 1, range
  2372. ];
  2373. },
  2374. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  2375. // See chapter 3, page 109 of the PDF reference
  2376. function interpolate(x, xmin, xmax, ymin, ymax) {
  2377. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  2378. }
  2379. return function constructSampledFromIRResult(args) {
  2380. // See chapter 3, page 110 of the PDF reference.
  2381. var m = IR[1];
  2382. var domain = IR[2];
  2383. var encode = IR[3];
  2384. var decode = IR[4];
  2385. var samples = IR[5];
  2386. var size = IR[6];
  2387. var n = IR[7];
  2388. //var mask = IR[8];
  2389. var range = IR[9];
  2390. if (m != args.length) {
  2391. error('Incorrect number of arguments: ' + m + ' != ' +
  2392. args.length);
  2393. }
  2394. var x = args;
  2395. // Building the cube vertices: its part and sample index
  2396. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  2397. var cubeVertices = 1 << m;
  2398. var cubeN = new Float64Array(cubeVertices);
  2399. var cubeVertex = new Uint32Array(cubeVertices);
  2400. var i, j;
  2401. for (j = 0; j < cubeVertices; j++) {
  2402. cubeN[j] = 1;
  2403. }
  2404. var k = n, pos = 1;
  2405. // Map x_i to y_j for 0 <= i < m using the sampled function.
  2406. for (i = 0; i < m; ++i) {
  2407. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  2408. var domain_2i = domain[i][0];
  2409. var domain_2i_1 = domain[i][1];
  2410. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  2411. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  2412. // Encode_2i, Encode_2i+1)
  2413. var e = interpolate(xi, domain_2i, domain_2i_1,
  2414. encode[i][0], encode[i][1]);
  2415. // e_i' = min(max(e_i, 0), Size_i - 1)
  2416. var size_i = size[i];
  2417. e = Math.min(Math.max(e, 0), size_i - 1);
  2418. // Adjusting the cube: N and vertex sample index
  2419. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  2420. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  2421. var n1 = e - e0; // (e - e0) / (e1 - e0);
  2422. var offset0 = e0 * k;
  2423. var offset1 = offset0 + k; // e1 * k
  2424. for (j = 0; j < cubeVertices; j++) {
  2425. if (j & pos) {
  2426. cubeN[j] *= n1;
  2427. cubeVertex[j] += offset1;
  2428. } else {
  2429. cubeN[j] *= n0;
  2430. cubeVertex[j] += offset0;
  2431. }
  2432. }
  2433. k *= size_i;
  2434. pos <<= 1;
  2435. }
  2436. var y = new Float64Array(n);
  2437. for (j = 0; j < n; ++j) {
  2438. // Sum all cube vertices' samples portions
  2439. var rj = 0;
  2440. for (i = 0; i < cubeVertices; i++) {
  2441. rj += samples[cubeVertex[i] + j] * cubeN[i];
  2442. }
  2443. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  2444. // Decode_2j, Decode_2j+1)
  2445. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  2446. // y_j = min(max(r_j, range_2j), range_2j+1)
  2447. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  2448. }
  2449. return y;
  2450. };
  2451. },
  2452. constructInterpolated: function PDFFunction_constructInterpolated(str,
  2453. dict) {
  2454. var c0 = dict.get('C0') || [0];
  2455. var c1 = dict.get('C1') || [1];
  2456. var n = dict.get('N');
  2457. if (!isArray(c0) || !isArray(c1)) {
  2458. error('Illegal dictionary for interpolated function');
  2459. }
  2460. var length = c0.length;
  2461. var diff = [];
  2462. for (var i = 0; i < length; ++i) {
  2463. diff.push(c1[i] - c0[i]);
  2464. }
  2465. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  2466. },
  2467. constructInterpolatedFromIR:
  2468. function PDFFunction_constructInterpolatedFromIR(IR) {
  2469. var c0 = IR[1];
  2470. var diff = IR[2];
  2471. var n = IR[3];
  2472. var length = diff.length;
  2473. return function constructInterpolatedFromIRResult(args) {
  2474. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  2475. var out = [];
  2476. for (var j = 0; j < length; ++j) {
  2477. out.push(c0[j] + (x * diff[j]));
  2478. }
  2479. return out;
  2480. };
  2481. },
  2482. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  2483. var domain = dict.get('Domain');
  2484. if (!domain) {
  2485. error('No domain');
  2486. }
  2487. var inputSize = domain.length / 2;
  2488. if (inputSize != 1) {
  2489. error('Bad domain for stiched function');
  2490. }
  2491. var fnRefs = dict.get('Functions');
  2492. var fns = [];
  2493. for (var i = 0, ii = fnRefs.length; i < ii; ++i) {
  2494. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  2495. }
  2496. var bounds = dict.get('Bounds');
  2497. var encode = dict.get('Encode');
  2498. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  2499. },
  2500. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  2501. var domain = IR[1];
  2502. var bounds = IR[2];
  2503. var encode = IR[3];
  2504. var fnsIR = IR[4];
  2505. var fns = [];
  2506. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  2507. fns.push(PDFFunction.fromIR(fnsIR[i]));
  2508. }
  2509. return function constructStichedFromIRResult(args) {
  2510. var clip = function constructStichedFromIRClip(v, min, max) {
  2511. if (v > max) {
  2512. v = max;
  2513. } else if (v < min) {
  2514. v = min;
  2515. }
  2516. return v;
  2517. };
  2518. // clip to domain
  2519. var v = clip(args[0], domain[0], domain[1]);
  2520. // calulate which bound the value is in
  2521. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  2522. if (v < bounds[i]) {
  2523. break;
  2524. }
  2525. }
  2526. // encode value into domain of function
  2527. var dmin = domain[0];
  2528. if (i > 0) {
  2529. dmin = bounds[i - 1];
  2530. }
  2531. var dmax = domain[1];
  2532. if (i < bounds.length) {
  2533. dmax = bounds[i];
  2534. }
  2535. var rmin = encode[2 * i];
  2536. var rmax = encode[2 * i + 1];
  2537. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  2538. // call the appropriate function
  2539. return fns[i]([v2]);
  2540. };
  2541. },
  2542. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  2543. xref) {
  2544. var domain = dict.get('Domain');
  2545. var range = dict.get('Range');
  2546. if (!domain) {
  2547. error('No domain.');
  2548. }
  2549. if (!range) {
  2550. error('No range.');
  2551. }
  2552. var lexer = new PostScriptLexer(fn);
  2553. var parser = new PostScriptParser(lexer);
  2554. var code = parser.parse();
  2555. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  2556. },
  2557. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  2558. IR) {
  2559. var domain = IR[1];
  2560. var range = IR[2];
  2561. var code = IR[3];
  2562. var numOutputs = range.length >> 1;
  2563. var numInputs = domain.length >> 1;
  2564. var evaluator = new PostScriptEvaluator(code);
  2565. // Cache the values for a big speed up, the cache size is limited though
  2566. // since the number of possible values can be huge from a PS function.
  2567. var cache = {};
  2568. // The MAX_CACHE_SIZE is set to ~4x the maximum number of distinct values
  2569. // seen in our tests.
  2570. var MAX_CACHE_SIZE = 2048 * 4;
  2571. var cache_available = MAX_CACHE_SIZE;
  2572. return function constructPostScriptFromIRResult(args) {
  2573. var i, value;
  2574. var key = '';
  2575. var input = new Array(numInputs);
  2576. for (i = 0; i < numInputs; i++) {
  2577. value = args[i];
  2578. input[i] = value;
  2579. key += value + '_';
  2580. }
  2581. var cachedValue = cache[key];
  2582. if (cachedValue !== undefined) {
  2583. return cachedValue;
  2584. }
  2585. var output = new Array(numOutputs);
  2586. var stack = evaluator.execute(input);
  2587. var stackIndex = stack.length - numOutputs;
  2588. for (i = 0; i < numOutputs; i++) {
  2589. value = stack[stackIndex + i];
  2590. var bound = range[i * 2];
  2591. if (value < bound) {
  2592. value = bound;
  2593. } else {
  2594. bound = range[i * 2 +1];
  2595. if (value > bound) {
  2596. value = bound;
  2597. }
  2598. }
  2599. output[i] = value;
  2600. }
  2601. if (cache_available > 0) {
  2602. cache_available--;
  2603. cache[key] = output;
  2604. }
  2605. return output;
  2606. };
  2607. }
  2608. };
  2609. })();
  2610. var PostScriptStack = (function PostScriptStackClosure() {
  2611. var MAX_STACK_SIZE = 100;
  2612. function PostScriptStack(initialStack) {
  2613. this.stack = initialStack || [];
  2614. }
  2615. PostScriptStack.prototype = {
  2616. push: function PostScriptStack_push(value) {
  2617. if (this.stack.length >= MAX_STACK_SIZE) {
  2618. error('PostScript function stack overflow.');
  2619. }
  2620. this.stack.push(value);
  2621. },
  2622. pop: function PostScriptStack_pop() {
  2623. if (this.stack.length <= 0) {
  2624. error('PostScript function stack underflow.');
  2625. }
  2626. return this.stack.pop();
  2627. },
  2628. copy: function PostScriptStack_copy(n) {
  2629. if (this.stack.length + n >= MAX_STACK_SIZE) {
  2630. error('PostScript function stack overflow.');
  2631. }
  2632. var stack = this.stack;
  2633. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++) {
  2634. stack.push(stack[i]);
  2635. }
  2636. },
  2637. index: function PostScriptStack_index(n) {
  2638. this.push(this.stack[this.stack.length - n - 1]);
  2639. },
  2640. // rotate the last n stack elements p times
  2641. roll: function PostScriptStack_roll(n, p) {
  2642. var stack = this.stack;
  2643. var l = stack.length - n;
  2644. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  2645. for (i = l, j = r; i < j; i++, j--) {
  2646. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2647. }
  2648. for (i = l, j = c - 1; i < j; i++, j--) {
  2649. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2650. }
  2651. for (i = c, j = r; i < j; i++, j--) {
  2652. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2653. }
  2654. }
  2655. };
  2656. return PostScriptStack;
  2657. })();
  2658. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  2659. function PostScriptEvaluator(operators) {
  2660. this.operators = operators;
  2661. }
  2662. PostScriptEvaluator.prototype = {
  2663. execute: function PostScriptEvaluator_execute(initialStack) {
  2664. var stack = new PostScriptStack(initialStack);
  2665. var counter = 0;
  2666. var operators = this.operators;
  2667. var length = operators.length;
  2668. var operator, a, b;
  2669. while (counter < length) {
  2670. operator = operators[counter++];
  2671. if (typeof operator == 'number') {
  2672. // Operator is really an operand and should be pushed to the stack.
  2673. stack.push(operator);
  2674. continue;
  2675. }
  2676. switch (operator) {
  2677. // non standard ps operators
  2678. case 'jz': // jump if false
  2679. b = stack.pop();
  2680. a = stack.pop();
  2681. if (!a) {
  2682. counter = b;
  2683. }
  2684. break;
  2685. case 'j': // jump
  2686. a = stack.pop();
  2687. counter = a;
  2688. break;
  2689. // all ps operators in alphabetical order (excluding if/ifelse)
  2690. case 'abs':
  2691. a = stack.pop();
  2692. stack.push(Math.abs(a));
  2693. break;
  2694. case 'add':
  2695. b = stack.pop();
  2696. a = stack.pop();
  2697. stack.push(a + b);
  2698. break;
  2699. case 'and':
  2700. b = stack.pop();
  2701. a = stack.pop();
  2702. if (isBool(a) && isBool(b)) {
  2703. stack.push(a && b);
  2704. } else {
  2705. stack.push(a & b);
  2706. }
  2707. break;
  2708. case 'atan':
  2709. a = stack.pop();
  2710. stack.push(Math.atan(a));
  2711. break;
  2712. case 'bitshift':
  2713. b = stack.pop();
  2714. a = stack.pop();
  2715. if (a > 0) {
  2716. stack.push(a << b);
  2717. } else {
  2718. stack.push(a >> b);
  2719. }
  2720. break;
  2721. case 'ceiling':
  2722. a = stack.pop();
  2723. stack.push(Math.ceil(a));
  2724. break;
  2725. case 'copy':
  2726. a = stack.pop();
  2727. stack.copy(a);
  2728. break;
  2729. case 'cos':
  2730. a = stack.pop();
  2731. stack.push(Math.cos(a));
  2732. break;
  2733. case 'cvi':
  2734. a = stack.pop() | 0;
  2735. stack.push(a);
  2736. break;
  2737. case 'cvr':
  2738. // noop
  2739. break;
  2740. case 'div':
  2741. b = stack.pop();
  2742. a = stack.pop();
  2743. stack.push(a / b);
  2744. break;
  2745. case 'dup':
  2746. stack.copy(1);
  2747. break;
  2748. case 'eq':
  2749. b = stack.pop();
  2750. a = stack.pop();
  2751. stack.push(a == b);
  2752. break;
  2753. case 'exch':
  2754. stack.roll(2, 1);
  2755. break;
  2756. case 'exp':
  2757. b = stack.pop();
  2758. a = stack.pop();
  2759. stack.push(Math.pow(a, b));
  2760. break;
  2761. case 'false':
  2762. stack.push(false);
  2763. break;
  2764. case 'floor':
  2765. a = stack.pop();
  2766. stack.push(Math.floor(a));
  2767. break;
  2768. case 'ge':
  2769. b = stack.pop();
  2770. a = stack.pop();
  2771. stack.push(a >= b);
  2772. break;
  2773. case 'gt':
  2774. b = stack.pop();
  2775. a = stack.pop();
  2776. stack.push(a > b);
  2777. break;
  2778. case 'idiv':
  2779. b = stack.pop();
  2780. a = stack.pop();
  2781. stack.push((a / b) | 0);
  2782. break;
  2783. case 'index':
  2784. a = stack.pop();
  2785. stack.index(a);
  2786. break;
  2787. case 'le':
  2788. b = stack.pop();
  2789. a = stack.pop();
  2790. stack.push(a <= b);
  2791. break;
  2792. case 'ln':
  2793. a = stack.pop();
  2794. stack.push(Math.log(a));
  2795. break;
  2796. case 'log':
  2797. a = stack.pop();
  2798. stack.push(Math.log(a) / Math.LN10);
  2799. break;
  2800. case 'lt':
  2801. b = stack.pop();
  2802. a = stack.pop();
  2803. stack.push(a < b);
  2804. break;
  2805. case 'mod':
  2806. b = stack.pop();
  2807. a = stack.pop();
  2808. stack.push(a % b);
  2809. break;
  2810. case 'mul':
  2811. b = stack.pop();
  2812. a = stack.pop();
  2813. stack.push(a * b);
  2814. break;
  2815. case 'ne':
  2816. b = stack.pop();
  2817. a = stack.pop();
  2818. stack.push(a != b);
  2819. break;
  2820. case 'neg':
  2821. a = stack.pop();
  2822. stack.push(-a);
  2823. break;
  2824. case 'not':
  2825. a = stack.pop();
  2826. if (isBool(a)) {
  2827. stack.push(!a);
  2828. } else {
  2829. stack.push(~a);
  2830. }
  2831. break;
  2832. case 'or':
  2833. b = stack.pop();
  2834. a = stack.pop();
  2835. if (isBool(a) && isBool(b)) {
  2836. stack.push(a || b);
  2837. } else {
  2838. stack.push(a | b);
  2839. }
  2840. break;
  2841. case 'pop':
  2842. stack.pop();
  2843. break;
  2844. case 'roll':
  2845. b = stack.pop();
  2846. a = stack.pop();
  2847. stack.roll(a, b);
  2848. break;
  2849. case 'round':
  2850. a = stack.pop();
  2851. stack.push(Math.round(a));
  2852. break;
  2853. case 'sin':
  2854. a = stack.pop();
  2855. stack.push(Math.sin(a));
  2856. break;
  2857. case 'sqrt':
  2858. a = stack.pop();
  2859. stack.push(Math.sqrt(a));
  2860. break;
  2861. case 'sub':
  2862. b = stack.pop();
  2863. a = stack.pop();
  2864. stack.push(a - b);
  2865. break;
  2866. case 'true':
  2867. stack.push(true);
  2868. break;
  2869. case 'truncate':
  2870. a = stack.pop();
  2871. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  2872. stack.push(a);
  2873. break;
  2874. case 'xor':
  2875. b = stack.pop();
  2876. a = stack.pop();
  2877. if (isBool(a) && isBool(b)) {
  2878. stack.push(a != b);
  2879. } else {
  2880. stack.push(a ^ b);
  2881. }
  2882. break;
  2883. default:
  2884. error('Unknown operator ' + operator);
  2885. break;
  2886. }
  2887. }
  2888. return stack.stack;
  2889. }
  2890. };
  2891. return PostScriptEvaluator;
  2892. })();
  2893. var DEFAULT_ICON_SIZE = 22; // px
  2894. var HIGHLIGHT_OFFSET = 4; // px
  2895. var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
  2896. var Annotation = (function AnnotationClosure() {
  2897. // 12.5.5: Algorithm: Appearance streams
  2898. function getTransformMatrix(rect, bbox, matrix) {
  2899. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  2900. var minX = bounds[0];
  2901. var minY = bounds[1];
  2902. var maxX = bounds[2];
  2903. var maxY = bounds[3];
  2904. if (minX === maxX || minY === maxY) {
  2905. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  2906. // just apply the transform for rect
  2907. return [1, 0, 0, 1, rect[0], rect[1]];
  2908. }
  2909. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  2910. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  2911. return [
  2912. xRatio,
  2913. 0,
  2914. 0,
  2915. yRatio,
  2916. rect[0] - minX * xRatio,
  2917. rect[1] - minY * yRatio
  2918. ];
  2919. }
  2920. function getDefaultAppearance(dict) {
  2921. var appearanceState = dict.get('AP');
  2922. if (!isDict(appearanceState)) {
  2923. return;
  2924. }
  2925. var appearance;
  2926. var appearances = appearanceState.get('N');
  2927. if (isDict(appearances)) {
  2928. var as = dict.get('AS');
  2929. if (as && appearances.has(as.name)) {
  2930. appearance = appearances.get(as.name);
  2931. }
  2932. } else {
  2933. appearance = appearances;
  2934. }
  2935. return appearance;
  2936. }
  2937. function Annotation(params) {
  2938. if (params.data) {
  2939. this.data = params.data;
  2940. return;
  2941. }
  2942. var dict = params.dict;
  2943. var data = this.data = {};
  2944. data.subtype = dict.get('Subtype').name;
  2945. var rect = dict.get('Rect') || [0, 0, 0, 0];
  2946. data.rect = Util.normalizeRect(rect);
  2947. data.annotationFlags = dict.get('F');
  2948. var color = dict.get('C');
  2949. if (isArray(color) && color.length === 3) {
  2950. // TODO(mack): currently only supporting rgb; need support different
  2951. // colorspaces
  2952. data.color = color;
  2953. } else {
  2954. data.color = [0, 0, 0];
  2955. }
  2956. // Some types of annotations have border style dict which has more
  2957. // info than the border array
  2958. if (dict.has('BS')) {
  2959. var borderStyle = dict.get('BS');
  2960. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  2961. } else {
  2962. var borderArray = dict.get('Border') || [0, 0, 1];
  2963. data.borderWidth = borderArray[2] || 0;
  2964. // TODO: implement proper support for annotations with line dash patterns.
  2965. var dashArray = borderArray[3];
  2966. if (data.borderWidth > 0 && dashArray) {
  2967. if (!isArray(dashArray)) {
  2968. // Ignore the border if dashArray is not actually an array,
  2969. // this is consistent with the behaviour in Adobe Reader.
  2970. data.borderWidth = 0;
  2971. } else {
  2972. var dashArrayLength = dashArray.length;
  2973. if (dashArrayLength > 0) {
  2974. // According to the PDF specification: the elements in a dashArray
  2975. // shall be numbers that are nonnegative and not all equal to zero.
  2976. var isInvalid = false;
  2977. var numPositive = 0;
  2978. for (var i = 0; i < dashArrayLength; i++) {
  2979. var validNumber = (+dashArray[i] >= 0);
  2980. if (!validNumber) {
  2981. isInvalid = true;
  2982. break;
  2983. } else if (dashArray[i] > 0) {
  2984. numPositive++;
  2985. }
  2986. }
  2987. if (isInvalid || numPositive === 0) {
  2988. data.borderWidth = 0;
  2989. }
  2990. }
  2991. }
  2992. }
  2993. }
  2994. this.appearance = getDefaultAppearance(dict);
  2995. data.hasAppearance = !!this.appearance;
  2996. data.id = params.ref.num;
  2997. }
  2998. Annotation.prototype = {
  2999. getData: function Annotation_getData() {
  3000. return this.data;
  3001. },
  3002. hasHtml: function Annotation_hasHtml() {
  3003. return false;
  3004. },
  3005. getHtmlElement: function Annotation_getHtmlElement(commonObjs) {
  3006. throw new NotImplementedException(
  3007. 'getHtmlElement() should be implemented in subclass');
  3008. },
  3009. // TODO(mack): Remove this, it's not really that helpful.
  3010. getEmptyContainer: function Annotation_getEmptyContainer(tagName, rect,
  3011. borderWidth) {
  3012. assert(!isWorker,
  3013. 'getEmptyContainer() should be called from main thread');
  3014. var bWidth = borderWidth || 0;
  3015. rect = rect || this.data.rect;
  3016. var element = document.createElement(tagName);
  3017. element.style.borderWidth = bWidth + 'px';
  3018. var width = rect[2] - rect[0] - 2 * bWidth;
  3019. var height = rect[3] - rect[1] - 2 * bWidth;
  3020. element.style.width = width + 'px';
  3021. element.style.height = height + 'px';
  3022. return element;
  3023. },
  3024. isInvisible: function Annotation_isInvisible() {
  3025. var data = this.data;
  3026. if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {
  3027. return false;
  3028. } else {
  3029. return !!(data &&
  3030. data.annotationFlags && // Default: not invisible
  3031. data.annotationFlags & 0x1); // Invisible
  3032. }
  3033. },
  3034. isViewable: function Annotation_isViewable() {
  3035. var data = this.data;
  3036. return !!(!this.isInvisible() &&
  3037. data &&
  3038. (!data.annotationFlags ||
  3039. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  3040. data.rect); // rectangle is nessessary
  3041. },
  3042. isPrintable: function Annotation_isPrintable() {
  3043. var data = this.data;
  3044. return !!(!this.isInvisible() &&
  3045. data &&
  3046. data.annotationFlags && // Default: not printable
  3047. data.annotationFlags & 0x4 && // Print
  3048. data.rect); // rectangle is nessessary
  3049. },
  3050. loadResources: function Annotation_loadResources(keys) {
  3051. return new Promise(function (resolve, reject) {
  3052. this.appearance.dict.getAsync('Resources').then(function (resources) {
  3053. if (!resources) {
  3054. resolve();
  3055. return;
  3056. }
  3057. var objectLoader = new ObjectLoader(resources.map,
  3058. keys,
  3059. resources.xref);
  3060. objectLoader.load().then(function() {
  3061. resolve(resources);
  3062. }, reject);
  3063. }, reject);
  3064. }.bind(this));
  3065. },
  3066. getOperatorList: function Annotation_getOperatorList(evaluator) {
  3067. if (!this.appearance) {
  3068. return Promise.resolve(new OperatorList());
  3069. }
  3070. var data = this.data;
  3071. var appearanceDict = this.appearance.dict;
  3072. var resourcesPromise = this.loadResources([
  3073. 'ExtGState',
  3074. 'ColorSpace',
  3075. 'Pattern',
  3076. 'Shading',
  3077. 'XObject',
  3078. 'Font'
  3079. // ProcSet
  3080. // Properties
  3081. ]);
  3082. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  3083. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  3084. var transform = getTransformMatrix(data.rect, bbox, matrix);
  3085. var self = this;
  3086. return resourcesPromise.then(function(resources) {
  3087. var opList = new OperatorList();
  3088. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  3089. return evaluator.getOperatorList(self.appearance, resources, opList).
  3090. then(function () {
  3091. opList.addOp(OPS.endAnnotation, []);
  3092. self.appearance.reset();
  3093. return opList;
  3094. });
  3095. });
  3096. }
  3097. };
  3098. Annotation.getConstructor =
  3099. function Annotation_getConstructor(subtype, fieldType) {
  3100. if (!subtype) {
  3101. return;
  3102. }
  3103. // TODO(mack): Implement FreeText annotations
  3104. if (subtype === 'Link') {
  3105. return LinkAnnotation;
  3106. } else if (subtype === 'Text') {
  3107. return TextAnnotation;
  3108. } else if (subtype === 'Widget') {
  3109. if (!fieldType) {
  3110. return;
  3111. }
  3112. if (fieldType === 'Tx') {
  3113. return TextWidgetAnnotation;
  3114. } else {
  3115. return WidgetAnnotation;
  3116. }
  3117. } else {
  3118. return Annotation;
  3119. }
  3120. };
  3121. // TODO(mack): Support loading annotation from data
  3122. Annotation.fromData = function Annotation_fromData(data) {
  3123. var subtype = data.subtype;
  3124. var fieldType = data.fieldType;
  3125. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3126. if (Constructor) {
  3127. return new Constructor({ data: data });
  3128. }
  3129. };
  3130. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  3131. var dict = xref.fetchIfRef(ref);
  3132. if (!isDict(dict)) {
  3133. return;
  3134. }
  3135. var subtype = dict.get('Subtype');
  3136. subtype = isName(subtype) ? subtype.name : '';
  3137. if (!subtype) {
  3138. return;
  3139. }
  3140. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3141. fieldType = isName(fieldType) ? fieldType.name : '';
  3142. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3143. if (!Constructor) {
  3144. return;
  3145. }
  3146. var params = {
  3147. dict: dict,
  3148. ref: ref,
  3149. };
  3150. var annotation = new Constructor(params);
  3151. if (annotation.isViewable() || annotation.isPrintable()) {
  3152. return annotation;
  3153. } else {
  3154. warn('unimplemented annotation type: ' + subtype);
  3155. }
  3156. };
  3157. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  3158. annotations, opList, pdfManager, partialEvaluator, intent) {
  3159. function reject(e) {
  3160. annotationsReadyCapability.reject(e);
  3161. }
  3162. var annotationsReadyCapability = createPromiseCapability();
  3163. var annotationPromises = [];
  3164. for (var i = 0, n = annotations.length; i < n; ++i) {
  3165. if (intent === 'display' && annotations[i].isViewable() ||
  3166. intent === 'print' && annotations[i].isPrintable()) {
  3167. annotationPromises.push(
  3168. annotations[i].getOperatorList(partialEvaluator));
  3169. }
  3170. }
  3171. Promise.all(annotationPromises).then(function(datas) {
  3172. opList.addOp(OPS.beginAnnotations, []);
  3173. for (var i = 0, n = datas.length; i < n; ++i) {
  3174. var annotOpList = datas[i];
  3175. opList.addOpList(annotOpList);
  3176. }
  3177. opList.addOp(OPS.endAnnotations, []);
  3178. annotationsReadyCapability.resolve();
  3179. }, reject);
  3180. return annotationsReadyCapability.promise;
  3181. };
  3182. return Annotation;
  3183. })();
  3184. PDFJS.Annotation = Annotation;
  3185. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  3186. function WidgetAnnotation(params) {
  3187. Annotation.call(this, params);
  3188. if (params.data) {
  3189. return;
  3190. }
  3191. var dict = params.dict;
  3192. var data = this.data;
  3193. data.fieldValue = stringToPDFString(
  3194. Util.getInheritableProperty(dict, 'V') || '');
  3195. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  3196. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  3197. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3198. data.fieldType = isName(fieldType) ? fieldType.name : '';
  3199. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  3200. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
  3201. // Building the full field name by collecting the field and
  3202. // its ancestors 'T' data and joining them using '.'.
  3203. var fieldName = [];
  3204. var namedItem = dict;
  3205. var ref = params.ref;
  3206. while (namedItem) {
  3207. var parent = namedItem.get('Parent');
  3208. var parentRef = namedItem.getRaw('Parent');
  3209. var name = namedItem.get('T');
  3210. if (name) {
  3211. fieldName.unshift(stringToPDFString(name));
  3212. } else {
  3213. // The field name is absent, that means more than one field
  3214. // with the same name may exist. Replacing the empty name
  3215. // with the '`' plus index in the parent's 'Kids' array.
  3216. // This is not in the PDF spec but necessary to id the
  3217. // the input controls.
  3218. var kids = parent.get('Kids');
  3219. var j, jj;
  3220. for (j = 0, jj = kids.length; j < jj; j++) {
  3221. var kidRef = kids[j];
  3222. if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
  3223. break;
  3224. }
  3225. }
  3226. fieldName.unshift('`' + j);
  3227. }
  3228. namedItem = parent;
  3229. ref = parentRef;
  3230. }
  3231. data.fullName = fieldName.join('.');
  3232. }
  3233. var parent = Annotation.prototype;
  3234. Util.inherit(WidgetAnnotation, Annotation, {
  3235. isViewable: function WidgetAnnotation_isViewable() {
  3236. if (this.data.fieldType === 'Sig') {
  3237. warn('unimplemented annotation type: Widget signature');
  3238. return false;
  3239. }
  3240. return parent.isViewable.call(this);
  3241. }
  3242. });
  3243. return WidgetAnnotation;
  3244. })();
  3245. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  3246. function TextWidgetAnnotation(params) {
  3247. WidgetAnnotation.call(this, params);
  3248. if (params.data) {
  3249. return;
  3250. }
  3251. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  3252. }
  3253. // TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
  3254. function setTextStyles(element, item, fontObj) {
  3255. var style = element.style;
  3256. style.fontSize = item.fontSize + 'px';
  3257. style.direction = item.fontDirection < 0 ? 'rtl': 'ltr';
  3258. if (!fontObj) {
  3259. return;
  3260. }
  3261. style.fontWeight = fontObj.black ?
  3262. (fontObj.bold ? 'bolder' : 'bold') :
  3263. (fontObj.bold ? 'bold' : 'normal');
  3264. style.fontStyle = fontObj.italic ? 'italic' : 'normal';
  3265. var fontName = fontObj.loadedName;
  3266. var fontFamily = fontName ? '"' + fontName + '", ' : '';
  3267. // Use a reasonable default font if the font doesn't specify a fallback
  3268. var fallbackName = fontObj.fallbackName || 'Helvetica, sans-serif';
  3269. style.fontFamily = fontFamily + fallbackName;
  3270. }
  3271. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  3272. hasHtml: function TextWidgetAnnotation_hasHtml() {
  3273. return !this.data.hasAppearance && !!this.data.fieldValue;
  3274. },
  3275. getHtmlElement: function TextWidgetAnnotation_getHtmlElement(commonObjs) {
  3276. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3277. var item = this.data;
  3278. var element = this.getEmptyContainer('div');
  3279. element.style.display = 'table';
  3280. var content = document.createElement('div');
  3281. content.textContent = item.fieldValue;
  3282. var textAlignment = item.textAlignment;
  3283. content.style.textAlign = ['left', 'center', 'right'][textAlignment];
  3284. content.style.verticalAlign = 'middle';
  3285. content.style.display = 'table-cell';
  3286. var fontObj = item.fontRefName ?
  3287. commonObjs.getData(item.fontRefName) : null;
  3288. setTextStyles(content, item, fontObj);
  3289. element.appendChild(content);
  3290. return element;
  3291. },
  3292. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  3293. if (this.appearance) {
  3294. return Annotation.prototype.getOperatorList.call(this, evaluator);
  3295. }
  3296. var opList = new OperatorList();
  3297. var data = this.data;
  3298. // Even if there is an appearance stream, ignore it. This is the
  3299. // behaviour used by Adobe Reader.
  3300. if (!data.defaultAppearance) {
  3301. return Promise.resolve(opList);
  3302. }
  3303. var stream = new Stream(stringToBytes(data.defaultAppearance));
  3304. return evaluator.getOperatorList(stream, this.fieldResources, opList).
  3305. then(function () {
  3306. return opList;
  3307. });
  3308. }
  3309. });
  3310. return TextWidgetAnnotation;
  3311. })();
  3312. var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
  3313. function InteractiveAnnotation(params) {
  3314. Annotation.call(this, params);
  3315. }
  3316. Util.inherit(InteractiveAnnotation, Annotation, {
  3317. hasHtml: function InteractiveAnnotation_hasHtml() {
  3318. return true;
  3319. },
  3320. highlight: function InteractiveAnnotation_highlight() {
  3321. if (this.highlightElement &&
  3322. this.highlightElement.hasAttribute('hidden')) {
  3323. this.highlightElement.removeAttribute('hidden');
  3324. }
  3325. },
  3326. unhighlight: function InteractiveAnnotation_unhighlight() {
  3327. if (this.highlightElement &&
  3328. !this.highlightElement.hasAttribute('hidden')) {
  3329. this.highlightElement.setAttribute('hidden', true);
  3330. }
  3331. },
  3332. initContainer: function InteractiveAnnotation_initContainer() {
  3333. var item = this.data;
  3334. var rect = item.rect;
  3335. var container = this.getEmptyContainer('section', rect, item.borderWidth);
  3336. container.style.backgroundColor = item.color;
  3337. var color = item.color;
  3338. var rgb = [];
  3339. for (var i = 0; i < 3; ++i) {
  3340. rgb[i] = Math.round(color[i] * 255);
  3341. }
  3342. item.colorCssRgb = Util.makeCssRgb(rgb);
  3343. var highlight = document.createElement('div');
  3344. highlight.className = 'annotationHighlight';
  3345. highlight.style.left = highlight.style.top = -HIGHLIGHT_OFFSET + 'px';
  3346. highlight.style.right = highlight.style.bottom = -HIGHLIGHT_OFFSET + 'px';
  3347. highlight.setAttribute('hidden', true);
  3348. this.highlightElement = highlight;
  3349. container.appendChild(this.highlightElement);
  3350. return container;
  3351. }
  3352. });
  3353. return InteractiveAnnotation;
  3354. })();
  3355. var TextAnnotation = (function TextAnnotationClosure() {
  3356. function TextAnnotation(params) {
  3357. InteractiveAnnotation.call(this, params);
  3358. if (params.data) {
  3359. return;
  3360. }
  3361. var dict = params.dict;
  3362. var data = this.data;
  3363. var content = dict.get('Contents');
  3364. var title = dict.get('T');
  3365. data.content = stringToPDFString(content || '');
  3366. data.title = stringToPDFString(title || '');
  3367. if (data.hasAppearance) {
  3368. data.name = 'NoIcon';
  3369. } else {
  3370. data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
  3371. data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
  3372. data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
  3373. }
  3374. if (dict.has('C')) {
  3375. data.hasBgColor = true;
  3376. }
  3377. }
  3378. var ANNOT_MIN_SIZE = 10;
  3379. Util.inherit(TextAnnotation, InteractiveAnnotation, {
  3380. getHtmlElement: function TextAnnotation_getHtmlElement(commonObjs) {
  3381. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3382. var item = this.data;
  3383. var rect = item.rect;
  3384. // sanity check because of OOo-generated PDFs
  3385. if ((rect[3] - rect[1]) < ANNOT_MIN_SIZE) {
  3386. rect[3] = rect[1] + ANNOT_MIN_SIZE;
  3387. }
  3388. if ((rect[2] - rect[0]) < ANNOT_MIN_SIZE) {
  3389. rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
  3390. }
  3391. var container = this.initContainer();
  3392. container.className = 'annotText';
  3393. var image = document.createElement('img');
  3394. image.style.height = container.style.height;
  3395. image.style.width = container.style.width;
  3396. var iconName = item.name;
  3397. image.src = PDFJS.imageResourcesPath + 'annotation-' +
  3398. iconName.toLowerCase() + '.svg';
  3399. image.alt = '[{{type}} Annotation]';
  3400. image.dataset.l10nId = 'text_annotation_type';
  3401. image.dataset.l10nArgs = JSON.stringify({type: iconName});
  3402. var contentWrapper = document.createElement('div');
  3403. contentWrapper.className = 'annotTextContentWrapper';
  3404. contentWrapper.style.left = Math.floor(rect[2] - rect[0] + 5) + 'px';
  3405. contentWrapper.style.top = '-10px';
  3406. var content = document.createElement('div');
  3407. content.className = 'annotTextContent';
  3408. content.setAttribute('hidden', true);
  3409. var i, ii;
  3410. if (item.hasBgColor) {
  3411. var color = item.color;
  3412. var rgb = [];
  3413. for (i = 0; i < 3; ++i) {
  3414. // Enlighten the color (70%)
  3415. var c = Math.round(color[i] * 255);
  3416. rgb[i] = Math.round((255 - c) * 0.7) + c;
  3417. }
  3418. content.style.backgroundColor = Util.makeCssRgb(rgb);
  3419. }
  3420. var title = document.createElement('h1');
  3421. var text = document.createElement('p');
  3422. title.textContent = item.title;
  3423. if (!item.content && !item.title) {
  3424. content.setAttribute('hidden', true);
  3425. } else {
  3426. var e = document.createElement('span');
  3427. var lines = item.content.split(/(?:\r\n?|\n)/);
  3428. for (i = 0, ii = lines.length; i < ii; ++i) {
  3429. var line = lines[i];
  3430. e.appendChild(document.createTextNode(line));
  3431. if (i < (ii - 1)) {
  3432. e.appendChild(document.createElement('br'));
  3433. }
  3434. }
  3435. text.appendChild(e);
  3436. var pinned = false;
  3437. var showAnnotation = function showAnnotation(pin) {
  3438. if (pin) {
  3439. pinned = true;
  3440. }
  3441. if (content.hasAttribute('hidden')) {
  3442. container.style.zIndex += 1;
  3443. content.removeAttribute('hidden');
  3444. }
  3445. };
  3446. var hideAnnotation = function hideAnnotation(unpin) {
  3447. if (unpin) {
  3448. pinned = false;
  3449. }
  3450. if (!content.hasAttribute('hidden') && !pinned) {
  3451. container.style.zIndex -= 1;
  3452. content.setAttribute('hidden', true);
  3453. }
  3454. };
  3455. var toggleAnnotation = function toggleAnnotation() {
  3456. if (pinned) {
  3457. hideAnnotation(true);
  3458. } else {
  3459. showAnnotation(true);
  3460. }
  3461. };
  3462. image.addEventListener('click', function image_clickHandler() {
  3463. toggleAnnotation();
  3464. }, false);
  3465. image.addEventListener('mouseover', function image_mouseOverHandler() {
  3466. showAnnotation();
  3467. }, false);
  3468. image.addEventListener('mouseout', function image_mouseOutHandler() {
  3469. hideAnnotation();
  3470. }, false);
  3471. content.addEventListener('click', function content_clickHandler() {
  3472. hideAnnotation(true);
  3473. }, false);
  3474. }
  3475. content.appendChild(title);
  3476. content.appendChild(text);
  3477. contentWrapper.appendChild(content);
  3478. container.appendChild(image);
  3479. container.appendChild(contentWrapper);
  3480. return container;
  3481. }
  3482. });
  3483. return TextAnnotation;
  3484. })();
  3485. var LinkAnnotation = (function LinkAnnotationClosure() {
  3486. function LinkAnnotation(params) {
  3487. InteractiveAnnotation.call(this, params);
  3488. if (params.data) {
  3489. return;
  3490. }
  3491. var dict = params.dict;
  3492. var data = this.data;
  3493. var action = dict.get('A');
  3494. if (action) {
  3495. var linkType = action.get('S').name;
  3496. if (linkType === 'URI') {
  3497. var url = action.get('URI');
  3498. if (isName(url)) {
  3499. // Some bad PDFs do not put parentheses around relative URLs.
  3500. url = '/' + url.name;
  3501. } else if (url) {
  3502. url = addDefaultProtocolToUrl(url);
  3503. }
  3504. // TODO: pdf spec mentions urls can be relative to a Base
  3505. // entry in the dictionary.
  3506. if (!isValidUrl(url, false)) {
  3507. url = '';
  3508. }
  3509. data.url = url;
  3510. } else if (linkType === 'GoTo') {
  3511. data.dest = action.get('D');
  3512. } else if (linkType === 'GoToR') {
  3513. var urlDict = action.get('F');
  3514. if (isDict(urlDict)) {
  3515. // We assume that the 'url' is a Filspec dictionary
  3516. // and fetch the url without checking any further
  3517. url = urlDict.get('F') || '';
  3518. }
  3519. // TODO: pdf reference says that GoToR
  3520. // can also have 'NewWindow' attribute
  3521. if (!isValidUrl(url, false)) {
  3522. url = '';
  3523. }
  3524. data.url = url;
  3525. data.dest = action.get('D');
  3526. } else if (linkType === 'Named') {
  3527. data.action = action.get('N').name;
  3528. } else {
  3529. warn('unrecognized link type: ' + linkType);
  3530. }
  3531. } else if (dict.has('Dest')) {
  3532. // simple destination link
  3533. var dest = dict.get('Dest');
  3534. data.dest = isName(dest) ? dest.name : dest;
  3535. }
  3536. }
  3537. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  3538. function addDefaultProtocolToUrl(url) {
  3539. if (url && url.indexOf('www.') === 0) {
  3540. return ('http://' + url);
  3541. }
  3542. return url;
  3543. }
  3544. Util.inherit(LinkAnnotation, InteractiveAnnotation, {
  3545. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  3546. return false;
  3547. },
  3548. getHtmlElement: function LinkAnnotation_getHtmlElement(commonObjs) {
  3549. var container = this.initContainer();
  3550. container.className = 'annotLink';
  3551. var item = this.data;
  3552. container.style.borderColor = item.colorCssRgb;
  3553. container.style.borderStyle = 'solid';
  3554. var link = document.createElement('a');
  3555. link.href = link.title = this.data.url || '';
  3556. container.appendChild(link);
  3557. return container;
  3558. }
  3559. });
  3560. return LinkAnnotation;
  3561. })();
  3562. var NetworkManager = (function NetworkManagerClosure() {
  3563. var OK_RESPONSE = 200;
  3564. var PARTIAL_CONTENT_RESPONSE = 206;
  3565. function NetworkManager(url, args) {
  3566. this.url = url;
  3567. args = args || {};
  3568. this.isHttp = /^https?:/i.test(url);
  3569. this.httpHeaders = (this.isHttp && args.httpHeaders) || {};
  3570. this.withCredentials = args.withCredentials || false;
  3571. this.getXhr = args.getXhr ||
  3572. function NetworkManager_getXhr() {
  3573. return new XMLHttpRequest();
  3574. };
  3575. this.currXhrId = 0;
  3576. this.pendingRequests = {};
  3577. this.loadedRequests = {};
  3578. }
  3579. function getArrayBuffer(xhr) {
  3580. var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
  3581. xhr.responseArrayBuffer || xhr.response);
  3582. if (typeof data !== 'string') {
  3583. return data;
  3584. }
  3585. var length = data.length;
  3586. var buffer = new Uint8Array(length);
  3587. for (var i = 0; i < length; i++) {
  3588. buffer[i] = data.charCodeAt(i) & 0xFF;
  3589. }
  3590. return buffer;
  3591. }
  3592. NetworkManager.prototype = {
  3593. requestRange: function NetworkManager_requestRange(begin, end, listeners) {
  3594. var args = {
  3595. begin: begin,
  3596. end: end
  3597. };
  3598. for (var prop in listeners) {
  3599. args[prop] = listeners[prop];
  3600. }
  3601. return this.request(args);
  3602. },
  3603. requestFull: function NetworkManager_requestRange(listeners) {
  3604. return this.request(listeners);
  3605. },
  3606. request: function NetworkManager_requestRange(args) {
  3607. var xhr = this.getXhr();
  3608. var xhrId = this.currXhrId++;
  3609. var pendingRequest = this.pendingRequests[xhrId] = {
  3610. xhr: xhr
  3611. };
  3612. xhr.open('GET', this.url);
  3613. xhr.withCredentials = this.withCredentials;
  3614. for (var property in this.httpHeaders) {
  3615. var value = this.httpHeaders[property];
  3616. if (typeof value === 'undefined') {
  3617. continue;
  3618. }
  3619. xhr.setRequestHeader(property, value);
  3620. }
  3621. if (this.isHttp && 'begin' in args && 'end' in args) {
  3622. var rangeStr = args.begin + '-' + (args.end - 1);
  3623. xhr.setRequestHeader('Range', 'bytes=' + rangeStr);
  3624. pendingRequest.expectedStatus = 206;
  3625. } else {
  3626. pendingRequest.expectedStatus = 200;
  3627. }
  3628. xhr.mozResponseType = xhr.responseType = 'arraybuffer';
  3629. if (args.onProgress) {
  3630. xhr.onprogress = args.onProgress;
  3631. }
  3632. if (args.onError) {
  3633. xhr.onerror = function(evt) {
  3634. args.onError(xhr.status);
  3635. };
  3636. }
  3637. xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
  3638. pendingRequest.onHeadersReceived = args.onHeadersReceived;
  3639. pendingRequest.onDone = args.onDone;
  3640. pendingRequest.onError = args.onError;
  3641. xhr.send(null);
  3642. return xhrId;
  3643. },
  3644. onStateChange: function NetworkManager_onStateChange(xhrId, evt) {
  3645. var pendingRequest = this.pendingRequests[xhrId];
  3646. if (!pendingRequest) {
  3647. // Maybe abortRequest was called...
  3648. return;
  3649. }
  3650. var xhr = pendingRequest.xhr;
  3651. if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
  3652. pendingRequest.onHeadersReceived();
  3653. delete pendingRequest.onHeadersReceived;
  3654. }
  3655. if (xhr.readyState !== 4) {
  3656. return;
  3657. }
  3658. if (!(xhrId in this.pendingRequests)) {
  3659. // The XHR request might have been aborted in onHeadersReceived()
  3660. // callback, in which case we should abort request
  3661. return;
  3662. }
  3663. delete this.pendingRequests[xhrId];
  3664. // success status == 0 can be on ftp, file and other protocols
  3665. if (xhr.status === 0 && this.isHttp) {
  3666. if (pendingRequest.onError) {
  3667. pendingRequest.onError(xhr.status);
  3668. }
  3669. return;
  3670. }
  3671. var xhrStatus = xhr.status || OK_RESPONSE;
  3672. // From http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2:
  3673. // "A server MAY ignore the Range header". This means it's possible to
  3674. // get a 200 rather than a 206 response from a range request.
  3675. var ok_response_on_range_request =
  3676. xhrStatus === OK_RESPONSE &&
  3677. pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;
  3678. if (!ok_response_on_range_request &&
  3679. xhrStatus !== pendingRequest.expectedStatus) {
  3680. if (pendingRequest.onError) {
  3681. pendingRequest.onError(xhr.status);
  3682. }
  3683. return;
  3684. }
  3685. this.loadedRequests[xhrId] = true;
  3686. var chunk = getArrayBuffer(xhr);
  3687. if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
  3688. var rangeHeader = xhr.getResponseHeader('Content-Range');
  3689. var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
  3690. var begin = parseInt(matches[1], 10);
  3691. pendingRequest.onDone({
  3692. begin: begin,
  3693. chunk: chunk
  3694. });
  3695. } else {
  3696. pendingRequest.onDone({
  3697. begin: 0,
  3698. chunk: chunk
  3699. });
  3700. }
  3701. },
  3702. hasPendingRequests: function NetworkManager_hasPendingRequests() {
  3703. for (var xhrId in this.pendingRequests) {
  3704. return true;
  3705. }
  3706. return false;
  3707. },
  3708. getRequestXhr: function NetworkManager_getXhr(xhrId) {
  3709. return this.pendingRequests[xhrId].xhr;
  3710. },
  3711. isPendingRequest: function NetworkManager_isPendingRequest(xhrId) {
  3712. return xhrId in this.pendingRequests;
  3713. },
  3714. isLoadedRequest: function NetworkManager_isLoadedRequest(xhrId) {
  3715. return xhrId in this.loadedRequests;
  3716. },
  3717. abortAllRequests: function NetworkManager_abortAllRequests() {
  3718. for (var xhrId in this.pendingRequests) {
  3719. this.abortRequest(xhrId | 0);
  3720. }
  3721. },
  3722. abortRequest: function NetworkManager_abortRequest(xhrId) {
  3723. var xhr = this.pendingRequests[xhrId].xhr;
  3724. delete this.pendingRequests[xhrId];
  3725. xhr.abort();
  3726. }
  3727. };
  3728. return NetworkManager;
  3729. })();
  3730. var ChunkedStream = (function ChunkedStreamClosure() {
  3731. function ChunkedStream(length, chunkSize, manager) {
  3732. this.bytes = new Uint8Array(length);
  3733. this.start = 0;
  3734. this.pos = 0;
  3735. this.end = length;
  3736. this.chunkSize = chunkSize;
  3737. this.loadedChunks = [];
  3738. this.numChunksLoaded = 0;
  3739. this.numChunks = Math.ceil(length / chunkSize);
  3740. this.manager = manager;
  3741. this.initialDataLength = 0;
  3742. }
  3743. // required methods for a stream. if a particular stream does not
  3744. // implement these, an error should be thrown
  3745. ChunkedStream.prototype = {
  3746. getMissingChunks: function ChunkedStream_getMissingChunks() {
  3747. var chunks = [];
  3748. for (var chunk = 0, n = this.numChunks; chunk < n; ++chunk) {
  3749. if (!(chunk in this.loadedChunks)) {
  3750. chunks.push(chunk);
  3751. }
  3752. }
  3753. return chunks;
  3754. },
  3755. getBaseStreams: function ChunkedStream_getBaseStreams() {
  3756. return [this];
  3757. },
  3758. allChunksLoaded: function ChunkedStream_allChunksLoaded() {
  3759. return this.numChunksLoaded === this.numChunks;
  3760. },
  3761. onReceiveData: function ChunkedStream_onReceiveData(begin, chunk) {
  3762. var end = begin + chunk.byteLength;
  3763. assert(begin % this.chunkSize === 0, 'Bad begin offset: ' + begin);
  3764. // Using this.length is inaccurate here since this.start can be moved
  3765. // See ChunkedStream.moveStart()
  3766. var length = this.bytes.length;
  3767. assert(end % this.chunkSize === 0 || end === length,
  3768. 'Bad end offset: ' + end);
  3769. this.bytes.set(new Uint8Array(chunk), begin);
  3770. var chunkSize = this.chunkSize;
  3771. var beginChunk = Math.floor(begin / chunkSize);
  3772. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3773. var curChunk;
  3774. for (curChunk = beginChunk; curChunk < endChunk; ++curChunk) {
  3775. if (!(curChunk in this.loadedChunks)) {
  3776. this.loadedChunks[curChunk] = true;
  3777. ++this.numChunksLoaded;
  3778. }
  3779. }
  3780. },
  3781. onReceiveInitialData: function ChunkedStream_onReceiveInitialData(data) {
  3782. this.bytes.set(data);
  3783. this.initialDataLength = data.length;
  3784. var endChunk = (this.end === data.length ?
  3785. this.numChunks : Math.floor(data.length / this.chunkSize));
  3786. for (var i = 0; i < endChunk; i++) {
  3787. this.loadedChunks[i] = true;
  3788. ++this.numChunksLoaded;
  3789. }
  3790. },
  3791. ensureRange: function ChunkedStream_ensureRange(begin, end) {
  3792. if (begin >= end) {
  3793. return;
  3794. }
  3795. if (end <= this.initialDataLength) {
  3796. return;
  3797. }
  3798. var chunkSize = this.chunkSize;
  3799. var beginChunk = Math.floor(begin / chunkSize);
  3800. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3801. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3802. if (!(chunk in this.loadedChunks)) {
  3803. throw new MissingDataException(begin, end);
  3804. }
  3805. }
  3806. },
  3807. nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
  3808. var chunk, n;
  3809. for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
  3810. if (!(chunk in this.loadedChunks)) {
  3811. return chunk;
  3812. }
  3813. }
  3814. // Wrap around to beginning
  3815. for (chunk = 0; chunk < beginChunk; ++chunk) {
  3816. if (!(chunk in this.loadedChunks)) {
  3817. return chunk;
  3818. }
  3819. }
  3820. return null;
  3821. },
  3822. hasChunk: function ChunkedStream_hasChunk(chunk) {
  3823. return chunk in this.loadedChunks;
  3824. },
  3825. get length() {
  3826. return this.end - this.start;
  3827. },
  3828. get isEmpty() {
  3829. return this.length === 0;
  3830. },
  3831. getByte: function ChunkedStream_getByte() {
  3832. var pos = this.pos;
  3833. if (pos >= this.end) {
  3834. return -1;
  3835. }
  3836. this.ensureRange(pos, pos + 1);
  3837. return this.bytes[this.pos++];
  3838. },
  3839. getUint16: function ChunkedStream_getUint16() {
  3840. var b0 = this.getByte();
  3841. var b1 = this.getByte();
  3842. return (b0 << 8) + b1;
  3843. },
  3844. getInt32: function ChunkedStream_getInt32() {
  3845. var b0 = this.getByte();
  3846. var b1 = this.getByte();
  3847. var b2 = this.getByte();
  3848. var b3 = this.getByte();
  3849. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  3850. },
  3851. // returns subarray of original buffer
  3852. // should only be read
  3853. getBytes: function ChunkedStream_getBytes(length) {
  3854. var bytes = this.bytes;
  3855. var pos = this.pos;
  3856. var strEnd = this.end;
  3857. if (!length) {
  3858. this.ensureRange(pos, strEnd);
  3859. return bytes.subarray(pos, strEnd);
  3860. }
  3861. var end = pos + length;
  3862. if (end > strEnd) {
  3863. end = strEnd;
  3864. }
  3865. this.ensureRange(pos, end);
  3866. this.pos = end;
  3867. return bytes.subarray(pos, end);
  3868. },
  3869. peekBytes: function ChunkedStream_peekBytes(length) {
  3870. var bytes = this.getBytes(length);
  3871. this.pos -= bytes.length;
  3872. return bytes;
  3873. },
  3874. getByteRange: function ChunkedStream_getBytes(begin, end) {
  3875. this.ensureRange(begin, end);
  3876. return this.bytes.subarray(begin, end);
  3877. },
  3878. skip: function ChunkedStream_skip(n) {
  3879. if (!n) {
  3880. n = 1;
  3881. }
  3882. this.pos += n;
  3883. },
  3884. reset: function ChunkedStream_reset() {
  3885. this.pos = this.start;
  3886. },
  3887. moveStart: function ChunkedStream_moveStart() {
  3888. this.start = this.pos;
  3889. },
  3890. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  3891. this.ensureRange(start, start + length);
  3892. function ChunkedStreamSubstream() {}
  3893. ChunkedStreamSubstream.prototype = Object.create(this);
  3894. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  3895. var chunkSize = this.chunkSize;
  3896. var beginChunk = Math.floor(this.start / chunkSize);
  3897. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  3898. var missingChunks = [];
  3899. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3900. if (!(chunk in this.loadedChunks)) {
  3901. missingChunks.push(chunk);
  3902. }
  3903. }
  3904. return missingChunks;
  3905. };
  3906. var subStream = new ChunkedStreamSubstream();
  3907. subStream.pos = subStream.start = start;
  3908. subStream.end = start + length || this.end;
  3909. subStream.dict = dict;
  3910. return subStream;
  3911. },
  3912. isStream: true
  3913. };
  3914. return ChunkedStream;
  3915. })();
  3916. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  3917. function ChunkedStreamManager(length, chunkSize, url, args) {
  3918. this.stream = new ChunkedStream(length, chunkSize, this);
  3919. this.length = length;
  3920. this.chunkSize = chunkSize;
  3921. this.url = url;
  3922. this.disableAutoFetch = args.disableAutoFetch;
  3923. var msgHandler = this.msgHandler = args.msgHandler;
  3924. if (args.chunkedViewerLoading) {
  3925. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  3926. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  3927. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3928. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  3929. };
  3930. } else {
  3931. var getXhr = function getXhr() {
  3932. return new XMLHttpRequest();
  3933. };
  3934. this.networkManager = new NetworkManager(this.url, {
  3935. getXhr: getXhr,
  3936. httpHeaders: args.httpHeaders,
  3937. withCredentials: args.withCredentials
  3938. });
  3939. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3940. this.networkManager.requestRange(begin, end, {
  3941. onDone: this.onReceiveData.bind(this),
  3942. onProgress: this.onProgress.bind(this)
  3943. });
  3944. };
  3945. }
  3946. this.currRequestId = 0;
  3947. this.chunksNeededByRequest = {};
  3948. this.requestsByChunk = {};
  3949. this.callbacksByRequest = {};
  3950. this._loadedStreamCapability = createPromiseCapability();
  3951. if (args.initialData) {
  3952. this.setInitialData(args.initialData);
  3953. }
  3954. }
  3955. ChunkedStreamManager.prototype = {
  3956. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  3957. this.stream.onReceiveInitialData(data);
  3958. if (this.stream.allChunksLoaded()) {
  3959. this._loadedStreamCapability.resolve(this.stream);
  3960. } else if (this.msgHandler) {
  3961. this.msgHandler.send('DocProgress', {
  3962. loaded: data.length,
  3963. total: this.length
  3964. });
  3965. }
  3966. },
  3967. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  3968. return this._loadedStreamCapability.promise;
  3969. },
  3970. // Get all the chunks that are not yet loaded and groups them into
  3971. // contiguous ranges to load in as few requests as possible
  3972. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  3973. var missingChunks = this.stream.getMissingChunks();
  3974. this.requestChunks(missingChunks);
  3975. return this._loadedStreamCapability.promise;
  3976. },
  3977. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  3978. callback) {
  3979. var requestId = this.currRequestId++;
  3980. var chunksNeeded;
  3981. var i, ii;
  3982. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  3983. for (i = 0, ii = chunks.length; i < ii; i++) {
  3984. if (!this.stream.hasChunk(chunks[i])) {
  3985. chunksNeeded[chunks[i]] = true;
  3986. }
  3987. }
  3988. if (isEmptyObj(chunksNeeded)) {
  3989. if (callback) {
  3990. callback();
  3991. }
  3992. return;
  3993. }
  3994. this.callbacksByRequest[requestId] = callback;
  3995. var chunksToRequest = [];
  3996. for (var chunk in chunksNeeded) {
  3997. chunk = chunk | 0;
  3998. if (!(chunk in this.requestsByChunk)) {
  3999. this.requestsByChunk[chunk] = [];
  4000. chunksToRequest.push(chunk);
  4001. }
  4002. this.requestsByChunk[chunk].push(requestId);
  4003. }
  4004. if (!chunksToRequest.length) {
  4005. return;
  4006. }
  4007. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  4008. for (i = 0; i < groupedChunksToRequest.length; ++i) {
  4009. var groupedChunk = groupedChunksToRequest[i];
  4010. var begin = groupedChunk.beginChunk * this.chunkSize;
  4011. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  4012. this.sendRequest(begin, end);
  4013. }
  4014. },
  4015. getStream: function ChunkedStreamManager_getStream() {
  4016. return this.stream;
  4017. },
  4018. // Loads any chunks in the requested range that are not yet loaded
  4019. requestRange: function ChunkedStreamManager_requestRange(
  4020. begin, end, callback) {
  4021. end = Math.min(end, this.length);
  4022. var beginChunk = this.getBeginChunk(begin);
  4023. var endChunk = this.getEndChunk(end);
  4024. var chunks = [];
  4025. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  4026. chunks.push(chunk);
  4027. }
  4028. this.requestChunks(chunks, callback);
  4029. },
  4030. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  4031. callback) {
  4032. ranges = ranges || [];
  4033. var chunksToRequest = [];
  4034. for (var i = 0; i < ranges.length; i++) {
  4035. var beginChunk = this.getBeginChunk(ranges[i].begin);
  4036. var endChunk = this.getEndChunk(ranges[i].end);
  4037. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  4038. if (chunksToRequest.indexOf(chunk) < 0) {
  4039. chunksToRequest.push(chunk);
  4040. }
  4041. }
  4042. }
  4043. chunksToRequest.sort(function(a, b) { return a - b; });
  4044. this.requestChunks(chunksToRequest, callback);
  4045. },
  4046. // Groups a sorted array of chunks into as few continguous larger
  4047. // chunks as possible
  4048. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  4049. var groupedChunks = [];
  4050. var beginChunk = -1;
  4051. var prevChunk = -1;
  4052. for (var i = 0; i < chunks.length; ++i) {
  4053. var chunk = chunks[i];
  4054. if (beginChunk < 0) {
  4055. beginChunk = chunk;
  4056. }
  4057. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  4058. groupedChunks.push({ beginChunk: beginChunk,
  4059. endChunk: prevChunk + 1 });
  4060. beginChunk = chunk;
  4061. }
  4062. if (i + 1 === chunks.length) {
  4063. groupedChunks.push({ beginChunk: beginChunk,
  4064. endChunk: chunk + 1 });
  4065. }
  4066. prevChunk = chunk;
  4067. }
  4068. return groupedChunks;
  4069. },
  4070. onProgress: function ChunkedStreamManager_onProgress(args) {
  4071. var bytesLoaded = (this.stream.numChunksLoaded * this.chunkSize +
  4072. args.loaded);
  4073. this.msgHandler.send('DocProgress', {
  4074. loaded: bytesLoaded,
  4075. total: this.length
  4076. });
  4077. },
  4078. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  4079. var chunk = args.chunk;
  4080. var begin = args.begin;
  4081. var end = begin + chunk.byteLength;
  4082. var beginChunk = this.getBeginChunk(begin);
  4083. var endChunk = this.getEndChunk(end);
  4084. this.stream.onReceiveData(begin, chunk);
  4085. if (this.stream.allChunksLoaded()) {
  4086. this._loadedStreamCapability.resolve(this.stream);
  4087. }
  4088. var loadedRequests = [];
  4089. var i, requestId;
  4090. for (chunk = beginChunk; chunk < endChunk; ++chunk) {
  4091. // The server might return more chunks than requested
  4092. var requestIds = this.requestsByChunk[chunk] || [];
  4093. delete this.requestsByChunk[chunk];
  4094. for (i = 0; i < requestIds.length; ++i) {
  4095. requestId = requestIds[i];
  4096. var chunksNeeded = this.chunksNeededByRequest[requestId];
  4097. if (chunk in chunksNeeded) {
  4098. delete chunksNeeded[chunk];
  4099. }
  4100. if (!isEmptyObj(chunksNeeded)) {
  4101. continue;
  4102. }
  4103. loadedRequests.push(requestId);
  4104. }
  4105. }
  4106. // If there are no pending requests, automatically fetch the next
  4107. // unfetched chunk of the PDF
  4108. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  4109. var nextEmptyChunk;
  4110. if (this.stream.numChunksLoaded === 1) {
  4111. // This is a special optimization so that after fetching the first
  4112. // chunk, rather than fetching the second chunk, we fetch the last
  4113. // chunk.
  4114. var lastChunk = this.stream.numChunks - 1;
  4115. if (!this.stream.hasChunk(lastChunk)) {
  4116. nextEmptyChunk = lastChunk;
  4117. }
  4118. } else {
  4119. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  4120. }
  4121. if (isInt(nextEmptyChunk)) {
  4122. this.requestChunks([nextEmptyChunk]);
  4123. }
  4124. }
  4125. for (i = 0; i < loadedRequests.length; ++i) {
  4126. requestId = loadedRequests[i];
  4127. var callback = this.callbacksByRequest[requestId];
  4128. delete this.callbacksByRequest[requestId];
  4129. if (callback) {
  4130. callback();
  4131. }
  4132. }
  4133. this.msgHandler.send('DocProgress', {
  4134. loaded: this.stream.numChunksLoaded * this.chunkSize,
  4135. total: this.length
  4136. });
  4137. },
  4138. onError: function ChunkedStreamManager_onError(err) {
  4139. this._loadedStreamCapability.reject(err);
  4140. },
  4141. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  4142. var chunk = Math.floor(begin / this.chunkSize);
  4143. return chunk;
  4144. },
  4145. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  4146. if (end % this.chunkSize === 0) {
  4147. return end / this.chunkSize;
  4148. }
  4149. // 0 -> 0
  4150. // 1 -> 1
  4151. // 99 -> 1
  4152. // 100 -> 1
  4153. // 101 -> 2
  4154. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  4155. return chunk;
  4156. }
  4157. };
  4158. return ChunkedStreamManager;
  4159. })();
  4160. // The maximum number of bytes fetched per range request
  4161. var RANGE_CHUNK_SIZE = 65536;
  4162. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  4163. var BasePdfManager = (function BasePdfManagerClosure() {
  4164. function BasePdfManager() {
  4165. throw new Error('Cannot initialize BaseManagerManager');
  4166. }
  4167. BasePdfManager.prototype = {
  4168. onLoadedStream: function BasePdfManager_onLoadedStream() {
  4169. throw new NotImplementedException();
  4170. },
  4171. ensureDoc: function BasePdfManager_ensureDoc(prop, args) {
  4172. return this.ensure(this.pdfDocument, prop, args);
  4173. },
  4174. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  4175. return this.ensure(this.pdfDocument.xref, prop, args);
  4176. },
  4177. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  4178. return this.ensure(this.pdfDocument.catalog, prop, args);
  4179. },
  4180. getPage: function BasePdfManager_pagePage(pageIndex) {
  4181. return this.pdfDocument.getPage(pageIndex);
  4182. },
  4183. cleanup: function BasePdfManager_cleanup() {
  4184. return this.pdfDocument.cleanup();
  4185. },
  4186. ensure: function BasePdfManager_ensure(obj, prop, args) {
  4187. return new NotImplementedException();
  4188. },
  4189. requestRange: function BasePdfManager_ensure(begin, end) {
  4190. return new NotImplementedException();
  4191. },
  4192. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  4193. return new NotImplementedException();
  4194. },
  4195. updatePassword: function BasePdfManager_updatePassword(password) {
  4196. this.pdfDocument.xref.password = this.password = password;
  4197. if (this._passwordChangedCapability) {
  4198. this._passwordChangedCapability.resolve();
  4199. }
  4200. },
  4201. passwordChanged: function BasePdfManager_passwordChanged() {
  4202. this._passwordChangedCapability = createPromiseCapability();
  4203. return this._passwordChangedCapability.promise;
  4204. },
  4205. terminate: function BasePdfManager_terminate() {
  4206. return new NotImplementedException();
  4207. }
  4208. };
  4209. return BasePdfManager;
  4210. })();
  4211. var LocalPdfManager = (function LocalPdfManagerClosure() {
  4212. function LocalPdfManager(data, password) {
  4213. var stream = new Stream(data);
  4214. this.pdfDocument = new PDFDocument(this, stream, password);
  4215. this._loadedStreamCapability = createPromiseCapability();
  4216. this._loadedStreamCapability.resolve(stream);
  4217. }
  4218. LocalPdfManager.prototype = Object.create(BasePdfManager.prototype);
  4219. LocalPdfManager.prototype.constructor = LocalPdfManager;
  4220. LocalPdfManager.prototype.ensure =
  4221. function LocalPdfManager_ensure(obj, prop, args) {
  4222. return new Promise(function (resolve, reject) {
  4223. try {
  4224. var value = obj[prop];
  4225. var result;
  4226. if (typeof value === 'function') {
  4227. result = value.apply(obj, args);
  4228. } else {
  4229. result = value;
  4230. }
  4231. resolve(result);
  4232. } catch (e) {
  4233. reject(e);
  4234. }
  4235. });
  4236. };
  4237. LocalPdfManager.prototype.requestRange =
  4238. function LocalPdfManager_requestRange(begin, end) {
  4239. return Promise.resolve();
  4240. };
  4241. LocalPdfManager.prototype.requestLoadedStream =
  4242. function LocalPdfManager_requestLoadedStream() {
  4243. };
  4244. LocalPdfManager.prototype.onLoadedStream =
  4245. function LocalPdfManager_getLoadedStream() {
  4246. return this._loadedStreamCapability.promise;
  4247. };
  4248. LocalPdfManager.prototype.terminate =
  4249. function LocalPdfManager_terminate() {
  4250. return;
  4251. };
  4252. return LocalPdfManager;
  4253. })();
  4254. var NetworkPdfManager = (function NetworkPdfManagerClosure() {
  4255. function NetworkPdfManager(args, msgHandler) {
  4256. this.msgHandler = msgHandler;
  4257. var params = {
  4258. msgHandler: msgHandler,
  4259. httpHeaders: args.httpHeaders,
  4260. withCredentials: args.withCredentials,
  4261. chunkedViewerLoading: args.chunkedViewerLoading,
  4262. disableAutoFetch: args.disableAutoFetch,
  4263. initialData: args.initialData
  4264. };
  4265. this.streamManager = new ChunkedStreamManager(args.length, RANGE_CHUNK_SIZE,
  4266. args.url, params);
  4267. this.pdfDocument = new PDFDocument(this, this.streamManager.getStream(),
  4268. args.password);
  4269. }
  4270. NetworkPdfManager.prototype = Object.create(BasePdfManager.prototype);
  4271. NetworkPdfManager.prototype.constructor = NetworkPdfManager;
  4272. NetworkPdfManager.prototype.ensure =
  4273. function NetworkPdfManager_ensure(obj, prop, args) {
  4274. var pdfManager = this;
  4275. return new Promise(function (resolve, reject) {
  4276. function ensureHelper() {
  4277. try {
  4278. var result;
  4279. var value = obj[prop];
  4280. if (typeof value === 'function') {
  4281. result = value.apply(obj, args);
  4282. } else {
  4283. result = value;
  4284. }
  4285. resolve(result);
  4286. } catch(e) {
  4287. if (!(e instanceof MissingDataException)) {
  4288. reject(e);
  4289. return;
  4290. }
  4291. pdfManager.streamManager.requestRange(e.begin, e.end, ensureHelper);
  4292. }
  4293. }
  4294. ensureHelper();
  4295. });
  4296. };
  4297. NetworkPdfManager.prototype.requestRange =
  4298. function NetworkPdfManager_requestRange(begin, end) {
  4299. return new Promise(function (resolve) {
  4300. this.streamManager.requestRange(begin, end, function() {
  4301. resolve();
  4302. });
  4303. }.bind(this));
  4304. };
  4305. NetworkPdfManager.prototype.requestLoadedStream =
  4306. function NetworkPdfManager_requestLoadedStream() {
  4307. this.streamManager.requestAllChunks();
  4308. };
  4309. NetworkPdfManager.prototype.onLoadedStream =
  4310. function NetworkPdfManager_getLoadedStream() {
  4311. return this.streamManager.onLoadedStream();
  4312. };
  4313. NetworkPdfManager.prototype.terminate =
  4314. function NetworkPdfManager_terminate() {
  4315. this.streamManager.networkManager.abortAllRequests();
  4316. };
  4317. return NetworkPdfManager;
  4318. })();
  4319. var Page = (function PageClosure() {
  4320. var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
  4321. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  4322. this.pdfManager = pdfManager;
  4323. this.pageIndex = pageIndex;
  4324. this.pageDict = pageDict;
  4325. this.xref = xref;
  4326. this.ref = ref;
  4327. this.fontCache = fontCache;
  4328. this.idCounters = {
  4329. obj: 0
  4330. };
  4331. this.resourcesPromise = null;
  4332. }
  4333. Page.prototype = {
  4334. getPageProp: function Page_getPageProp(key) {
  4335. return this.pageDict.get(key);
  4336. },
  4337. getInheritedPageProp: function Page_inheritPageProp(key) {
  4338. var dict = this.pageDict;
  4339. var value = dict.get(key);
  4340. while (value === undefined) {
  4341. dict = dict.get('Parent');
  4342. if (!dict) {
  4343. break;
  4344. }
  4345. value = dict.get(key);
  4346. }
  4347. return value;
  4348. },
  4349. get content() {
  4350. return this.getPageProp('Contents');
  4351. },
  4352. get resources() {
  4353. var value = this.getInheritedPageProp('Resources');
  4354. // For robustness: The spec states that a \Resources entry has to be
  4355. // present, but can be empty. Some document omit it still. In this case
  4356. // return an empty dictionary:
  4357. if (value === undefined) {
  4358. value = Dict.empty;
  4359. }
  4360. return shadow(this, 'resources', value);
  4361. },
  4362. get mediaBox() {
  4363. var obj = this.getInheritedPageProp('MediaBox');
  4364. // Reset invalid media box to letter size.
  4365. if (!isArray(obj) || obj.length !== 4) {
  4366. obj = LETTER_SIZE_MEDIABOX;
  4367. }
  4368. return shadow(this, 'mediaBox', obj);
  4369. },
  4370. get view() {
  4371. var mediaBox = this.mediaBox;
  4372. var cropBox = this.getInheritedPageProp('CropBox');
  4373. if (!isArray(cropBox) || cropBox.length !== 4) {
  4374. return shadow(this, 'view', mediaBox);
  4375. }
  4376. // From the spec, 6th ed., p.963:
  4377. // "The crop, bleed, trim, and art boxes should not ordinarily
  4378. // extend beyond the boundaries of the media box. If they do, they are
  4379. // effectively reduced to their intersection with the media box."
  4380. cropBox = Util.intersect(cropBox, mediaBox);
  4381. if (!cropBox) {
  4382. return shadow(this, 'view', mediaBox);
  4383. }
  4384. return shadow(this, 'view', cropBox);
  4385. },
  4386. get annotationRefs() {
  4387. return shadow(this, 'annotationRefs',
  4388. this.getInheritedPageProp('Annots'));
  4389. },
  4390. get rotate() {
  4391. var rotate = this.getInheritedPageProp('Rotate') || 0;
  4392. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  4393. if (rotate % 90 !== 0) {
  4394. rotate = 0;
  4395. } else if (rotate >= 360) {
  4396. rotate = rotate % 360;
  4397. } else if (rotate < 0) {
  4398. // The spec doesn't cover negatives, assume its counterclockwise
  4399. // rotation. The following is the other implementation of modulo.
  4400. rotate = ((rotate % 360) + 360) % 360;
  4401. }
  4402. return shadow(this, 'rotate', rotate);
  4403. },
  4404. getContentStream: function Page_getContentStream() {
  4405. var content = this.content;
  4406. var stream;
  4407. if (isArray(content)) {
  4408. // fetching items
  4409. var xref = this.xref;
  4410. var i, n = content.length;
  4411. var streams = [];
  4412. for (i = 0; i < n; ++i) {
  4413. streams.push(xref.fetchIfRef(content[i]));
  4414. }
  4415. stream = new StreamsSequenceStream(streams);
  4416. } else if (isStream(content)) {
  4417. stream = content;
  4418. } else {
  4419. // replacing non-existent page content with empty one
  4420. stream = new NullStream();
  4421. }
  4422. return stream;
  4423. },
  4424. loadResources: function Page_loadResources(keys) {
  4425. if (!this.resourcesPromise) {
  4426. // TODO: add async getInheritedPageProp and remove this.
  4427. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  4428. }
  4429. return this.resourcesPromise.then(function resourceSuccess() {
  4430. var objectLoader = new ObjectLoader(this.resources.map,
  4431. keys,
  4432. this.xref);
  4433. return objectLoader.load();
  4434. }.bind(this));
  4435. },
  4436. getOperatorList: function Page_getOperatorList(handler, intent) {
  4437. var self = this;
  4438. var pdfManager = this.pdfManager;
  4439. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4440. []);
  4441. var resourcesPromise = this.loadResources([
  4442. 'ExtGState',
  4443. 'ColorSpace',
  4444. 'Pattern',
  4445. 'Shading',
  4446. 'XObject',
  4447. 'Font'
  4448. // ProcSet
  4449. // Properties
  4450. ]);
  4451. var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
  4452. handler, this.pageIndex,
  4453. 'p' + this.pageIndex + '_',
  4454. this.idCounters,
  4455. this.fontCache);
  4456. var dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);
  4457. var pageListPromise = dataPromises.then(function(data) {
  4458. var contentStream = data[0];
  4459. var opList = new OperatorList(intent, handler, self.pageIndex);
  4460. handler.send('StartRenderPage', {
  4461. transparency: partialEvaluator.hasBlendModes(self.resources),
  4462. pageIndex: self.pageIndex,
  4463. intent: intent
  4464. });
  4465. return partialEvaluator.getOperatorList(contentStream, self.resources,
  4466. opList).then(function () {
  4467. return opList;
  4468. });
  4469. });
  4470. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  4471. return Promise.all([pageListPromise, annotationsPromise]).then(
  4472. function(datas) {
  4473. var pageOpList = datas[0];
  4474. var annotations = datas[1];
  4475. if (annotations.length === 0) {
  4476. pageOpList.flush(true);
  4477. return pageOpList;
  4478. }
  4479. var annotationsReadyPromise = Annotation.appendToOperatorList(
  4480. annotations, pageOpList, pdfManager, partialEvaluator, intent);
  4481. return annotationsReadyPromise.then(function () {
  4482. pageOpList.flush(true);
  4483. return pageOpList;
  4484. });
  4485. });
  4486. },
  4487. extractTextContent: function Page_extractTextContent() {
  4488. var handler = {
  4489. on: function nullHandlerOn() {},
  4490. send: function nullHandlerSend() {}
  4491. };
  4492. var self = this;
  4493. var pdfManager = this.pdfManager;
  4494. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4495. []);
  4496. var resourcesPromise = this.loadResources([
  4497. 'ExtGState',
  4498. 'XObject',
  4499. 'Font'
  4500. ]);
  4501. var dataPromises = Promise.all([contentStreamPromise,
  4502. resourcesPromise]);
  4503. return dataPromises.then(function(data) {
  4504. var contentStream = data[0];
  4505. var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
  4506. handler, self.pageIndex,
  4507. 'p' + self.pageIndex + '_',
  4508. self.idCounters,
  4509. self.fontCache);
  4510. return partialEvaluator.getTextContent(contentStream,
  4511. self.resources);
  4512. });
  4513. },
  4514. getAnnotationsData: function Page_getAnnotationsData() {
  4515. var annotations = this.annotations;
  4516. var annotationsData = [];
  4517. for (var i = 0, n = annotations.length; i < n; ++i) {
  4518. annotationsData.push(annotations[i].getData());
  4519. }
  4520. return annotationsData;
  4521. },
  4522. get annotations() {
  4523. var annotations = [];
  4524. var annotationRefs = (this.annotationRefs || []);
  4525. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  4526. var annotationRef = annotationRefs[i];
  4527. var annotation = Annotation.fromRef(this.xref, annotationRef);
  4528. if (annotation) {
  4529. annotations.push(annotation);
  4530. }
  4531. }
  4532. return shadow(this, 'annotations', annotations);
  4533. }
  4534. };
  4535. return Page;
  4536. })();
  4537. /**
  4538. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  4539. * `PDFDoc`, this one doesn't have any job management code.
  4540. * Right now there exists one PDFDocument on the main thread + one object
  4541. * for each worker. If there is no worker support enabled, there are two
  4542. * `PDFDocument` objects on the main thread created.
  4543. */
  4544. var PDFDocument = (function PDFDocumentClosure() {
  4545. function PDFDocument(pdfManager, arg, password) {
  4546. if (isStream(arg)) {
  4547. init.call(this, pdfManager, arg, password);
  4548. } else if (isArrayBuffer(arg)) {
  4549. init.call(this, pdfManager, new Stream(arg), password);
  4550. } else {
  4551. error('PDFDocument: Unknown argument type');
  4552. }
  4553. }
  4554. function init(pdfManager, stream, password) {
  4555. assert(stream.length > 0, 'stream must have data');
  4556. this.pdfManager = pdfManager;
  4557. this.stream = stream;
  4558. var xref = new XRef(this.stream, password, pdfManager);
  4559. this.xref = xref;
  4560. }
  4561. function find(stream, needle, limit, backwards) {
  4562. var pos = stream.pos;
  4563. var end = stream.end;
  4564. var strBuf = [];
  4565. if (pos + limit > end) {
  4566. limit = end - pos;
  4567. }
  4568. for (var n = 0; n < limit; ++n) {
  4569. strBuf.push(String.fromCharCode(stream.getByte()));
  4570. }
  4571. var str = strBuf.join('');
  4572. stream.pos = pos;
  4573. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  4574. if (index == -1) {
  4575. return false; /* not found */
  4576. }
  4577. stream.pos += index;
  4578. return true; /* found */
  4579. }
  4580. var DocumentInfoValidators = {
  4581. get entries() {
  4582. // Lazily build this since all the validation functions below are not
  4583. // defined until after this file loads.
  4584. return shadow(this, 'entries', {
  4585. Title: isString,
  4586. Author: isString,
  4587. Subject: isString,
  4588. Keywords: isString,
  4589. Creator: isString,
  4590. Producer: isString,
  4591. CreationDate: isString,
  4592. ModDate: isString,
  4593. Trapped: isName
  4594. });
  4595. }
  4596. };
  4597. PDFDocument.prototype = {
  4598. parse: function PDFDocument_parse(recoveryMode) {
  4599. this.setup(recoveryMode);
  4600. try {
  4601. // checking if AcroForm is present
  4602. this.acroForm = this.catalog.catDict.get('AcroForm');
  4603. if (this.acroForm) {
  4604. this.xfa = this.acroForm.get('XFA');
  4605. var fields = this.acroForm.get('Fields');
  4606. if ((!fields || !isArray(fields) || fields.length === 0) &&
  4607. !this.xfa) {
  4608. // no fields and no XFA -- not a form (?)
  4609. this.acroForm = null;
  4610. }
  4611. }
  4612. } catch (ex) {
  4613. info('Something wrong with AcroForm entry');
  4614. this.acroForm = null;
  4615. }
  4616. },
  4617. get linearization() {
  4618. var length = this.stream.length;
  4619. var linearization = false;
  4620. if (length) {
  4621. try {
  4622. linearization = new Linearization(this.stream);
  4623. if (linearization.length != length) {
  4624. linearization = false;
  4625. }
  4626. } catch (err) {
  4627. if (err instanceof MissingDataException) {
  4628. throw err;
  4629. }
  4630. info('The linearization data is not available ' +
  4631. 'or unreadable PDF data is found');
  4632. linearization = false;
  4633. }
  4634. }
  4635. // shadow the prototype getter with a data property
  4636. return shadow(this, 'linearization', linearization);
  4637. },
  4638. get startXRef() {
  4639. var stream = this.stream;
  4640. var startXRef = 0;
  4641. var linearization = this.linearization;
  4642. if (linearization) {
  4643. // Find end of first obj.
  4644. stream.reset();
  4645. if (find(stream, 'endobj', 1024)) {
  4646. startXRef = stream.pos + 6;
  4647. }
  4648. } else {
  4649. // Find startxref by jumping backward from the end of the file.
  4650. var step = 1024;
  4651. var found = false, pos = stream.end;
  4652. while (!found && pos > 0) {
  4653. pos -= step - 'startxref'.length;
  4654. if (pos < 0) {
  4655. pos = 0;
  4656. }
  4657. stream.pos = pos;
  4658. found = find(stream, 'startxref', step, true);
  4659. }
  4660. if (found) {
  4661. stream.skip(9);
  4662. var ch;
  4663. do {
  4664. ch = stream.getByte();
  4665. } while (Lexer.isSpace(ch));
  4666. var str = '';
  4667. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  4668. str += String.fromCharCode(ch);
  4669. ch = stream.getByte();
  4670. }
  4671. startXRef = parseInt(str, 10);
  4672. if (isNaN(startXRef)) {
  4673. startXRef = 0;
  4674. }
  4675. }
  4676. }
  4677. // shadow the prototype getter with a data property
  4678. return shadow(this, 'startXRef', startXRef);
  4679. },
  4680. get mainXRefEntriesOffset() {
  4681. var mainXRefEntriesOffset = 0;
  4682. var linearization = this.linearization;
  4683. if (linearization) {
  4684. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  4685. }
  4686. // shadow the prototype getter with a data property
  4687. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  4688. },
  4689. // Find the header, remove leading garbage and setup the stream
  4690. // starting from the header.
  4691. checkHeader: function PDFDocument_checkHeader() {
  4692. var stream = this.stream;
  4693. stream.reset();
  4694. if (find(stream, '%PDF-', 1024)) {
  4695. // Found the header, trim off any garbage before it.
  4696. stream.moveStart();
  4697. // Reading file format version
  4698. var MAX_VERSION_LENGTH = 12;
  4699. var version = '', ch;
  4700. while ((ch = stream.getByte()) > 0x20) { // SPACE
  4701. if (version.length >= MAX_VERSION_LENGTH) {
  4702. break;
  4703. }
  4704. version += String.fromCharCode(ch);
  4705. }
  4706. // removing "%PDF-"-prefix
  4707. this.pdfFormatVersion = version.substring(5);
  4708. return;
  4709. }
  4710. // May not be a PDF file, continue anyway.
  4711. },
  4712. parseStartXRef: function PDFDocument_parseStartXRef() {
  4713. var startXRef = this.startXRef;
  4714. this.xref.setStartXRef(startXRef);
  4715. },
  4716. setup: function PDFDocument_setup(recoveryMode) {
  4717. this.xref.parse(recoveryMode);
  4718. this.catalog = new Catalog(this.pdfManager, this.xref);
  4719. },
  4720. get numPages() {
  4721. var linearization = this.linearization;
  4722. var num = linearization ? linearization.numPages : this.catalog.numPages;
  4723. // shadow the prototype getter
  4724. return shadow(this, 'numPages', num);
  4725. },
  4726. get documentInfo() {
  4727. var docInfo = {
  4728. PDFFormatVersion: this.pdfFormatVersion,
  4729. IsAcroFormPresent: !!this.acroForm,
  4730. IsXFAPresent: !!this.xfa
  4731. };
  4732. var infoDict;
  4733. try {
  4734. infoDict = this.xref.trailer.get('Info');
  4735. } catch (err) {
  4736. info('The document information dictionary is invalid.');
  4737. }
  4738. if (infoDict) {
  4739. var validEntries = DocumentInfoValidators.entries;
  4740. // Only fill the document info with valid entries from the spec.
  4741. for (var key in validEntries) {
  4742. if (infoDict.has(key)) {
  4743. var value = infoDict.get(key);
  4744. // Make sure the value conforms to the spec.
  4745. if (validEntries[key](value)) {
  4746. docInfo[key] = (typeof value !== 'string' ?
  4747. value : stringToPDFString(value));
  4748. } else {
  4749. info('Bad value in document info for "' + key + '"');
  4750. }
  4751. }
  4752. }
  4753. }
  4754. return shadow(this, 'documentInfo', docInfo);
  4755. },
  4756. get fingerprint() {
  4757. var xref = this.xref, hash, fileID = '';
  4758. if (xref.trailer.has('ID')) {
  4759. hash = stringToBytes(xref.trailer.get('ID')[0]);
  4760. } else {
  4761. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  4762. }
  4763. for (var i = 0, n = hash.length; i < n; i++) {
  4764. fileID += hash[i].toString(16);
  4765. }
  4766. return shadow(this, 'fingerprint', fileID);
  4767. },
  4768. getPage: function PDFDocument_getPage(pageIndex) {
  4769. return this.catalog.getPage(pageIndex);
  4770. },
  4771. cleanup: function PDFDocument_cleanup() {
  4772. return this.catalog.cleanup();
  4773. }
  4774. };
  4775. return PDFDocument;
  4776. })();
  4777. var Name = (function NameClosure() {
  4778. function Name(name) {
  4779. this.name = name;
  4780. }
  4781. Name.prototype = {};
  4782. var nameCache = {};
  4783. Name.get = function Name_get(name) {
  4784. var nameValue = nameCache[name];
  4785. return (nameValue ? nameValue : (nameCache[name] = new Name(name)));
  4786. };
  4787. return Name;
  4788. })();
  4789. var Cmd = (function CmdClosure() {
  4790. function Cmd(cmd) {
  4791. this.cmd = cmd;
  4792. }
  4793. Cmd.prototype = {};
  4794. var cmdCache = {};
  4795. Cmd.get = function Cmd_get(cmd) {
  4796. var cmdValue = cmdCache[cmd];
  4797. return (cmdValue ? cmdValue : (cmdCache[cmd] = new Cmd(cmd)));
  4798. };
  4799. return Cmd;
  4800. })();
  4801. var Dict = (function DictClosure() {
  4802. var nonSerializable = function nonSerializableClosure() {
  4803. return nonSerializable; // creating closure on some variable
  4804. };
  4805. var GETALL_DICTIONARY_TYPES_WHITELIST = {
  4806. 'Background': true,
  4807. 'ExtGState': true,
  4808. 'Halftone': true,
  4809. 'Layout': true,
  4810. 'Mask': true,
  4811. 'Pagination': true,
  4812. 'Printing': true
  4813. };
  4814. function isRecursionAllowedFor(dict) {
  4815. if (!isName(dict.Type)) {
  4816. return true;
  4817. }
  4818. var dictType = dict.Type.name;
  4819. return GETALL_DICTIONARY_TYPES_WHITELIST[dictType] === true;
  4820. }
  4821. // xref is optional
  4822. function Dict(xref) {
  4823. // Map should only be used internally, use functions below to access.
  4824. this.map = Object.create(null);
  4825. this.xref = xref;
  4826. this.objId = null;
  4827. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  4828. }
  4829. Dict.prototype = {
  4830. assignXref: function Dict_assignXref(newXref) {
  4831. this.xref = newXref;
  4832. },
  4833. // automatically dereferences Ref objects
  4834. get: function Dict_get(key1, key2, key3) {
  4835. var value;
  4836. var xref = this.xref;
  4837. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  4838. typeof key2 == 'undefined') {
  4839. return xref ? xref.fetchIfRef(value) : value;
  4840. }
  4841. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  4842. typeof key3 == 'undefined') {
  4843. return xref ? xref.fetchIfRef(value) : value;
  4844. }
  4845. value = this.map[key3] || null;
  4846. return xref ? xref.fetchIfRef(value) : value;
  4847. },
  4848. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  4849. getAsync: function Dict_getAsync(key1, key2, key3) {
  4850. var value;
  4851. var xref = this.xref;
  4852. if (typeof (value = this.map[key1]) !== undefined || key1 in this.map ||
  4853. typeof key2 === undefined) {
  4854. if (xref) {
  4855. return xref.fetchIfRefAsync(value);
  4856. }
  4857. return Promise.resolve(value);
  4858. }
  4859. if (typeof (value = this.map[key2]) !== undefined || key2 in this.map ||
  4860. typeof key3 === undefined) {
  4861. if (xref) {
  4862. return xref.fetchIfRefAsync(value);
  4863. }
  4864. return Promise.resolve(value);
  4865. }
  4866. value = this.map[key3] || null;
  4867. if (xref) {
  4868. return xref.fetchIfRefAsync(value);
  4869. }
  4870. return Promise.resolve(value);
  4871. },
  4872. // no dereferencing
  4873. getRaw: function Dict_getRaw(key) {
  4874. return this.map[key];
  4875. },
  4876. // creates new map and dereferences all Refs
  4877. getAll: function Dict_getAll() {
  4878. var all = Object.create(null);
  4879. var queue = null;
  4880. var key, obj;
  4881. for (key in this.map) {
  4882. obj = this.get(key);
  4883. if (obj instanceof Dict) {
  4884. if (isRecursionAllowedFor(obj)) {
  4885. (queue || (queue = [])).push({target: all, key: key, obj: obj});
  4886. } else {
  4887. all[key] = this.getRaw(key);
  4888. }
  4889. } else {
  4890. all[key] = obj;
  4891. }
  4892. }
  4893. if (!queue) {
  4894. return all;
  4895. }
  4896. // trying to take cyclic references into the account
  4897. var processed = Object.create(null);
  4898. while (queue.length > 0) {
  4899. var item = queue.shift();
  4900. var itemObj = item.obj;
  4901. var objId = itemObj.objId;
  4902. if (objId && objId in processed) {
  4903. item.target[item.key] = processed[objId];
  4904. continue;
  4905. }
  4906. var dereferenced = Object.create(null);
  4907. for (key in itemObj.map) {
  4908. obj = itemObj.get(key);
  4909. if (obj instanceof Dict) {
  4910. if (isRecursionAllowedFor(obj)) {
  4911. queue.push({target: dereferenced, key: key, obj: obj});
  4912. } else {
  4913. dereferenced[key] = itemObj.getRaw(key);
  4914. }
  4915. } else {
  4916. dereferenced[key] = obj;
  4917. }
  4918. }
  4919. if (objId) {
  4920. processed[objId] = dereferenced;
  4921. }
  4922. item.target[item.key] = dereferenced;
  4923. }
  4924. return all;
  4925. },
  4926. set: function Dict_set(key, value) {
  4927. this.map[key] = value;
  4928. },
  4929. has: function Dict_has(key) {
  4930. return key in this.map;
  4931. },
  4932. forEach: function Dict_forEach(callback) {
  4933. for (var key in this.map) {
  4934. callback(key, this.get(key));
  4935. }
  4936. }
  4937. };
  4938. Dict.empty = new Dict(null);
  4939. return Dict;
  4940. })();
  4941. var Ref = (function RefClosure() {
  4942. function Ref(num, gen) {
  4943. this.num = num;
  4944. this.gen = gen;
  4945. }
  4946. Ref.prototype = {};
  4947. return Ref;
  4948. })();
  4949. // The reference is identified by number and generation.
  4950. // This structure stores only one instance of the reference.
  4951. var RefSet = (function RefSetClosure() {
  4952. function RefSet() {
  4953. this.dict = {};
  4954. }
  4955. RefSet.prototype = {
  4956. has: function RefSet_has(ref) {
  4957. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4958. },
  4959. put: function RefSet_put(ref) {
  4960. this.dict['R' + ref.num + '.' + ref.gen] = true;
  4961. },
  4962. remove: function RefSet_remove(ref) {
  4963. delete this.dict['R' + ref.num + '.' + ref.gen];
  4964. }
  4965. };
  4966. return RefSet;
  4967. })();
  4968. var RefSetCache = (function RefSetCacheClosure() {
  4969. function RefSetCache() {
  4970. this.dict = Object.create(null);
  4971. }
  4972. RefSetCache.prototype = {
  4973. get: function RefSetCache_get(ref) {
  4974. return this.dict['R' + ref.num + '.' + ref.gen];
  4975. },
  4976. has: function RefSetCache_has(ref) {
  4977. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4978. },
  4979. put: function RefSetCache_put(ref, obj) {
  4980. this.dict['R' + ref.num + '.' + ref.gen] = obj;
  4981. },
  4982. putAlias: function RefSetCache_putAlias(ref, aliasRef) {
  4983. this.dict['R' + ref.num + '.' + ref.gen] = this.get(aliasRef);
  4984. },
  4985. forEach: function RefSetCache_forEach(fn, thisArg) {
  4986. for (var i in this.dict) {
  4987. fn.call(thisArg, this.dict[i]);
  4988. }
  4989. },
  4990. clear: function RefSetCache_clear() {
  4991. this.dict = Object.create(null);
  4992. }
  4993. };
  4994. return RefSetCache;
  4995. })();
  4996. var Catalog = (function CatalogClosure() {
  4997. function Catalog(pdfManager, xref) {
  4998. this.pdfManager = pdfManager;
  4999. this.xref = xref;
  5000. this.catDict = xref.getCatalogObj();
  5001. this.fontCache = new RefSetCache();
  5002. assert(isDict(this.catDict),
  5003. 'catalog object is not a dictionary');
  5004. this.pagePromises = [];
  5005. }
  5006. Catalog.prototype = {
  5007. get metadata() {
  5008. var streamRef = this.catDict.getRaw('Metadata');
  5009. if (!isRef(streamRef)) {
  5010. return shadow(this, 'metadata', null);
  5011. }
  5012. var encryptMetadata = (!this.xref.encrypt ? false :
  5013. this.xref.encrypt.encryptMetadata);
  5014. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  5015. var metadata;
  5016. if (stream && isDict(stream.dict)) {
  5017. var type = stream.dict.get('Type');
  5018. var subtype = stream.dict.get('Subtype');
  5019. if (isName(type) && isName(subtype) &&
  5020. type.name === 'Metadata' && subtype.name === 'XML') {
  5021. // XXX: This should examine the charset the XML document defines,
  5022. // however since there are currently no real means to decode
  5023. // arbitrary charsets, let's just hope that the author of the PDF
  5024. // was reasonable enough to stick with the XML default charset,
  5025. // which is UTF-8.
  5026. try {
  5027. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  5028. } catch (e) {
  5029. info('Skipping invalid metadata.');
  5030. }
  5031. }
  5032. }
  5033. return shadow(this, 'metadata', metadata);
  5034. },
  5035. get toplevelPagesDict() {
  5036. var pagesObj = this.catDict.get('Pages');
  5037. assert(isDict(pagesObj), 'invalid top-level pages dictionary');
  5038. // shadow the prototype getter
  5039. return shadow(this, 'toplevelPagesDict', pagesObj);
  5040. },
  5041. get documentOutline() {
  5042. var obj = null;
  5043. try {
  5044. obj = this.readDocumentOutline();
  5045. } catch (ex) {
  5046. if (ex instanceof MissingDataException) {
  5047. throw ex;
  5048. }
  5049. warn('Unable to read document outline');
  5050. }
  5051. return shadow(this, 'documentOutline', obj);
  5052. },
  5053. readDocumentOutline: function Catalog_readDocumentOutline() {
  5054. var xref = this.xref;
  5055. var obj = this.catDict.get('Outlines');
  5056. var root = { items: [] };
  5057. if (isDict(obj)) {
  5058. obj = obj.getRaw('First');
  5059. var processed = new RefSet();
  5060. if (isRef(obj)) {
  5061. var queue = [{obj: obj, parent: root}];
  5062. // to avoid recursion keeping track of the items
  5063. // in the processed dictionary
  5064. processed.put(obj);
  5065. while (queue.length > 0) {
  5066. var i = queue.shift();
  5067. var outlineDict = xref.fetchIfRef(i.obj);
  5068. if (outlineDict === null) {
  5069. continue;
  5070. }
  5071. if (!outlineDict.has('Title')) {
  5072. error('Invalid outline item');
  5073. }
  5074. var dest = outlineDict.get('A');
  5075. if (dest) {
  5076. dest = dest.get('D');
  5077. } else if (outlineDict.has('Dest')) {
  5078. dest = outlineDict.getRaw('Dest');
  5079. if (isName(dest)) {
  5080. dest = dest.name;
  5081. }
  5082. }
  5083. var title = outlineDict.get('Title');
  5084. var outlineItem = {
  5085. dest: dest,
  5086. title: stringToPDFString(title),
  5087. color: outlineDict.get('C') || [0, 0, 0],
  5088. count: outlineDict.get('Count'),
  5089. bold: !!(outlineDict.get('F') & 2),
  5090. italic: !!(outlineDict.get('F') & 1),
  5091. items: []
  5092. };
  5093. i.parent.items.push(outlineItem);
  5094. obj = outlineDict.getRaw('First');
  5095. if (isRef(obj) && !processed.has(obj)) {
  5096. queue.push({obj: obj, parent: outlineItem});
  5097. processed.put(obj);
  5098. }
  5099. obj = outlineDict.getRaw('Next');
  5100. if (isRef(obj) && !processed.has(obj)) {
  5101. queue.push({obj: obj, parent: i.parent});
  5102. processed.put(obj);
  5103. }
  5104. }
  5105. }
  5106. }
  5107. return (root.items.length > 0 ? root.items : null);
  5108. },
  5109. get numPages() {
  5110. var obj = this.toplevelPagesDict.get('Count');
  5111. assert(
  5112. isInt(obj),
  5113. 'page count in top level pages object is not an integer'
  5114. );
  5115. // shadow the prototype getter
  5116. return shadow(this, 'num', obj);
  5117. },
  5118. get destinations() {
  5119. function fetchDestination(dest) {
  5120. return isDict(dest) ? dest.get('D') : dest;
  5121. }
  5122. var xref = this.xref;
  5123. var dests = {}, nameTreeRef, nameDictionaryRef;
  5124. var obj = this.catDict.get('Names');
  5125. if (obj && obj.has('Dests')) {
  5126. nameTreeRef = obj.getRaw('Dests');
  5127. } else if (this.catDict.has('Dests')) {
  5128. nameDictionaryRef = this.catDict.get('Dests');
  5129. }
  5130. if (nameDictionaryRef) {
  5131. // reading simple destination dictionary
  5132. obj = nameDictionaryRef;
  5133. obj.forEach(function catalogForEach(key, value) {
  5134. if (!value) {
  5135. return;
  5136. }
  5137. dests[key] = fetchDestination(value);
  5138. });
  5139. }
  5140. if (nameTreeRef) {
  5141. var nameTree = new NameTree(nameTreeRef, xref);
  5142. var names = nameTree.getAll();
  5143. for (var name in names) {
  5144. if (!names.hasOwnProperty(name)) {
  5145. continue;
  5146. }
  5147. dests[name] = fetchDestination(names[name]);
  5148. }
  5149. }
  5150. return shadow(this, 'destinations', dests);
  5151. },
  5152. get attachments() {
  5153. var xref = this.xref;
  5154. var attachments = null, nameTreeRef;
  5155. var obj = this.catDict.get('Names');
  5156. if (obj) {
  5157. nameTreeRef = obj.getRaw('EmbeddedFiles');
  5158. }
  5159. if (nameTreeRef) {
  5160. var nameTree = new NameTree(nameTreeRef, xref);
  5161. var names = nameTree.getAll();
  5162. for (var name in names) {
  5163. if (!names.hasOwnProperty(name)) {
  5164. continue;
  5165. }
  5166. var fs = new FileSpec(names[name], xref);
  5167. if (!attachments) {
  5168. attachments = {};
  5169. }
  5170. attachments[stringToPDFString(name)] = fs.serializable;
  5171. }
  5172. }
  5173. return shadow(this, 'attachments', attachments);
  5174. },
  5175. get javaScript() {
  5176. var xref = this.xref;
  5177. var obj = this.catDict.get('Names');
  5178. var javaScript = [];
  5179. if (obj && obj.has('JavaScript')) {
  5180. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  5181. var names = nameTree.getAll();
  5182. for (var name in names) {
  5183. if (!names.hasOwnProperty(name)) {
  5184. continue;
  5185. }
  5186. // We don't really use the JavaScript right now. This code is
  5187. // defensive so we don't cause errors on document load.
  5188. var jsDict = names[name];
  5189. if (!isDict(jsDict)) {
  5190. continue;
  5191. }
  5192. var type = jsDict.get('S');
  5193. if (!isName(type) || type.name !== 'JavaScript') {
  5194. continue;
  5195. }
  5196. var js = jsDict.get('JS');
  5197. if (!isString(js) && !isStream(js)) {
  5198. continue;
  5199. }
  5200. if (isStream(js)) {
  5201. js = bytesToString(js.getBytes());
  5202. }
  5203. javaScript.push(stringToPDFString(js));
  5204. }
  5205. }
  5206. return shadow(this, 'javaScript', javaScript);
  5207. },
  5208. cleanup: function Catalog_cleanup() {
  5209. var promises = [];
  5210. this.fontCache.forEach(function (promise) {
  5211. promises.push(promise);
  5212. });
  5213. return Promise.all(promises).then(function (fonts) {
  5214. for (var i = 0, ii = fonts.length; i < ii; i++) {
  5215. delete fonts[i].sent;
  5216. delete fonts[i].translated;
  5217. }
  5218. this.fontCache.clear();
  5219. }.bind(this));
  5220. },
  5221. getPage: function Catalog_getPage(pageIndex) {
  5222. if (!(pageIndex in this.pagePromises)) {
  5223. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  5224. function (a) {
  5225. var dict = a[0];
  5226. var ref = a[1];
  5227. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  5228. this.fontCache);
  5229. }.bind(this)
  5230. );
  5231. }
  5232. return this.pagePromises[pageIndex];
  5233. },
  5234. getPageDict: function Catalog_getPageDict(pageIndex) {
  5235. var capability = createPromiseCapability();
  5236. var nodesToVisit = [this.catDict.getRaw('Pages')];
  5237. var currentPageIndex = 0;
  5238. var xref = this.xref;
  5239. function next() {
  5240. while (nodesToVisit.length) {
  5241. var currentNode = nodesToVisit.pop();
  5242. if (isRef(currentNode)) {
  5243. xref.fetchAsync(currentNode).then(function (obj) {
  5244. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  5245. if (pageIndex === currentPageIndex) {
  5246. capability.resolve([obj, currentNode]);
  5247. } else {
  5248. currentPageIndex++;
  5249. next();
  5250. }
  5251. return;
  5252. }
  5253. nodesToVisit.push(obj);
  5254. next();
  5255. }.bind(this), capability.reject.bind(capability));
  5256. return;
  5257. }
  5258. // must be a child page dictionary
  5259. assert(
  5260. isDict(currentNode),
  5261. 'page dictionary kid reference points to wrong type of object'
  5262. );
  5263. var count = currentNode.get('Count');
  5264. // Skip nodes where the page can't be.
  5265. if (currentPageIndex + count <= pageIndex) {
  5266. currentPageIndex += count;
  5267. continue;
  5268. }
  5269. var kids = currentNode.get('Kids');
  5270. assert(isArray(kids), 'page dictionary kids object is not an array');
  5271. if (count === kids.length) {
  5272. // Nodes that don't have the page have been skipped and this is the
  5273. // bottom of the tree which means the page requested must be a
  5274. // descendant of this pages node. Ideally we would just resolve the
  5275. // promise with the page ref here, but there is the case where more
  5276. // pages nodes could link to single a page (see issue 3666 pdf). To
  5277. // handle this push it back on the queue so if it is a pages node it
  5278. // will be descended into.
  5279. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  5280. currentPageIndex = pageIndex;
  5281. continue;
  5282. } else {
  5283. for (var last = kids.length - 1; last >= 0; last--) {
  5284. nodesToVisit.push(kids[last]);
  5285. }
  5286. }
  5287. }
  5288. capability.reject('Page index ' + pageIndex + ' not found.');
  5289. }
  5290. next();
  5291. return capability.promise;
  5292. },
  5293. getPageIndex: function Catalog_getPageIndex(ref) {
  5294. // The page tree nodes have the count of all the leaves below them. To get
  5295. // how many pages are before we just have to walk up the tree and keep
  5296. // adding the count of siblings to the left of the node.
  5297. var xref = this.xref;
  5298. function pagesBeforeRef(kidRef) {
  5299. var total = 0;
  5300. var parentRef;
  5301. return xref.fetchAsync(kidRef).then(function (node) {
  5302. if (!node) {
  5303. return null;
  5304. }
  5305. parentRef = node.getRaw('Parent');
  5306. return node.getAsync('Parent');
  5307. }).then(function (parent) {
  5308. if (!parent) {
  5309. return null;
  5310. }
  5311. return parent.getAsync('Kids');
  5312. }).then(function (kids) {
  5313. if (!kids) {
  5314. return null;
  5315. }
  5316. var kidPromises = [];
  5317. var found = false;
  5318. for (var i = 0; i < kids.length; i++) {
  5319. var kid = kids[i];
  5320. assert(isRef(kid), 'kids must be a ref');
  5321. if (kid.num == kidRef.num) {
  5322. found = true;
  5323. break;
  5324. }
  5325. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  5326. if (kid.has('Count')) {
  5327. var count = kid.get('Count');
  5328. total += count;
  5329. } else { // page leaf node
  5330. total++;
  5331. }
  5332. }));
  5333. }
  5334. if (!found) {
  5335. error('kid ref not found in parents kids');
  5336. }
  5337. return Promise.all(kidPromises).then(function () {
  5338. return [total, parentRef];
  5339. });
  5340. });
  5341. }
  5342. var total = 0;
  5343. function next(ref) {
  5344. return pagesBeforeRef(ref).then(function (args) {
  5345. if (!args) {
  5346. return total;
  5347. }
  5348. var count = args[0];
  5349. var parentRef = args[1];
  5350. total += count;
  5351. return next(parentRef);
  5352. });
  5353. }
  5354. return next(ref);
  5355. }
  5356. };
  5357. return Catalog;
  5358. })();
  5359. var XRef = (function XRefClosure() {
  5360. function XRef(stream, password) {
  5361. this.stream = stream;
  5362. this.entries = [];
  5363. this.xrefstms = {};
  5364. // prepare the XRef cache
  5365. this.cache = [];
  5366. this.password = password;
  5367. }
  5368. XRef.prototype = {
  5369. setStartXRef: function XRef_setStartXRef(startXRef) {
  5370. // Store the starting positions of xref tables as we process them
  5371. // so we can recover from missing data errors
  5372. this.startXRefQueue = [startXRef];
  5373. },
  5374. parse: function XRef_parse(recoveryMode) {
  5375. var trailerDict;
  5376. if (!recoveryMode) {
  5377. trailerDict = this.readXRef();
  5378. } else {
  5379. warn('Indexing all PDF objects');
  5380. trailerDict = this.indexObjects();
  5381. }
  5382. trailerDict.assignXref(this);
  5383. this.trailer = trailerDict;
  5384. var encrypt = trailerDict.get('Encrypt');
  5385. if (encrypt) {
  5386. var ids = trailerDict.get('ID');
  5387. var fileId = (ids && ids.length) ? ids[0] : '';
  5388. this.encrypt = new CipherTransformFactory(encrypt, fileId,
  5389. this.password);
  5390. }
  5391. // get the root dictionary (catalog) object
  5392. if (!(this.root = trailerDict.get('Root'))) {
  5393. error('Invalid root reference');
  5394. }
  5395. },
  5396. processXRefTable: function XRef_processXRefTable(parser) {
  5397. if (!('tableState' in this)) {
  5398. // Stores state of the table as we process it so we can resume
  5399. // from middle of table in case of missing data error
  5400. this.tableState = {
  5401. entryNum: 0,
  5402. streamPos: parser.lexer.stream.pos,
  5403. parserBuf1: parser.buf1,
  5404. parserBuf2: parser.buf2
  5405. };
  5406. }
  5407. var obj = this.readXRefTable(parser);
  5408. // Sanity check
  5409. if (!isCmd(obj, 'trailer')) {
  5410. error('Invalid XRef table: could not find trailer dictionary');
  5411. }
  5412. // Read trailer dictionary, e.g.
  5413. // trailer
  5414. // << /Size 22
  5415. // /Root 20R
  5416. // /Info 10R
  5417. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  5418. // >>
  5419. // The parser goes through the entire stream << ... >> and provides
  5420. // a getter interface for the key-value table
  5421. var dict = parser.getObj();
  5422. // The pdflib PDF generator can generate a nested trailer dictionary
  5423. if (!isDict(dict) && dict.dict) {
  5424. dict = dict.dict;
  5425. }
  5426. if (!isDict(dict)) {
  5427. error('Invalid XRef table: could not parse trailer dictionary');
  5428. }
  5429. delete this.tableState;
  5430. return dict;
  5431. },
  5432. readXRefTable: function XRef_readXRefTable(parser) {
  5433. // Example of cross-reference table:
  5434. // xref
  5435. // 0 1 <-- subsection header (first obj #, obj count)
  5436. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  5437. // 23 2 <-- subsection header ... and so on ...
  5438. // 0000025518 00002 n
  5439. // 0000025635 00000 n
  5440. // trailer
  5441. // ...
  5442. var stream = parser.lexer.stream;
  5443. var tableState = this.tableState;
  5444. stream.pos = tableState.streamPos;
  5445. parser.buf1 = tableState.parserBuf1;
  5446. parser.buf2 = tableState.parserBuf2;
  5447. // Outer loop is over subsection headers
  5448. var obj;
  5449. while (true) {
  5450. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  5451. if (isCmd(obj = parser.getObj(), 'trailer')) {
  5452. break;
  5453. }
  5454. tableState.firstEntryNum = obj;
  5455. tableState.entryCount = parser.getObj();
  5456. }
  5457. var first = tableState.firstEntryNum;
  5458. var count = tableState.entryCount;
  5459. if (!isInt(first) || !isInt(count)) {
  5460. error('Invalid XRef table: wrong types in subsection header');
  5461. }
  5462. // Inner loop is over objects themselves
  5463. for (var i = tableState.entryNum; i < count; i++) {
  5464. tableState.streamPos = stream.pos;
  5465. tableState.entryNum = i;
  5466. tableState.parserBuf1 = parser.buf1;
  5467. tableState.parserBuf2 = parser.buf2;
  5468. var entry = {};
  5469. entry.offset = parser.getObj();
  5470. entry.gen = parser.getObj();
  5471. var type = parser.getObj();
  5472. if (isCmd(type, 'f')) {
  5473. entry.free = true;
  5474. } else if (isCmd(type, 'n')) {
  5475. entry.uncompressed = true;
  5476. }
  5477. // Validate entry obj
  5478. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  5479. !(entry.free || entry.uncompressed)) {
  5480. console.log(entry.offset, entry.gen, entry.free,
  5481. entry.uncompressed);
  5482. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  5483. }
  5484. if (!this.entries[i + first]) {
  5485. this.entries[i + first] = entry;
  5486. }
  5487. }
  5488. tableState.entryNum = 0;
  5489. tableState.streamPos = stream.pos;
  5490. tableState.parserBuf1 = parser.buf1;
  5491. tableState.parserBuf2 = parser.buf2;
  5492. delete tableState.firstEntryNum;
  5493. delete tableState.entryCount;
  5494. }
  5495. // Per issue 3248: hp scanners generate bad XRef
  5496. if (first === 1 && this.entries[1] && this.entries[1].free) {
  5497. // shifting the entries
  5498. this.entries.shift();
  5499. }
  5500. // Sanity check: as per spec, first object must be free
  5501. if (this.entries[0] && !this.entries[0].free) {
  5502. error('Invalid XRef table: unexpected first object');
  5503. }
  5504. return obj;
  5505. },
  5506. processXRefStream: function XRef_processXRefStream(stream) {
  5507. if (!('streamState' in this)) {
  5508. // Stores state of the stream as we process it so we can resume
  5509. // from middle of stream in case of missing data error
  5510. var streamParameters = stream.dict;
  5511. var byteWidths = streamParameters.get('W');
  5512. var range = streamParameters.get('Index');
  5513. if (!range) {
  5514. range = [0, streamParameters.get('Size')];
  5515. }
  5516. this.streamState = {
  5517. entryRanges: range,
  5518. byteWidths: byteWidths,
  5519. entryNum: 0,
  5520. streamPos: stream.pos
  5521. };
  5522. }
  5523. this.readXRefStream(stream);
  5524. delete this.streamState;
  5525. return stream.dict;
  5526. },
  5527. readXRefStream: function XRef_readXRefStream(stream) {
  5528. var i, j;
  5529. var streamState = this.streamState;
  5530. stream.pos = streamState.streamPos;
  5531. var byteWidths = streamState.byteWidths;
  5532. var typeFieldWidth = byteWidths[0];
  5533. var offsetFieldWidth = byteWidths[1];
  5534. var generationFieldWidth = byteWidths[2];
  5535. var entryRanges = streamState.entryRanges;
  5536. while (entryRanges.length > 0) {
  5537. var first = entryRanges[0];
  5538. var n = entryRanges[1];
  5539. if (!isInt(first) || !isInt(n)) {
  5540. error('Invalid XRef range fields: ' + first + ', ' + n);
  5541. }
  5542. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  5543. !isInt(generationFieldWidth)) {
  5544. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  5545. }
  5546. for (i = streamState.entryNum; i < n; ++i) {
  5547. streamState.entryNum = i;
  5548. streamState.streamPos = stream.pos;
  5549. var type = 0, offset = 0, generation = 0;
  5550. for (j = 0; j < typeFieldWidth; ++j) {
  5551. type = (type << 8) | stream.getByte();
  5552. }
  5553. // if type field is absent, its default value is 1
  5554. if (typeFieldWidth === 0) {
  5555. type = 1;
  5556. }
  5557. for (j = 0; j < offsetFieldWidth; ++j) {
  5558. offset = (offset << 8) | stream.getByte();
  5559. }
  5560. for (j = 0; j < generationFieldWidth; ++j) {
  5561. generation = (generation << 8) | stream.getByte();
  5562. }
  5563. var entry = {};
  5564. entry.offset = offset;
  5565. entry.gen = generation;
  5566. switch (type) {
  5567. case 0:
  5568. entry.free = true;
  5569. break;
  5570. case 1:
  5571. entry.uncompressed = true;
  5572. break;
  5573. case 2:
  5574. break;
  5575. default:
  5576. error('Invalid XRef entry type: ' + type);
  5577. }
  5578. if (!this.entries[first + i]) {
  5579. this.entries[first + i] = entry;
  5580. }
  5581. }
  5582. streamState.entryNum = 0;
  5583. streamState.streamPos = stream.pos;
  5584. entryRanges.splice(0, 2);
  5585. }
  5586. },
  5587. indexObjects: function XRef_indexObjects() {
  5588. // Simple scan through the PDF content to find objects,
  5589. // trailers and XRef streams.
  5590. function readToken(data, offset) {
  5591. var token = '', ch = data[offset];
  5592. while (ch !== 13 && ch !== 10) {
  5593. if (++offset >= data.length) {
  5594. break;
  5595. }
  5596. token += String.fromCharCode(ch);
  5597. ch = data[offset];
  5598. }
  5599. return token;
  5600. }
  5601. function skipUntil(data, offset, what) {
  5602. var length = what.length, dataLength = data.length;
  5603. var skipped = 0;
  5604. // finding byte sequence
  5605. while (offset < dataLength) {
  5606. var i = 0;
  5607. while (i < length && data[offset + i] == what[i]) {
  5608. ++i;
  5609. }
  5610. if (i >= length) {
  5611. break; // sequence found
  5612. }
  5613. offset++;
  5614. skipped++;
  5615. }
  5616. return skipped;
  5617. }
  5618. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  5619. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  5620. 101, 102]);
  5621. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  5622. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  5623. var stream = this.stream;
  5624. stream.pos = 0;
  5625. var buffer = stream.getBytes();
  5626. var position = stream.start, length = buffer.length;
  5627. var trailers = [], xrefStms = [];
  5628. while (position < length) {
  5629. var ch = buffer[position];
  5630. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  5631. ++position;
  5632. continue;
  5633. }
  5634. if (ch === 37) { // %-comment
  5635. do {
  5636. ++position;
  5637. if (position >= length) {
  5638. break;
  5639. }
  5640. ch = buffer[position];
  5641. } while (ch !== 13 && ch !== 10);
  5642. continue;
  5643. }
  5644. var token = readToken(buffer, position);
  5645. var m;
  5646. if (token === 'xref') {
  5647. position += skipUntil(buffer, position, trailerBytes);
  5648. trailers.push(position);
  5649. position += skipUntil(buffer, position, startxrefBytes);
  5650. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  5651. this.entries[m[1]] = {
  5652. offset: position,
  5653. gen: m[2] | 0,
  5654. uncompressed: true
  5655. };
  5656. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  5657. var content = buffer.subarray(position, position + contentLength);
  5658. // checking XRef stream suspect
  5659. // (it shall have '/XRef' and next char is not a letter)
  5660. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  5661. if (xrefTagOffset < contentLength &&
  5662. content[xrefTagOffset + 5] < 64) {
  5663. xrefStms.push(position);
  5664. this.xrefstms[position] = 1; // don't read it recursively
  5665. }
  5666. position += contentLength;
  5667. } else {
  5668. position += token.length + 1;
  5669. }
  5670. }
  5671. // reading XRef streams
  5672. var i, ii;
  5673. for (i = 0, ii = xrefStms.length; i < ii; ++i) {
  5674. this.startXRefQueue.push(xrefStms[i]);
  5675. this.readXRef(/* recoveryMode */ true);
  5676. }
  5677. // finding main trailer
  5678. var dict;
  5679. for (i = 0, ii = trailers.length; i < ii; ++i) {
  5680. stream.pos = trailers[i];
  5681. var parser = new Parser(new Lexer(stream), true, null);
  5682. var obj = parser.getObj();
  5683. if (!isCmd(obj, 'trailer')) {
  5684. continue;
  5685. }
  5686. // read the trailer dictionary
  5687. if (!isDict(dict = parser.getObj())) {
  5688. continue;
  5689. }
  5690. // taking the first one with 'ID'
  5691. if (dict.has('ID')) {
  5692. return dict;
  5693. }
  5694. }
  5695. // no tailer with 'ID', taking last one (if exists)
  5696. if (dict) {
  5697. return dict;
  5698. }
  5699. // nothing helps
  5700. // calling error() would reject worker with an UnknownErrorException.
  5701. throw new InvalidPDFException('Invalid PDF structure');
  5702. },
  5703. readXRef: function XRef_readXRef(recoveryMode) {
  5704. var stream = this.stream;
  5705. try {
  5706. while (this.startXRefQueue.length) {
  5707. var startXRef = this.startXRefQueue[0];
  5708. stream.pos = startXRef + stream.start;
  5709. var parser = new Parser(new Lexer(stream), true, null);
  5710. var obj = parser.getObj();
  5711. var dict;
  5712. // Get dictionary
  5713. if (isCmd(obj, 'xref')) {
  5714. // Parse end-of-file XRef
  5715. dict = this.processXRefTable(parser);
  5716. if (!this.topDict) {
  5717. this.topDict = dict;
  5718. }
  5719. // Recursively get other XRefs 'XRefStm', if any
  5720. obj = dict.get('XRefStm');
  5721. if (isInt(obj)) {
  5722. var pos = obj;
  5723. // ignore previously loaded xref streams
  5724. // (possible infinite recursion)
  5725. if (!(pos in this.xrefstms)) {
  5726. this.xrefstms[pos] = 1;
  5727. this.startXRefQueue.push(pos);
  5728. }
  5729. }
  5730. } else if (isInt(obj)) {
  5731. // Parse in-stream XRef
  5732. if (!isInt(parser.getObj()) ||
  5733. !isCmd(parser.getObj(), 'obj') ||
  5734. !isStream(obj = parser.getObj())) {
  5735. error('Invalid XRef stream');
  5736. }
  5737. dict = this.processXRefStream(obj);
  5738. if (!this.topDict) {
  5739. this.topDict = dict;
  5740. }
  5741. if (!dict) {
  5742. error('Failed to read XRef stream');
  5743. }
  5744. } else {
  5745. error('Invalid XRef stream header');
  5746. }
  5747. // Recursively get previous dictionary, if any
  5748. obj = dict.get('Prev');
  5749. if (isInt(obj)) {
  5750. this.startXRefQueue.push(obj);
  5751. } else if (isRef(obj)) {
  5752. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  5753. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  5754. this.startXRefQueue.push(obj.num);
  5755. }
  5756. this.startXRefQueue.shift();
  5757. }
  5758. return this.topDict;
  5759. } catch (e) {
  5760. if (e instanceof MissingDataException) {
  5761. throw e;
  5762. }
  5763. info('(while reading XRef): ' + e);
  5764. }
  5765. if (recoveryMode) {
  5766. return;
  5767. }
  5768. throw new XRefParseException();
  5769. },
  5770. getEntry: function XRef_getEntry(i) {
  5771. var xrefEntry = this.entries[i];
  5772. if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
  5773. return xrefEntry;
  5774. }
  5775. return null;
  5776. },
  5777. fetchIfRef: function XRef_fetchIfRef(obj) {
  5778. if (!isRef(obj)) {
  5779. return obj;
  5780. }
  5781. return this.fetch(obj);
  5782. },
  5783. fetch: function XRef_fetch(ref, suppressEncryption) {
  5784. assert(isRef(ref), 'ref object is not a reference');
  5785. var num = ref.num;
  5786. if (num in this.cache) {
  5787. var cacheEntry = this.cache[num];
  5788. return cacheEntry;
  5789. }
  5790. var xrefEntry = this.getEntry(num);
  5791. // the referenced entry can be free
  5792. if (xrefEntry === null) {
  5793. return (this.cache[num] = null);
  5794. }
  5795. if (xrefEntry.uncompressed) {
  5796. xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption);
  5797. } else {
  5798. xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
  5799. }
  5800. if (isDict(xrefEntry)) {
  5801. xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
  5802. }
  5803. return xrefEntry;
  5804. },
  5805. fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry,
  5806. suppressEncryption) {
  5807. var gen = ref.gen;
  5808. var num = ref.num;
  5809. if (xrefEntry.gen !== gen) {
  5810. error('inconsistent generation in XRef');
  5811. }
  5812. var stream = this.stream.makeSubStream(xrefEntry.offset +
  5813. this.stream.start);
  5814. var parser = new Parser(new Lexer(stream), true, this);
  5815. var obj1 = parser.getObj();
  5816. var obj2 = parser.getObj();
  5817. var obj3 = parser.getObj();
  5818. if (!isInt(obj1) || parseInt(obj1, 10) !== num ||
  5819. !isInt(obj2) || parseInt(obj2, 10) !== gen ||
  5820. !isCmd(obj3)) {
  5821. error('bad XRef entry');
  5822. }
  5823. if (!isCmd(obj3, 'obj')) {
  5824. // some bad PDFs use "obj1234" and really mean 1234
  5825. if (obj3.cmd.indexOf('obj') === 0) {
  5826. num = parseInt(obj3.cmd.substring(3), 10);
  5827. if (!isNaN(num)) {
  5828. return num;
  5829. }
  5830. }
  5831. error('bad XRef entry');
  5832. }
  5833. if (this.encrypt && !suppressEncryption) {
  5834. try {
  5835. xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num,
  5836. gen));
  5837. } catch (ex) {
  5838. // Almost all streams must be encrypted, but sometimes
  5839. // they are not, probably due to some broken generators.
  5840. // Retrying without encryption...
  5841. return this.fetch(ref, true);
  5842. }
  5843. } else {
  5844. xrefEntry = parser.getObj();
  5845. }
  5846. if (!isStream(xrefEntry)) {
  5847. this.cache[num] = xrefEntry;
  5848. }
  5849. return xrefEntry;
  5850. },
  5851. fetchCompressed: function XRef_fetchCompressed(xrefEntry,
  5852. suppressEncryption) {
  5853. var tableOffset = xrefEntry.offset;
  5854. var stream = this.fetch(new Ref(tableOffset, 0));
  5855. if (!isStream(stream)) {
  5856. error('bad ObjStm stream');
  5857. }
  5858. var first = stream.dict.get('First');
  5859. var n = stream.dict.get('N');
  5860. if (!isInt(first) || !isInt(n)) {
  5861. error('invalid first and n parameters for ObjStm stream');
  5862. }
  5863. var parser = new Parser(new Lexer(stream), false, this);
  5864. parser.allowStreams = true;
  5865. var i, entries = [], num, nums = [];
  5866. // read the object numbers to populate cache
  5867. for (i = 0; i < n; ++i) {
  5868. num = parser.getObj();
  5869. if (!isInt(num)) {
  5870. error('invalid object number in the ObjStm stream: ' + num);
  5871. }
  5872. nums.push(num);
  5873. var offset = parser.getObj();
  5874. if (!isInt(offset)) {
  5875. error('invalid object offset in the ObjStm stream: ' + offset);
  5876. }
  5877. }
  5878. // read stream objects for cache
  5879. for (i = 0; i < n; ++i) {
  5880. entries.push(parser.getObj());
  5881. num = nums[i];
  5882. var entry = this.entries[num];
  5883. if (entry && entry.offset === tableOffset && entry.gen === i) {
  5884. this.cache[num] = entries[i];
  5885. }
  5886. }
  5887. xrefEntry = entries[xrefEntry.gen];
  5888. if (xrefEntry === undefined) {
  5889. error('bad XRef entry for compressed object');
  5890. }
  5891. return xrefEntry;
  5892. },
  5893. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  5894. if (!isRef(obj)) {
  5895. return Promise.resolve(obj);
  5896. }
  5897. return this.fetchAsync(obj);
  5898. },
  5899. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  5900. return new Promise(function (resolve, reject) {
  5901. var tryFetch = function () {
  5902. try {
  5903. resolve(this.fetch(ref, suppressEncryption));
  5904. } catch (e) {
  5905. if (e instanceof MissingDataException) {
  5906. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  5907. return;
  5908. }
  5909. reject(e);
  5910. }
  5911. }.bind(this);
  5912. tryFetch();
  5913. }.bind(this));
  5914. },
  5915. getCatalogObj: function XRef_getCatalogObj() {
  5916. return this.root;
  5917. }
  5918. };
  5919. return XRef;
  5920. })();
  5921. /**
  5922. * A NameTree is like a Dict but has some advantageous properties, see the
  5923. * spec (7.9.6) for more details.
  5924. * TODO: implement all the Dict functions and make this more efficent.
  5925. */
  5926. var NameTree = (function NameTreeClosure() {
  5927. function NameTree(root, xref) {
  5928. this.root = root;
  5929. this.xref = xref;
  5930. }
  5931. NameTree.prototype = {
  5932. getAll: function NameTree_getAll() {
  5933. var dict = {};
  5934. if (!this.root) {
  5935. return dict;
  5936. }
  5937. var xref = this.xref;
  5938. // reading name tree
  5939. var processed = new RefSet();
  5940. processed.put(this.root);
  5941. var queue = [this.root];
  5942. while (queue.length > 0) {
  5943. var i, n;
  5944. var obj = xref.fetchIfRef(queue.shift());
  5945. if (!isDict(obj)) {
  5946. continue;
  5947. }
  5948. if (obj.has('Kids')) {
  5949. var kids = obj.get('Kids');
  5950. for (i = 0, n = kids.length; i < n; i++) {
  5951. var kid = kids[i];
  5952. if (processed.has(kid)) {
  5953. error('invalid destinations');
  5954. }
  5955. queue.push(kid);
  5956. processed.put(kid);
  5957. }
  5958. continue;
  5959. }
  5960. var names = obj.get('Names');
  5961. if (names) {
  5962. for (i = 0, n = names.length; i < n; i += 2) {
  5963. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  5964. }
  5965. }
  5966. }
  5967. return dict;
  5968. }
  5969. };
  5970. return NameTree;
  5971. })();
  5972. /**
  5973. * "A PDF file can refer to the contents of another file by using a File
  5974. * Specification (PDF 1.1)", see the spec (7.11) for more details.
  5975. * NOTE: Only embedded files are supported (as part of the attachments support)
  5976. * TODO: support the 'URL' file system (with caching if !/V), portable
  5977. * collections attributes and related files (/RF)
  5978. */
  5979. var FileSpec = (function FileSpecClosure() {
  5980. function FileSpec(root, xref) {
  5981. if (!root || !isDict(root)) {
  5982. return;
  5983. }
  5984. this.xref = xref;
  5985. this.root = root;
  5986. if (root.has('FS')) {
  5987. this.fs = root.get('FS');
  5988. }
  5989. this.description = root.has('Desc') ?
  5990. stringToPDFString(root.get('Desc')) :
  5991. '';
  5992. if (root.has('RF')) {
  5993. warn('Related file specifications are not supported');
  5994. }
  5995. this.contentAvailable = true;
  5996. if (!root.has('EF')) {
  5997. this.contentAvailable = false;
  5998. warn('Non-embedded file specifications are not supported');
  5999. }
  6000. }
  6001. function pickPlatformItem(dict) {
  6002. // Look for the filename in this order:
  6003. // UF, F, Unix, Mac, DOS
  6004. if (dict.has('UF')) {
  6005. return dict.get('UF');
  6006. } else if (dict.has('F')) {
  6007. return dict.get('F');
  6008. } else if (dict.has('Unix')) {
  6009. return dict.get('Unix');
  6010. } else if (dict.has('Mac')) {
  6011. return dict.get('Mac');
  6012. } else if (dict.has('DOS')) {
  6013. return dict.get('DOS');
  6014. } else {
  6015. return null;
  6016. }
  6017. }
  6018. FileSpec.prototype = {
  6019. get filename() {
  6020. if (!this._filename && this.root) {
  6021. var filename = pickPlatformItem(this.root) || 'unnamed';
  6022. this._filename = stringToPDFString(filename).
  6023. replace(/\\\\/g, '\\').
  6024. replace(/\\\//g, '/').
  6025. replace(/\\/g, '/');
  6026. }
  6027. return this._filename;
  6028. },
  6029. get content() {
  6030. if (!this.contentAvailable) {
  6031. return null;
  6032. }
  6033. if (!this.contentRef && this.root) {
  6034. this.contentRef = pickPlatformItem(this.root.get('EF'));
  6035. }
  6036. var content = null;
  6037. if (this.contentRef) {
  6038. var xref = this.xref;
  6039. var fileObj = xref.fetchIfRef(this.contentRef);
  6040. if (fileObj && isStream(fileObj)) {
  6041. content = fileObj.getBytes();
  6042. } else {
  6043. warn('Embedded file specification points to non-existing/invalid ' +
  6044. 'content');
  6045. }
  6046. } else {
  6047. warn('Embedded file specification does not have a content');
  6048. }
  6049. return content;
  6050. },
  6051. get serializable() {
  6052. return {
  6053. filename: this.filename,
  6054. content: this.content
  6055. };
  6056. }
  6057. };
  6058. return FileSpec;
  6059. })();
  6060. /**
  6061. * A helper for loading missing data in object graphs. It traverses the graph
  6062. * depth first and queues up any objects that have missing data. Once it has
  6063. * has traversed as many objects that are available it attempts to bundle the
  6064. * missing data requests and then resume from the nodes that weren't ready.
  6065. *
  6066. * NOTE: It provides protection from circular references by keeping track of
  6067. * of loaded references. However, you must be careful not to load any graphs
  6068. * that have references to the catalog or other pages since that will cause the
  6069. * entire PDF document object graph to be traversed.
  6070. */
  6071. var ObjectLoader = (function() {
  6072. function mayHaveChildren(value) {
  6073. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  6074. }
  6075. function addChildren(node, nodesToVisit) {
  6076. var value;
  6077. if (isDict(node) || isStream(node)) {
  6078. var map;
  6079. if (isDict(node)) {
  6080. map = node.map;
  6081. } else {
  6082. map = node.dict.map;
  6083. }
  6084. for (var key in map) {
  6085. value = map[key];
  6086. if (mayHaveChildren(value)) {
  6087. nodesToVisit.push(value);
  6088. }
  6089. }
  6090. } else if (isArray(node)) {
  6091. for (var i = 0, ii = node.length; i < ii; i++) {
  6092. value = node[i];
  6093. if (mayHaveChildren(value)) {
  6094. nodesToVisit.push(value);
  6095. }
  6096. }
  6097. }
  6098. }
  6099. function ObjectLoader(obj, keys, xref) {
  6100. this.obj = obj;
  6101. this.keys = keys;
  6102. this.xref = xref;
  6103. this.refSet = null;
  6104. }
  6105. ObjectLoader.prototype = {
  6106. load: function ObjectLoader_load() {
  6107. var keys = this.keys;
  6108. this.capability = createPromiseCapability();
  6109. // Don't walk the graph if all the data is already loaded.
  6110. if (!(this.xref.stream instanceof ChunkedStream) ||
  6111. this.xref.stream.getMissingChunks().length === 0) {
  6112. this.capability.resolve();
  6113. return this.capability.promise;
  6114. }
  6115. this.refSet = new RefSet();
  6116. // Setup the initial nodes to visit.
  6117. var nodesToVisit = [];
  6118. for (var i = 0; i < keys.length; i++) {
  6119. nodesToVisit.push(this.obj[keys[i]]);
  6120. }
  6121. this.walk(nodesToVisit);
  6122. return this.capability.promise;
  6123. },
  6124. walk: function ObjectLoader_walk(nodesToVisit) {
  6125. var nodesToRevisit = [];
  6126. var pendingRequests = [];
  6127. // DFS walk of the object graph.
  6128. while (nodesToVisit.length) {
  6129. var currentNode = nodesToVisit.pop();
  6130. // Only references or chunked streams can cause missing data exceptions.
  6131. if (isRef(currentNode)) {
  6132. // Skip nodes that have already been visited.
  6133. if (this.refSet.has(currentNode)) {
  6134. continue;
  6135. }
  6136. try {
  6137. var ref = currentNode;
  6138. this.refSet.put(ref);
  6139. currentNode = this.xref.fetch(currentNode);
  6140. } catch (e) {
  6141. if (!(e instanceof MissingDataException)) {
  6142. throw e;
  6143. }
  6144. nodesToRevisit.push(currentNode);
  6145. pendingRequests.push({ begin: e.begin, end: e.end });
  6146. }
  6147. }
  6148. if (currentNode && currentNode.getBaseStreams) {
  6149. var baseStreams = currentNode.getBaseStreams();
  6150. var foundMissingData = false;
  6151. for (var i = 0; i < baseStreams.length; i++) {
  6152. var stream = baseStreams[i];
  6153. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  6154. foundMissingData = true;
  6155. pendingRequests.push({
  6156. begin: stream.start,
  6157. end: stream.end
  6158. });
  6159. }
  6160. }
  6161. if (foundMissingData) {
  6162. nodesToRevisit.push(currentNode);
  6163. }
  6164. }
  6165. addChildren(currentNode, nodesToVisit);
  6166. }
  6167. if (pendingRequests.length) {
  6168. this.xref.stream.manager.requestRanges(pendingRequests,
  6169. function pendingRequestCallback() {
  6170. nodesToVisit = nodesToRevisit;
  6171. for (var i = 0; i < nodesToRevisit.length; i++) {
  6172. var node = nodesToRevisit[i];
  6173. // Remove any reference nodes from the currrent refset so they
  6174. // aren't skipped when we revist them.
  6175. if (isRef(node)) {
  6176. this.refSet.remove(node);
  6177. }
  6178. }
  6179. this.walk(nodesToVisit);
  6180. }.bind(this));
  6181. return;
  6182. }
  6183. // Everything is loaded.
  6184. this.refSet = null;
  6185. this.capability.resolve();
  6186. }
  6187. };
  6188. return ObjectLoader;
  6189. })();
  6190. var ISOAdobeCharset = [
  6191. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  6192. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  6193. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  6194. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  6195. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  6196. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  6197. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  6198. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  6199. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  6200. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  6201. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  6202. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  6203. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  6204. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  6205. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  6206. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  6207. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  6208. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  6209. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  6210. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  6211. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  6212. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  6213. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  6214. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  6215. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  6216. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  6217. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  6218. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  6219. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  6220. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  6221. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  6222. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  6223. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  6224. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  6225. ];
  6226. var ExpertCharset = [
  6227. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  6228. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  6229. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  6230. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  6231. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  6232. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  6233. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  6234. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  6235. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  6236. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  6237. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  6238. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  6239. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  6240. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  6241. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  6242. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  6243. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  6244. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  6245. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  6246. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  6247. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  6248. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  6249. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  6250. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  6251. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  6252. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  6253. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  6254. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  6255. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  6256. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  6257. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  6258. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  6259. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  6260. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  6261. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  6262. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  6263. 'Ydieresissmall'
  6264. ];
  6265. var ExpertSubsetCharset = [
  6266. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  6267. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  6268. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  6269. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  6270. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  6271. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  6272. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  6273. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  6274. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  6275. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  6276. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  6277. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  6278. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  6279. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  6280. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  6281. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  6282. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  6283. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  6284. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  6285. 'periodinferior', 'commainferior'
  6286. ];
  6287. var CIDToUnicodeMaps = {
  6288. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  6289. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  6290. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  6291. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  6292. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  6293. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  6294. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  6295. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  6296. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  6297. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  6298. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  6299. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  6300. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  6301. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  6302. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  6303. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  6304. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  6305. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  6306. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  6307. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  6308. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  6309. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  6310. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  6311. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  6312. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  6313. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  6314. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  6315. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  6316. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  6317. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  6318. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  6319. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  6320. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  6321. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  6322. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  6323. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  6324. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  6325. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  6326. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  6327. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  6328. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  6329. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  6330. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  6331. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  6332. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  6333. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  6334. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  6335. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  6336. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  6337. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  6338. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  6339. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  6340. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  6341. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  6342. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  6343. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  6344. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  6345. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  6346. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  6347. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  6348. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  6349. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  6350. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  6351. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  6352. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  6353. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  6354. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  6355. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  6356. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  6357. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  6358. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  6359. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  6360. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  6361. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  6362. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  6363. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  6364. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  6365. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  6366. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  6367. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  6368. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  6369. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  6370. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  6371. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  6372. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  6373. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  6374. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  6375. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  6376. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  6377. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  6378. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  6379. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  6380. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  6381. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  6382. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  6383. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  6384. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  6385. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  6386. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  6387. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  6388. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  6389. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  6390. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  6391. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  6392. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  6393. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  6394. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  6395. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  6396. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  6397. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  6398. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  6399. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  6400. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  6401. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  6402. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  6403. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  6404. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  6405. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  6406. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  6407. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  6408. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  6409. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  6410. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  6411. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  6412. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  6413. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  6414. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  6415. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  6416. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  6417. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  6418. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  6419. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  6420. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  6421. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  6422. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  6423. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  6424. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  6425. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  6426. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  6427. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  6428. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  6429. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  6430. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  6431. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  6432. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  6433. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  6434. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  6435. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  6436. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  6437. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  6438. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  6439. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  6440. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  6441. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  6442. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  6443. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  6444. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  6445. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  6446. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  6447. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  6448. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  6449. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  6450. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  6451. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  6452. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  6453. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  6454. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  6455. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  6456. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  6457. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  6458. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  6459. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  6460. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  6461. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  6462. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  6463. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  6464. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  6465. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  6466. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  6467. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  6468. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  6469. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  6470. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  6471. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  6472. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  6473. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  6474. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  6475. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  6476. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  6477. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  6478. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  6479. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  6480. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  6481. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  6482. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  6483. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  6484. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  6485. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  6486. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  6487. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  6488. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  6489. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  6490. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  6491. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  6492. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  6493. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  6494. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  6495. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  6496. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  6497. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  6498. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  6499. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  6500. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  6501. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  6502. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  6503. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  6504. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  6505. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  6506. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  6507. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  6508. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  6509. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  6510. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  6511. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  6512. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  6513. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  6514. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  6515. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  6516. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  6517. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  6518. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  6519. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  6520. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  6521. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  6522. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  6523. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  6524. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  6525. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  6526. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  6527. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  6528. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  6529. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  6530. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  6531. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  6532. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  6533. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  6534. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  6535. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  6536. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  6537. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  6538. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  6539. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  6540. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  6541. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  6542. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  6543. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  6544. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  6545. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  6546. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  6547. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  6548. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  6549. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  6550. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  6551. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  6552. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  6553. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  6554. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  6555. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  6556. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  6557. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  6558. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  6559. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  6560. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  6561. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  6562. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  6563. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  6564. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  6565. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  6566. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  6567. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  6568. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  6569. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  6570. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  6571. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  6572. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  6573. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  6574. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  6575. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  6576. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  6577. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  6578. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  6579. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  6580. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  6581. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  6582. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  6583. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  6584. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  6585. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  6586. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  6587. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  6588. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  6589. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  6590. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  6591. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  6592. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  6593. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  6594. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  6595. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  6596. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  6597. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  6598. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  6599. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  6600. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  6601. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  6602. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  6603. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  6604. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  6605. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  6606. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  6607. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  6608. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  6609. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  6610. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  6611. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  6612. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  6613. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  6614. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  6615. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  6616. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  6617. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  6618. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  6619. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  6620. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  6621. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  6622. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  6623. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  6624. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  6625. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  6626. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  6627. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  6628. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  6629. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  6630. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  6631. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  6632. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  6633. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  6634. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  6635. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  6636. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  6637. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  6638. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  6639. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  6640. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  6641. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  6642. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  6643. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  6644. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  6645. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  6646. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  6647. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  6648. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  6649. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  6650. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  6651. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  6652. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  6653. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  6654. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  6655. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  6656. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  6657. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  6658. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  6659. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  6660. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  6661. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  6662. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  6663. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  6664. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  6665. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  6666. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  6667. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  6668. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  6669. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  6670. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  6671. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  6672. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  6673. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  6674. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  6675. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  6676. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  6677. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  6678. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  6679. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  6680. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  6681. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  6682. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  6683. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  6684. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  6685. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  6686. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  6687. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  6688. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  6689. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  6690. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  6691. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  6692. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  6693. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  6694. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  6695. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  6696. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  6697. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  6698. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  6699. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  6700. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  6701. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  6702. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  6703. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  6704. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  6705. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  6706. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  6707. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  6708. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  6709. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  6710. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  6711. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  6712. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  6713. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  6714. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  6715. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  6716. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  6717. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  6718. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  6719. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  6720. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  6721. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  6722. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  6723. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  6724. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  6725. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  6726. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  6727. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  6728. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  6729. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  6730. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  6731. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  6732. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  6733. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  6734. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  6735. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  6736. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  6737. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  6738. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  6739. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  6740. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  6741. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  6742. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  6743. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  6744. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  6745. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  6746. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  6747. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  6748. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  6749. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  6750. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  6751. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  6752. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  6753. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  6754. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  6755. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  6756. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  6757. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  6758. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  6759. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  6760. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  6761. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  6762. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  6763. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  6764. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  6765. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  6766. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  6767. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  6768. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  6769. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  6770. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  6771. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  6772. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  6773. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  6774. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  6775. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  6776. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  6777. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  6778. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  6779. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  6780. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  6781. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  6782. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  6783. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  6784. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  6785. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  6786. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  6787. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  6788. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  6789. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  6790. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  6791. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  6792. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  6793. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  6794. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  6795. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  6796. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  6797. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  6798. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  6799. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  6800. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  6801. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  6802. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  6803. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  6804. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  6805. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  6806. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  6807. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  6808. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  6809. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  6810. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  6811. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  6812. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  6813. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  6814. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  6815. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  6816. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  6817. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  6818. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  6819. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  6820. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  6821. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  6822. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  6823. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  6824. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  6825. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  6826. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  6827. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  6828. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  6829. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  6830. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  6831. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  6832. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  6833. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  6834. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  6835. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  6836. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  6837. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  6838. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  6839. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  6840. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  6841. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  6842. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  6843. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  6844. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  6845. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  6846. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  6847. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  6848. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  6849. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  6850. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  6851. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  6852. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  6853. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  6854. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  6855. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  6856. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  6857. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  6858. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  6859. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  6860. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  6861. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  6862. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  6863. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  6864. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  6865. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  6866. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  6867. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  6868. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  6869. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  6870. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  6871. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  6872. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  6873. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  6874. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  6875. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  6876. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  6877. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  6878. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  6879. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  6880. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  6881. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  6882. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  6883. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  6884. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  6885. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  6886. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  6887. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  6888. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  6889. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  6890. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  6891. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  6892. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  6893. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  6894. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  6895. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  6896. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  6897. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  6898. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  6899. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  6900. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  6901. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  6902. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  6903. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  6904. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  6905. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  6906. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  6907. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  6908. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  6909. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  6910. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  6911. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  6912. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  6913. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  6914. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  6915. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  6916. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  6917. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  6918. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  6919. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  6920. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  6921. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  6922. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  6923. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  6924. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  6925. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  6926. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  6927. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  6928. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  6929. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  6930. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  6931. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  6932. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  6933. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  6934. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  6935. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  6936. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  6937. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  6938. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  6939. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  6940. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  6941. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  6942. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  6943. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  6944. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  6945. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  6946. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  6947. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  6948. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  6949. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  6950. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  6951. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  6952. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  6953. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  6954. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  6955. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  6956. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  6957. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  6958. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  6959. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  6960. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  6961. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  6962. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  6963. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  6964. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  6965. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  6966. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  6967. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  6968. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  6969. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  6970. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  6971. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  6972. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  6973. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  6974. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  6975. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  6976. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  6977. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  6978. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  6979. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  6980. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  6981. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  6982. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  6983. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  6984. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  6985. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  6986. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  6987. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  6988. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  6989. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  6990. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  6991. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  6992. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  6993. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  6994. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  6995. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  6996. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  6997. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  6998. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  6999. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  7000. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  7001. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  7002. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  7003. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  7004. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  7005. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  7006. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  7007. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  7008. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  7009. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  7010. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  7011. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  7012. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  7013. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  7014. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  7015. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  7016. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  7017. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  7018. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  7019. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  7020. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  7021. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  7022. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  7023. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  7024. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  7025. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  7026. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  7027. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  7028. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  7029. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  7030. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  7031. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  7032. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  7033. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  7034. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  7035. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  7036. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  7037. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  7038. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  7039. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  7040. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  7041. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  7042. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  7043. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  7044. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  7045. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  7046. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  7047. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  7048. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  7049. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  7050. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  7051. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  7052. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  7053. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  7054. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  7055. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  7056. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  7057. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  7058. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  7059. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  7060. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  7061. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  7062. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  7063. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  7064. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  7065. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  7066. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  7067. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  7068. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  7069. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  7070. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  7071. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  7072. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  7073. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  7074. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  7075. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  7076. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  7077. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  7078. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  7079. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  7080. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  7081. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  7082. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  7083. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  7084. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  7085. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  7086. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  7087. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  7088. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  7089. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  7090. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  7091. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  7092. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  7093. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  7094. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  7095. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  7096. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  7097. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  7098. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  7099. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  7100. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  7101. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  7102. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  7103. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  7104. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  7105. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  7106. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  7107. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  7108. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  7109. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  7110. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  7111. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  7112. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  7113. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  7114. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  7115. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  7116. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  7117. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  7118. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  7119. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  7120. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  7121. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  7122. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  7123. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  7124. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  7125. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  7126. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  7127. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  7128. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  7129. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  7130. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  7131. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  7132. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  7133. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  7134. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  7135. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  7136. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  7137. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  7138. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  7139. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  7140. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  7141. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  7142. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  7143. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  7144. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  7145. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  7146. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  7147. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  7148. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  7149. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  7150. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  7151. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  7152. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  7153. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  7154. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  7155. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  7156. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  7157. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  7158. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  7159. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  7160. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  7161. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  7162. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  7163. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  7164. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  7165. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  7166. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  7167. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  7168. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  7169. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  7170. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  7171. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  7172. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  7173. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  7174. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  7175. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  7176. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  7177. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  7178. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  7179. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  7180. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  7181. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  7182. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  7183. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  7184. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  7185. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  7186. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  7187. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  7188. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  7189. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  7190. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  7191. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  7192. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  7193. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  7194. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  7195. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  7196. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  7197. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  7198. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  7199. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  7200. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  7201. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  7202. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  7203. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  7204. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  7205. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  7206. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  7207. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  7208. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  7209. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  7210. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  7211. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  7212. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  7213. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  7214. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  7215. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  7216. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  7217. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  7218. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  7219. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  7220. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  7221. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  7222. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  7223. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  7224. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  7225. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  7226. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  7227. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  7228. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  7229. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  7230. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  7231. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  7232. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  7233. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  7234. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  7235. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  7236. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  7237. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  7238. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  7239. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  7240. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  7241. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  7242. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  7243. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  7244. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  7245. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  7246. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  7247. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  7248. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  7249. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  7250. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  7251. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  7252. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  7253. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  7254. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  7255. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  7256. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  7257. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  7258. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  7259. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  7260. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  7261. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  7262. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  7263. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  7264. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  7265. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  7266. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  7267. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  7268. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  7269. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  7270. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  7271. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  7272. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  7273. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  7274. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  7275. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  7276. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  7277. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  7278. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  7279. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  7280. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  7281. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  7282. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  7283. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  7284. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  7285. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  7286. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  7287. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  7288. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  7289. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  7290. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  7291. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  7292. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  7293. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  7294. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  7295. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  7296. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  7297. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  7298. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  7299. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  7300. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  7301. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  7302. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  7303. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  7304. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  7305. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  7306. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  7307. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  7308. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  7309. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  7310. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  7311. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  7312. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  7313. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  7314. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  7315. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  7316. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  7317. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  7318. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  7319. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  7320. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  7321. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  7322. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  7323. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  7324. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  7325. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  7326. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  7327. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  7328. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  7329. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  7330. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  7331. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  7332. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  7333. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  7334. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  7335. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  7336. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  7337. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  7338. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  7339. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  7340. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  7341. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  7342. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  7343. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  7344. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  7345. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  7346. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  7347. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  7348. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  7349. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  7350. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  7351. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  7352. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  7353. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  7354. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  7355. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  7356. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  7357. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  7358. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  7359. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  7360. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  7361. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  7362. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  7363. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  7364. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  7365. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  7366. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  7367. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  7368. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  7369. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  7370. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  7371. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  7372. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  7373. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  7374. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  7375. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  7376. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  7377. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  7378. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  7379. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  7380. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  7381. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  7382. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  7383. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  7384. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  7385. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  7386. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  7387. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  7388. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  7389. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  7390. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  7391. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  7392. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  7393. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  7394. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  7395. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  7396. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  7397. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  7398. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  7399. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  7400. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  7401. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  7402. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  7403. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  7404. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  7405. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  7406. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  7407. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  7408. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  7409. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  7410. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  7411. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  7412. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  7413. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  7414. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  7415. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  7416. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  7417. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  7418. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  7419. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  7420. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  7421. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  7422. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  7423. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  7424. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  7425. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  7426. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  7427. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  7428. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  7429. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  7430. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  7431. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  7432. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  7433. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  7434. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  7435. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  7436. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  7437. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  7438. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  7439. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  7440. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  7441. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  7442. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  7443. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  7444. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  7445. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  7446. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  7447. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  7448. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  7449. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  7450. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  7451. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  7452. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  7453. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  7454. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  7455. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  7456. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  7457. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  7458. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  7459. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  7460. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  7461. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  7462. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  7463. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  7464. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  7465. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  7466. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  7467. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  7468. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  7469. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  7470. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  7471. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  7472. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  7473. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  7474. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  7475. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  7476. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  7477. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  7478. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  7479. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  7480. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  7481. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  7482. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  7483. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  7484. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  7485. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  7486. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  7487. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  7488. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  7489. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  7490. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  7491. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  7492. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  7493. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  7494. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  7495. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  7496. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  7497. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  7498. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  7499. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  7500. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  7501. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  7502. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  7503. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  7504. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  7505. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  7506. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  7507. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  7508. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  7509. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  7510. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  7511. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  7512. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  7513. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  7514. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  7515. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  7516. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  7517. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  7518. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  7519. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  7520. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  7521. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  7522. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  7523. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  7524. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  7525. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  7526. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  7527. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  7528. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  7529. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  7530. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  7531. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  7532. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  7533. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  7534. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  7535. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  7536. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  7537. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  7538. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  7539. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  7540. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  7541. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  7542. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  7543. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  7544. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  7545. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  7546. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  7547. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  7548. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  7549. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  7550. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  7551. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  7552. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  7553. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  7554. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  7555. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  7556. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  7557. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  7558. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  7559. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  7560. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  7561. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  7562. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  7563. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  7564. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  7565. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  7566. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  7567. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  7568. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  7569. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  7570. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  7571. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  7572. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  7573. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  7574. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  7575. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  7576. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  7577. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  7578. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  7579. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  7580. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  7581. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  7582. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  7583. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  7584. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  7585. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  7586. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  7587. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  7588. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  7589. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  7590. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  7591. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  7592. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  7593. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  7594. 38315, 38741, 171581, 173594],
  7595. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  7596. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  7597. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  7598. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  7599. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  7600. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  7601. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  7602. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  7603. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  7604. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  7605. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  7606. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  7607. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  7608. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  7609. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  7610. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  7611. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  7612. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  7613. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  7614. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  7615. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  7616. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  7617. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  7618. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  7619. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  7620. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  7621. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  7622. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  7623. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  7624. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  7625. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  7626. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  7627. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  7628. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  7629. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  7630. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  7631. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  7632. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  7633. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  7634. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  7635. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  7636. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  7637. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  7638. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  7639. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  7640. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  7641. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  7642. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  7643. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  7644. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  7645. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  7646. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  7647. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  7648. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  7649. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  7650. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  7651. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  7652. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  7653. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  7654. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  7655. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  7656. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  7657. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  7658. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  7659. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  7660. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  7661. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  7662. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  7663. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  7664. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  7665. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  7666. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  7667. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  7668. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  7669. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  7670. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  7671. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  7672. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  7673. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  7674. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  7675. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  7676. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  7677. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  7678. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  7679. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  7680. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  7681. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  7682. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  7683. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  7684. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  7685. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  7686. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  7687. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  7688. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  7689. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  7690. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  7691. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  7692. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  7693. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  7694. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  7695. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  7696. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  7697. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  7698. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  7699. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  7700. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  7701. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  7702. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  7703. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  7704. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  7705. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  7706. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  7707. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  7708. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  7709. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  7710. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  7711. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  7712. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  7713. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  7714. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  7715. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  7716. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  7717. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  7718. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  7719. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  7720. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  7721. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  7722. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  7723. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  7724. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  7725. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  7726. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  7727. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  7728. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  7729. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  7730. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  7731. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  7732. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  7733. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  7734. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  7735. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  7736. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  7737. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  7738. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  7739. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  7740. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  7741. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  7742. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  7743. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  7744. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  7745. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  7746. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  7747. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  7748. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  7749. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  7750. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  7751. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  7752. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  7753. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  7754. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  7755. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  7756. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  7757. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  7758. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  7759. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  7760. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  7761. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  7762. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  7763. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  7764. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  7765. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  7766. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  7767. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  7768. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  7769. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  7770. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  7771. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  7772. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  7773. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  7774. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  7775. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  7776. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  7777. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  7778. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  7779. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  7780. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  7781. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  7782. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  7783. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  7784. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  7785. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  7786. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  7787. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  7788. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  7789. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  7790. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  7791. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  7792. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  7793. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  7794. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  7795. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  7796. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  7797. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  7798. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  7799. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  7800. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  7801. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  7802. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  7803. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  7804. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  7805. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  7806. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  7807. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  7808. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  7809. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  7810. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  7811. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  7812. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  7813. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  7814. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  7815. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  7816. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  7817. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  7818. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  7819. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  7820. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  7821. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  7822. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  7823. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  7824. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  7825. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  7826. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  7827. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  7828. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  7829. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  7830. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  7831. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  7832. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  7833. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  7834. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  7835. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  7836. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  7837. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  7838. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  7839. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  7840. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  7841. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  7842. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  7843. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  7844. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  7845. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  7846. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  7847. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  7848. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  7849. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  7850. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  7851. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  7852. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  7853. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  7854. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  7855. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  7856. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  7857. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  7858. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  7859. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  7860. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  7861. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  7862. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  7863. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  7864. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  7865. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  7866. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  7867. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  7868. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  7869. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  7870. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  7871. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  7872. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  7873. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  7874. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  7875. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  7876. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  7877. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  7878. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  7879. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  7880. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  7881. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  7882. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  7883. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  7884. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  7885. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  7886. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  7887. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  7888. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  7889. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  7890. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  7891. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  7892. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  7893. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  7894. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  7895. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  7896. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  7897. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  7898. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  7899. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  7900. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  7901. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  7902. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  7903. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  7904. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  7905. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  7906. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  7907. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  7908. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  7909. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  7910. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  7911. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  7912. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  7913. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  7914. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  7915. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  7916. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  7917. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  7918. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  7919. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  7920. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  7921. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  7922. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  7923. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  7924. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  7925. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  7926. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  7927. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  7928. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  7929. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  7930. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  7931. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  7932. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  7933. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  7934. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  7935. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  7936. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  7937. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  7938. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  7939. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  7940. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  7941. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  7942. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  7943. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  7944. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  7945. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  7946. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  7947. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  7948. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  7949. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  7950. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  7951. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  7952. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  7953. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  7954. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  7955. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  7956. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  7957. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  7958. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  7959. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  7960. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  7961. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  7962. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  7963. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  7964. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  7965. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  7966. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  7967. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  7968. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  7969. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  7970. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  7971. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  7972. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  7973. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  7974. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  7975. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  7976. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  7977. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  7978. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  7979. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  7980. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  7981. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  7982. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  7983. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  7984. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  7985. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  7986. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  7987. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  7988. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  7989. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  7990. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  7991. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  7992. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  7993. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  7994. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  7995. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  7996. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  7997. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  7998. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  7999. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  8000. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  8001. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  8002. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  8003. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  8004. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  8005. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  8006. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  8007. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  8008. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  8009. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  8010. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  8011. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  8012. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  8013. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  8014. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  8015. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  8016. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  8017. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  8018. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  8019. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  8020. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  8021. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  8022. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  8023. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  8024. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  8025. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  8026. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  8027. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  8028. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  8029. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  8030. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  8031. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  8032. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  8033. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  8034. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  8035. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  8036. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  8037. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  8038. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  8039. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  8040. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  8041. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  8042. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  8043. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  8044. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  8045. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  8046. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  8047. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  8048. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  8049. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  8050. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  8051. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  8052. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  8053. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  8054. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  8055. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  8056. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  8057. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  8058. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  8059. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  8060. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  8061. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  8062. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  8063. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  8064. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  8065. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  8066. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  8067. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  8068. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  8069. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  8070. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  8071. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  8072. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  8073. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  8074. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  8075. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  8076. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  8077. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  8078. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  8079. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  8080. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  8081. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  8082. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  8083. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  8084. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  8085. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  8086. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  8087. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  8088. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  8089. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  8090. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  8091. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  8092. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  8093. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  8094. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  8095. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  8096. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  8097. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  8098. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  8099. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  8100. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  8101. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  8102. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  8103. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  8104. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  8105. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  8106. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  8107. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  8108. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  8109. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  8110. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  8111. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  8112. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  8113. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  8114. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  8115. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  8116. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  8117. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  8118. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  8119. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  8120. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  8121. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  8122. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  8123. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  8124. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  8125. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  8126. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  8127. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  8128. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  8129. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  8130. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  8131. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  8132. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  8133. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  8134. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  8135. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  8136. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  8137. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  8138. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  8139. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  8140. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  8141. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  8142. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  8143. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  8144. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  8145. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  8146. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  8147. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  8148. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  8149. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  8150. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  8151. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  8152. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  8153. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  8154. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  8155. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  8156. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  8157. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  8158. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  8159. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  8160. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  8161. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  8162. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  8163. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  8164. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  8165. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  8166. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  8167. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  8168. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  8169. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  8170. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  8171. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  8172. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  8173. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  8174. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  8175. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  8176. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  8177. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  8178. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  8179. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  8180. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  8181. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  8182. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  8183. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  8184. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  8185. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  8186. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  8187. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  8188. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  8189. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  8190. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  8191. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  8192. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  8193. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  8194. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  8195. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  8196. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  8197. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  8198. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  8199. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  8200. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  8201. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  8202. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  8203. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  8204. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  8205. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  8206. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  8207. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  8208. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  8209. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  8210. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  8211. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  8212. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  8213. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  8214. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  8215. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  8216. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  8217. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  8218. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  8219. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  8220. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  8221. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  8222. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  8223. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  8224. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  8225. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  8226. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  8227. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  8228. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  8229. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  8230. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  8231. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  8232. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  8233. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  8234. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  8235. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  8236. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  8237. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  8238. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  8239. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  8240. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  8241. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  8242. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  8243. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  8244. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  8245. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  8246. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  8247. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  8248. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  8249. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  8250. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  8251. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  8252. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  8253. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  8254. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  8255. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  8256. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  8257. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  8258. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  8259. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  8260. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  8261. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  8262. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  8263. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  8264. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  8265. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  8266. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  8267. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  8268. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  8269. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  8270. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  8271. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  8272. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  8273. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  8274. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  8275. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  8276. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  8277. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  8278. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  8279. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  8280. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  8281. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  8282. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  8283. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  8284. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  8285. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  8286. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  8287. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  8288. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  8289. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  8290. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  8291. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  8292. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  8293. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  8294. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  8295. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  8296. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  8297. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  8298. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  8299. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  8300. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  8301. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  8302. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  8303. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  8304. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  8305. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  8306. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  8307. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  8308. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  8309. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  8310. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  8311. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  8312. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  8313. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  8314. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  8315. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  8316. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  8317. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  8318. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  8319. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  8320. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  8321. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  8322. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  8323. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  8324. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  8325. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  8326. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  8327. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  8328. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  8329. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  8330. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  8331. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  8332. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  8333. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  8334. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  8335. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  8336. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  8337. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  8338. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  8339. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  8340. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  8341. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  8342. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  8343. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  8344. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  8345. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  8346. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  8347. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  8348. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  8349. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  8350. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  8351. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  8352. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  8353. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  8354. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  8355. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  8356. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  8357. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  8358. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  8359. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  8360. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  8361. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  8362. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  8363. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  8364. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  8365. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  8366. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  8367. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  8368. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  8369. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  8370. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  8371. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  8372. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  8373. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  8374. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  8375. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  8376. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  8377. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  8378. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  8379. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  8380. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  8381. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  8382. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  8383. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  8384. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  8385. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  8386. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  8387. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  8388. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  8389. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  8390. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  8391. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  8392. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  8393. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  8394. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  8395. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  8396. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  8397. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  8398. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  8399. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  8400. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  8401. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  8402. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  8403. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  8404. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  8405. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  8406. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  8407. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  8408. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  8409. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  8410. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  8411. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  8412. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  8413. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  8414. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  8415. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  8416. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  8417. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  8418. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  8419. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  8420. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  8421. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  8422. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  8423. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  8424. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  8425. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  8426. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  8427. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  8428. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  8429. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  8430. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  8431. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  8432. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  8433. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  8434. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  8435. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  8436. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  8437. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  8438. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  8439. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  8440. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  8441. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  8442. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  8443. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  8444. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  8445. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  8446. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  8447. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  8448. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  8449. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  8450. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  8451. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  8452. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  8453. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  8454. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  8455. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  8456. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  8457. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  8458. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  8459. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  8460. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  8461. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  8462. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  8463. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  8464. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  8465. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  8466. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  8467. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  8468. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  8469. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  8470. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  8471. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  8472. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  8473. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  8474. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  8475. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  8476. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  8477. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  8478. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  8479. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  8480. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  8481. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  8482. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  8483. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  8484. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  8485. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  8486. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  8487. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  8488. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  8489. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  8490. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  8491. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  8492. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  8493. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  8494. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  8495. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  8496. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  8497. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  8498. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  8499. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  8500. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  8501. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  8502. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  8503. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  8504. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  8505. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  8506. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  8507. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  8508. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  8509. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  8510. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  8511. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  8512. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  8513. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  8514. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  8515. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  8516. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  8517. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  8518. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  8519. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  8520. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  8521. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  8522. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  8523. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  8524. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  8525. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  8526. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  8527. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  8528. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  8529. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  8530. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  8531. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  8532. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  8533. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  8534. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  8535. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  8536. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  8537. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  8538. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  8539. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  8540. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  8541. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  8542. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  8543. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  8544. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  8545. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  8546. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  8547. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  8548. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  8549. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  8550. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  8551. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  8552. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  8553. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  8554. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  8555. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  8556. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  8557. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  8558. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  8559. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  8560. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  8561. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  8562. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  8563. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  8564. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  8565. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  8566. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  8567. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  8568. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  8569. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  8570. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  8571. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  8572. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  8573. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  8574. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  8575. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  8576. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  8577. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  8578. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  8579. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  8580. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  8581. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  8582. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  8583. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  8584. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  8585. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  8586. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  8587. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  8588. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  8589. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  8590. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  8591. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  8592. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  8593. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  8594. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  8595. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  8596. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  8597. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  8598. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  8599. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  8600. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  8601. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  8602. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  8603. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  8604. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  8605. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  8606. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  8607. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  8608. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  8609. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  8610. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  8611. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  8612. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  8613. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  8614. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  8615. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  8616. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  8617. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  8618. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  8619. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  8620. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  8621. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  8622. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  8623. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  8624. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  8625. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  8626. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  8627. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  8628. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  8629. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  8630. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  8631. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  8632. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  8633. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  8634. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  8635. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  8636. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  8637. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  8638. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  8639. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  8640. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  8641. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  8642. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  8643. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  8644. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  8645. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  8646. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  8647. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  8648. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  8649. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  8650. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  8651. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  8652. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  8653. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  8654. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  8655. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  8656. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  8657. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  8658. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  8659. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  8660. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  8661. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  8662. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  8663. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  8664. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  8665. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  8666. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  8667. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  8668. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  8669. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  8670. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  8671. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  8672. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  8673. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  8674. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  8675. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  8676. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  8677. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  8678. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  8679. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  8680. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  8681. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  8682. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  8683. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  8684. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  8685. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  8686. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  8687. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  8688. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  8689. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  8690. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  8691. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  8692. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  8693. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  8694. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  8695. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  8696. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  8697. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  8698. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  8699. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  8700. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  8701. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  8702. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  8703. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  8704. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  8705. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  8706. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  8707. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  8708. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  8709. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  8710. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  8711. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  8712. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  8713. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  8714. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  8715. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  8716. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  8717. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  8718. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  8719. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  8720. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  8721. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  8722. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  8723. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  8724. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  8725. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  8726. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  8727. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  8728. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  8729. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  8730. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  8731. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  8732. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  8733. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  8734. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  8735. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  8736. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  8737. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  8738. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  8739. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  8740. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  8741. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  8742. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  8743. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  8744. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  8745. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  8746. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  8747. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  8748. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  8749. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  8750. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  8751. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  8752. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  8753. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  8754. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  8755. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  8756. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  8757. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  8758. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  8759. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  8760. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  8761. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  8762. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  8763. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  8764. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  8765. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  8766. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  8767. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  8768. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  8769. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  8770. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  8771. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  8772. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  8773. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  8774. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  8775. {f: 6, c: 55198}],
  8776. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  8777. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  8778. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  8779. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  8780. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  8781. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  8782. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  8783. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  8784. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  8785. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  8786. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  8787. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  8788. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  8789. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  8790. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  8791. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  8792. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  8793. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  8794. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  8795. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  8796. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  8797. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  8798. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  8799. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  8800. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  8801. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  8802. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  8803. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  8804. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  8805. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  8806. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  8807. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  8808. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  8809. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  8810. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  8811. [12057, 21353, 63192], [12059, 21430, 63193],
  8812. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  8813. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  8814. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  8815. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  8816. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  8817. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  8818. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  8819. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  8820. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  8821. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  8822. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  8823. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  8824. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  8825. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  8826. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  8827. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  8828. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  8829. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  8830. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  8831. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  8832. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  8833. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  8834. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  8835. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  8836. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  8837. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  8838. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  8839. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  8840. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  8841. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  8842. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  8843. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  8844. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  8845. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  8846. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  8847. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  8848. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  8849. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  8850. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  8851. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  8852. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  8853. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  8854. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  8855. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  8856. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  8857. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  8858. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  8859. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  8860. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  8861. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  8862. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  8863. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  8864. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  8865. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  8866. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  8867. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  8868. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  8869. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  8870. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  8871. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  8872. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  8873. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  8874. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  8875. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  8876. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  8877. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  8878. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  8879. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  8880. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  8881. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  8882. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  8883. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  8884. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  8885. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  8886. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  8887. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  8888. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  8889. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  8890. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  8891. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  8892. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  8893. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  8894. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  8895. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  8896. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  8897. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  8898. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  8899. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  8900. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  8901. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  8902. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  8903. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  8904. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  8905. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  8906. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  8907. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  8908. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  8909. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  8910. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  8911. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  8912. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  8913. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  8914. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  8915. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  8916. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  8917. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  8918. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  8919. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  8920. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  8921. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  8922. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  8923. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  8924. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  8925. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  8926. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  8927. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  8928. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  8929. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  8930. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  8931. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  8932. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  8933. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  8934. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  8935. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  8936. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  8937. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  8938. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  8939. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  8940. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  8941. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  8942. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  8943. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  8944. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  8945. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  8946. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  8947. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  8948. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  8949. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  8950. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  8951. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  8952. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  8953. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  8954. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  8955. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  8956. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  8957. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  8958. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  8959. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  8960. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  8961. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  8962. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  8963. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  8964. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  8965. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  8966. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  8967. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  8968. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  8969. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  8970. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  8971. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  8972. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  8973. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  8974. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  8975. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  8976. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  8977. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  8978. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  8979. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  8980. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  8981. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  8982. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  8983. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  8984. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  8985. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  8986. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  8987. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  8988. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  8989. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  8990. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  8991. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  8992. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  8993. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  8994. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  8995. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  8996. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  8997. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  8998. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  8999. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  9000. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  9001. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  9002. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  9003. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  9004. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  9005. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  9006. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  9007. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  9008. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  9009. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  9010. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  9011. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  9012. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  9013. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  9014. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  9015. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  9016. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  9017. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  9018. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  9019. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  9020. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  9021. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  9022. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  9023. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  9024. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  9025. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  9026. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  9027. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  9028. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  9029. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  9030. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  9031. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  9032. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  9033. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  9034. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  9035. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  9036. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  9037. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  9038. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  9039. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  9040. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  9041. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  9042. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  9043. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  9044. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  9045. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  9046. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  9047. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  9048. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  9049. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  9050. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  9051. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  9052. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  9053. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  9054. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  9055. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  9056. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  9057. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  9058. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  9059. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  9060. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  9061. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  9062. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  9063. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  9064. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  9065. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  9066. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  9067. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  9068. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  9069. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  9070. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  9071. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  9072. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  9073. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  9074. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  9075. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  9076. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  9077. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  9078. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  9079. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  9080. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  9081. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  9082. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  9083. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  9084. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  9085. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  9086. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  9087. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  9088. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  9089. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  9090. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  9091. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  9092. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  9093. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  9094. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  9095. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  9096. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  9097. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  9098. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  9099. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  9100. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  9101. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  9102. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  9103. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  9104. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  9105. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  9106. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  9107. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  9108. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  9109. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  9110. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  9111. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  9112. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  9113. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  9114. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  9115. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  9116. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  9117. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  9118. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  9119. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  9120. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  9121. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  9122. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  9123. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  9124. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  9125. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  9126. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  9127. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  9128. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  9129. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  9130. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  9131. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  9132. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  9133. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  9134. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  9135. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  9136. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  9137. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  9138. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  9139. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  9140. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  9141. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  9142. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  9143. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  9144. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  9145. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  9146. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  9147. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  9148. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  9149. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  9150. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  9151. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  9152. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  9153. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  9154. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  9155. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  9156. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  9157. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  9158. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  9159. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  9160. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  9161. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  9162. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  9163. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  9164. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  9165. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  9166. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  9167. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  9168. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  9169. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  9170. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  9171. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  9172. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  9173. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  9174. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  9175. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  9176. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  9177. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  9178. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  9179. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  9180. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  9181. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  9182. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  9183. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  9184. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  9185. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  9186. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  9187. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  9188. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  9189. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  9190. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  9191. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  9192. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  9193. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  9194. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  9195. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  9196. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  9197. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  9198. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  9199. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  9200. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  9201. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  9202. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  9203. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  9204. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  9205. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  9206. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  9207. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  9208. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  9209. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  9210. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  9211. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  9212. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  9213. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  9214. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  9215. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  9216. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  9217. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  9218. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  9219. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  9220. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  9221. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  9222. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  9223. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  9224. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  9225. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  9226. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  9227. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  9228. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  9229. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  9230. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  9231. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  9232. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  9233. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  9234. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  9235. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  9236. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  9237. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  9238. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  9239. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  9240. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  9241. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  9242. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  9243. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  9244. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  9245. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  9246. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  9247. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  9248. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  9249. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  9250. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  9251. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  9252. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  9253. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  9254. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  9255. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  9256. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  9257. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  9258. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  9259. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  9260. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  9261. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  9262. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  9263. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  9264. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  9265. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  9266. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  9267. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  9268. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  9269. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  9270. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  9271. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  9272. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  9273. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  9274. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  9275. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  9276. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  9277. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  9278. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  9279. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  9280. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  9281. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  9282. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  9283. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  9284. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  9285. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  9286. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  9287. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  9288. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  9289. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  9290. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  9291. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  9292. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  9293. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  9294. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  9295. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  9296. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  9297. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  9298. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  9299. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  9300. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  9301. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  9302. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  9303. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  9304. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  9305. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  9306. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  9307. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  9308. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  9309. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  9310. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  9311. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  9312. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  9313. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  9314. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  9315. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  9316. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  9317. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  9318. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  9319. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  9320. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  9321. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  9322. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  9323. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  9324. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  9325. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  9326. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  9327. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  9328. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  9329. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  9330. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  9331. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  9332. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  9333. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  9334. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  9335. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  9336. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  9337. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  9338. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  9339. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  9340. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  9341. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  9342. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  9343. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  9344. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  9345. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  9346. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  9347. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  9348. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  9349. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  9350. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  9351. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  9352. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  9353. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  9354. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  9355. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  9356. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  9357. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  9358. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  9359. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  9360. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  9361. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  9362. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  9363. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  9364. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  9365. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  9366. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  9367. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  9368. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  9369. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  9370. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  9371. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  9372. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  9373. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  9374. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  9375. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  9376. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  9377. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  9378. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  9379. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  9380. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  9381. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  9382. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  9383. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  9384. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  9385. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  9386. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  9387. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  9388. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  9389. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  9390. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  9391. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  9392. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  9393. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  9394. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  9395. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  9396. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  9397. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  9398. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  9399. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  9400. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  9401. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  9402. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  9403. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  9404. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  9405. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  9406. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  9407. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  9408. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  9409. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  9410. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  9411. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  9412. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  9413. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  9414. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  9415. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  9416. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  9417. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  9418. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  9419. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  9420. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  9421. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  9422. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  9423. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  9424. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  9425. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  9426. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  9427. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  9428. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  9429. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  9430. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  9431. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  9432. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  9433. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  9434. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  9435. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  9436. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  9437. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  9438. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  9439. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  9440. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  9441. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  9442. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  9443. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  9444. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  9445. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  9446. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  9447. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  9448. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  9449. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  9450. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  9451. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  9452. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  9453. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  9454. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  9455. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  9456. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  9457. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  9458. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  9459. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  9460. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  9461. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  9462. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  9463. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  9464. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  9465. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  9466. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  9467. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  9468. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  9469. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  9470. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  9471. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  9472. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  9473. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  9474. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  9475. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  9476. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  9477. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  9478. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  9479. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  9480. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  9481. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  9482. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  9483. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  9484. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  9485. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  9486. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  9487. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  9488. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  9489. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  9490. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  9491. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  9492. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  9493. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  9494. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  9495. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  9496. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  9497. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  9498. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  9499. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  9500. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  9501. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  9502. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  9503. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  9504. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  9505. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  9506. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  9507. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  9508. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  9509. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  9510. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  9511. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  9512. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  9513. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  9514. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  9515. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  9516. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  9517. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  9518. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  9519. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  9520. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  9521. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  9522. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  9523. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  9524. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  9525. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  9526. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  9527. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  9528. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  9529. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  9530. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  9531. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  9532. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  9533. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  9534. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  9535. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  9536. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  9537. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  9538. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  9539. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  9540. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  9541. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  9542. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  9543. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  9544. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  9545. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  9546. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  9547. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  9548. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  9549. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  9550. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  9551. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  9552. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  9553. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  9554. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  9555. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  9556. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  9557. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  9558. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  9559. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  9560. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  9561. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  9562. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  9563. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  9564. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  9565. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  9566. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  9567. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  9568. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  9569. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  9570. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  9571. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  9572. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  9573. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  9574. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  9575. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  9576. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  9577. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  9578. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  9579. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  9580. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  9581. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  9582. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  9583. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  9584. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  9585. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  9586. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  9587. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  9588. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  9589. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  9590. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  9591. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  9592. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  9593. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  9594. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  9595. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  9596. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  9597. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  9598. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  9599. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  9600. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  9601. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  9602. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  9603. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  9604. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  9605. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  9606. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  9607. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  9608. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  9609. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  9610. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  9611. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  9612. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  9613. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  9614. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  9615. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  9616. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  9617. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  9618. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  9619. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  9620. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  9621. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  9622. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  9623. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  9624. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  9625. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  9626. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  9627. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  9628. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  9629. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  9630. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  9631. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  9632. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  9633. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  9634. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  9635. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  9636. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  9637. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  9638. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  9639. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  9640. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  9641. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  9642. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  9643. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  9644. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  9645. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  9646. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  9647. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  9648. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  9649. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  9650. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  9651. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  9652. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  9653. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  9654. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  9655. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  9656. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  9657. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  9658. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  9659. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  9660. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  9661. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  9662. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  9663. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  9664. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  9665. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  9666. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  9667. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  9668. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  9669. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  9670. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  9671. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  9672. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  9673. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  9674. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  9675. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  9676. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  9677. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  9678. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  9679. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  9680. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  9681. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  9682. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  9683. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  9684. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  9685. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  9686. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  9687. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  9688. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  9689. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  9690. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  9691. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  9692. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  9693. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  9694. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  9695. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  9696. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  9697. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  9698. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  9699. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  9700. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  9701. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  9702. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  9703. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  9704. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  9705. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  9706. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  9707. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  9708. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  9709. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  9710. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  9711. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  9712. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  9713. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  9714. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  9715. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  9716. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  9717. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  9718. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  9719. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  9720. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  9721. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  9722. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  9723. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  9724. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  9725. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  9726. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  9727. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  9728. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  9729. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  9730. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  9731. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  9732. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  9733. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  9734. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  9735. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  9736. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  9737. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  9738. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  9739. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  9740. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  9741. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  9742. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  9743. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  9744. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  9745. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  9746. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  9747. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  9748. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  9749. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  9750. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  9751. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  9752. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  9753. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  9754. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  9755. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  9756. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  9757. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  9758. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  9759. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  9760. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  9761. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  9762. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  9763. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  9764. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  9765. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  9766. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  9767. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  9768. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  9769. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  9770. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  9771. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  9772. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  9773. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  9774. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  9775. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  9776. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  9777. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  9778. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  9779. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  9780. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  9781. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  9782. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  9783. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  9784. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  9785. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  9786. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  9787. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  9788. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  9789. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  9790. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  9791. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  9792. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  9793. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  9794. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  9795. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  9796. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  9797. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  9798. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  9799. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  9800. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  9801. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  9802. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  9803. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  9804. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  9805. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  9806. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  9807. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  9808. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  9809. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  9810. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  9811. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  9812. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  9813. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  9814. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  9815. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  9816. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  9817. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  9818. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  9819. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  9820. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  9821. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  9822. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  9823. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  9824. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  9825. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  9826. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  9827. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  9828. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  9829. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  9830. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  9831. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  9832. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  9833. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  9834. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  9835. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  9836. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  9837. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  9838. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  9839. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  9840. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  9841. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  9842. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  9843. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  9844. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  9845. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  9846. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  9847. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  9848. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  9849. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  9850. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  9851. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  9852. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  9853. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  9854. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  9855. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  9856. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  9857. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  9858. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  9859. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  9860. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  9861. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  9862. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  9863. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  9864. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  9865. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  9866. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  9867. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  9868. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  9869. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  9870. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  9871. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  9872. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  9873. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  9874. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  9875. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  9876. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  9877. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  9878. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  9879. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  9880. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  9881. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  9882. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  9883. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  9884. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  9885. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  9886. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  9887. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  9888. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  9889. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  9890. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  9891. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  9892. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  9893. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  9894. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  9895. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  9896. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  9897. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  9898. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  9899. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  9900. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  9901. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  9902. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  9903. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  9904. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  9905. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  9906. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  9907. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  9908. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  9909. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  9910. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  9911. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  9912. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  9913. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  9914. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  9915. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  9916. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  9917. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  9918. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  9919. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  9920. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  9921. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  9922. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  9923. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  9924. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  9925. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  9926. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  9927. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  9928. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  9929. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  9930. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  9931. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  9932. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  9933. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  9934. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  9935. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  9936. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  9937. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  9938. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  9939. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  9940. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  9941. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  9942. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  9943. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  9944. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  9945. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  9946. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  9947. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  9948. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  9949. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  9950. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  9951. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  9952. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  9953. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  9954. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  9955. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  9956. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  9957. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  9958. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  9959. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  9960. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  9961. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  9962. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  9963. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  9964. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  9965. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  9966. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  9967. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  9968. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  9969. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  9970. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  9971. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  9972. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  9973. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  9974. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  9975. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  9976. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  9977. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  9978. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  9979. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  9980. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  9981. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  9982. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  9983. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  9984. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  9985. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  9986. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  9987. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  9988. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  9989. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  9990. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  9991. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  9992. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  9993. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  9994. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  9995. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  9996. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  9997. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  9998. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  9999. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  10000. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  10001. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  10002. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  10003. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  10004. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  10005. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  10006. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  10007. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  10008. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  10009. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  10010. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  10011. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  10012. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  10013. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  10014. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  10015. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  10016. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  10017. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  10018. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  10019. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  10020. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  10021. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  10022. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  10023. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  10024. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  10025. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  10026. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  10027. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  10028. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  10029. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  10030. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  10031. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  10032. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  10033. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  10034. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  10035. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  10036. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  10037. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  10038. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  10039. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  10040. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  10041. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  10042. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  10043. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  10044. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  10045. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  10046. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  10047. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  10048. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  10049. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  10050. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  10051. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  10052. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  10053. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  10054. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  10055. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  10056. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  10057. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  10058. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  10059. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  10060. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  10061. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  10062. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  10063. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  10064. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  10065. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  10066. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  10067. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  10068. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  10069. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  10070. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  10071. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  10072. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  10073. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  10074. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  10075. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  10076. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  10077. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  10078. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  10079. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  10080. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  10081. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  10082. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  10083. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  10084. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  10085. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  10086. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  10087. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  10088. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  10089. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  10090. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  10091. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  10092. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  10093. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  10094. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  10095. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  10096. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  10097. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  10098. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  10099. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  10100. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  10101. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  10102. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  10103. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  10104. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  10105. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  10106. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  10107. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  10108. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  10109. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  10110. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  10111. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  10112. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  10113. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  10114. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  10115. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  10116. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  10117. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  10118. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  10119. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  10120. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  10121. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  10122. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  10123. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  10124. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  10125. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  10126. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  10127. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  10128. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  10129. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  10130. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  10131. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  10132. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  10133. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  10134. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  10135. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  10136. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  10137. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  10138. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  10139. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  10140. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  10141. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  10142. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  10143. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  10144. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  10145. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  10146. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  10147. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  10148. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  10149. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  10150. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  10151. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  10152. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  10153. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  10154. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  10155. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  10156. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  10157. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  10158. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  10159. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  10160. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  10161. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  10162. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  10163. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  10164. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  10165. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  10166. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  10167. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  10168. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  10169. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  10170. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  10171. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  10172. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  10173. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  10174. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  10175. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  10176. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  10177. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  10178. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  10179. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  10180. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  10181. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  10182. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  10183. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  10184. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  10185. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  10186. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  10187. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  10188. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  10189. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  10190. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  10191. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  10192. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  10193. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  10194. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  10195. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  10196. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  10197. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  10198. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  10199. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  10200. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  10201. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  10202. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  10203. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  10204. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  10205. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  10206. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  10207. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  10208. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  10209. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  10210. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  10211. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  10212. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  10213. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  10214. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  10215. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  10216. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  10217. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  10218. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  10219. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  10220. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  10221. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  10222. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  10223. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  10224. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  10225. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  10226. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  10227. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  10228. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  10229. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  10230. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  10231. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  10232. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  10233. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  10234. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  10235. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  10236. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  10237. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  10238. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  10239. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  10240. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  10241. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  10242. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  10243. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  10244. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  10245. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  10246. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  10247. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  10248. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  10249. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  10250. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  10251. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  10252. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  10253. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  10254. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  10255. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  10256. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  10257. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  10258. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  10259. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  10260. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  10261. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  10262. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  10263. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  10264. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  10265. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  10266. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  10267. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  10268. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  10269. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  10270. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  10271. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  10272. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  10273. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  10274. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  10275. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  10276. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  10277. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  10278. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  10279. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  10280. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  10281. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  10282. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  10283. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  10284. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  10285. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  10286. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  10287. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  10288. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  10289. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  10290. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  10291. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  10292. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  10293. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  10294. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  10295. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  10296. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  10297. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  10298. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  10299. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  10300. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  10301. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  10302. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  10303. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  10304. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  10305. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  10306. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  10307. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  10308. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  10309. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  10310. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  10311. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  10312. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  10313. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  10314. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  10315. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  10316. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  10317. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  10318. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  10319. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  10320. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  10321. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  10322. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  10323. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  10324. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  10325. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  10326. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  10327. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  10328. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  10329. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  10330. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  10331. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  10332. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  10333. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  10334. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  10335. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  10336. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  10337. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  10338. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  10339. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  10340. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  10341. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  10342. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  10343. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  10344. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  10345. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  10346. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  10347. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  10348. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  10349. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  10350. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  10351. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  10352. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  10353. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  10354. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  10355. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  10356. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  10357. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  10358. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  10359. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  10360. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  10361. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  10362. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  10363. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  10364. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  10365. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  10366. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  10367. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  10368. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  10369. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  10370. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  10371. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  10372. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  10373. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  10374. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  10375. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  10376. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  10377. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  10378. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  10379. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  10380. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  10381. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  10382. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  10383. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  10384. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  10385. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  10386. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  10387. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  10388. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  10389. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  10390. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  10391. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  10392. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  10393. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  10394. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  10395. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  10396. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  10397. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  10398. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  10399. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  10400. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  10401. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  10402. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  10403. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  10404. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  10405. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  10406. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  10407. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  10408. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  10409. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  10410. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  10411. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  10412. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  10413. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  10414. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  10415. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  10416. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  10417. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  10418. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  10419. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  10420. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  10421. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  10422. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  10423. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  10424. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  10425. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  10426. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  10427. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  10428. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  10429. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  10430. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  10431. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  10432. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  10433. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  10434. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  10435. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  10436. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  10437. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  10438. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  10439. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  10440. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  10441. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  10442. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  10443. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  10444. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  10445. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  10446. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  10447. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  10448. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  10449. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  10450. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  10451. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  10452. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  10453. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  10454. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  10455. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  10456. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  10457. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  10458. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  10459. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  10460. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  10461. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  10462. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  10463. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  10464. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  10465. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  10466. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  10467. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  10468. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  10469. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  10470. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  10471. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  10472. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  10473. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  10474. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  10475. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  10476. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  10477. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  10478. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  10479. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  10480. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  10481. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  10482. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  10483. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  10484. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  10485. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  10486. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  10487. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  10488. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  10489. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  10490. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  10491. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  10492. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  10493. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  10494. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  10495. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  10496. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  10497. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  10498. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  10499. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  10500. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  10501. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  10502. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  10503. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  10504. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  10505. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  10506. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  10507. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  10508. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  10509. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  10510. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  10511. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  10512. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  10513. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  10514. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  10515. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  10516. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  10517. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  10518. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  10519. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  10520. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  10521. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  10522. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  10523. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  10524. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  10525. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  10526. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  10527. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  10528. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  10529. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  10530. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  10531. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  10532. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  10533. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  10534. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  10535. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  10536. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  10537. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  10538. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  10539. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  10540. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  10541. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  10542. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  10543. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  10544. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  10545. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  10546. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  10547. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  10548. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  10549. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  10550. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  10551. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  10552. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  10553. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  10554. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  10555. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  10556. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  10557. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  10558. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  10559. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  10560. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  10561. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  10562. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  10563. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  10564. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  10565. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  10566. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  10567. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  10568. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  10569. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  10570. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  10571. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  10572. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  10573. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  10574. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  10575. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  10576. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  10577. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  10578. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  10579. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  10580. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  10581. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  10582. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  10583. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  10584. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  10585. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  10586. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  10587. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  10588. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  10589. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  10590. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  10591. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  10592. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  10593. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  10594. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  10595. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  10596. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  10597. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  10598. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  10599. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  10600. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  10601. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  10602. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  10603. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  10604. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  10605. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  10606. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  10607. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  10608. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  10609. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  10610. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  10611. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  10612. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  10613. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  10614. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  10615. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  10616. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  10617. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  10618. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  10619. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  10620. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  10621. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  10622. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  10623. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  10624. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  10625. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  10626. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  10627. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  10628. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  10629. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  10630. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  10631. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  10632. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  10633. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  10634. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  10635. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  10636. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  10637. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  10638. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  10639. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  10640. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  10641. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  10642. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  10643. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  10644. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  10645. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  10646. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  10647. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  10648. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  10649. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  10650. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  10651. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  10652. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  10653. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  10654. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  10655. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  10656. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  10657. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  10658. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  10659. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  10660. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  10661. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  10662. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  10663. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  10664. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  10665. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  10666. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  10667. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  10668. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  10669. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  10670. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  10671. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  10672. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  10673. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  10674. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  10675. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  10676. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  10677. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  10678. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  10679. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  10680. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  10681. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  10682. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  10683. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  10684. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  10685. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  10686. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  10687. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  10688. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  10689. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  10690. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  10691. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  10692. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  10693. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  10694. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  10695. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  10696. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  10697. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  10698. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  10699. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  10700. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  10701. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  10702. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  10703. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  10704. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  10705. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  10706. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  10707. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  10708. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  10709. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  10710. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  10711. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  10712. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  10713. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  10714. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  10715. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  10716. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  10717. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  10718. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  10719. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  10720. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  10721. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  10722. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  10723. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  10724. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  10725. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  10726. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  10727. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  10728. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  10729. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  10730. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  10731. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  10732. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  10733. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  10734. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  10735. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  10736. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  10737. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  10738. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  10739. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  10740. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  10741. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  10742. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  10743. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  10744. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  10745. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  10746. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  10747. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  10748. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  10749. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  10750. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  10751. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  10752. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  10753. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  10754. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  10755. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  10756. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  10757. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  10758. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  10759. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  10760. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  10761. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  10762. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  10763. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  10764. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  10765. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  10766. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  10767. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  10768. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  10769. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  10770. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  10771. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  10772. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  10773. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  10774. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  10775. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  10776. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  10777. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  10778. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  10779. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  10780. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  10781. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  10782. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  10783. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  10784. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  10785. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  10786. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  10787. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  10788. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  10789. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  10790. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  10791. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  10792. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  10793. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  10794. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  10795. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  10796. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  10797. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  10798. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  10799. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  10800. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  10801. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  10802. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  10803. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  10804. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  10805. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  10806. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  10807. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  10808. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  10809. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  10810. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  10811. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  10812. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  10813. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  10814. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  10815. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  10816. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  10817. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  10818. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  10819. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  10820. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  10821. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  10822. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  10823. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  10824. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  10825. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  10826. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  10827. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  10828. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  10829. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  10830. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  10831. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  10832. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  10833. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  10834. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  10835. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  10836. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  10837. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  10838. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  10839. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  10840. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  10841. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  10842. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  10843. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  10844. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  10845. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  10846. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  10847. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  10848. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  10849. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  10850. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  10851. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  10852. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  10853. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  10854. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  10855. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  10856. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  10857. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  10858. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  10859. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  10860. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  10861. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  10862. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  10863. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  10864. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  10865. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  10866. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  10867. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  10868. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  10869. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  10870. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  10871. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  10872. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  10873. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  10874. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  10875. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  10876. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  10877. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  10878. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  10879. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  10880. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  10881. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  10882. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  10883. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  10884. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  10885. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  10886. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  10887. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  10888. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  10889. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  10890. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  10891. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  10892. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  10893. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  10894. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  10895. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  10896. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  10897. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  10898. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  10899. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  10900. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  10901. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  10902. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  10903. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  10904. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  10905. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  10906. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  10907. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  10908. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  10909. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  10910. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  10911. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  10912. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  10913. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  10914. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  10915. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  10916. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  10917. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  10918. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  10919. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  10920. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  10921. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  10922. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  10923. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  10924. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  10925. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  10926. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  10927. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  10928. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  10929. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  10930. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  10931. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  10932. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  10933. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  10934. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  10935. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  10936. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  10937. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  10938. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  10939. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  10940. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  10941. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  10942. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  10943. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  10944. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  10945. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  10946. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  10947. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  10948. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  10949. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  10950. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  10951. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  10952. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  10953. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  10954. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  10955. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  10956. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  10957. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  10958. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  10959. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  10960. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  10961. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  10962. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  10963. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  10964. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  10965. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  10966. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  10967. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  10968. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  10969. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  10970. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  10971. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  10972. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  10973. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  10974. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  10975. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  10976. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  10977. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  10978. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  10979. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  10980. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  10981. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  10982. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  10983. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  10984. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  10985. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  10986. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  10987. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  10988. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  10989. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  10990. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  10991. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  10992. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  10993. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  10994. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  10995. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  10996. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  10997. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  10998. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  10999. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  11000. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  11001. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  11002. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  11003. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  11004. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  11005. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  11006. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  11007. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  11008. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  11009. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  11010. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  11011. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  11012. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  11013. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  11014. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  11015. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  11016. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  11017. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  11018. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  11019. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  11020. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  11021. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  11022. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  11023. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  11024. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  11025. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  11026. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  11027. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  11028. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  11029. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  11030. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  11031. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  11032. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  11033. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  11034. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  11035. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  11036. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  11037. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  11038. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  11039. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  11040. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  11041. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  11042. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  11043. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  11044. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  11045. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  11046. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  11047. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  11048. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  11049. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  11050. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  11051. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  11052. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  11053. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  11054. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  11055. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  11056. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  11057. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  11058. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  11059. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  11060. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  11061. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  11062. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  11063. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  11064. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  11065. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  11066. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  11067. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  11068. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  11069. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  11070. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  11071. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  11072. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  11073. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  11074. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  11075. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  11076. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  11077. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  11078. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  11079. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  11080. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  11081. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  11082. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  11083. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  11084. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  11085. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  11086. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  11087. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  11088. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  11089. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  11090. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  11091. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  11092. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  11093. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  11094. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  11095. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  11096. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  11097. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  11098. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  11099. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  11100. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  11101. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  11102. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  11103. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  11104. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  11105. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  11106. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  11107. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  11108. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  11109. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  11110. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  11111. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  11112. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  11113. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  11114. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  11115. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  11116. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  11117. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  11118. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  11119. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  11120. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  11121. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  11122. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  11123. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  11124. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  11125. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  11126. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  11127. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  11128. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  11129. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  11130. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  11131. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  11132. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  11133. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  11134. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  11135. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  11136. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  11137. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  11138. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  11139. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  11140. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  11141. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  11142. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  11143. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  11144. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  11145. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  11146. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  11147. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  11148. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  11149. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  11150. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  11151. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  11152. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  11153. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  11154. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  11155. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  11156. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  11157. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  11158. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  11159. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  11160. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  11161. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  11162. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  11163. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  11164. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  11165. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  11166. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  11167. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  11168. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  11169. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  11170. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  11171. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  11172. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  11173. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  11174. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  11175. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  11176. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  11177. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  11178. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  11179. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  11180. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  11181. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  11182. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  11183. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  11184. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  11185. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  11186. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  11187. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  11188. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  11189. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  11190. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  11191. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  11192. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  11193. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  11194. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  11195. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  11196. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  11197. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  11198. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  11199. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  11200. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  11201. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  11202. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  11203. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  11204. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  11205. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  11206. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  11207. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  11208. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  11209. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  11210. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  11211. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  11212. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  11213. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  11214. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  11215. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  11216. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  11217. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  11218. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  11219. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  11220. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  11221. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  11222. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  11223. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  11224. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  11225. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  11226. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  11227. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  11228. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  11229. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  11230. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  11231. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  11232. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  11233. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  11234. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  11235. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  11236. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  11237. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  11238. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  11239. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  11240. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  11241. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  11242. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  11243. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  11244. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  11245. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  11246. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  11247. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  11248. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  11249. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  11250. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  11251. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  11252. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  11253. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  11254. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  11255. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  11256. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  11257. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  11258. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  11259. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  11260. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  11261. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  11262. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  11263. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  11264. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  11265. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  11266. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  11267. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  11268. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  11269. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  11270. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  11271. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  11272. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  11273. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  11274. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  11275. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  11276. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  11277. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  11278. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  11279. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  11280. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  11281. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  11282. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  11283. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  11284. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  11285. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  11286. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  11287. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  11288. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  11289. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  11290. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  11291. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  11292. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  11293. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  11294. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  11295. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  11296. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  11297. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  11298. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  11299. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  11300. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  11301. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  11302. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  11303. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  11304. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  11305. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  11306. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  11307. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  11308. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  11309. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  11310. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  11311. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  11312. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  11313. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  11314. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  11315. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  11316. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  11317. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  11318. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  11319. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  11320. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  11321. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  11322. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  11323. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  11324. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  11325. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  11326. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  11327. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  11328. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  11329. 23446, 62959, 32347],
  11330. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  11331. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  11332. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  11333. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  11334. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  11335. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  11336. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  11337. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  11338. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  11339. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  11340. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  11341. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  11342. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  11343. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  11344. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  11345. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  11346. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  11347. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  11348. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  11349. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  11350. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  11351. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  11352. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  11353. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  11354. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  11355. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  11356. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  11357. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  11358. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  11359. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  11360. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  11361. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  11362. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  11363. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  11364. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  11365. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  11366. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  11367. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  11368. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  11369. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  11370. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  11371. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  11372. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  11373. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  11374. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  11375. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  11376. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  11377. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  11378. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  11379. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  11380. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  11381. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  11382. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  11383. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  11384. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  11385. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  11386. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  11387. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  11388. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  11389. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  11390. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  11391. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  11392. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  11393. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  11394. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  11395. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  11396. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  11397. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  11398. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  11399. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  11400. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  11401. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  11402. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  11403. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  11404. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  11405. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  11406. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  11407. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  11408. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  11409. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  11410. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  11411. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  11412. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  11413. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  11414. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  11415. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  11416. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  11417. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  11418. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  11419. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  11420. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  11421. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  11422. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  11423. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  11424. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  11425. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  11426. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  11427. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  11428. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  11429. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  11430. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  11431. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  11432. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  11433. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  11434. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  11435. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  11436. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  11437. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  11438. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  11439. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  11440. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  11441. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  11442. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  11443. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  11444. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  11445. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  11446. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  11447. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  11448. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  11449. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  11450. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  11451. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  11452. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  11453. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  11454. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  11455. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  11456. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  11457. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  11458. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  11459. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  11460. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  11461. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  11462. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  11463. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  11464. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  11465. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  11466. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  11467. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  11468. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  11469. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  11470. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  11471. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  11472. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  11473. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  11474. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  11475. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  11476. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  11477. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  11478. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  11479. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  11480. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  11481. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  11482. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  11483. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  11484. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  11485. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  11486. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  11487. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  11488. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  11489. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  11490. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  11491. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  11492. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  11493. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  11494. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  11495. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  11496. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  11497. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  11498. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  11499. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  11500. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  11501. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  11502. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  11503. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  11504. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  11505. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  11506. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  11507. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  11508. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  11509. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  11510. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  11511. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  11512. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  11513. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  11514. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  11515. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  11516. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  11517. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  11518. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  11519. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  11520. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  11521. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  11522. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  11523. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  11524. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  11525. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  11526. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  11527. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  11528. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  11529. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  11530. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  11531. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  11532. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  11533. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  11534. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  11535. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  11536. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  11537. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  11538. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  11539. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  11540. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  11541. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  11542. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  11543. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  11544. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  11545. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  11546. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  11547. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  11548. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  11549. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  11550. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  11551. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  11552. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  11553. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  11554. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  11555. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  11556. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  11557. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  11558. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  11559. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  11560. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  11561. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  11562. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  11563. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  11564. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  11565. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  11566. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  11567. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  11568. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  11569. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  11570. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  11571. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  11572. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  11573. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  11574. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  11575. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  11576. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  11577. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  11578. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  11579. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  11580. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  11581. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  11582. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  11583. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  11584. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  11585. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  11586. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  11587. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  11588. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  11589. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  11590. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  11591. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  11592. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  11593. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  11594. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  11595. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  11596. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  11597. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  11598. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  11599. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  11600. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  11601. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  11602. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  11603. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  11604. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  11605. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  11606. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  11607. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  11608. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  11609. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  11610. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  11611. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  11612. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  11613. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  11614. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  11615. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  11616. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  11617. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  11618. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  11619. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  11620. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  11621. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  11622. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  11623. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  11624. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  11625. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  11626. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  11627. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  11628. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  11629. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  11630. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  11631. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  11632. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  11633. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  11634. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  11635. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  11636. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  11637. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  11638. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  11639. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  11640. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  11641. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  11642. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  11643. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  11644. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  11645. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  11646. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  11647. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  11648. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  11649. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  11650. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  11651. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  11652. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  11653. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  11654. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  11655. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  11656. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  11657. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  11658. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  11659. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  11660. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  11661. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  11662. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  11663. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  11664. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  11665. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  11666. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  11667. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  11668. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  11669. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  11670. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  11671. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  11672. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  11673. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  11674. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  11675. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  11676. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  11677. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  11678. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  11679. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  11680. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  11681. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  11682. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  11683. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  11684. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  11685. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  11686. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  11687. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  11688. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  11689. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  11690. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  11691. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  11692. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  11693. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  11694. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  11695. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  11696. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  11697. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  11698. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  11699. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  11700. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  11701. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  11702. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  11703. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  11704. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  11705. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  11706. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  11707. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  11708. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  11709. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  11710. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  11711. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  11712. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  11713. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  11714. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  11715. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  11716. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  11717. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  11718. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  11719. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  11720. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  11721. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  11722. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  11723. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  11724. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  11725. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  11726. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  11727. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  11728. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  11729. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  11730. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  11731. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  11732. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  11733. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  11734. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  11735. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  11736. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  11737. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  11738. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  11739. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  11740. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  11741. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  11742. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  11743. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  11744. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  11745. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  11746. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  11747. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  11748. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  11749. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  11750. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  11751. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  11752. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  11753. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  11754. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  11755. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  11756. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  11757. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  11758. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  11759. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  11760. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  11761. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  11762. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  11763. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  11764. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  11765. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  11766. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  11767. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  11768. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  11769. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  11770. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  11771. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  11772. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  11773. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  11774. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  11775. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  11776. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  11777. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  11778. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  11779. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  11780. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  11781. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  11782. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  11783. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  11784. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  11785. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  11786. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  11787. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  11788. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  11789. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  11790. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  11791. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  11792. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  11793. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  11794. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  11795. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  11796. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  11797. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  11798. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  11799. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  11800. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  11801. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  11802. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  11803. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  11804. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  11805. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  11806. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  11807. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  11808. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  11809. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  11810. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  11811. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  11812. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  11813. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  11814. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  11815. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  11816. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  11817. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  11818. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  11819. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  11820. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  11821. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  11822. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  11823. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  11824. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  11825. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  11826. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  11827. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  11828. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  11829. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  11830. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  11831. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  11832. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  11833. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  11834. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  11835. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  11836. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  11837. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  11838. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  11839. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  11840. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  11841. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  11842. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  11843. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  11844. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  11845. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  11846. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  11847. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  11848. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  11849. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  11850. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  11851. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  11852. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  11853. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  11854. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  11855. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  11856. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  11857. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  11858. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  11859. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  11860. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  11861. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  11862. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  11863. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  11864. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  11865. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  11866. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  11867. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  11868. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  11869. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  11870. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  11871. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  11872. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  11873. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  11874. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  11875. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  11876. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  11877. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  11878. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  11879. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  11880. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  11881. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  11882. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  11883. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  11884. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  11885. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  11886. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  11887. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  11888. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  11889. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  11890. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  11891. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  11892. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  11893. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  11894. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  11895. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  11896. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  11897. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  11898. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  11899. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  11900. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  11901. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  11902. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  11903. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  11904. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  11905. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  11906. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  11907. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  11908. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  11909. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  11910. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  11911. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  11912. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  11913. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  11914. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  11915. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  11916. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  11917. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  11918. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  11919. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  11920. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  11921. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  11922. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  11923. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  11924. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  11925. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  11926. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  11927. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  11928. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  11929. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  11930. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  11931. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  11932. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  11933. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  11934. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  11935. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  11936. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  11937. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  11938. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  11939. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  11940. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  11941. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  11942. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  11943. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  11944. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  11945. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  11946. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  11947. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  11948. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  11949. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  11950. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  11951. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  11952. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  11953. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  11954. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  11955. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  11956. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  11957. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  11958. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  11959. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  11960. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  11961. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  11962. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  11963. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  11964. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  11965. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  11966. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  11967. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  11968. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  11969. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  11970. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  11971. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  11972. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  11973. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  11974. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  11975. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  11976. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  11977. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  11978. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  11979. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  11980. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  11981. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  11982. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  11983. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  11984. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  11985. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  11986. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  11987. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  11988. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  11989. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  11990. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  11991. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  11992. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  11993. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  11994. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  11995. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  11996. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  11997. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  11998. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  11999. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  12000. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  12001. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  12002. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  12003. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  12004. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  12005. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  12006. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  12007. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  12008. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  12009. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  12010. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  12011. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  12012. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  12013. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  12014. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  12015. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  12016. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  12017. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  12018. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  12019. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  12020. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  12021. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  12022. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  12023. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  12024. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  12025. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  12026. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  12027. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  12028. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  12029. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  12030. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  12031. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  12032. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  12033. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  12034. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  12035. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  12036. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  12037. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  12038. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  12039. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  12040. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  12041. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  12042. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  12043. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  12044. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  12045. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  12046. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  12047. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  12048. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  12049. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  12050. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  12051. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  12052. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  12053. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  12054. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  12055. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  12056. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  12057. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  12058. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  12059. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  12060. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  12061. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  12062. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  12063. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  12064. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  12065. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  12066. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  12067. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  12068. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  12069. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  12070. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  12071. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  12072. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  12073. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  12074. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  12075. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  12076. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  12077. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  12078. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  12079. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  12080. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  12081. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  12082. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  12083. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  12084. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  12085. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  12086. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  12087. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  12088. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  12089. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  12090. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  12091. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  12092. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  12093. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  12094. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  12095. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  12096. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  12097. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  12098. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  12099. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  12100. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  12101. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  12102. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  12103. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  12104. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  12105. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  12106. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  12107. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  12108. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  12109. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  12110. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  12111. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  12112. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  12113. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  12114. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  12115. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  12116. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  12117. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  12118. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  12119. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  12120. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  12121. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  12122. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  12123. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  12124. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  12125. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  12126. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  12127. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  12128. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  12129. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  12130. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  12131. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  12132. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  12133. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  12134. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  12135. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  12136. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  12137. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  12138. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  12139. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  12140. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  12141. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  12142. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  12143. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  12144. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  12145. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  12146. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  12147. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  12148. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  12149. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  12150. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  12151. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  12152. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  12153. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  12154. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  12155. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  12156. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  12157. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  12158. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  12159. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  12160. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  12161. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  12162. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  12163. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  12164. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  12165. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  12166. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  12167. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  12168. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  12169. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  12170. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  12171. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  12172. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  12173. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  12174. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  12175. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  12176. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  12177. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  12178. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  12179. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  12180. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  12181. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  12182. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  12183. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  12184. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  12185. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  12186. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  12187. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  12188. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  12189. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  12190. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  12191. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  12192. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  12193. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  12194. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  12195. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  12196. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  12197. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  12198. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  12199. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  12200. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  12201. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  12202. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  12203. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  12204. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  12205. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  12206. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  12207. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  12208. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  12209. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  12210. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  12211. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  12212. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  12213. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  12214. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  12215. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  12216. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  12217. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  12218. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  12219. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  12220. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  12221. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  12222. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  12223. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  12224. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  12225. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  12226. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  12227. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  12228. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  12229. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  12230. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  12231. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  12232. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  12233. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  12234. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  12235. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  12236. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  12237. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  12238. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  12239. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  12240. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  12241. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  12242. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  12243. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  12244. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  12245. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  12246. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  12247. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  12248. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  12249. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  12250. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  12251. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  12252. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  12253. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  12254. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  12255. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  12256. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  12257. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  12258. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  12259. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  12260. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  12261. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  12262. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  12263. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  12264. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  12265. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  12266. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  12267. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  12268. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  12269. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  12270. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  12271. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  12272. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  12273. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  12274. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  12275. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  12276. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  12277. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  12278. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  12279. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  12280. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  12281. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  12282. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  12283. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  12284. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  12285. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  12286. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  12287. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  12288. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  12289. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  12290. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  12291. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  12292. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  12293. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  12294. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  12295. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  12296. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  12297. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  12298. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  12299. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  12300. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  12301. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  12302. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  12303. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  12304. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  12305. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  12306. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  12307. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  12308. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  12309. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  12310. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  12311. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  12312. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  12313. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  12314. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  12315. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  12316. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  12317. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  12318. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  12319. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  12320. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  12321. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  12322. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  12323. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  12324. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  12325. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  12326. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  12327. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  12328. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  12329. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  12330. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  12331. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  12332. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  12333. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  12334. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  12335. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  12336. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  12337. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  12338. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  12339. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  12340. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  12341. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  12342. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  12343. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  12344. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  12345. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  12346. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  12347. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  12348. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  12349. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  12350. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  12351. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  12352. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  12353. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  12354. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  12355. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  12356. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  12357. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  12358. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  12359. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  12360. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  12361. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  12362. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  12363. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  12364. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  12365. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  12366. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  12367. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  12368. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  12369. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  12370. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  12371. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  12372. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  12373. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  12374. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  12375. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  12376. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  12377. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  12378. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  12379. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  12380. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  12381. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  12382. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  12383. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  12384. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  12385. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  12386. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  12387. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  12388. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  12389. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  12390. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  12391. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  12392. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  12393. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  12394. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  12395. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  12396. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  12397. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  12398. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  12399. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  12400. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  12401. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  12402. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  12403. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  12404. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  12405. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  12406. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  12407. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  12408. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  12409. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  12410. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  12411. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  12412. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  12413. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  12414. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  12415. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  12416. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  12417. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  12418. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  12419. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  12420. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  12421. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  12422. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  12423. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  12424. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  12425. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  12426. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  12427. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  12428. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  12429. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  12430. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  12431. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  12432. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  12433. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  12434. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  12435. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  12436. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  12437. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  12438. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  12439. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  12440. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  12441. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  12442. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  12443. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  12444. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  12445. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  12446. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  12447. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  12448. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  12449. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  12450. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  12451. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  12452. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  12453. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  12454. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  12455. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  12456. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  12457. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  12458. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  12459. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  12460. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  12461. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  12462. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  12463. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  12464. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  12465. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  12466. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  12467. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  12468. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  12469. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  12470. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  12471. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  12472. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  12473. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  12474. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  12475. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  12476. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  12477. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  12478. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  12479. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  12480. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  12481. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  12482. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  12483. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  12484. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  12485. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  12486. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  12487. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  12488. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  12489. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  12490. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  12491. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  12492. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  12493. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  12494. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  12495. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  12496. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  12497. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  12498. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  12499. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  12500. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  12501. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  12502. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  12503. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  12504. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  12505. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  12506. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  12507. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  12508. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  12509. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  12510. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  12511. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  12512. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  12513. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  12514. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  12515. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  12516. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  12517. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  12518. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  12519. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  12520. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  12521. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  12522. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  12523. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  12524. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  12525. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  12526. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  12527. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  12528. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  12529. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  12530. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  12531. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  12532. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  12533. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  12534. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  12535. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  12536. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  12537. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  12538. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  12539. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  12540. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  12541. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  12542. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  12543. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  12544. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  12545. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  12546. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  12547. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  12548. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  12549. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  12550. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  12551. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  12552. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  12553. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  12554. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  12555. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  12556. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  12557. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  12558. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  12559. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  12560. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  12561. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  12562. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  12563. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  12564. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  12565. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  12566. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  12567. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  12568. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  12569. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  12570. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  12571. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  12572. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  12573. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  12574. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  12575. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  12576. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  12577. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  12578. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  12579. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  12580. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  12581. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  12582. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  12583. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  12584. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  12585. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  12586. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  12587. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  12588. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  12589. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  12590. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  12591. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  12592. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  12593. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  12594. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  12595. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  12596. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  12597. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  12598. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  12599. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  12600. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  12601. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  12602. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  12603. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  12604. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  12605. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  12606. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  12607. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  12608. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  12609. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  12610. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  12611. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  12612. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  12613. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  12614. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  12615. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  12616. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  12617. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  12618. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  12619. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  12620. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  12621. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  12622. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  12623. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  12624. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  12625. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  12626. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  12627. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  12628. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  12629. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  12630. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  12631. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  12632. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  12633. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  12634. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  12635. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  12636. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  12637. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  12638. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  12639. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  12640. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  12641. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  12642. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  12643. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  12644. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  12645. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  12646. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  12647. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  12648. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  12649. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  12650. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  12651. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  12652. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  12653. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  12654. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  12655. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  12656. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  12657. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  12658. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  12659. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  12660. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  12661. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  12662. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  12663. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  12664. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  12665. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  12666. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  12667. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  12668. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  12669. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  12670. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  12671. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  12672. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  12673. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  12674. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  12675. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  12676. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  12677. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  12678. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  12679. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  12680. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  12681. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  12682. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  12683. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  12684. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  12685. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  12686. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  12687. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  12688. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  12689. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  12690. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  12691. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  12692. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  12693. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  12694. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  12695. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  12696. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  12697. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  12698. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  12699. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  12700. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  12701. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  12702. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  12703. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  12704. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  12705. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  12706. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  12707. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  12708. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  12709. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  12710. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  12711. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  12712. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  12713. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  12714. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  12715. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  12716. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  12717. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  12718. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  12719. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  12720. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  12721. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  12722. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  12723. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  12724. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  12725. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  12726. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  12727. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  12728. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  12729. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  12730. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  12731. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  12732. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  12733. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  12734. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  12735. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  12736. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  12737. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  12738. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  12739. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  12740. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  12741. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  12742. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  12743. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  12744. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  12745. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  12746. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  12747. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  12748. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  12749. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  12750. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  12751. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  12752. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  12753. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  12754. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  12755. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  12756. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  12757. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  12758. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  12759. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  12760. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  12761. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  12762. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  12763. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  12764. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  12765. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  12766. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  12767. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  12768. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  12769. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  12770. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  12771. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  12772. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  12773. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  12774. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  12775. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  12776. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  12777. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  12778. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  12779. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  12780. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  12781. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  12782. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  12783. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  12784. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  12785. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  12786. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  12787. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  12788. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  12789. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  12790. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  12791. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  12792. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  12793. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  12794. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  12795. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  12796. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  12797. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  12798. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  12799. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  12800. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  12801. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  12802. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  12803. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  12804. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  12805. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  12806. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  12807. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  12808. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  12809. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  12810. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  12811. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  12812. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  12813. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  12814. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  12815. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  12816. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  12817. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  12818. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  12819. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  12820. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  12821. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  12822. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  12823. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  12824. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  12825. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  12826. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  12827. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  12828. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  12829. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  12830. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  12831. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  12832. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  12833. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  12834. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  12835. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  12836. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  12837. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  12838. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  12839. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  12840. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  12841. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  12842. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  12843. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  12844. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  12845. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  12846. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  12847. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  12848. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  12849. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  12850. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  12851. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  12852. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  12853. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  12854. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  12855. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  12856. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  12857. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  12858. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  12859. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  12860. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  12861. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  12862. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  12863. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  12864. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  12865. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  12866. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  12867. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  12868. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  12869. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  12870. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  12871. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  12872. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  12873. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  12874. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  12875. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  12876. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  12877. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  12878. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  12879. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  12880. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  12881. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  12882. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  12883. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  12884. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  12885. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  12886. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  12887. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  12888. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  12889. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  12890. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  12891. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  12892. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  12893. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  12894. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  12895. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  12896. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  12897. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  12898. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  12899. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  12900. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  12901. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  12902. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  12903. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  12904. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  12905. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  12906. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  12907. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  12908. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  12909. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  12910. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  12911. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  12912. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  12913. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  12914. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  12915. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  12916. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  12917. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  12918. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  12919. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  12920. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  12921. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  12922. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  12923. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  12924. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  12925. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  12926. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  12927. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  12928. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  12929. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  12930. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  12931. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  12932. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  12933. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  12934. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  12935. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  12936. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  12937. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  12938. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  12939. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  12940. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  12941. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  12942. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  12943. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  12944. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  12945. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  12946. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  12947. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  12948. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  12949. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  12950. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  12951. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  12952. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  12953. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  12954. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  12955. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  12956. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  12957. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  12958. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  12959. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  12960. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  12961. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  12962. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  12963. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  12964. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  12965. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  12966. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  12967. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  12968. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  12969. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  12970. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  12971. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  12972. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  12973. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  12974. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  12975. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  12976. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  12977. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  12978. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  12979. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  12980. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  12981. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  12982. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  12983. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  12984. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  12985. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  12986. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  12987. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  12988. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  12989. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  12990. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  12991. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  12992. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  12993. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  12994. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  12995. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  12996. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  12997. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  12998. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  12999. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  13000. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  13001. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  13002. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  13003. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  13004. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  13005. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  13006. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  13007. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  13008. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  13009. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  13010. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  13011. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  13012. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  13013. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  13014. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  13015. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  13016. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  13017. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  13018. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  13019. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  13020. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  13021. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  13022. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  13023. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  13024. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  13025. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  13026. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  13027. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  13028. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  13029. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  13030. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  13031. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  13032. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  13033. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  13034. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  13035. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  13036. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  13037. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  13038. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  13039. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  13040. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  13041. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  13042. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  13043. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  13044. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  13045. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  13046. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  13047. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  13048. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  13049. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  13050. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  13051. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  13052. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  13053. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  13054. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  13055. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  13056. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  13057. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  13058. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  13059. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  13060. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  13061. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  13062. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  13063. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  13064. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  13065. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  13066. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  13067. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  13068. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  13069. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  13070. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  13071. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  13072. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  13073. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  13074. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  13075. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  13076. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  13077. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  13078. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  13079. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  13080. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  13081. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  13082. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  13083. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  13084. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  13085. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  13086. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  13087. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  13088. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  13089. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  13090. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  13091. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  13092. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  13093. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  13094. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  13095. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  13096. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  13097. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  13098. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  13099. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  13100. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  13101. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  13102. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  13103. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  13104. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  13105. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  13106. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  13107. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  13108. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  13109. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  13110. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  13111. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  13112. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  13113. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  13114. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  13115. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  13116. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  13117. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  13118. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  13119. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  13120. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  13121. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  13122. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  13123. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  13124. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  13125. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  13126. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  13127. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  13128. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  13129. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  13130. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  13131. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  13132. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  13133. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  13134. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  13135. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  13136. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  13137. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  13138. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  13139. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  13140. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  13141. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  13142. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  13143. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  13144. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  13145. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  13146. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  13147. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  13148. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  13149. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  13150. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  13151. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  13152. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  13153. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  13154. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  13155. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  13156. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  13157. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  13158. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  13159. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  13160. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  13161. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  13162. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  13163. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  13164. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  13165. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  13166. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  13167. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  13168. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  13169. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  13170. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  13171. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  13172. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  13173. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  13174. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  13175. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  13176. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  13177. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  13178. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  13179. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  13180. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  13181. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  13182. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  13183. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  13184. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  13185. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  13186. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  13187. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  13188. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  13189. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  13190. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  13191. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  13192. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  13193. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  13194. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  13195. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  13196. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  13197. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  13198. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  13199. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  13200. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  13201. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  13202. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  13203. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  13204. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  13205. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  13206. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  13207. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  13208. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  13209. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  13210. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  13211. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  13212. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  13213. {f: 7, c: 19887}]
  13214. };
  13215. var ARCFourCipher = (function ARCFourCipherClosure() {
  13216. function ARCFourCipher(key) {
  13217. this.a = 0;
  13218. this.b = 0;
  13219. var s = new Uint8Array(256);
  13220. var i, j = 0, tmp, keyLength = key.length;
  13221. for (i = 0; i < 256; ++i) {
  13222. s[i] = i;
  13223. }
  13224. for (i = 0; i < 256; ++i) {
  13225. tmp = s[i];
  13226. j = (j + tmp + key[i % keyLength]) & 0xFF;
  13227. s[i] = s[j];
  13228. s[j] = tmp;
  13229. }
  13230. this.s = s;
  13231. }
  13232. ARCFourCipher.prototype = {
  13233. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  13234. var i, n = data.length, tmp, tmp2;
  13235. var a = this.a, b = this.b, s = this.s;
  13236. var output = new Uint8Array(n);
  13237. for (i = 0; i < n; ++i) {
  13238. a = (a + 1) & 0xFF;
  13239. tmp = s[a];
  13240. b = (b + tmp) & 0xFF;
  13241. tmp2 = s[b];
  13242. s[a] = tmp2;
  13243. s[b] = tmp;
  13244. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  13245. }
  13246. this.a = a;
  13247. this.b = b;
  13248. return output;
  13249. }
  13250. };
  13251. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  13252. return ARCFourCipher;
  13253. })();
  13254. var calculateMD5 = (function calculateMD5Closure() {
  13255. var r = new Uint8Array([
  13256. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  13257. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  13258. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  13259. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  13260. var k = new Int32Array([
  13261. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  13262. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  13263. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  13264. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  13265. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  13266. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  13267. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  13268. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  13269. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  13270. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  13271. -145523070, -1120210379, 718787259, -343485551]);
  13272. function hash(data, offset, length) {
  13273. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  13274. // pre-processing
  13275. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  13276. var padded = new Uint8Array(paddedLength);
  13277. var i, j, n;
  13278. for (i = 0; i < length; ++i) {
  13279. padded[i] = data[offset++];
  13280. }
  13281. padded[i++] = 0x80;
  13282. n = paddedLength - 8;
  13283. while (i < n) {
  13284. padded[i++] = 0;
  13285. }
  13286. padded[i++] = (length << 3) & 0xFF;
  13287. padded[i++] = (length >> 5) & 0xFF;
  13288. padded[i++] = (length >> 13) & 0xFF;
  13289. padded[i++] = (length >> 21) & 0xFF;
  13290. padded[i++] = (length >>> 29) & 0xFF;
  13291. padded[i++] = 0;
  13292. padded[i++] = 0;
  13293. padded[i++] = 0;
  13294. // chunking
  13295. // TODO ArrayBuffer ?
  13296. var w = new Int32Array(16);
  13297. for (i = 0; i < paddedLength;) {
  13298. for (j = 0; j < 16; ++j, i += 4) {
  13299. w[j] = (padded[i] | (padded[i + 1] << 8) |
  13300. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  13301. }
  13302. var a = h0, b = h1, c = h2, d = h3, f, g;
  13303. for (j = 0; j < 64; ++j) {
  13304. if (j < 16) {
  13305. f = (b & c) | ((~b) & d);
  13306. g = j;
  13307. } else if (j < 32) {
  13308. f = (d & b) | ((~d) & c);
  13309. g = (5 * j + 1) & 15;
  13310. } else if (j < 48) {
  13311. f = b ^ c ^ d;
  13312. g = (3 * j + 5) & 15;
  13313. } else {
  13314. f = c ^ (b | (~d));
  13315. g = (7 * j) & 15;
  13316. }
  13317. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  13318. d = c;
  13319. c = b;
  13320. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  13321. a = tmp;
  13322. }
  13323. h0 = (h0 + a) | 0;
  13324. h1 = (h1 + b) | 0;
  13325. h2 = (h2 + c) | 0;
  13326. h3 = (h3 + d) | 0;
  13327. }
  13328. return new Uint8Array([
  13329. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  13330. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  13331. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  13332. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  13333. ]);
  13334. }
  13335. return hash;
  13336. })();
  13337. var NullCipher = (function NullCipherClosure() {
  13338. function NullCipher() {}
  13339. NullCipher.prototype = {
  13340. decryptBlock: function NullCipher_decryptBlock(data) {
  13341. return data;
  13342. }
  13343. };
  13344. return NullCipher;
  13345. })();
  13346. var AES128Cipher = (function AES128CipherClosure() {
  13347. var rcon = new Uint8Array([
  13348. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13349. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13350. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13351. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13352. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  13353. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  13354. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  13355. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  13356. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  13357. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  13358. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  13359. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  13360. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  13361. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  13362. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  13363. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  13364. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  13365. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13366. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13367. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13368. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13369. 0x74, 0xe8, 0xcb, 0x8d]);
  13370. var s = new Uint8Array([
  13371. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  13372. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  13373. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  13374. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  13375. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  13376. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  13377. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  13378. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  13379. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  13380. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  13381. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  13382. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  13383. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  13384. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  13385. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  13386. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  13387. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  13388. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  13389. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  13390. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  13391. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  13392. 0xb0, 0x54, 0xbb, 0x16]);
  13393. var inv_s = new Uint8Array([
  13394. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  13395. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  13396. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  13397. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  13398. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  13399. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  13400. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  13401. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  13402. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  13403. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  13404. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  13405. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  13406. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  13407. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  13408. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  13409. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  13410. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  13411. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13412. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13413. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13414. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13415. 0x55, 0x21, 0x0c, 0x7d]);
  13416. var mix = new Uint32Array([
  13417. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13418. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13419. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13420. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13421. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13422. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13423. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13424. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13425. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13426. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13427. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13428. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13429. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13430. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13431. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13432. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13433. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13434. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13435. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13436. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13437. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13438. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13439. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13440. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13441. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13442. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13443. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13444. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13445. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13446. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13447. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13448. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13449. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13450. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13451. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13452. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13453. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13454. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13455. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13456. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13457. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13458. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13459. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13460. function expandKey128(cipherKey) {
  13461. var b = 176, result = new Uint8Array(b);
  13462. result.set(cipherKey);
  13463. for (var j = 16, i = 1; j < b; ++i) {
  13464. // RotWord
  13465. var t1 = result[j - 3], t2 = result[j - 2],
  13466. t3 = result[j - 1], t4 = result[j - 4];
  13467. // SubWord
  13468. t1 = s[t1]; t2 = s[t2]; t3 = s[t3]; t4 = s[t4];
  13469. // Rcon
  13470. t1 = t1 ^ rcon[i];
  13471. for (var n = 0; n < 4; ++n) {
  13472. result[j] = (t1 ^= result[j - 16]); j++;
  13473. result[j] = (t2 ^= result[j - 16]); j++;
  13474. result[j] = (t3 ^= result[j - 16]); j++;
  13475. result[j] = (t4 ^= result[j - 16]); j++;
  13476. }
  13477. }
  13478. return result;
  13479. }
  13480. function decrypt128(input, key) {
  13481. var state = new Uint8Array(16);
  13482. state.set(input);
  13483. var i, j, k;
  13484. var t, u, v;
  13485. // AddRoundKey
  13486. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13487. state[j] ^= key[k];
  13488. }
  13489. for (i = 9; i >= 1; --i) {
  13490. // InvShiftRows
  13491. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13492. state[5] = state[1]; state[1] = t;
  13493. t = state[14]; u = state[10]; state[14] = state[6];
  13494. state[10] = state[2]; state[6] = t; state[2] = u;
  13495. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13496. state[11] = t; state[7] = u; state[3] = v;
  13497. // InvSubBytes
  13498. for (j = 0; j < 16; ++j) {
  13499. state[j] = inv_s[state[j]];
  13500. }
  13501. // AddRoundKey
  13502. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13503. state[j] ^= key[k];
  13504. }
  13505. // InvMixColumns
  13506. for (j = 0; j < 16; j += 4) {
  13507. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  13508. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  13509. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  13510. (s3 >>> 24) ^ (s3 << 8));
  13511. state[j] = (t >>> 24) & 0xFF;
  13512. state[j + 1] = (t >> 16) & 0xFF;
  13513. state[j + 2] = (t >> 8) & 0xFF;
  13514. state[j + 3] = t & 0xFF;
  13515. }
  13516. }
  13517. // InvShiftRows
  13518. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13519. state[5] = state[1]; state[1] = t;
  13520. t = state[14]; u = state[10]; state[14] = state[6];
  13521. state[10] = state[2]; state[6] = t; state[2] = u;
  13522. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13523. state[11] = t; state[7] = u; state[3] = v;
  13524. for (j = 0; j < 16; ++j) {
  13525. // InvSubBytes
  13526. state[j] = inv_s[state[j]];
  13527. // AddRoundKey
  13528. state[j] ^= key[j];
  13529. }
  13530. return state;
  13531. }
  13532. function AES128Cipher(key) {
  13533. this.key = expandKey128(key);
  13534. this.buffer = new Uint8Array(16);
  13535. this.bufferPosition = 0;
  13536. }
  13537. function decryptBlock2(data, finalize) {
  13538. var i, j, ii, sourceLength = data.length,
  13539. buffer = this.buffer, bufferLength = this.bufferPosition,
  13540. result = [], iv = this.iv;
  13541. for (i = 0; i < sourceLength; ++i) {
  13542. buffer[bufferLength] = data[i];
  13543. ++bufferLength;
  13544. if (bufferLength < 16) {
  13545. continue;
  13546. }
  13547. // buffer is full, decrypting
  13548. var plain = decrypt128(buffer, this.key);
  13549. // xor-ing the IV vector to get plain text
  13550. for (j = 0; j < 16; ++j) {
  13551. plain[j] ^= iv[j];
  13552. }
  13553. iv = buffer;
  13554. result.push(plain);
  13555. buffer = new Uint8Array(16);
  13556. bufferLength = 0;
  13557. }
  13558. // saving incomplete buffer
  13559. this.buffer = buffer;
  13560. this.bufferLength = bufferLength;
  13561. this.iv = iv;
  13562. if (result.length === 0) {
  13563. return new Uint8Array([]);
  13564. }
  13565. // combining plain text blocks into one
  13566. var outputLength = 16 * result.length;
  13567. if (finalize) {
  13568. // undo a padding that is described in RFC 2898
  13569. var lastBlock = result[result.length - 1];
  13570. outputLength -= lastBlock[15];
  13571. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  13572. }
  13573. var output = new Uint8Array(outputLength);
  13574. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  13575. output.set(result[i], j);
  13576. }
  13577. return output;
  13578. }
  13579. AES128Cipher.prototype = {
  13580. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  13581. var i, sourceLength = data.length;
  13582. var buffer = this.buffer, bufferLength = this.bufferPosition;
  13583. // waiting for IV values -- they are at the start of the stream
  13584. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) {
  13585. buffer[bufferLength] = data[i];
  13586. }
  13587. if (bufferLength < 16) {
  13588. // need more data
  13589. this.bufferLength = bufferLength;
  13590. return new Uint8Array([]);
  13591. }
  13592. this.iv = buffer;
  13593. this.buffer = new Uint8Array(16);
  13594. this.bufferLength = 0;
  13595. // starting decryption
  13596. this.decryptBlock = decryptBlock2;
  13597. return this.decryptBlock(data.subarray(16), finalize);
  13598. }
  13599. };
  13600. return AES128Cipher;
  13601. })();
  13602. var CipherTransform = (function CipherTransformClosure() {
  13603. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  13604. this.stringCipherConstructor = stringCipherConstructor;
  13605. this.streamCipherConstructor = streamCipherConstructor;
  13606. }
  13607. CipherTransform.prototype = {
  13608. createStream: function CipherTransform_createStream(stream, length) {
  13609. var cipher = new this.streamCipherConstructor();
  13610. return new DecryptStream(stream, length,
  13611. function cipherTransformDecryptStream(data, finalize) {
  13612. return cipher.decryptBlock(data, finalize);
  13613. }
  13614. );
  13615. },
  13616. decryptString: function CipherTransform_decryptString(s) {
  13617. var cipher = new this.stringCipherConstructor();
  13618. var data = stringToBytes(s);
  13619. data = cipher.decryptBlock(data, true);
  13620. return bytesToString(data);
  13621. }
  13622. };
  13623. return CipherTransform;
  13624. })();
  13625. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  13626. var defaultPasswordBytes = new Uint8Array([
  13627. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  13628. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  13629. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  13630. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  13631. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  13632. flags, revision, keyLength, encryptMetadata) {
  13633. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  13634. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  13635. if (password) {
  13636. n = Math.min(32, password.length);
  13637. for (; i < n; ++i) {
  13638. hashData[i] = password[i];
  13639. }
  13640. }
  13641. j = 0;
  13642. while (i < 32) {
  13643. hashData[i++] = defaultPasswordBytes[j++];
  13644. }
  13645. // as now the padded password in the hashData[0..i]
  13646. for (j = 0, n = ownerPassword.length; j < n; ++j) {
  13647. hashData[i++] = ownerPassword[j];
  13648. }
  13649. hashData[i++] = flags & 0xFF;
  13650. hashData[i++] = (flags >> 8) & 0xFF;
  13651. hashData[i++] = (flags >> 16) & 0xFF;
  13652. hashData[i++] = (flags >>> 24) & 0xFF;
  13653. for (j = 0, n = fileId.length; j < n; ++j) {
  13654. hashData[i++] = fileId[j];
  13655. }
  13656. if (revision >= 4 && !encryptMetadata) {
  13657. hashData[i++] = 0xFF;
  13658. hashData[i++] = 0xFF;
  13659. hashData[i++] = 0xFF;
  13660. hashData[i++] = 0xFF;
  13661. }
  13662. var hash = calculateMD5(hashData, 0, i);
  13663. var keyLengthInBytes = keyLength >> 3;
  13664. if (revision >= 3) {
  13665. for (j = 0; j < 50; ++j) {
  13666. hash = calculateMD5(hash, 0, keyLengthInBytes);
  13667. }
  13668. }
  13669. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  13670. var cipher, checkData;
  13671. if (revision >= 3) {
  13672. for (i = 0; i < 32; ++i) {
  13673. hashData[i] = defaultPasswordBytes[i];
  13674. }
  13675. for (j = 0, n = fileId.length; j < n; ++j) {
  13676. hashData[i++] = fileId[j];
  13677. }
  13678. cipher = new ARCFourCipher(encryptionKey);
  13679. checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  13680. n = encryptionKey.length;
  13681. var derivedKey = new Uint8Array(n), k;
  13682. for (j = 1; j <= 19; ++j) {
  13683. for (k = 0; k < n; ++k) {
  13684. derivedKey[k] = encryptionKey[k] ^ j;
  13685. }
  13686. cipher = new ARCFourCipher(derivedKey);
  13687. checkData = cipher.encryptBlock(checkData);
  13688. }
  13689. for (j = 0, n = checkData.length; j < n; ++j) {
  13690. if (userPassword[j] != checkData[j]) {
  13691. return null;
  13692. }
  13693. }
  13694. } else {
  13695. cipher = new ARCFourCipher(encryptionKey);
  13696. checkData = cipher.encryptBlock(defaultPasswordBytes);
  13697. for (j = 0, n = checkData.length; j < n; ++j) {
  13698. if (userPassword[j] != checkData[j]) {
  13699. return null;
  13700. }
  13701. }
  13702. }
  13703. return encryptionKey;
  13704. }
  13705. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  13706. var hashData = new Uint8Array(32), i = 0, j, n;
  13707. n = Math.min(32, password.length);
  13708. for (; i < n; ++i) {
  13709. hashData[i] = password[i];
  13710. }
  13711. j = 0;
  13712. while (i < 32) {
  13713. hashData[i++] = defaultPasswordBytes[j++];
  13714. }
  13715. var hash = calculateMD5(hashData, 0, i);
  13716. var keyLengthInBytes = keyLength >> 3;
  13717. if (revision >= 3) {
  13718. for (j = 0; j < 50; ++j) {
  13719. hash = calculateMD5(hash, 0, hash.length);
  13720. }
  13721. }
  13722. var cipher, userPassword;
  13723. if (revision >= 3) {
  13724. userPassword = ownerPassword;
  13725. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  13726. for (j = 19; j >= 0; j--) {
  13727. for (k = 0; k < keyLengthInBytes; ++k) {
  13728. derivedKey[k] = hash[k] ^ j;
  13729. }
  13730. cipher = new ARCFourCipher(derivedKey);
  13731. userPassword = cipher.encryptBlock(userPassword);
  13732. }
  13733. } else {
  13734. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  13735. userPassword = cipher.encryptBlock(ownerPassword);
  13736. }
  13737. return userPassword;
  13738. }
  13739. var identityName = Name.get('Identity');
  13740. function CipherTransformFactory(dict, fileId, password) {
  13741. var filter = dict.get('Filter');
  13742. if (!isName(filter) || filter.name != 'Standard') {
  13743. error('unknown encryption method');
  13744. }
  13745. this.dict = dict;
  13746. var algorithm = dict.get('V');
  13747. if (!isInt(algorithm) ||
  13748. (algorithm != 1 && algorithm != 2 && algorithm != 4)) {
  13749. error('unsupported encryption algorithm');
  13750. }
  13751. this.algorithm = algorithm;
  13752. var keyLength = dict.get('Length') || 40;
  13753. if (!isInt(keyLength) ||
  13754. keyLength < 40 || (keyLength % 8) !== 0) {
  13755. error('invalid key length');
  13756. }
  13757. // prepare keys
  13758. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  13759. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  13760. var flags = dict.get('P');
  13761. var revision = dict.get('R');
  13762. var encryptMetadata = (algorithm == 4 && // meaningful when V is 4
  13763. dict.get('EncryptMetadata') !== false); // makes true as default value
  13764. this.encryptMetadata = encryptMetadata;
  13765. var fileIdBytes = stringToBytes(fileId);
  13766. var passwordBytes;
  13767. if (password) {
  13768. passwordBytes = stringToBytes(password);
  13769. }
  13770. var encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  13771. ownerPassword, userPassword, flags,
  13772. revision, keyLength, encryptMetadata);
  13773. if (!encryptionKey && !password) {
  13774. throw new PasswordException('No password given',
  13775. PasswordResponses.NEED_PASSWORD);
  13776. } else if (!encryptionKey && password) {
  13777. // Attempting use the password as an owner password
  13778. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  13779. revision, keyLength);
  13780. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  13781. ownerPassword, userPassword, flags,
  13782. revision, keyLength, encryptMetadata);
  13783. }
  13784. if (!encryptionKey) {
  13785. throw new PasswordException('Incorrect Password',
  13786. PasswordResponses.INCORRECT_PASSWORD);
  13787. }
  13788. this.encryptionKey = encryptionKey;
  13789. if (algorithm == 4) {
  13790. this.cf = dict.get('CF');
  13791. this.stmf = dict.get('StmF') || identityName;
  13792. this.strf = dict.get('StrF') || identityName;
  13793. this.eff = dict.get('EFF') || this.strf;
  13794. }
  13795. }
  13796. function buildObjectKey(num, gen, encryptionKey, isAes) {
  13797. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  13798. for (i = 0, n = encryptionKey.length; i < n; ++i) {
  13799. key[i] = encryptionKey[i];
  13800. }
  13801. key[i++] = num & 0xFF;
  13802. key[i++] = (num >> 8) & 0xFF;
  13803. key[i++] = (num >> 16) & 0xFF;
  13804. key[i++] = gen & 0xFF;
  13805. key[i++] = (gen >> 8) & 0xFF;
  13806. if (isAes) {
  13807. key[i++] = 0x73;
  13808. key[i++] = 0x41;
  13809. key[i++] = 0x6C;
  13810. key[i++] = 0x54;
  13811. }
  13812. var hash = calculateMD5(key, 0, i);
  13813. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  13814. }
  13815. function buildCipherConstructor(cf, name, num, gen, key) {
  13816. var cryptFilter = cf.get(name.name);
  13817. var cfm;
  13818. if (cryptFilter !== null && cryptFilter !== undefined) {
  13819. cfm = cryptFilter.get('CFM');
  13820. }
  13821. if (!cfm || cfm.name == 'None') {
  13822. return function cipherTransformFactoryBuildCipherConstructorNone() {
  13823. return new NullCipher();
  13824. };
  13825. }
  13826. if ('V2' == cfm.name) {
  13827. return function cipherTransformFactoryBuildCipherConstructorV2() {
  13828. return new ARCFourCipher(buildObjectKey(num, gen, key, false));
  13829. };
  13830. }
  13831. if ('AESV2' == cfm.name) {
  13832. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  13833. return new AES128Cipher(buildObjectKey(num, gen, key, true));
  13834. };
  13835. }
  13836. error('Unknown crypto method');
  13837. }
  13838. CipherTransformFactory.prototype = {
  13839. createCipherTransform:
  13840. function CipherTransformFactory_createCipherTransform(num, gen) {
  13841. if (this.algorithm == 4) {
  13842. return new CipherTransform(
  13843. buildCipherConstructor(this.cf, this.stmf,
  13844. num, gen, this.encryptionKey),
  13845. buildCipherConstructor(this.cf, this.strf,
  13846. num, gen, this.encryptionKey));
  13847. }
  13848. // algorithms 1 and 2
  13849. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  13850. var cipherConstructor = function buildCipherCipherConstructor() {
  13851. return new ARCFourCipher(key);
  13852. };
  13853. return new CipherTransform(cipherConstructor, cipherConstructor);
  13854. }
  13855. };
  13856. return CipherTransformFactory;
  13857. })();
  13858. var PatternType = {
  13859. FUNCTION_BASED: 1,
  13860. AXIAL: 2,
  13861. RADIAL: 3,
  13862. FREE_FORM_MESH: 4,
  13863. LATTICE_FORM_MESH: 5,
  13864. COONS_PATCH_MESH: 6,
  13865. TENSOR_PATCH_MESH: 7
  13866. };
  13867. var Pattern = (function PatternClosure() {
  13868. // Constructor should define this.getPattern
  13869. function Pattern() {
  13870. error('should not call Pattern constructor');
  13871. }
  13872. Pattern.prototype = {
  13873. // Input: current Canvas context
  13874. // Output: the appropriate fillStyle or strokeStyle
  13875. getPattern: function Pattern_getPattern(ctx) {
  13876. error('Should not call Pattern.getStyle: ' + ctx);
  13877. }
  13878. };
  13879. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  13880. res) {
  13881. var dict = isStream(shading) ? shading.dict : shading;
  13882. var type = dict.get('ShadingType');
  13883. switch (type) {
  13884. case PatternType.AXIAL:
  13885. case PatternType.RADIAL:
  13886. // Both radial and axial shadings are handled by RadialAxial shading.
  13887. return new Shadings.RadialAxial(dict, matrix, xref, res);
  13888. case PatternType.FREE_FORM_MESH:
  13889. case PatternType.LATTICE_FORM_MESH:
  13890. case PatternType.COONS_PATCH_MESH:
  13891. case PatternType.TENSOR_PATCH_MESH:
  13892. return new Shadings.Mesh(shading, matrix, xref, res);
  13893. default:
  13894. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  13895. return new Shadings.Dummy();
  13896. }
  13897. };
  13898. return Pattern;
  13899. })();
  13900. var Shadings = {};
  13901. // A small number to offset the first/last color stops so we can insert ones to
  13902. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  13903. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  13904. // internally so we have to go bigger.
  13905. Shadings.SMALL_NUMBER = 1e-2;
  13906. // Radial and axial shading have very similar implementations
  13907. // If needed, the implementations can be broken into two classes
  13908. Shadings.RadialAxial = (function RadialAxialClosure() {
  13909. function RadialAxial(dict, matrix, xref, res) {
  13910. this.matrix = matrix;
  13911. this.coordsArr = dict.get('Coords');
  13912. this.shadingType = dict.get('ShadingType');
  13913. this.type = 'Pattern';
  13914. var cs = dict.get('ColorSpace', 'CS');
  13915. cs = ColorSpace.parse(cs, xref, res);
  13916. this.cs = cs;
  13917. var t0 = 0.0, t1 = 1.0;
  13918. if (dict.has('Domain')) {
  13919. var domainArr = dict.get('Domain');
  13920. t0 = domainArr[0];
  13921. t1 = domainArr[1];
  13922. }
  13923. var extendStart = false, extendEnd = false;
  13924. if (dict.has('Extend')) {
  13925. var extendArr = dict.get('Extend');
  13926. extendStart = extendArr[0];
  13927. extendEnd = extendArr[1];
  13928. }
  13929. if (this.shadingType === PatternType.RADIAL &&
  13930. (!extendStart || !extendEnd)) {
  13931. // Radial gradient only currently works if either circle is fully within
  13932. // the other circle.
  13933. var x1 = this.coordsArr[0];
  13934. var y1 = this.coordsArr[1];
  13935. var r1 = this.coordsArr[2];
  13936. var x2 = this.coordsArr[3];
  13937. var y2 = this.coordsArr[4];
  13938. var r2 = this.coordsArr[5];
  13939. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  13940. if (r1 <= r2 + distance &&
  13941. r2 <= r1 + distance) {
  13942. warn('Unsupported radial gradient.');
  13943. }
  13944. }
  13945. this.extendStart = extendStart;
  13946. this.extendEnd = extendEnd;
  13947. var fnObj = dict.get('Function');
  13948. var fn;
  13949. if (isArray(fnObj)) {
  13950. var fnArray = [];
  13951. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  13952. var obj = xref.fetchIfRef(fnObj[j]);
  13953. if (!isPDFFunction(obj)) {
  13954. error('Invalid function');
  13955. }
  13956. fnArray.push(PDFFunction.parse(xref, obj));
  13957. }
  13958. fn = function radialAxialColorFunction(arg) {
  13959. var out = [];
  13960. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  13961. out.push(fnArray[i](arg)[0]);
  13962. }
  13963. return out;
  13964. };
  13965. } else {
  13966. if (!isPDFFunction(fnObj)) {
  13967. error('Invalid function');
  13968. }
  13969. fn = PDFFunction.parse(xref, fnObj);
  13970. }
  13971. // 10 samples seems good enough for now, but probably won't work
  13972. // if there are sharp color changes. Ideally, we would implement
  13973. // the spec faithfully and add lossless optimizations.
  13974. var diff = t1 - t0;
  13975. var step = diff / 10;
  13976. var colorStops = this.colorStops = [];
  13977. // Protect against bad domains so we don't end up in an infinte loop below.
  13978. if (t0 >= t1 || step <= 0) {
  13979. // Acrobat doesn't seem to handle these cases so we'll ignore for
  13980. // now.
  13981. info('Bad shading domain.');
  13982. return;
  13983. }
  13984. var rgbColor;
  13985. for (var i = t0; i <= t1; i += step) {
  13986. rgbColor = cs.getRgb(fn([i]), 0);
  13987. var cssColor = Util.makeCssRgb(rgbColor);
  13988. colorStops.push([(i - t0) / diff, cssColor]);
  13989. }
  13990. var background = 'transparent';
  13991. if (dict.has('Background')) {
  13992. rgbColor = cs.getRgb(dict.get('Background'), 0);
  13993. background = Util.makeCssRgb(rgbColor);
  13994. }
  13995. if (!extendStart) {
  13996. // Insert a color stop at the front and offset the first real color stop
  13997. // so it doesn't conflict with the one we insert.
  13998. colorStops.unshift([0, background]);
  13999. colorStops[1][0] += Shadings.SMALL_NUMBER;
  14000. }
  14001. if (!extendEnd) {
  14002. // Same idea as above in extendStart but for the end.
  14003. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  14004. colorStops.push([1, background]);
  14005. }
  14006. this.colorStops = colorStops;
  14007. }
  14008. RadialAxial.prototype = {
  14009. getIR: function RadialAxial_getIR() {
  14010. var coordsArr = this.coordsArr;
  14011. var shadingType = this.shadingType;
  14012. var type, p0, p1, r0, r1;
  14013. if (shadingType == PatternType.AXIAL) {
  14014. p0 = [coordsArr[0], coordsArr[1]];
  14015. p1 = [coordsArr[2], coordsArr[3]];
  14016. r0 = null;
  14017. r1 = null;
  14018. type = 'axial';
  14019. } else if (shadingType == PatternType.RADIAL) {
  14020. p0 = [coordsArr[0], coordsArr[1]];
  14021. p1 = [coordsArr[3], coordsArr[4]];
  14022. r0 = coordsArr[2];
  14023. r1 = coordsArr[5];
  14024. type = 'radial';
  14025. } else {
  14026. error('getPattern type unknown: ' + shadingType);
  14027. }
  14028. var matrix = this.matrix;
  14029. if (matrix) {
  14030. p0 = Util.applyTransform(p0, matrix);
  14031. p1 = Util.applyTransform(p1, matrix);
  14032. }
  14033. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  14034. }
  14035. };
  14036. return RadialAxial;
  14037. })();
  14038. // All mesh shading. For now, they will be presented as set of the triangles
  14039. // to be drawn on the canvas and rgb color for each vertex.
  14040. Shadings.Mesh = (function MeshClosure() {
  14041. function MeshStreamReader(stream, context) {
  14042. this.stream = stream;
  14043. this.context = context;
  14044. this.buffer = 0;
  14045. this.bufferLength = 0;
  14046. }
  14047. MeshStreamReader.prototype = {
  14048. get hasData() {
  14049. if (this.stream.end) {
  14050. return this.stream.pos < this.stream.end;
  14051. }
  14052. if (this.bufferLength > 0) {
  14053. return true;
  14054. }
  14055. var nextByte = this.stream.getByte();
  14056. if (nextByte < 0) {
  14057. return false;
  14058. }
  14059. this.buffer = nextByte;
  14060. this.bufferLength = 8;
  14061. return true;
  14062. },
  14063. readBits: function MeshStreamReader_readBits(n) {
  14064. var buffer = this.buffer;
  14065. var bufferLength = this.bufferLength;
  14066. if (n === 32) {
  14067. if (bufferLength === 0) {
  14068. return ((this.stream.getByte() << 24) |
  14069. (this.stream.getByte() << 16) | (this.stream.getByte() << 8) |
  14070. this.stream.getByte()) >>> 0;
  14071. }
  14072. buffer = (buffer << 24) | (this.stream.getByte() << 16) |
  14073. (this.stream.getByte() << 8) | this.stream.getByte();
  14074. var nextByte = this.stream.getByte();
  14075. this.buffer = nextByte & ((1 << bufferLength) - 1);
  14076. return ((buffer << (8 - bufferLength)) |
  14077. ((nextByte & 0xFF) >> bufferLength)) >>> 0;
  14078. }
  14079. if (n === 8 && bufferLength === 0) {
  14080. return this.stream.getByte();
  14081. }
  14082. while (bufferLength < n) {
  14083. buffer = (buffer << 8) | this.stream.getByte();
  14084. bufferLength += 8;
  14085. }
  14086. bufferLength -= n;
  14087. this.bufferLength = bufferLength;
  14088. this.buffer = buffer & ((1 << bufferLength) - 1);
  14089. return buffer >> bufferLength;
  14090. },
  14091. align: function MeshStreamReader_align() {
  14092. this.buffer = 0;
  14093. this.bufferLength = 0;
  14094. },
  14095. readFlag: function MeshStreamReader_readFlag() {
  14096. return this.readBits(this.context.bitsPerFlag);
  14097. },
  14098. readCoordinate: function MeshStreamReader_readCoordinate() {
  14099. var bitsPerCoordinate = this.context.bitsPerCoordinate;
  14100. var xi = this.readBits(bitsPerCoordinate);
  14101. var yi = this.readBits(bitsPerCoordinate);
  14102. var decode = this.context.decode;
  14103. var scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) :
  14104. 2.3283064365386963e-10; // 2 ^ -32
  14105. return [
  14106. xi * scale * (decode[1] - decode[0]) + decode[0],
  14107. yi * scale * (decode[3] - decode[2]) + decode[2]
  14108. ];
  14109. },
  14110. readComponents: function MeshStreamReader_readComponents() {
  14111. var numComps = this.context.numComps;
  14112. var bitsPerComponent = this.context.bitsPerComponent;
  14113. var scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) :
  14114. 2.3283064365386963e-10; // 2 ^ -32
  14115. var decode = this.context.decode;
  14116. var components = [];
  14117. for (var i = 0, j = 4; i < numComps; i++, j += 2) {
  14118. var ci = this.readBits(bitsPerComponent);
  14119. components.push(ci * scale * (decode[j + 1] - decode[j]) + decode[j]);
  14120. }
  14121. if (this.context.colorFn) {
  14122. components = this.context.colorFn(components);
  14123. }
  14124. return this.context.colorSpace.getRgb(components, 0);
  14125. }
  14126. };
  14127. function decodeType4Shading(mesh, reader) {
  14128. var coords = mesh.coords;
  14129. var colors = mesh.colors;
  14130. var operators = [];
  14131. var ps = []; // not maintaining cs since that will match ps
  14132. var verticesLeft = 0; // assuming we have all data to start a new triangle
  14133. while (reader.hasData) {
  14134. var f = reader.readFlag();
  14135. var coord = reader.readCoordinate();
  14136. var color = reader.readComponents();
  14137. if (verticesLeft === 0) { // ignoring flags if we started a triangle
  14138. assert(0 <= f && f <= 2, 'Unknown type4 flag');
  14139. switch (f) {
  14140. case 0:
  14141. verticesLeft = 3;
  14142. break;
  14143. case 1:
  14144. ps.push(ps[ps.length - 2], ps[ps.length - 1]);
  14145. verticesLeft = 1;
  14146. break;
  14147. case 2:
  14148. ps.push(ps[ps.length - 3], ps[ps.length - 1]);
  14149. verticesLeft = 1;
  14150. break;
  14151. }
  14152. operators.push(f);
  14153. }
  14154. ps.push(coords.length);
  14155. coords.push(coord);
  14156. colors.push(color);
  14157. verticesLeft--;
  14158. reader.align();
  14159. }
  14160. var psPacked = new Int32Array(ps);
  14161. mesh.figures.push({
  14162. type: 'triangles',
  14163. coords: psPacked,
  14164. colors: psPacked
  14165. });
  14166. }
  14167. function decodeType5Shading(mesh, reader, verticesPerRow) {
  14168. var coords = mesh.coords;
  14169. var colors = mesh.colors;
  14170. var ps = []; // not maintaining cs since that will match ps
  14171. while (reader.hasData) {
  14172. var coord = reader.readCoordinate();
  14173. var color = reader.readComponents();
  14174. ps.push(coords.length);
  14175. coords.push(coord);
  14176. colors.push(color);
  14177. }
  14178. var psPacked = new Int32Array(ps);
  14179. mesh.figures.push({
  14180. type: 'lattice',
  14181. coords: psPacked,
  14182. colors: psPacked,
  14183. verticesPerRow: verticesPerRow
  14184. });
  14185. }
  14186. var MIN_SPLIT_PATCH_CHUNKS_AMOUNT = 3;
  14187. var MAX_SPLIT_PATCH_CHUNKS_AMOUNT = 20;
  14188. var TRIANGLE_DENSITY = 20; // count of triangles per entire mesh bounds
  14189. var getB = (function getBClosure() {
  14190. function buildB(count) {
  14191. var lut = [];
  14192. for (var i = 0; i <= count; i++) {
  14193. var t = i / count, t_ = 1 - t;
  14194. lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_,
  14195. 3 * t * t * t_, t * t * t]));
  14196. }
  14197. return lut;
  14198. }
  14199. var cache = [];
  14200. return function getB(count) {
  14201. if (!cache[count]) {
  14202. cache[count] = buildB(count);
  14203. }
  14204. return cache[count];
  14205. };
  14206. })();
  14207. function buildFigureFromPatch(mesh, index) {
  14208. var figure = mesh.figures[index];
  14209. assert(figure.type === 'patch', 'Unexpected patch mesh figure');
  14210. var coords = mesh.coords, colors = mesh.colors;
  14211. var pi = figure.coords;
  14212. var ci = figure.colors;
  14213. var figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0],
  14214. coords[pi[12]][0], coords[pi[15]][0]);
  14215. var figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1],
  14216. coords[pi[12]][1], coords[pi[15]][1]);
  14217. var figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0],
  14218. coords[pi[12]][0], coords[pi[15]][0]);
  14219. var figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1],
  14220. coords[pi[12]][1], coords[pi[15]][1]);
  14221. var splitXBy = Math.ceil((figureMaxX - figureMinX) * TRIANGLE_DENSITY /
  14222. (mesh.bounds[2] - mesh.bounds[0]));
  14223. splitXBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14224. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy));
  14225. var splitYBy = Math.ceil((figureMaxY - figureMinY) * TRIANGLE_DENSITY /
  14226. (mesh.bounds[3] - mesh.bounds[1]));
  14227. splitYBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14228. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy));
  14229. var verticesPerRow = splitXBy + 1;
  14230. var figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow);
  14231. var figureColors = new Int32Array((splitYBy + 1) * verticesPerRow);
  14232. var k = 0;
  14233. var cl = new Uint8Array(3), cr = new Uint8Array(3);
  14234. var c0 = colors[ci[0]], c1 = colors[ci[1]],
  14235. c2 = colors[ci[2]], c3 = colors[ci[3]];
  14236. var bRow = getB(splitYBy), bCol = getB(splitXBy);
  14237. for (var row = 0; row <= splitYBy; row++) {
  14238. cl[0] = ((c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy) | 0;
  14239. cl[1] = ((c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy) | 0;
  14240. cl[2] = ((c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy) | 0;
  14241. cr[0] = ((c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy) | 0;
  14242. cr[1] = ((c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy) | 0;
  14243. cr[2] = ((c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy) | 0;
  14244. for (var col = 0; col <= splitXBy; col++, k++) {
  14245. if ((row === 0 || row === splitYBy) &&
  14246. (col === 0 || col === splitXBy)) {
  14247. continue;
  14248. }
  14249. var x = 0, y = 0;
  14250. var q = 0;
  14251. for (var i = 0; i <= 3; i++) {
  14252. for (var j = 0; j <= 3; j++, q++) {
  14253. var m = bRow[row][i] * bCol[col][j];
  14254. x += coords[pi[q]][0] * m;
  14255. y += coords[pi[q]][1] * m;
  14256. }
  14257. }
  14258. figureCoords[k] = coords.length;
  14259. coords.push([x, y]);
  14260. figureColors[k] = colors.length;
  14261. var newColor = new Uint8Array(3);
  14262. newColor[0] = ((cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy) | 0;
  14263. newColor[1] = ((cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy) | 0;
  14264. newColor[2] = ((cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy) | 0;
  14265. colors.push(newColor);
  14266. }
  14267. }
  14268. figureCoords[0] = pi[0];
  14269. figureColors[0] = ci[0];
  14270. figureCoords[splitXBy] = pi[3];
  14271. figureColors[splitXBy] = ci[1];
  14272. figureCoords[verticesPerRow * splitYBy] = pi[12];
  14273. figureColors[verticesPerRow * splitYBy] = ci[2];
  14274. figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15];
  14275. figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3];
  14276. mesh.figures[index] = {
  14277. type: 'lattice',
  14278. coords: figureCoords,
  14279. colors: figureColors,
  14280. verticesPerRow: verticesPerRow
  14281. };
  14282. }
  14283. function decodeType6Shading(mesh, reader) {
  14284. // A special case of Type 7. The p11, p12, p21, p22 automatically filled
  14285. var coords = mesh.coords;
  14286. var colors = mesh.colors;
  14287. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14288. var cs = new Int32Array(4); // c00, c30, c03, c33
  14289. while (reader.hasData) {
  14290. var f = reader.readFlag();
  14291. assert(0 <= f && f <= 3, 'Unknown type6 flag');
  14292. var i, ii;
  14293. var pi = coords.length;
  14294. for (i = 0, ii = (f !== 0 ? 8 : 12); i < ii; i++) {
  14295. coords.push(reader.readCoordinate());
  14296. }
  14297. var ci = colors.length;
  14298. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14299. colors.push(reader.readComponents());
  14300. }
  14301. var tmp1, tmp2, tmp3, tmp4;
  14302. switch (f) {
  14303. case 0:
  14304. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14305. ps[ 8] = pi + 2; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14306. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 8;
  14307. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14308. cs[2] = ci + 1; cs[3] = ci + 2;
  14309. cs[0] = ci; cs[1] = ci + 3;
  14310. break;
  14311. case 1:
  14312. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14313. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14314. ps[ 8] = pi + 6; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 1;
  14315. ps[ 4] = pi + 7; /* calculated below */ ps[ 7] = pi;
  14316. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14317. tmp1 = cs[2]; tmp2 = cs[3];
  14318. cs[2] = ci + 1; cs[3] = ci;
  14319. cs[0] = tmp1; cs[1] = tmp2;
  14320. break;
  14321. case 2:
  14322. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14323. ps[ 8] = ps[11]; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 4;
  14324. ps[ 4] = ps[7]; /* calculated below */ ps[ 7] = pi + 3;
  14325. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14326. cs[2] = cs[3]; cs[3] = ci + 1;
  14327. cs[0] = cs[1]; cs[1] = ci;
  14328. break;
  14329. case 3:
  14330. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14331. ps[ 8] = pi; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14332. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 6;
  14333. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14334. cs[2] = cs[0]; cs[3] = cs[1];
  14335. cs[0] = ci; cs[1] = ci + 1;
  14336. break;
  14337. }
  14338. // set p11, p12, p21, p22
  14339. ps[5] = coords.length;
  14340. coords.push([
  14341. (-4 * coords[ps[0]][0] - coords[ps[15]][0] +
  14342. 6 * (coords[ps[4]][0] + coords[ps[1]][0]) -
  14343. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14344. 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9,
  14345. (-4 * coords[ps[0]][1] - coords[ps[15]][1] +
  14346. 6 * (coords[ps[4]][1] + coords[ps[1]][1]) -
  14347. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14348. 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9
  14349. ]);
  14350. ps[6] = coords.length;
  14351. coords.push([
  14352. (-4 * coords[ps[3]][0] - coords[ps[12]][0] +
  14353. 6 * (coords[ps[2]][0] + coords[ps[7]][0]) -
  14354. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14355. 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9,
  14356. (-4 * coords[ps[3]][1] - coords[ps[12]][1] +
  14357. 6 * (coords[ps[2]][1] + coords[ps[7]][1]) -
  14358. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14359. 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9
  14360. ]);
  14361. ps[9] = coords.length;
  14362. coords.push([
  14363. (-4 * coords[ps[12]][0] - coords[ps[3]][0] +
  14364. 6 * (coords[ps[8]][0] + coords[ps[13]][0]) -
  14365. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14366. 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9,
  14367. (-4 * coords[ps[12]][1] - coords[ps[3]][1] +
  14368. 6 * (coords[ps[8]][1] + coords[ps[13]][1]) -
  14369. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14370. 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9
  14371. ]);
  14372. ps[10] = coords.length;
  14373. coords.push([
  14374. (-4 * coords[ps[15]][0] - coords[ps[0]][0] +
  14375. 6 * (coords[ps[11]][0] + coords[ps[14]][0]) -
  14376. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14377. 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9,
  14378. (-4 * coords[ps[15]][1] - coords[ps[0]][1] +
  14379. 6 * (coords[ps[11]][1] + coords[ps[14]][1]) -
  14380. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14381. 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9
  14382. ]);
  14383. mesh.figures.push({
  14384. type: 'patch',
  14385. coords: new Int32Array(ps), // making copies of ps and cs
  14386. colors: new Int32Array(cs)
  14387. });
  14388. }
  14389. }
  14390. function decodeType7Shading(mesh, reader) {
  14391. var coords = mesh.coords;
  14392. var colors = mesh.colors;
  14393. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14394. var cs = new Int32Array(4); // c00, c30, c03, c33
  14395. while (reader.hasData) {
  14396. var f = reader.readFlag();
  14397. assert(0 <= f && f <= 3, 'Unknown type7 flag');
  14398. var i, ii;
  14399. var pi = coords.length;
  14400. for (i = 0, ii = (f !== 0 ? 12 : 16); i < ii; i++) {
  14401. coords.push(reader.readCoordinate());
  14402. }
  14403. var ci = colors.length;
  14404. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14405. colors.push(reader.readComponents());
  14406. }
  14407. var tmp1, tmp2, tmp3, tmp4;
  14408. switch (f) {
  14409. case 0:
  14410. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14411. ps[ 8] = pi + 2; ps[ 9] = pi + 13; ps[10] = pi + 14; ps[11] = pi + 7;
  14412. ps[ 4] = pi + 1; ps[ 5] = pi + 12; ps[ 6] = pi + 15; ps[ 7] = pi + 8;
  14413. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14414. cs[2] = ci + 1; cs[3] = ci + 2;
  14415. cs[0] = ci; cs[1] = ci + 3;
  14416. break;
  14417. case 1:
  14418. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14419. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14420. ps[ 8] = pi + 6; ps[ 9] = pi + 11; ps[10] = pi + 10; ps[11] = pi + 1;
  14421. ps[ 4] = pi + 7; ps[ 5] = pi + 8; ps[ 6] = pi + 9; ps[ 7] = pi;
  14422. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14423. tmp1 = cs[2]; tmp2 = cs[3];
  14424. cs[2] = ci + 1; cs[3] = ci;
  14425. cs[0] = tmp1; cs[1] = tmp2;
  14426. break;
  14427. case 2:
  14428. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14429. ps[ 8] = ps[11]; ps[ 9] = pi + 8; ps[10] = pi + 11; ps[11] = pi + 4;
  14430. ps[ 4] = ps[7]; ps[ 5] = pi + 9; ps[ 6] = pi + 10; ps[ 7] = pi + 3;
  14431. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14432. cs[2] = cs[3]; cs[3] = ci + 1;
  14433. cs[0] = cs[1]; cs[1] = ci;
  14434. break;
  14435. case 3:
  14436. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14437. ps[ 8] = pi; ps[ 9] = pi + 9; ps[10] = pi + 8; ps[11] = pi + 7;
  14438. ps[ 4] = pi + 1; ps[ 5] = pi + 10; ps[ 6] = pi + 11; ps[ 7] = pi + 6;
  14439. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14440. cs[2] = cs[0]; cs[3] = cs[1];
  14441. cs[0] = ci; cs[1] = ci + 1;
  14442. break;
  14443. }
  14444. mesh.figures.push({
  14445. type: 'patch',
  14446. coords: new Int32Array(ps), // making copies of ps and cs
  14447. colors: new Int32Array(cs)
  14448. });
  14449. }
  14450. }
  14451. function updateBounds(mesh) {
  14452. var minX = mesh.coords[0][0], minY = mesh.coords[0][1],
  14453. maxX = minX, maxY = minY;
  14454. for (var i = 1, ii = mesh.coords.length; i < ii; i++) {
  14455. var x = mesh.coords[i][0], y = mesh.coords[i][1];
  14456. minX = minX > x ? x : minX;
  14457. minY = minY > y ? y : minY;
  14458. maxX = maxX < x ? x : maxX;
  14459. maxY = maxY < y ? y : maxY;
  14460. }
  14461. mesh.bounds = [minX, minY, maxX, maxY];
  14462. }
  14463. function packData(mesh) {
  14464. var i, ii, j, jj;
  14465. var coords = mesh.coords;
  14466. var coordsPacked = new Float32Array(coords.length * 2);
  14467. for (i = 0, j = 0, ii = coords.length; i < ii; i++) {
  14468. var xy = coords[i];
  14469. coordsPacked[j++] = xy[0];
  14470. coordsPacked[j++] = xy[1];
  14471. }
  14472. mesh.coords = coordsPacked;
  14473. var colors = mesh.colors;
  14474. var colorsPacked = new Uint8Array(colors.length * 3);
  14475. for (i = 0, j = 0, ii = colors.length; i < ii; i++) {
  14476. var c = colors[i];
  14477. colorsPacked[j++] = c[0];
  14478. colorsPacked[j++] = c[1];
  14479. colorsPacked[j++] = c[2];
  14480. }
  14481. mesh.colors = colorsPacked;
  14482. var figures = mesh.figures;
  14483. for (i = 0, ii = figures.length; i < ii; i++) {
  14484. var figure = figures[i], ps = figure.coords, cs = figure.colors;
  14485. for (j = 0, jj = ps.length; j < jj; j++) {
  14486. ps[j] *= 2;
  14487. cs[j] *= 3;
  14488. }
  14489. }
  14490. }
  14491. function Mesh(stream, matrix, xref, res) {
  14492. assert(isStream(stream), 'Mesh data is not a stream');
  14493. var dict = stream.dict;
  14494. this.matrix = matrix;
  14495. this.shadingType = dict.get('ShadingType');
  14496. this.type = 'Pattern';
  14497. this.bbox = dict.get('BBox');
  14498. var cs = dict.get('ColorSpace', 'CS');
  14499. cs = ColorSpace.parse(cs, xref, res);
  14500. this.cs = cs;
  14501. this.background = dict.has('Background') ?
  14502. cs.getRgb(dict.get('Background'), 0) : null;
  14503. var fnObj = dict.get('Function');
  14504. var fn;
  14505. if (!fnObj) {
  14506. fn = null;
  14507. } else if (isArray(fnObj)) {
  14508. var fnArray = [];
  14509. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  14510. var obj = xref.fetchIfRef(fnObj[j]);
  14511. if (!isPDFFunction(obj)) {
  14512. error('Invalid function');
  14513. }
  14514. fnArray.push(PDFFunction.parse(xref, obj));
  14515. }
  14516. fn = function radialAxialColorFunction(arg) {
  14517. var out = [];
  14518. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  14519. out.push(fnArray[i](arg)[0]);
  14520. }
  14521. return out;
  14522. };
  14523. } else {
  14524. if (!isPDFFunction(fnObj)) {
  14525. error('Invalid function');
  14526. }
  14527. fn = PDFFunction.parse(xref, fnObj);
  14528. }
  14529. this.coords = [];
  14530. this.colors = [];
  14531. this.figures = [];
  14532. var decodeContext = {
  14533. bitsPerCoordinate: dict.get('BitsPerCoordinate'),
  14534. bitsPerComponent: dict.get('BitsPerComponent'),
  14535. bitsPerFlag: dict.get('BitsPerFlag'),
  14536. decode: dict.get('Decode'),
  14537. colorFn: fn,
  14538. colorSpace: cs,
  14539. numComps: fn ? 1 : cs.numComps
  14540. };
  14541. var reader = new MeshStreamReader(stream, decodeContext);
  14542. var patchMesh = false;
  14543. switch (this.shadingType) {
  14544. case PatternType.FREE_FORM_MESH:
  14545. decodeType4Shading(this, reader);
  14546. break;
  14547. case PatternType.LATTICE_FORM_MESH:
  14548. var verticesPerRow = dict.get('VerticesPerRow') | 0;
  14549. assert(verticesPerRow >= 2, 'Invalid VerticesPerRow');
  14550. decodeType5Shading(this, reader, verticesPerRow);
  14551. break;
  14552. case PatternType.COONS_PATCH_MESH:
  14553. decodeType6Shading(this, reader);
  14554. patchMesh = true;
  14555. break;
  14556. case PatternType.TENSOR_PATCH_MESH:
  14557. decodeType7Shading(this, reader);
  14558. patchMesh = true;
  14559. break;
  14560. default:
  14561. error('Unsupported mesh type.');
  14562. break;
  14563. }
  14564. if (patchMesh) {
  14565. // dirty bounds calculation for determining, how dense shall be triangles
  14566. updateBounds(this);
  14567. for (var i = 0, ii = this.figures.length; i < ii; i++) {
  14568. buildFigureFromPatch(this, i);
  14569. }
  14570. }
  14571. // calculate bounds
  14572. updateBounds(this);
  14573. packData(this);
  14574. }
  14575. Mesh.prototype = {
  14576. getIR: function Mesh_getIR() {
  14577. return ['Mesh', this.shadingType, this.coords, this.colors, this.figures,
  14578. this.bounds, this.matrix, this.bbox, this.background];
  14579. }
  14580. };
  14581. return Mesh;
  14582. })();
  14583. Shadings.Dummy = (function DummyClosure() {
  14584. function Dummy() {
  14585. this.type = 'Pattern';
  14586. }
  14587. Dummy.prototype = {
  14588. getIR: function Dummy_getIR() {
  14589. return ['Dummy'];
  14590. }
  14591. };
  14592. return Dummy;
  14593. })();
  14594. function getTilingPatternIR(operatorList, dict, args) {
  14595. var matrix = dict.get('Matrix');
  14596. var bbox = dict.get('BBox');
  14597. var xstep = dict.get('XStep');
  14598. var ystep = dict.get('YStep');
  14599. var paintType = dict.get('PaintType');
  14600. var tilingType = dict.get('TilingType');
  14601. return [
  14602. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  14603. paintType, tilingType
  14604. ];
  14605. }
  14606. var PartialEvaluator = (function PartialEvaluatorClosure() {
  14607. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  14608. uniquePrefix, idCounters, fontCache) {
  14609. this.pdfManager = pdfManager;
  14610. this.xref = xref;
  14611. this.handler = handler;
  14612. this.pageIndex = pageIndex;
  14613. this.uniquePrefix = uniquePrefix;
  14614. this.idCounters = idCounters;
  14615. this.fontCache = fontCache;
  14616. }
  14617. // Trying to minimize Date.now() usage and check every 100 time
  14618. var TIME_SLOT_DURATION_MS = 20;
  14619. var CHECK_TIME_EVERY = 100;
  14620. function TimeSlotManager() {
  14621. this.reset();
  14622. }
  14623. TimeSlotManager.prototype = {
  14624. check: function TimeSlotManager_check() {
  14625. if (++this.checked < CHECK_TIME_EVERY) {
  14626. return false;
  14627. }
  14628. this.checked = 0;
  14629. return this.endTime <= Date.now();
  14630. },
  14631. reset: function TimeSlotManager_reset() {
  14632. this.endTime = Date.now() + TIME_SLOT_DURATION_MS;
  14633. this.checked = 0;
  14634. }
  14635. };
  14636. var deferred = Promise.resolve();
  14637. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  14638. PartialEvaluator.prototype = {
  14639. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  14640. if (!isDict(resources)) {
  14641. return false;
  14642. }
  14643. var processed = Object.create(null);
  14644. if (resources.objId) {
  14645. processed[resources.objId] = true;
  14646. }
  14647. var nodes = [resources];
  14648. while (nodes.length) {
  14649. var key;
  14650. var node = nodes.shift();
  14651. // First check the current resources for blend modes.
  14652. var graphicStates = node.get('ExtGState');
  14653. if (isDict(graphicStates)) {
  14654. graphicStates = graphicStates.getAll();
  14655. for (key in graphicStates) {
  14656. var graphicState = graphicStates[key];
  14657. var bm = graphicState['BM'];
  14658. if (isName(bm) && bm.name !== 'Normal') {
  14659. return true;
  14660. }
  14661. }
  14662. }
  14663. // Descend into the XObjects to look for more resources and blend modes.
  14664. var xObjects = node.get('XObject');
  14665. if (!isDict(xObjects)) {
  14666. continue;
  14667. }
  14668. xObjects = xObjects.getAll();
  14669. for (key in xObjects) {
  14670. var xObject = xObjects[key];
  14671. if (!isStream(xObject)) {
  14672. continue;
  14673. }
  14674. var xResources = xObject.dict.get('Resources');
  14675. // Checking objId to detect an infinite loop.
  14676. if (isDict(xResources) &&
  14677. (!xResources.objId || !processed[xResources.objId])) {
  14678. nodes.push(xResources);
  14679. if (xResources.objId) {
  14680. processed[xResources.objId] = true;
  14681. }
  14682. }
  14683. }
  14684. }
  14685. return false;
  14686. },
  14687. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  14688. xobj, smask,
  14689. operatorList,
  14690. initialState) {
  14691. var matrix = xobj.dict.get('Matrix');
  14692. var bbox = xobj.dict.get('BBox');
  14693. var group = xobj.dict.get('Group');
  14694. if (group) {
  14695. var groupOptions = {
  14696. matrix: matrix,
  14697. bbox: bbox,
  14698. smask: smask,
  14699. isolated: false,
  14700. knockout: false
  14701. };
  14702. var groupSubtype = group.get('S');
  14703. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  14704. groupOptions.isolated = (group.get('I') || false);
  14705. groupOptions.knockout = (group.get('K') || false);
  14706. var colorSpace = group.get('CS');
  14707. groupOptions.colorSpace = (colorSpace ?
  14708. ColorSpace.parseToIR(colorSpace, this.xref, resources) : null);
  14709. }
  14710. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  14711. }
  14712. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  14713. return this.getOperatorList(xobj,
  14714. (xobj.dict.get('Resources') || resources), operatorList, initialState).
  14715. then(function () {
  14716. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  14717. if (group) {
  14718. operatorList.addOp(OPS.endGroup, [groupOptions]);
  14719. }
  14720. });
  14721. },
  14722. buildPaintImageXObject:
  14723. function PartialEvaluator_buildPaintImageXObject(resources, image,
  14724. inline, operatorList,
  14725. cacheKey, cache) {
  14726. var self = this;
  14727. var dict = image.dict;
  14728. var w = dict.get('Width', 'W');
  14729. var h = dict.get('Height', 'H');
  14730. if (!(w && isNum(w)) || !(h && isNum(h))) {
  14731. warn('Image dimensions are missing, or not numbers.');
  14732. return;
  14733. }
  14734. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  14735. warn('Image exceeded maximum allowed size and was removed.');
  14736. return;
  14737. }
  14738. var imageMask = (dict.get('ImageMask', 'IM') || false);
  14739. var imgData, args;
  14740. if (imageMask) {
  14741. // This depends on a tmpCanvas being filled with the
  14742. // current fillStyle, such that processing the pixel
  14743. // data can't be done here. Instead of creating a
  14744. // complete PDFImage, only read the information needed
  14745. // for later.
  14746. var width = dict.get('Width', 'W');
  14747. var height = dict.get('Height', 'H');
  14748. var bitStrideLength = (width + 7) >> 3;
  14749. var imgArray = image.getBytes(bitStrideLength * height);
  14750. var decode = dict.get('Decode', 'D');
  14751. var canTransfer = image instanceof DecodeStream;
  14752. var inverseDecode = (!!decode && decode[0] > 0);
  14753. imgData = PDFImage.createMask(imgArray, width, height,
  14754. canTransfer, inverseDecode);
  14755. imgData.cached = true;
  14756. args = [imgData];
  14757. operatorList.addOp(OPS.paintImageMaskXObject, args);
  14758. if (cacheKey) {
  14759. cache.key = cacheKey;
  14760. cache.fn = OPS.paintImageMaskXObject;
  14761. cache.args = args;
  14762. }
  14763. return;
  14764. }
  14765. var softMask = (dict.get('SMask', 'SM') || false);
  14766. var mask = (dict.get('Mask') || false);
  14767. var SMALL_IMAGE_DIMENSIONS = 200;
  14768. // Inlining small images into the queue as RGB data
  14769. if (inline && !softMask && !mask && !(image instanceof JpegStream) &&
  14770. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  14771. var imageObj = new PDFImage(this.xref, resources, image,
  14772. inline, null, null);
  14773. // We force the use of RGBA_32BPP images here, because we can't handle
  14774. // any other kind.
  14775. imgData = imageObj.createImageData(/* forceRGBA = */ true);
  14776. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  14777. return;
  14778. }
  14779. // If there is no imageMask, create the PDFImage and a lot
  14780. // of image processing can be done here.
  14781. var uniquePrefix = (this.uniquePrefix || '');
  14782. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  14783. operatorList.addDependency(objId);
  14784. args = [objId, w, h];
  14785. if (!softMask && !mask && image instanceof JpegStream &&
  14786. image.isNativelySupported(this.xref, resources)) {
  14787. // These JPEGs don't need any more processing so we can just send it.
  14788. operatorList.addOp(OPS.paintJpegXObject, args);
  14789. this.handler.send('obj',
  14790. [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  14791. return;
  14792. }
  14793. PDFImage.buildImage(self.handler, self.xref, resources, image, inline).
  14794. then(function(imageObj) {
  14795. var imgData = imageObj.createImageData(/* forceRGBA = */ false);
  14796. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  14797. [imgData.data.buffer]);
  14798. }).then(null, function (reason) {
  14799. warn('Unable to decode image: ' + reason);
  14800. self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
  14801. });
  14802. operatorList.addOp(OPS.paintImageXObject, args);
  14803. if (cacheKey) {
  14804. cache.key = cacheKey;
  14805. cache.fn = OPS.paintImageXObject;
  14806. cache.args = args;
  14807. }
  14808. },
  14809. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  14810. operatorList,
  14811. stateManager) {
  14812. var smaskContent = smask.get('G');
  14813. var smaskOptions = {
  14814. subtype: smask.get('S').name,
  14815. backdrop: smask.get('BC')
  14816. };
  14817. return this.buildFormXObject(resources, smaskContent, smaskOptions,
  14818. operatorList, stateManager.state.clone());
  14819. },
  14820. handleTilingType:
  14821. function PartialEvaluator_handleTilingType(fn, args, resources,
  14822. pattern, patternDict,
  14823. operatorList) {
  14824. // Create an IR of the pattern code.
  14825. var tilingOpList = new OperatorList();
  14826. return this.getOperatorList(pattern,
  14827. (patternDict.get('Resources') || resources), tilingOpList).
  14828. then(function () {
  14829. // Add the dependencies to the parent operator list so they are
  14830. // resolved before sub operator list is executed synchronously.
  14831. operatorList.addDependencies(tilingOpList.dependencies);
  14832. operatorList.addOp(fn, getTilingPatternIR({
  14833. fnArray: tilingOpList.fnArray,
  14834. argsArray: tilingOpList.argsArray
  14835. }, patternDict, args));
  14836. });
  14837. },
  14838. handleSetFont:
  14839. function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,
  14840. operatorList, state) {
  14841. // TODO(mack): Not needed?
  14842. var fontName;
  14843. if (fontArgs) {
  14844. fontArgs = fontArgs.slice();
  14845. fontName = fontArgs[0].name;
  14846. }
  14847. var self = this;
  14848. return this.loadFont(fontName, fontRef, this.xref, resources,
  14849. operatorList).then(function (font) {
  14850. state.font = font;
  14851. var loadedName = font.loadedName;
  14852. if (!font.sent) {
  14853. var fontData = font.translated.exportData();
  14854. self.handler.send('commonobj', [
  14855. loadedName,
  14856. 'Font',
  14857. fontData
  14858. ]);
  14859. font.sent = true;
  14860. }
  14861. return loadedName;
  14862. });
  14863. },
  14864. handleText: function PartialEvaluator_handleText(chars, state) {
  14865. var font = state.font.translated;
  14866. var glyphs = font.charsToGlyphs(chars);
  14867. var isAddToPathSet = !!(state.textRenderingMode &
  14868. TextRenderingMode.ADD_TO_PATH_FLAG);
  14869. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  14870. var buildPath = function (fontChar) {
  14871. if (!font.renderer.hasBuiltPath(fontChar)) {
  14872. var path = font.renderer.getPathJs(fontChar);
  14873. this.handler.send('commonobj', [
  14874. font.loadedName + '_path_' + fontChar,
  14875. 'FontPath',
  14876. path
  14877. ]);
  14878. }
  14879. }.bind(this);
  14880. for (var i = 0, ii = glyphs.length; i < ii; i++) {
  14881. var glyph = glyphs[i];
  14882. if (glyph === null) {
  14883. continue;
  14884. }
  14885. buildPath(glyph.fontChar);
  14886. // If the glyph has an accent we need to build a path for its
  14887. // fontChar too, otherwise CanvasGraphics_paintChar will fail.
  14888. var accent = glyph.accent;
  14889. if (accent && accent.fontChar) {
  14890. buildPath(accent.fontChar);
  14891. }
  14892. }
  14893. }
  14894. return glyphs;
  14895. },
  14896. setGState: function PartialEvaluator_setGState(resources, gState,
  14897. operatorList, xref,
  14898. stateManager) {
  14899. // TODO(mack): This should be rewritten so that this function returns
  14900. // what should be added to the queue during each iteration
  14901. function setGStateForKey(gStateObj, key, value) {
  14902. switch (key) {
  14903. case 'Type':
  14904. break;
  14905. case 'LW':
  14906. case 'LC':
  14907. case 'LJ':
  14908. case 'ML':
  14909. case 'D':
  14910. case 'RI':
  14911. case 'FL':
  14912. case 'CA':
  14913. case 'ca':
  14914. gStateObj.push([key, value]);
  14915. break;
  14916. case 'Font':
  14917. promise = promise.then(function () {
  14918. return self.handleSetFont(resources, null, value[0],
  14919. operatorList, stateManager.state).
  14920. then(function (loadedName) {
  14921. operatorList.addDependency(loadedName);
  14922. gStateObj.push([key, [loadedName, value[1]]]);
  14923. });
  14924. });
  14925. break;
  14926. case 'BM':
  14927. gStateObj.push([key, value]);
  14928. break;
  14929. case 'SMask':
  14930. if (isName(value) && value.name === 'None') {
  14931. gStateObj.push([key, false]);
  14932. break;
  14933. }
  14934. var dict = xref.fetchIfRef(value);
  14935. if (isDict(dict)) {
  14936. promise = promise.then(function () {
  14937. return self.handleSMask(dict, resources, operatorList,
  14938. stateManager);
  14939. });
  14940. gStateObj.push([key, true]);
  14941. } else {
  14942. warn('Unsupported SMask type');
  14943. }
  14944. break;
  14945. // Only generate info log messages for the following since
  14946. // they are unlikey to have a big impact on the rendering.
  14947. case 'OP':
  14948. case 'op':
  14949. case 'OPM':
  14950. case 'BG':
  14951. case 'BG2':
  14952. case 'UCR':
  14953. case 'UCR2':
  14954. case 'TR':
  14955. case 'TR2':
  14956. case 'HT':
  14957. case 'SM':
  14958. case 'SA':
  14959. case 'AIS':
  14960. case 'TK':
  14961. // TODO implement these operators.
  14962. info('graphic state operator ' + key);
  14963. break;
  14964. default:
  14965. info('Unknown graphic state operator ' + key);
  14966. break;
  14967. }
  14968. }
  14969. // This array holds the converted/processed state data.
  14970. var gStateObj = [];
  14971. var gStateMap = gState.map;
  14972. var self = this;
  14973. var promise = Promise.resolve();
  14974. for (var key in gStateMap) {
  14975. var value = gStateMap[key];
  14976. setGStateForKey(gStateObj, key, value);
  14977. }
  14978. return promise.then(function () {
  14979. operatorList.addOp(OPS.setGState, [gStateObj]);
  14980. });
  14981. },
  14982. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  14983. resources,
  14984. parentOperatorList) {
  14985. function errorFont() {
  14986. return Promise.resolve({
  14987. translated: new ErrorFont('Font ' + fontName + ' is not available'),
  14988. loadedName: 'g_font_error'
  14989. });
  14990. }
  14991. var fontRef;
  14992. if (font) { // Loading by ref.
  14993. assert(isRef(font));
  14994. fontRef = font;
  14995. } else { // Loading by name.
  14996. var fontRes = resources.get('Font');
  14997. if (fontRes) {
  14998. fontRef = fontRes.getRaw(fontName);
  14999. } else {
  15000. warn('fontRes not available');
  15001. return errorFont();
  15002. }
  15003. }
  15004. if (this.fontCache.has(fontRef)) {
  15005. return this.fontCache.get(fontRef);
  15006. }
  15007. font = xref.fetchIfRef(fontRef);
  15008. if (!isDict(font)) {
  15009. return errorFont();
  15010. }
  15011. var fontCapability = createPromiseCapability();
  15012. var preEvaluatedFont = this.preEvaluateFont(font, xref);
  15013. var descriptor = preEvaluatedFont.descriptor;
  15014. var fontID = fontRef.num + '_' + fontRef.gen;
  15015. if (isDict(descriptor)) {
  15016. if (!descriptor.fontAliases) {
  15017. descriptor.fontAliases = Object.create(null);
  15018. }
  15019. var fontAliases = descriptor.fontAliases;
  15020. var hash = preEvaluatedFont.hash;
  15021. if (fontAliases[hash]) {
  15022. var aliasFontRef = fontAliases[hash].aliasRef;
  15023. if (aliasFontRef && this.fontCache.has(aliasFontRef)) {
  15024. this.fontCache.putAlias(fontRef, aliasFontRef);
  15025. var cachedFont = this.fontCache.get(fontRef);
  15026. return cachedFont;
  15027. }
  15028. }
  15029. if (!fontAliases[hash]) {
  15030. fontAliases[hash] = {
  15031. fontID: Font.getFontID()
  15032. };
  15033. }
  15034. fontAliases[hash].aliasRef = fontRef;
  15035. fontID = fontAliases[hash].fontID;
  15036. }
  15037. // Workaround for bad PDF generators that don't reference fonts
  15038. // properly, i.e. by not using an object identifier.
  15039. // Check if the fontRef is a Dict (as opposed to a standard object),
  15040. // in which case we don't cache the font and instead reference it by
  15041. // fontName in font.loadedName below.
  15042. var fontRefIsDict = isDict(fontRef);
  15043. if (!fontRefIsDict) {
  15044. this.fontCache.put(fontRef, fontCapability.promise);
  15045. }
  15046. // Keep track of each font we translated so the caller can
  15047. // load them asynchronously before calling display on a page.
  15048. font.loadedName = 'g_font_' + (fontRefIsDict ?
  15049. fontName.replace(/\W/g, '') : fontID);
  15050. if (!font.translated) {
  15051. var translated;
  15052. try {
  15053. translated = this.translateFont(preEvaluatedFont, xref);
  15054. } catch (e) {
  15055. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  15056. translated = new ErrorFont(e instanceof Error ? e.message : e);
  15057. }
  15058. font.translated = translated;
  15059. }
  15060. var loadCharProcsPromise = Promise.resolve();
  15061. if (font.translated.loadCharProcs) {
  15062. var charProcs = font.get('CharProcs').getAll();
  15063. var fontResources = (font.get('Resources') || resources);
  15064. var charProcKeys = Object.keys(charProcs);
  15065. var charProcOperatorList = {};
  15066. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  15067. loadCharProcsPromise = loadCharProcsPromise.then(function (key) {
  15068. var glyphStream = charProcs[key];
  15069. var operatorList = new OperatorList();
  15070. return this.getOperatorList(glyphStream, fontResources,
  15071. operatorList).
  15072. then(function () {
  15073. charProcOperatorList[key] = operatorList.getIR();
  15074. // Add the dependencies to the parent operator list so they are
  15075. // resolved before sub operator list is executed synchronously.
  15076. if (parentOperatorList) {
  15077. parentOperatorList.addDependencies(operatorList.dependencies);
  15078. }
  15079. });
  15080. }.bind(this, charProcKeys[i]));
  15081. }
  15082. loadCharProcsPromise = loadCharProcsPromise.then(function () {
  15083. font.translated.charProcOperatorList = charProcOperatorList;
  15084. });
  15085. }
  15086. return loadCharProcsPromise.then(function () {
  15087. font.loaded = true;
  15088. fontCapability.resolve(font);
  15089. return fontCapability.promise;
  15090. }, fontCapability.reject);
  15091. },
  15092. buildPath: function PartialEvaluator_buildPath(operatorList, fn, args) {
  15093. var lastIndex = operatorList.length - 1;
  15094. if (lastIndex < 0 ||
  15095. operatorList.fnArray[lastIndex] !== OPS.constructPath) {
  15096. operatorList.addOp(OPS.constructPath, [[fn], args]);
  15097. } else {
  15098. var opArgs = operatorList.argsArray[lastIndex];
  15099. opArgs[0].push(fn);
  15100. Array.prototype.push.apply(opArgs[1], args);
  15101. }
  15102. },
  15103. getOperatorList: function PartialEvaluator_getOperatorList(stream,
  15104. resources,
  15105. operatorList,
  15106. initialState) {
  15107. var self = this;
  15108. var xref = this.xref;
  15109. var imageCache = {};
  15110. assert(operatorList);
  15111. resources = (resources || Dict.empty);
  15112. var xobjs = (resources.get('XObject') || Dict.empty);
  15113. var patterns = (resources.get('Pattern') || Dict.empty);
  15114. var stateManager = new StateManager(initialState || new EvalState());
  15115. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15116. var shading;
  15117. var timeSlotManager = new TimeSlotManager();
  15118. return new Promise(function next(resolve, reject) {
  15119. timeSlotManager.reset();
  15120. var stop, operation, i, ii;
  15121. while (!(stop = timeSlotManager.check()) &&
  15122. (operation = preprocessor.read())) {
  15123. var args = operation.args;
  15124. var fn = operation.fn;
  15125. switch (fn | 0) {
  15126. case OPS.setStrokeColorN:
  15127. case OPS.setFillColorN:
  15128. if (args[args.length - 1].code) {
  15129. break;
  15130. }
  15131. // compile tiling patterns
  15132. var patternName = args[args.length - 1];
  15133. // SCN/scn applies patterns along with normal colors
  15134. var pattern;
  15135. if (isName(patternName) &&
  15136. (pattern = patterns.get(patternName.name))) {
  15137. var dict = (isStream(pattern) ? pattern.dict : pattern);
  15138. var typeNum = dict.get('PatternType');
  15139. if (typeNum == TILING_PATTERN) {
  15140. return self.handleTilingType(fn, args, resources, pattern,
  15141. dict, operatorList).then(
  15142. function() {
  15143. next(resolve, reject);
  15144. }, reject);
  15145. } else if (typeNum == SHADING_PATTERN) {
  15146. shading = dict.get('Shading');
  15147. var matrix = dict.get('Matrix');
  15148. pattern = Pattern.parseShading(shading, matrix, xref,
  15149. resources);
  15150. args = pattern.getIR();
  15151. } else {
  15152. error('Unknown PatternType ' + typeNum);
  15153. }
  15154. }
  15155. break;
  15156. case OPS.paintXObject:
  15157. if (args[0].code) {
  15158. break;
  15159. }
  15160. // eagerly compile XForm objects
  15161. var name = args[0].name;
  15162. if (imageCache.key === name) {
  15163. operatorList.addOp(imageCache.fn, imageCache.args);
  15164. args = [];
  15165. continue;
  15166. }
  15167. var xobj = xobjs.get(name);
  15168. if (xobj) {
  15169. assert(isStream(xobj), 'XObject should be a stream');
  15170. var type = xobj.dict.get('Subtype');
  15171. assert(isName(type),
  15172. 'XObject should have a Name subtype');
  15173. if ('Form' == type.name) {
  15174. stateManager.save();
  15175. return self.buildFormXObject(resources, xobj, null,
  15176. operatorList,
  15177. stateManager.state.clone()).
  15178. then(function () {
  15179. stateManager.restore();
  15180. next(resolve, reject);
  15181. }, reject);
  15182. } else if ('Image' == type.name) {
  15183. self.buildPaintImageXObject(resources, xobj, false,
  15184. operatorList, name, imageCache);
  15185. args = [];
  15186. continue;
  15187. } else {
  15188. error('Unhandled XObject subtype ' + type.name);
  15189. }
  15190. }
  15191. break;
  15192. case OPS.setFont:
  15193. var fontSize = args[1];
  15194. // eagerly collect all fonts
  15195. return self.handleSetFont(resources, args, null,
  15196. operatorList, stateManager.state).
  15197. then(function (loadedName) {
  15198. operatorList.addDependency(loadedName);
  15199. operatorList.addOp(OPS.setFont, [loadedName, fontSize]);
  15200. next(resolve, reject);
  15201. }, reject);
  15202. case OPS.endInlineImage:
  15203. var cacheKey = args[0].cacheKey;
  15204. if (cacheKey && imageCache.key === cacheKey) {
  15205. operatorList.addOp(imageCache.fn, imageCache.args);
  15206. args = [];
  15207. continue;
  15208. }
  15209. self.buildPaintImageXObject(resources, args[0], true,
  15210. operatorList, cacheKey, imageCache);
  15211. args = [];
  15212. continue;
  15213. case OPS.showText:
  15214. args[0] = self.handleText(args[0], stateManager.state);
  15215. break;
  15216. case OPS.showSpacedText:
  15217. var arr = args[0];
  15218. var arrLength = arr.length;
  15219. for (i = 0; i < arrLength; ++i) {
  15220. if (isString(arr[i])) {
  15221. arr[i] = self.handleText(arr[i], stateManager.state);
  15222. }
  15223. }
  15224. break;
  15225. case OPS.nextLineShowText:
  15226. args[0] = self.handleText(args[0], stateManager.state);
  15227. break;
  15228. case OPS.nextLineSetSpacingShowText:
  15229. args[2] = self.handleText(args[2], stateManager.state);
  15230. break;
  15231. case OPS.setTextRenderingMode:
  15232. stateManager.state.textRenderingMode = args[0];
  15233. break;
  15234. // Parse the ColorSpace data to a raw format.
  15235. case OPS.setFillColorSpace:
  15236. case OPS.setStrokeColorSpace:
  15237. args = [ColorSpace.parseToIR(args[0], xref, resources)];
  15238. break;
  15239. case OPS.shadingFill:
  15240. var shadingRes = resources.get('Shading');
  15241. if (!shadingRes) {
  15242. error('No shading resource found');
  15243. }
  15244. shading = shadingRes.get(args[0].name);
  15245. if (!shading) {
  15246. error('No shading object found');
  15247. }
  15248. var shadingFill = Pattern.parseShading(shading, null, xref,
  15249. resources);
  15250. var patternIR = shadingFill.getIR();
  15251. args = [patternIR];
  15252. fn = OPS.shadingFill;
  15253. break;
  15254. case OPS.setGState:
  15255. var dictName = args[0];
  15256. var extGState = resources.get('ExtGState');
  15257. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15258. break;
  15259. }
  15260. var gState = extGState.get(dictName.name);
  15261. return self.setGState(resources, gState, operatorList, xref,
  15262. stateManager).then(function() {
  15263. next(resolve, reject);
  15264. }, reject);
  15265. case OPS.moveTo:
  15266. case OPS.lineTo:
  15267. case OPS.curveTo:
  15268. case OPS.curveTo2:
  15269. case OPS.curveTo3:
  15270. case OPS.closePath:
  15271. self.buildPath(operatorList, fn, args);
  15272. continue;
  15273. }
  15274. operatorList.addOp(fn, args);
  15275. }
  15276. if (stop) {
  15277. deferred.then(function () {
  15278. next(resolve, reject);
  15279. });
  15280. return;
  15281. }
  15282. // Some PDFs don't close all restores inside object/form.
  15283. // Closing those for them.
  15284. for (i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  15285. operatorList.addOp(OPS.restore, []);
  15286. }
  15287. resolve();
  15288. });
  15289. },
  15290. getTextContent: function PartialEvaluator_getTextContent(stream, resources,
  15291. stateManager) {
  15292. stateManager = (stateManager || new StateManager(new TextState()));
  15293. var textContent = {
  15294. items: [],
  15295. styles: Object.create(null)
  15296. };
  15297. var bidiTexts = textContent.items;
  15298. var SPACE_FACTOR = 0.35;
  15299. var MULTI_SPACE_FACTOR = 1.5;
  15300. var self = this;
  15301. var xref = this.xref;
  15302. resources = (xref.fetchIfRef(resources) || Dict.empty);
  15303. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  15304. var xobjs = null;
  15305. var xobjsCache = {};
  15306. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15307. var operation;
  15308. var textState;
  15309. function newTextChunk() {
  15310. var font = textState.font;
  15311. if (!(font.loadedName in textContent.styles)) {
  15312. textContent.styles[font.loadedName] = {
  15313. fontFamily: font.fallbackName,
  15314. ascent: font.ascent,
  15315. descent: font.descent,
  15316. vertical: font.vertical
  15317. };
  15318. }
  15319. return {
  15320. str: '',
  15321. dir: null,
  15322. width: 0,
  15323. height: 0,
  15324. transform: null,
  15325. fontName: font.loadedName
  15326. };
  15327. }
  15328. function runBidi(textChunk) {
  15329. var bidiResult = PDFJS.bidi(textChunk.str, -1, textState.font.vertical);
  15330. textChunk.str = bidiResult.str;
  15331. textChunk.dir = bidiResult.dir;
  15332. return textChunk;
  15333. }
  15334. function handleSetFont(fontName, fontRef) {
  15335. return self.loadFont(fontName, fontRef, xref, resources, null).
  15336. then(function (font) {
  15337. var fontTranslated = textState.font = font.translated;
  15338. textState.fontMatrix = fontTranslated.fontMatrix ?
  15339. fontTranslated.fontMatrix :
  15340. FONT_IDENTITY_MATRIX;
  15341. });
  15342. }
  15343. function buildTextGeometry(chars, textChunk) {
  15344. var font = textState.font;
  15345. textChunk = textChunk || newTextChunk();
  15346. if (!textChunk.transform) {
  15347. // 9.4.4 Text Space Details
  15348. var tsm = [textState.fontSize * textState.textHScale, 0,
  15349. 0, textState.fontSize,
  15350. 0, textState.textRise];
  15351. var trm = textChunk.transform = Util.transform(textState.ctm,
  15352. Util.transform(textState.textMatrix, tsm));
  15353. if (!font.vertical) {
  15354. textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);
  15355. } else {
  15356. textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);
  15357. }
  15358. }
  15359. var width = 0;
  15360. var height = 0;
  15361. var glyphs = font.charsToGlyphs(chars);
  15362. var defaultVMetrics = font.defaultVMetrics;
  15363. for (var i = 0; i < glyphs.length; i++) {
  15364. var glyph = glyphs[i];
  15365. if (!glyph) { // Previous glyph was a space.
  15366. width += textState.wordSpacing * textState.textHScale;
  15367. continue;
  15368. }
  15369. var vMetricX = null;
  15370. var vMetricY = null;
  15371. var glyphWidth = null;
  15372. if (font.vertical) {
  15373. if (glyph.vmetric) {
  15374. glyphWidth = glyph.vmetric[0];
  15375. vMetricX = glyph.vmetric[1];
  15376. vMetricY = glyph.vmetric[2];
  15377. } else {
  15378. glyphWidth = glyph.width;
  15379. vMetricX = glyph.width * 0.5;
  15380. vMetricY = defaultVMetrics[2];
  15381. }
  15382. } else {
  15383. glyphWidth = glyph.width;
  15384. }
  15385. var glyphUnicode = glyph.unicode;
  15386. if (glyphUnicode in NormalizedUnicodes) {
  15387. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  15388. }
  15389. glyphUnicode = reverseIfRtl(glyphUnicode);
  15390. // The following will calculate the x and y of the individual glyphs.
  15391. // if (font.vertical) {
  15392. // tsm[4] -= vMetricX * Math.abs(textState.fontSize) *
  15393. // textState.fontMatrix[0];
  15394. // tsm[5] -= vMetricY * textState.fontSize *
  15395. // textState.fontMatrix[0];
  15396. // }
  15397. // var trm = Util.transform(textState.textMatrix, tsm);
  15398. // var pt = Util.applyTransform([trm[4], trm[5]], textState.ctm);
  15399. // var x = pt[0];
  15400. // var y = pt[1];
  15401. var tx = 0;
  15402. var ty = 0;
  15403. if (!font.vertical) {
  15404. var w0 = glyphWidth * textState.fontMatrix[0];
  15405. tx = (w0 * textState.fontSize + textState.charSpacing) *
  15406. textState.textHScale;
  15407. width += tx;
  15408. } else {
  15409. var w1 = glyphWidth * textState.fontMatrix[0];
  15410. ty = w1 * textState.fontSize + textState.charSpacing;
  15411. height += ty;
  15412. }
  15413. textState.translateTextMatrix(tx, ty);
  15414. textChunk.str += glyphUnicode;
  15415. }
  15416. var a = textState.textLineMatrix[0];
  15417. var b = textState.textLineMatrix[1];
  15418. var scaleLineX = Math.sqrt(a * a + b * b);
  15419. a = textState.ctm[0];
  15420. b = textState.ctm[1];
  15421. var scaleCtmX = Math.sqrt(a * a + b * b);
  15422. if (!font.vertical) {
  15423. textChunk.width += width * scaleCtmX * scaleLineX;
  15424. } else {
  15425. textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);
  15426. }
  15427. return textChunk;
  15428. }
  15429. var timeSlotManager = new TimeSlotManager();
  15430. return new Promise(function next(resolve, reject) {
  15431. timeSlotManager.reset();
  15432. var stop;
  15433. while (!(stop = timeSlotManager.check()) &&
  15434. (operation = preprocessor.read())) {
  15435. textState = stateManager.state;
  15436. var fn = operation.fn;
  15437. var args = operation.args;
  15438. switch (fn | 0) {
  15439. case OPS.setFont:
  15440. textState.fontSize = args[1];
  15441. return handleSetFont(args[0].name).then(function() {
  15442. next(resolve, reject);
  15443. }, reject);
  15444. case OPS.setTextRise:
  15445. textState.textRise = args[0];
  15446. break;
  15447. case OPS.setHScale:
  15448. textState.textHScale = args[0] / 100;
  15449. break;
  15450. case OPS.setLeading:
  15451. textState.leading = args[0];
  15452. break;
  15453. case OPS.moveText:
  15454. textState.translateTextLineMatrix(args[0], args[1]);
  15455. textState.textMatrix = textState.textLineMatrix.slice();
  15456. break;
  15457. case OPS.setLeadingMoveText:
  15458. textState.leading = -args[1];
  15459. textState.translateTextLineMatrix(args[0], args[1]);
  15460. textState.textMatrix = textState.textLineMatrix.slice();
  15461. break;
  15462. case OPS.nextLine:
  15463. textState.carriageReturn();
  15464. break;
  15465. case OPS.setTextMatrix:
  15466. textState.setTextMatrix(args[0], args[1], args[2], args[3],
  15467. args[4], args[5]);
  15468. textState.setTextLineMatrix(args[0], args[1], args[2], args[3],
  15469. args[4], args[5]);
  15470. break;
  15471. case OPS.setCharSpacing:
  15472. textState.charSpacing = args[0];
  15473. break;
  15474. case OPS.setWordSpacing:
  15475. textState.wordSpacing = args[0];
  15476. break;
  15477. case OPS.beginText:
  15478. textState.textMatrix = IDENTITY_MATRIX.slice();
  15479. textState.textLineMatrix = IDENTITY_MATRIX.slice();
  15480. break;
  15481. case OPS.showSpacedText:
  15482. var items = args[0];
  15483. var textChunk = newTextChunk();
  15484. var offset;
  15485. for (var j = 0, jj = items.length; j < jj; j++) {
  15486. if (typeof items[j] === 'string') {
  15487. buildTextGeometry(items[j], textChunk);
  15488. } else {
  15489. var val = items[j] / 1000;
  15490. if (!textState.font.vertical) {
  15491. offset = -val * textState.fontSize * textState.textHScale *
  15492. textState.textMatrix[0];
  15493. textState.translateTextMatrix(offset, 0);
  15494. textChunk.width += offset;
  15495. } else {
  15496. offset = -val * textState.fontSize *
  15497. textState.textMatrix[3];
  15498. textState.translateTextMatrix(0, offset);
  15499. textChunk.height += offset;
  15500. }
  15501. if (items[j] < 0 && textState.font.spaceWidth > 0) {
  15502. var fakeSpaces = -items[j] / textState.font.spaceWidth;
  15503. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  15504. fakeSpaces = Math.round(fakeSpaces);
  15505. while (fakeSpaces--) {
  15506. textChunk.str += ' ';
  15507. }
  15508. } else if (fakeSpaces > SPACE_FACTOR) {
  15509. textChunk.str += ' ';
  15510. }
  15511. }
  15512. }
  15513. }
  15514. bidiTexts.push(runBidi(textChunk));
  15515. break;
  15516. case OPS.showText:
  15517. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15518. break;
  15519. case OPS.nextLineShowText:
  15520. textState.carriageReturn();
  15521. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15522. break;
  15523. case OPS.nextLineSetSpacingShowText:
  15524. textState.wordSpacing = args[0];
  15525. textState.charSpacing = args[1];
  15526. textState.carriageReturn();
  15527. bidiTexts.push(runBidi(buildTextGeometry(args[2])));
  15528. break;
  15529. case OPS.paintXObject:
  15530. if (args[0].code) {
  15531. break;
  15532. }
  15533. if (!xobjs) {
  15534. xobjs = (resources.get('XObject') || Dict.empty);
  15535. }
  15536. var name = args[0].name;
  15537. if (xobjsCache.key === name) {
  15538. if (xobjsCache.texts) {
  15539. Util.concatenateToArray(bidiTexts, xobjsCache.texts.items);
  15540. Util.extendObj(textContent.styles, xobjsCache.texts.styles);
  15541. }
  15542. break;
  15543. }
  15544. var xobj = xobjs.get(name);
  15545. if (!xobj) {
  15546. break;
  15547. }
  15548. assert(isStream(xobj), 'XObject should be a stream');
  15549. var type = xobj.dict.get('Subtype');
  15550. assert(isName(type),
  15551. 'XObject should have a Name subtype');
  15552. if ('Form' !== type.name) {
  15553. xobjsCache.key = name;
  15554. xobjsCache.texts = null;
  15555. break;
  15556. }
  15557. stateManager.save();
  15558. var matrix = xobj.dict.get('Matrix');
  15559. if (isArray(matrix) && matrix.length === 6) {
  15560. stateManager.transform(matrix);
  15561. }
  15562. return self.getTextContent(xobj,
  15563. xobj.dict.get('Resources') || resources, stateManager).
  15564. then(function (formTextContent) {
  15565. Util.concatenateToArray(bidiTexts, formTextContent.items);
  15566. Util.extendObj(textContent.styles, formTextContent.styles);
  15567. stateManager.restore();
  15568. xobjsCache.key = name;
  15569. xobjsCache.texts = formTextContent;
  15570. next(resolve, reject);
  15571. }, reject);
  15572. case OPS.setGState:
  15573. var dictName = args[0];
  15574. var extGState = resources.get('ExtGState');
  15575. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15576. break;
  15577. }
  15578. var gsStateMap = extGState.get(dictName.name);
  15579. var gsStateFont = null;
  15580. for (var key in gsStateMap) {
  15581. if (key === 'Font') {
  15582. assert(!gsStateFont);
  15583. gsStateFont = gsStateMap[key];
  15584. }
  15585. }
  15586. if (gsStateFont) {
  15587. textState.fontSize = gsStateFont[1];
  15588. return handleSetFont(gsStateFont[0]).then(function() {
  15589. next(resolve, reject);
  15590. }, reject);
  15591. }
  15592. break;
  15593. } // switch
  15594. } // while
  15595. if (stop) {
  15596. deferred.then(function () {
  15597. next(resolve, reject);
  15598. });
  15599. return;
  15600. }
  15601. resolve(textContent);
  15602. });
  15603. },
  15604. extractDataStructures: function
  15605. partialEvaluatorExtractDataStructures(dict, baseDict,
  15606. xref, properties) {
  15607. // 9.10.2
  15608. var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode'));
  15609. if (toUnicode) {
  15610. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  15611. }
  15612. if (properties.composite) {
  15613. // CIDSystemInfo helps to match CID to glyphs
  15614. var cidSystemInfo = dict.get('CIDSystemInfo');
  15615. if (isDict(cidSystemInfo)) {
  15616. properties.cidSystemInfo = {
  15617. registry: cidSystemInfo.get('Registry'),
  15618. ordering: cidSystemInfo.get('Ordering'),
  15619. supplement: cidSystemInfo.get('Supplement')
  15620. };
  15621. }
  15622. var cidToGidMap = dict.get('CIDToGIDMap');
  15623. if (isStream(cidToGidMap)) {
  15624. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  15625. }
  15626. }
  15627. // Based on 9.6.6 of the spec the encoding can come from multiple places
  15628. // and depends on the font type. The base encoding and differences are
  15629. // read here, but the encoding that is actually used is chosen during
  15630. // glyph mapping in the font.
  15631. // TODO: Loading the built in encoding in the font would allow the
  15632. // differences to be merged in here not require us to hold on to it.
  15633. var differences = [];
  15634. var baseEncodingName = null;
  15635. var encoding;
  15636. if (dict.has('Encoding')) {
  15637. encoding = dict.get('Encoding');
  15638. if (isDict(encoding)) {
  15639. baseEncodingName = encoding.get('BaseEncoding');
  15640. baseEncodingName = (isName(baseEncodingName) ?
  15641. baseEncodingName.name : null);
  15642. // Load the differences between the base and original
  15643. if (encoding.has('Differences')) {
  15644. var diffEncoding = encoding.get('Differences');
  15645. var index = 0;
  15646. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  15647. var data = diffEncoding[j];
  15648. if (isNum(data)) {
  15649. index = data;
  15650. } else {
  15651. differences[index++] = data.name;
  15652. }
  15653. }
  15654. }
  15655. } else if (isName(encoding)) {
  15656. baseEncodingName = encoding.name;
  15657. } else {
  15658. error('Encoding is not a Name nor a Dict');
  15659. }
  15660. // According to table 114 if the encoding is a named encoding it must be
  15661. // one of these predefined encodings.
  15662. if ((baseEncodingName !== 'MacRomanEncoding' &&
  15663. baseEncodingName !== 'MacExpertEncoding' &&
  15664. baseEncodingName !== 'WinAnsiEncoding')) {
  15665. baseEncodingName = null;
  15666. }
  15667. }
  15668. if (baseEncodingName) {
  15669. properties.defaultEncoding = Encodings[baseEncodingName].slice();
  15670. } else {
  15671. encoding = (properties.type === 'TrueType' ?
  15672. Encodings.WinAnsiEncoding : Encodings.StandardEncoding);
  15673. // The Symbolic attribute can be misused for regular fonts
  15674. // Heuristic: we have to check if the font is a standard one also
  15675. if (!!(properties.flags & FontFlags.Symbolic)) {
  15676. encoding = (!properties.file && /Symbol/i.test(properties.name) ?
  15677. Encodings.SymbolSetEncoding :
  15678. Encodings.MacRomanEncoding);
  15679. }
  15680. properties.defaultEncoding = encoding;
  15681. }
  15682. properties.differences = differences;
  15683. properties.baseEncodingName = baseEncodingName;
  15684. properties.dict = dict;
  15685. },
  15686. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) {
  15687. var cmapObj = toUnicode;
  15688. if (isName(cmapObj)) {
  15689. return CMapFactory.create(cmapObj).map;
  15690. } else if (isStream(cmapObj)) {
  15691. var cmap = CMapFactory.create(cmapObj).map;
  15692. // Convert UTF-16BE
  15693. // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
  15694. // to iterate over all keys.
  15695. cmap.forEach(function(token, i) {
  15696. var str = [];
  15697. for (var k = 0; k < token.length; k += 2) {
  15698. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15699. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  15700. str.push(w1);
  15701. continue;
  15702. }
  15703. k += 2;
  15704. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15705. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  15706. }
  15707. cmap[i] = String.fromCharCode.apply(String, str);
  15708. });
  15709. return cmap;
  15710. }
  15711. return null;
  15712. },
  15713. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  15714. // Extract the encoding from the CIDToGIDMap
  15715. var glyphsData = cidToGidStream.getBytes();
  15716. // Set encoding 0 to later verify the font has an encoding
  15717. var result = [];
  15718. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  15719. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  15720. if (glyphID === 0) {
  15721. continue;
  15722. }
  15723. var code = j >> 1;
  15724. result[code] = glyphID;
  15725. }
  15726. return result;
  15727. },
  15728. extractWidths: function PartialEvaluator_extractWidths(dict, xref,
  15729. descriptor,
  15730. properties) {
  15731. var glyphsWidths = [];
  15732. var defaultWidth = 0;
  15733. var glyphsVMetrics = [];
  15734. var defaultVMetrics;
  15735. var i, ii, j, jj, start, code, widths;
  15736. if (properties.composite) {
  15737. defaultWidth = dict.get('DW') || 1000;
  15738. widths = dict.get('W');
  15739. if (widths) {
  15740. for (i = 0, ii = widths.length; i < ii; i++) {
  15741. start = widths[i++];
  15742. code = xref.fetchIfRef(widths[i]);
  15743. if (isArray(code)) {
  15744. for (j = 0, jj = code.length; j < jj; j++) {
  15745. glyphsWidths[start++] = code[j];
  15746. }
  15747. } else {
  15748. var width = widths[++i];
  15749. for (j = start; j <= code; j++) {
  15750. glyphsWidths[j] = width;
  15751. }
  15752. }
  15753. }
  15754. }
  15755. if (properties.vertical) {
  15756. var vmetrics = (dict.get('DW2') || [880, -1000]);
  15757. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  15758. vmetrics = dict.get('W2');
  15759. if (vmetrics) {
  15760. for (i = 0, ii = vmetrics.length; i < ii; i++) {
  15761. start = vmetrics[i++];
  15762. code = xref.fetchIfRef(vmetrics[i]);
  15763. if (isArray(code)) {
  15764. for (j = 0, jj = code.length; j < jj; j++) {
  15765. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  15766. }
  15767. } else {
  15768. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  15769. for (j = start; j <= code; j++) {
  15770. glyphsVMetrics[j] = vmetric;
  15771. }
  15772. }
  15773. }
  15774. }
  15775. }
  15776. } else {
  15777. var firstChar = properties.firstChar;
  15778. widths = dict.get('Widths');
  15779. if (widths) {
  15780. j = firstChar;
  15781. for (i = 0, ii = widths.length; i < ii; i++) {
  15782. glyphsWidths[j++] = widths[i];
  15783. }
  15784. defaultWidth = (parseFloat(descriptor.get('MissingWidth')) || 0);
  15785. } else {
  15786. // Trying get the BaseFont metrics (see comment above).
  15787. var baseFontName = dict.get('BaseFont');
  15788. if (isName(baseFontName)) {
  15789. var metrics = this.getBaseFontMetrics(baseFontName.name);
  15790. glyphsWidths = this.buildCharCodeToWidth(metrics.widths,
  15791. properties);
  15792. defaultWidth = metrics.defaultWidth;
  15793. }
  15794. }
  15795. }
  15796. // Heuristic: detection of monospace font by checking all non-zero widths
  15797. var isMonospace = true;
  15798. var firstWidth = defaultWidth;
  15799. for (var glyph in glyphsWidths) {
  15800. var glyphWidth = glyphsWidths[glyph];
  15801. if (!glyphWidth) {
  15802. continue;
  15803. }
  15804. if (!firstWidth) {
  15805. firstWidth = glyphWidth;
  15806. continue;
  15807. }
  15808. if (firstWidth != glyphWidth) {
  15809. isMonospace = false;
  15810. break;
  15811. }
  15812. }
  15813. if (isMonospace) {
  15814. properties.flags |= FontFlags.FixedPitch;
  15815. }
  15816. properties.defaultWidth = defaultWidth;
  15817. properties.widths = glyphsWidths;
  15818. properties.defaultVMetrics = defaultVMetrics;
  15819. properties.vmetrics = glyphsVMetrics;
  15820. },
  15821. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  15822. // Simulating descriptor flags attribute
  15823. var fontNameWoStyle = baseFontName.split('-')[0];
  15824. return (fontNameWoStyle in serifFonts) ||
  15825. (fontNameWoStyle.search(/serif/gi) !== -1);
  15826. },
  15827. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  15828. var defaultWidth = 0;
  15829. var widths = [];
  15830. var monospace = false;
  15831. var lookupName = (stdFontMap[name] || name);
  15832. if (!(lookupName in Metrics)) {
  15833. // Use default fonts for looking up font metrics if the passed
  15834. // font is not a base font
  15835. if (this.isSerifFont(name)) {
  15836. lookupName = 'Times-Roman';
  15837. } else {
  15838. lookupName = 'Helvetica';
  15839. }
  15840. }
  15841. var glyphWidths = Metrics[lookupName];
  15842. if (isNum(glyphWidths)) {
  15843. defaultWidth = glyphWidths;
  15844. monospace = true;
  15845. } else {
  15846. widths = glyphWidths;
  15847. }
  15848. return {
  15849. defaultWidth: defaultWidth,
  15850. monospace: monospace,
  15851. widths: widths
  15852. };
  15853. },
  15854. buildCharCodeToWidth:
  15855. function PartialEvaluator_bulildCharCodeToWidth(widthsByGlyphName,
  15856. properties) {
  15857. var widths = Object.create(null);
  15858. var differences = properties.differences;
  15859. var encoding = properties.defaultEncoding;
  15860. for (var charCode = 0; charCode < 256; charCode++) {
  15861. if (charCode in differences &&
  15862. widthsByGlyphName[differences[charCode]]) {
  15863. widths[charCode] = widthsByGlyphName[differences[charCode]];
  15864. continue;
  15865. }
  15866. if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) {
  15867. widths[charCode] = widthsByGlyphName[encoding[charCode]];
  15868. continue;
  15869. }
  15870. }
  15871. return widths;
  15872. },
  15873. preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict, xref) {
  15874. var baseDict = dict;
  15875. var type = dict.get('Subtype');
  15876. assert(isName(type), 'invalid font Subtype');
  15877. var composite = false;
  15878. var uint8array;
  15879. if (type.name == 'Type0') {
  15880. // If font is a composite
  15881. // - get the descendant font
  15882. // - set the type according to the descendant font
  15883. // - get the FontDescriptor from the descendant font
  15884. var df = dict.get('DescendantFonts');
  15885. if (!df) {
  15886. error('Descendant fonts are not specified');
  15887. }
  15888. dict = (isArray(df) ? xref.fetchIfRef(df[0]) : df);
  15889. type = dict.get('Subtype');
  15890. assert(isName(type), 'invalid font Subtype');
  15891. composite = true;
  15892. }
  15893. var descriptor = dict.get('FontDescriptor');
  15894. if (descriptor) {
  15895. var hash = new MurmurHash3_64();
  15896. var encoding = baseDict.getRaw('Encoding');
  15897. if (isName(encoding)) {
  15898. hash.update(encoding.name);
  15899. } else if (isRef(encoding)) {
  15900. hash.update(encoding.num + '_' + encoding.gen);
  15901. }
  15902. var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode');
  15903. if (isStream(toUnicode)) {
  15904. var stream = toUnicode.str || toUnicode;
  15905. uint8array = stream.buffer ?
  15906. new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) :
  15907. new Uint8Array(stream.bytes.buffer,
  15908. stream.start, stream.end - stream.start);
  15909. hash.update(uint8array);
  15910. } else if (isName(toUnicode)) {
  15911. hash.update(toUnicode.name);
  15912. }
  15913. var widths = dict.get('Widths') || baseDict.get('Widths');
  15914. if (widths) {
  15915. uint8array = new Uint8Array(new Uint32Array(widths).buffer);
  15916. hash.update(uint8array);
  15917. }
  15918. }
  15919. return {
  15920. descriptor: descriptor,
  15921. dict: dict,
  15922. baseDict: baseDict,
  15923. composite: composite,
  15924. hash: hash ? hash.hexdigest() : ''
  15925. };
  15926. },
  15927. translateFont: function PartialEvaluator_translateFont(preEvaluatedFont,
  15928. xref) {
  15929. var baseDict = preEvaluatedFont.baseDict;
  15930. var dict = preEvaluatedFont.dict;
  15931. var composite = preEvaluatedFont.composite;
  15932. var descriptor = preEvaluatedFont.descriptor;
  15933. var type = dict.get('Subtype');
  15934. var maxCharIndex = (composite ? 0xFFFF : 0xFF);
  15935. var properties;
  15936. if (!descriptor) {
  15937. if (type.name == 'Type3') {
  15938. // FontDescriptor is only required for Type3 fonts when the document
  15939. // is a tagged pdf. Create a barbebones one to get by.
  15940. descriptor = new Dict(null);
  15941. descriptor.set('FontName', Name.get(type.name));
  15942. } else {
  15943. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  15944. // FontDescriptor was not required.
  15945. // This case is here for compatibility.
  15946. var baseFontName = dict.get('BaseFont');
  15947. if (!isName(baseFontName)) {
  15948. error('Base font is not specified');
  15949. }
  15950. // Using base font name as a font name.
  15951. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  15952. var metrics = this.getBaseFontMetrics(baseFontName);
  15953. // Simulating descriptor flags attribute
  15954. var fontNameWoStyle = baseFontName.split('-')[0];
  15955. var flags =
  15956. (this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  15957. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  15958. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  15959. FontFlags.Nonsymbolic);
  15960. properties = {
  15961. type: type.name,
  15962. name: baseFontName,
  15963. widths: metrics.widths,
  15964. defaultWidth: metrics.defaultWidth,
  15965. flags: flags,
  15966. firstChar: 0,
  15967. lastChar: maxCharIndex
  15968. };
  15969. this.extractDataStructures(dict, dict, xref, properties);
  15970. properties.widths = this.buildCharCodeToWidth(metrics.widths,
  15971. properties);
  15972. return new Font(baseFontName, null, properties);
  15973. }
  15974. }
  15975. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  15976. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  15977. // to ignore this rule when a variant of a standart font is used.
  15978. // TODO Fill the width array depending on which of the base font this is
  15979. // a variant.
  15980. var firstChar = (dict.get('FirstChar') || 0);
  15981. var lastChar = (dict.get('LastChar') || maxCharIndex);
  15982. var fontName = descriptor.get('FontName');
  15983. var baseFont = dict.get('BaseFont');
  15984. // Some bad PDFs have a string as the font name.
  15985. if (isString(fontName)) {
  15986. fontName = Name.get(fontName);
  15987. }
  15988. if (isString(baseFont)) {
  15989. baseFont = Name.get(baseFont);
  15990. }
  15991. if (type.name !== 'Type3') {
  15992. var fontNameStr = fontName && fontName.name;
  15993. var baseFontStr = baseFont && baseFont.name;
  15994. if (fontNameStr !== baseFontStr) {
  15995. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  15996. '" but should be the same as the Font\'s BaseFont "' +
  15997. baseFontStr + '"');
  15998. // Workaround for cases where e.g. fontNameStr = 'Arial' and
  15999. // baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
  16000. if (fontNameStr && baseFontStr &&
  16001. baseFontStr.search(fontNameStr) === 0) {
  16002. fontName = baseFont;
  16003. }
  16004. }
  16005. }
  16006. fontName = (fontName || baseFont);
  16007. assert(isName(fontName), 'invalid font name');
  16008. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  16009. if (fontFile) {
  16010. if (fontFile.dict) {
  16011. var subtype = fontFile.dict.get('Subtype');
  16012. if (subtype) {
  16013. subtype = subtype.name;
  16014. }
  16015. var length1 = fontFile.dict.get('Length1');
  16016. var length2 = fontFile.dict.get('Length2');
  16017. }
  16018. }
  16019. properties = {
  16020. type: type.name,
  16021. name: fontName.name,
  16022. subtype: subtype,
  16023. file: fontFile,
  16024. length1: length1,
  16025. length2: length2,
  16026. loadedName: baseDict.loadedName,
  16027. composite: composite,
  16028. wideChars: composite,
  16029. fixedPitch: false,
  16030. fontMatrix: (dict.get('FontMatrix') || FONT_IDENTITY_MATRIX),
  16031. firstChar: firstChar || 0,
  16032. lastChar: (lastChar || maxCharIndex),
  16033. bbox: descriptor.get('FontBBox'),
  16034. ascent: descriptor.get('Ascent'),
  16035. descent: descriptor.get('Descent'),
  16036. xHeight: descriptor.get('XHeight'),
  16037. capHeight: descriptor.get('CapHeight'),
  16038. flags: descriptor.get('Flags'),
  16039. italicAngle: descriptor.get('ItalicAngle'),
  16040. coded: false
  16041. };
  16042. if (composite) {
  16043. var cidEncoding = baseDict.get('Encoding');
  16044. if (isName(cidEncoding)) {
  16045. properties.cidEncoding = cidEncoding.name;
  16046. }
  16047. properties.cMap = CMapFactory.create(cidEncoding,
  16048. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  16049. properties.vertical = properties.cMap.vertical;
  16050. }
  16051. this.extractDataStructures(dict, baseDict, xref, properties);
  16052. this.extractWidths(dict, xref, descriptor, properties);
  16053. if (type.name === 'Type3') {
  16054. properties.coded = true;
  16055. }
  16056. return new Font(fontName.name, fontFile, properties);
  16057. }
  16058. };
  16059. return PartialEvaluator;
  16060. })();
  16061. var OperatorList = (function OperatorListClosure() {
  16062. var CHUNK_SIZE = 1000;
  16063. var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
  16064. function getTransfers(queue) {
  16065. var transfers = [];
  16066. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  16067. for (var i = 0, ii = queue.length; i < ii; i++) {
  16068. switch (fnArray[i]) {
  16069. case OPS.paintInlineImageXObject:
  16070. case OPS.paintInlineImageXObjectGroup:
  16071. case OPS.paintImageMaskXObject:
  16072. var arg = argsArray[i][0]; // first param in imgData
  16073. if (!arg.cached) {
  16074. transfers.push(arg.data.buffer);
  16075. }
  16076. break;
  16077. }
  16078. }
  16079. return transfers;
  16080. }
  16081. function OperatorList(intent, messageHandler, pageIndex) {
  16082. this.messageHandler = messageHandler;
  16083. this.fnArray = [];
  16084. this.argsArray = [];
  16085. this.dependencies = {};
  16086. this.pageIndex = pageIndex;
  16087. this.intent = intent;
  16088. }
  16089. OperatorList.prototype = {
  16090. get length() {
  16091. return this.argsArray.length;
  16092. },
  16093. addOp: function(fn, args) {
  16094. this.fnArray.push(fn);
  16095. this.argsArray.push(args);
  16096. if (this.messageHandler) {
  16097. if (this.fnArray.length >= CHUNK_SIZE) {
  16098. this.flush();
  16099. } else if (this.fnArray.length >= CHUNK_SIZE_ABOUT &&
  16100. (fn === OPS.restore || fn === OPS.endText)) {
  16101. // heuristic to flush on boundary of restore or endText
  16102. this.flush();
  16103. }
  16104. }
  16105. },
  16106. addDependency: function(dependency) {
  16107. if (dependency in this.dependencies) {
  16108. return;
  16109. }
  16110. this.dependencies[dependency] = true;
  16111. this.addOp(OPS.dependency, [dependency]);
  16112. },
  16113. addDependencies: function(dependencies) {
  16114. for (var key in dependencies) {
  16115. this.addDependency(key);
  16116. }
  16117. },
  16118. addOpList: function(opList) {
  16119. Util.extendObj(this.dependencies, opList.dependencies);
  16120. for (var i = 0, ii = opList.length; i < ii; i++) {
  16121. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  16122. }
  16123. },
  16124. getIR: function() {
  16125. return {
  16126. fnArray: this.fnArray,
  16127. argsArray: this.argsArray,
  16128. length: this.length
  16129. };
  16130. },
  16131. flush: function(lastChunk) {
  16132. new QueueOptimizer().optimize(this);
  16133. var transfers = getTransfers(this);
  16134. this.messageHandler.send('RenderPageChunk', {
  16135. operatorList: {
  16136. fnArray: this.fnArray,
  16137. argsArray: this.argsArray,
  16138. lastChunk: lastChunk,
  16139. length: this.length
  16140. },
  16141. pageIndex: this.pageIndex,
  16142. intent: this.intent
  16143. }, transfers);
  16144. this.dependencies = {};
  16145. this.fnArray.length = 0;
  16146. this.argsArray.length = 0;
  16147. }
  16148. };
  16149. return OperatorList;
  16150. })();
  16151. var StateManager = (function StateManagerClosure() {
  16152. function StateManager(initialState) {
  16153. this.state = initialState;
  16154. this.stateStack = [];
  16155. }
  16156. StateManager.prototype = {
  16157. save: function () {
  16158. var old = this.state;
  16159. this.stateStack.push(this.state);
  16160. this.state = old.clone();
  16161. },
  16162. restore: function () {
  16163. var prev = this.stateStack.pop();
  16164. if (prev) {
  16165. this.state = prev;
  16166. }
  16167. },
  16168. transform: function (args) {
  16169. this.state.ctm = Util.transform(this.state.ctm, args);
  16170. }
  16171. };
  16172. return StateManager;
  16173. })();
  16174. var TextState = (function TextStateClosure() {
  16175. function TextState() {
  16176. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16177. this.fontSize = 0;
  16178. this.font = null;
  16179. this.fontMatrix = FONT_IDENTITY_MATRIX;
  16180. this.textMatrix = IDENTITY_MATRIX.slice();
  16181. this.textLineMatrix = IDENTITY_MATRIX.slice();
  16182. this.charSpacing = 0;
  16183. this.wordSpacing = 0;
  16184. this.leading = 0;
  16185. this.textHScale = 1;
  16186. this.textRise = 0;
  16187. }
  16188. TextState.prototype = {
  16189. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16190. var m = this.textMatrix;
  16191. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16192. },
  16193. setTextLineMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16194. var m = this.textLineMatrix;
  16195. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16196. },
  16197. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  16198. var m = this.textMatrix;
  16199. m[4] = m[0] * x + m[2] * y + m[4];
  16200. m[5] = m[1] * x + m[3] * y + m[5];
  16201. },
  16202. translateTextLineMatrix: function TextState_translateTextMatrix(x, y) {
  16203. var m = this.textLineMatrix;
  16204. m[4] = m[0] * x + m[2] * y + m[4];
  16205. m[5] = m[1] * x + m[3] * y + m[5];
  16206. },
  16207. calcRenderMatrix: function TextState_calcRendeMatrix(ctm) {
  16208. // 9.4.4 Text Space Details
  16209. var tsm = [this.fontSize * this.textHScale, 0,
  16210. 0, this.fontSize,
  16211. 0, this.textRise];
  16212. return Util.transform(ctm, Util.transform(this.textMatrix, tsm));
  16213. },
  16214. carriageReturn: function TextState_carriageReturn() {
  16215. this.translateTextLineMatrix(0, -this.leading);
  16216. this.textMatrix = this.textLineMatrix.slice();
  16217. },
  16218. clone: function TextState_clone() {
  16219. var clone = Object.create(this);
  16220. clone.textMatrix = this.textMatrix.slice();
  16221. clone.textLineMatrix = this.textLineMatrix.slice();
  16222. clone.fontMatrix = this.fontMatrix.slice();
  16223. return clone;
  16224. }
  16225. };
  16226. return TextState;
  16227. })();
  16228. var EvalState = (function EvalStateClosure() {
  16229. function EvalState() {
  16230. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16231. this.font = null;
  16232. this.textRenderingMode = TextRenderingMode.FILL;
  16233. }
  16234. EvalState.prototype = {
  16235. clone: function CanvasExtraState_clone() {
  16236. return Object.create(this);
  16237. },
  16238. };
  16239. return EvalState;
  16240. })();
  16241. var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
  16242. // Specifies properties for each command
  16243. //
  16244. // If variableArgs === true: [0, `numArgs`] expected
  16245. // If variableArgs === false: exactly `numArgs` expected
  16246. var OP_MAP = {
  16247. // Graphic state
  16248. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  16249. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  16250. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  16251. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  16252. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  16253. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  16254. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  16255. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  16256. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  16257. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  16258. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  16259. // Path
  16260. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  16261. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  16262. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  16263. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  16264. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  16265. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  16266. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  16267. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  16268. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  16269. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16270. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16271. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  16272. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  16273. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  16274. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  16275. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  16276. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  16277. // Clipping
  16278. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  16279. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  16280. // Text
  16281. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  16282. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  16283. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  16284. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  16285. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  16286. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  16287. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  16288. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  16289. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  16290. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  16291. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  16292. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  16293. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  16294. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  16295. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  16296. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  16297. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  16298. variableArgs: false },
  16299. // Type3 fonts
  16300. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  16301. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  16302. // Color
  16303. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  16304. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  16305. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  16306. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  16307. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  16308. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  16309. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  16310. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  16311. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  16312. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  16313. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  16314. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  16315. // Shading
  16316. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  16317. // Images
  16318. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  16319. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  16320. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  16321. // XObjects
  16322. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  16323. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  16324. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  16325. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  16326. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  16327. variableArgs: false },
  16328. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  16329. // Compatibility
  16330. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  16331. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  16332. // (reserved partial commands for the lexer)
  16333. BM: null,
  16334. BD: null,
  16335. 'true': null,
  16336. fa: null,
  16337. fal: null,
  16338. fals: null,
  16339. 'false': null,
  16340. nu: null,
  16341. nul: null,
  16342. 'null': null
  16343. };
  16344. function EvaluatorPreprocessor(stream, xref, stateManager) {
  16345. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  16346. // dictionary
  16347. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  16348. this.stateManager = stateManager;
  16349. this.nonProcessedArgs = [];
  16350. }
  16351. EvaluatorPreprocessor.prototype = {
  16352. get savedStatesDepth() {
  16353. return this.stateManager.stateStack.length;
  16354. },
  16355. read: function EvaluatorPreprocessor_read() {
  16356. var args = [];
  16357. while (true) {
  16358. var obj = this.parser.getObj();
  16359. if (isEOF(obj)) {
  16360. return null; // no more commands
  16361. }
  16362. if (!isCmd(obj)) {
  16363. // argument
  16364. if (obj !== null && obj !== undefined) {
  16365. args.push((obj instanceof Dict ? obj.getAll() : obj));
  16366. assert(args.length <= 33, 'Too many arguments');
  16367. }
  16368. continue;
  16369. }
  16370. var cmd = obj.cmd;
  16371. // Check that the command is valid
  16372. var opSpec = OP_MAP[cmd];
  16373. if (!opSpec) {
  16374. warn('Unknown command "' + cmd + '"');
  16375. continue;
  16376. }
  16377. var fn = opSpec.id;
  16378. // Some post script commands can be nested, e.g. /F2 /GS2 gs 5.711 Tf
  16379. if (!opSpec.variableArgs && args.length !== opSpec.numArgs) {
  16380. while (args.length > opSpec.numArgs) {
  16381. this.nonProcessedArgs.push(args.shift());
  16382. }
  16383. while (args.length < opSpec.numArgs && this.nonProcessedArgs.length) {
  16384. args.unshift(this.nonProcessedArgs.pop());
  16385. }
  16386. }
  16387. // Validate the number of arguments for the command
  16388. if (opSpec.variableArgs) {
  16389. if (args.length > opSpec.numArgs) {
  16390. info('Command ' + fn + ': expected [0,' + opSpec.numArgs +
  16391. '] args, but received ' + args.length + ' args');
  16392. }
  16393. } else {
  16394. if (args.length < opSpec.numArgs) {
  16395. // If we receive too few args, it's not possible to possible
  16396. // to execute the command, so skip the command
  16397. info('Command ' + fn + ': because expected ' +
  16398. opSpec.numArgs + ' args, but received ' + args.length +
  16399. ' args; skipping');
  16400. args = [];
  16401. continue;
  16402. } else if (args.length > opSpec.numArgs) {
  16403. info('Command ' + fn + ': expected ' + opSpec.numArgs +
  16404. ' args, but received ' + args.length + ' args');
  16405. }
  16406. }
  16407. // TODO figure out how to type-check vararg functions
  16408. this.preprocessCommand(fn, args);
  16409. return { fn: fn, args: args };
  16410. }
  16411. },
  16412. preprocessCommand:
  16413. function EvaluatorPreprocessor_preprocessCommand(fn, args) {
  16414. switch (fn | 0) {
  16415. case OPS.save:
  16416. this.stateManager.save();
  16417. break;
  16418. case OPS.restore:
  16419. this.stateManager.restore();
  16420. break;
  16421. case OPS.transform:
  16422. this.stateManager.transform(args);
  16423. break;
  16424. }
  16425. }
  16426. };
  16427. return EvaluatorPreprocessor;
  16428. })();
  16429. var QueueOptimizer = (function QueueOptimizerClosure() {
  16430. function addState(parentState, pattern, fn) {
  16431. var state = parentState;
  16432. for (var i = 0, ii = pattern.length - 1; i < ii; i++) {
  16433. var item = pattern[i];
  16434. state = (state[item] || (state[item] = []));
  16435. }
  16436. state[pattern[pattern.length - 1]] = fn;
  16437. }
  16438. function handlePaintSolidColorImageMask(index, count, fnArray, argsArray) {
  16439. // Handles special case of mainly LaTeX documents which
  16440. // use image masks to draw lines with the current fill style.
  16441. // 'count' groups of (save, transform, paintImageMaskXObject, restore)+
  16442. // have been found at index.
  16443. for (var i = 0; i < count; i++) {
  16444. var arg = argsArray[index + 4 * i + 2];
  16445. var imageMask = arg.length == 1 && arg[0];
  16446. if (imageMask && imageMask.width == 1 && imageMask.height == 1 &&
  16447. (!imageMask.data.length || (imageMask.data.length == 1 &&
  16448. imageMask.data[0] === 0))) {
  16449. fnArray[index + 4 * i + 2] = OPS.paintSolidColorImageMask;
  16450. continue;
  16451. }
  16452. break;
  16453. }
  16454. return count - i;
  16455. }
  16456. var InitialState = [];
  16457. addState(InitialState,
  16458. [OPS.save, OPS.transform, OPS.paintInlineImageXObject, OPS.restore],
  16459. function foundInlineImageGroup(context) {
  16460. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  16461. // searching for (save, transform, paintInlineImageXObject, restore)+
  16462. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  16463. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  16464. var MAX_WIDTH = 1000;
  16465. var IMAGE_PADDING = 1;
  16466. var fnArray = context.fnArray, argsArray = context.argsArray;
  16467. var j = context.currentOperation - 3, i = j + 4;
  16468. var ii = fnArray.length;
  16469. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16470. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  16471. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  16472. context.currentOperation = i - 1;
  16473. return;
  16474. }
  16475. // assuming that heights of those image is too small (~1 pixel)
  16476. // packing as much as possible by lines
  16477. var maxX = 0;
  16478. var map = [], maxLineHeight = 0;
  16479. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  16480. var q;
  16481. for (q = 0; q < count; q++) {
  16482. var transform = argsArray[j + (q << 2) + 1];
  16483. var img = argsArray[j + (q << 2) + 2][0];
  16484. if (currentX + img.width > MAX_WIDTH) {
  16485. // starting new line
  16486. maxX = Math.max(maxX, currentX);
  16487. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  16488. currentX = 0;
  16489. maxLineHeight = 0;
  16490. }
  16491. map.push({
  16492. transform: transform,
  16493. x: currentX, y: currentY,
  16494. w: img.width, h: img.height
  16495. });
  16496. currentX += img.width + 2 * IMAGE_PADDING;
  16497. maxLineHeight = Math.max(maxLineHeight, img.height);
  16498. }
  16499. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  16500. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  16501. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  16502. var imgRowSize = imgWidth << 2;
  16503. for (q = 0; q < count; q++) {
  16504. var data = argsArray[j + (q << 2) + 2][0].data;
  16505. // copy image by lines and extends pixels into padding
  16506. var rowSize = map[q].w << 2;
  16507. var dataOffset = 0;
  16508. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  16509. imgData.set(data.subarray(0, rowSize), offset - imgRowSize);
  16510. for (var k = 0, kk = map[q].h; k < kk; k++) {
  16511. imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset);
  16512. dataOffset += rowSize;
  16513. offset += imgRowSize;
  16514. }
  16515. imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset);
  16516. while (offset >= 0) {
  16517. data[offset - 4] = data[offset];
  16518. data[offset - 3] = data[offset + 1];
  16519. data[offset - 2] = data[offset + 2];
  16520. data[offset - 1] = data[offset + 3];
  16521. data[offset + rowSize] = data[offset + rowSize - 4];
  16522. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  16523. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  16524. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  16525. offset -= imgRowSize;
  16526. }
  16527. }
  16528. // replacing queue items
  16529. fnArray.splice(j, count * 4, OPS.paintInlineImageXObjectGroup);
  16530. argsArray.splice(j, count * 4,
  16531. [{ width: imgWidth, height: imgHeight, kind: ImageKind.RGBA_32BPP,
  16532. data: imgData }, map]);
  16533. context.currentOperation = j;
  16534. });
  16535. addState(InitialState,
  16536. [OPS.save, OPS.transform, OPS.paintImageMaskXObject, OPS.restore],
  16537. function foundImageMaskGroup(context) {
  16538. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  16539. // searching for (save, transform, paintImageMaskXObject, restore)+
  16540. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  16541. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  16542. var MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000;
  16543. var fnArray = context.fnArray, argsArray = context.argsArray;
  16544. var j = context.currentOperation - 3, i = j + 4;
  16545. var ii = fnArray.length, q;
  16546. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16547. var count = (i - j) >> 2;
  16548. count = handlePaintSolidColorImageMask(j, count, fnArray, argsArray);
  16549. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  16550. context.currentOperation = i - 1;
  16551. return;
  16552. }
  16553. var isSameImage = false;
  16554. var transformArgs;
  16555. if (argsArray[j + 1][1] === 0 && argsArray[j + 1][2] === 0) {
  16556. i = j + 4;
  16557. isSameImage = true;
  16558. for (q = 1; q < count; q++, i += 4) {
  16559. var prevTransformArgs = argsArray[i - 3];
  16560. transformArgs = argsArray[i + 1];
  16561. if (argsArray[i - 2][0] !== argsArray[i + 2][0] ||
  16562. prevTransformArgs[0] !== transformArgs[0] ||
  16563. prevTransformArgs[1] !== transformArgs[1] ||
  16564. prevTransformArgs[2] !== transformArgs[2] ||
  16565. prevTransformArgs[3] !== transformArgs[3]) {
  16566. if (q < MIN_IMAGES_IN_MASKS_BLOCK) {
  16567. isSameImage = false;
  16568. } else {
  16569. count = q;
  16570. }
  16571. break; // different image or transform
  16572. }
  16573. }
  16574. }
  16575. if (isSameImage) {
  16576. count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK);
  16577. var positions = new Float32Array(count * 2);
  16578. i = j + 1;
  16579. for (q = 0; q < count; q++) {
  16580. transformArgs = argsArray[i];
  16581. positions[(q << 1)] = transformArgs[4];
  16582. positions[(q << 1) + 1] = transformArgs[5];
  16583. i += 4;
  16584. }
  16585. // replacing queue items
  16586. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectRepeat);
  16587. argsArray.splice(j, count * 4, [argsArray[j + 2][0],
  16588. argsArray[j + 1][0], argsArray[j + 1][3], positions]);
  16589. context.currentOperation = j;
  16590. } else {
  16591. count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK);
  16592. var images = [];
  16593. for (q = 0; q < count; q++) {
  16594. transformArgs = argsArray[j + (q << 2) + 1];
  16595. var maskParams = argsArray[j + (q << 2) + 2][0];
  16596. images.push({ data: maskParams.data, width: maskParams.width,
  16597. height: maskParams.height,
  16598. transform: transformArgs });
  16599. }
  16600. // replacing queue items
  16601. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectGroup);
  16602. argsArray.splice(j, count * 4, [images]);
  16603. context.currentOperation = j;
  16604. }
  16605. });
  16606. addState(InitialState,
  16607. [OPS.save, OPS.transform, OPS.paintImageXObject, OPS.restore],
  16608. function (context) {
  16609. var MIN_IMAGES_IN_BLOCK = 3;
  16610. var MAX_IMAGES_IN_BLOCK = 1000;
  16611. var fnArray = context.fnArray, argsArray = context.argsArray;
  16612. var j = context.currentOperation - 3, i = j + 4;
  16613. if (argsArray[j + 1][1] !== 0 || argsArray[j + 1][2] !== 0) {
  16614. return;
  16615. }
  16616. var ii = fnArray.length;
  16617. var transformArgs;
  16618. for (; i + 3 < ii && fnArray[i - 4] === fnArray[i]; i += 4) {
  16619. if (fnArray[i - 3] !== fnArray[i + 1] ||
  16620. fnArray[i - 2] !== fnArray[i + 2] ||
  16621. fnArray[i - 1] !== fnArray[i + 3]) {
  16622. break;
  16623. }
  16624. if (argsArray[i - 2][0] !== argsArray[i + 2][0]) {
  16625. break; // different image
  16626. }
  16627. var prevTransformArgs = argsArray[i - 3];
  16628. transformArgs = argsArray[i + 1];
  16629. if (prevTransformArgs[0] !== transformArgs[0] ||
  16630. prevTransformArgs[1] !== transformArgs[1] ||
  16631. prevTransformArgs[2] !== transformArgs[2] ||
  16632. prevTransformArgs[3] !== transformArgs[3]) {
  16633. break; // different transform
  16634. }
  16635. }
  16636. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_BLOCK);
  16637. if (count < MIN_IMAGES_IN_BLOCK) {
  16638. context.currentOperation = i - 1;
  16639. return;
  16640. }
  16641. var positions = new Float32Array(count * 2);
  16642. i = j + 1;
  16643. for (var q = 0; q < count; q++) {
  16644. transformArgs = argsArray[i];
  16645. positions[(q << 1)] = transformArgs[4];
  16646. positions[(q << 1) + 1] = transformArgs[5];
  16647. i += 4;
  16648. }
  16649. var args = [argsArray[j + 2][0], argsArray[j + 1][0],
  16650. argsArray[j + 1][3], positions];
  16651. // replacing queue items
  16652. fnArray.splice(j, count * 4, OPS.paintImageXObjectRepeat);
  16653. argsArray.splice(j, count * 4, args);
  16654. context.currentOperation = j;
  16655. });
  16656. addState(InitialState,
  16657. [OPS.beginText, OPS.setFont, OPS.setTextMatrix, OPS.showText, OPS.endText],
  16658. function (context) {
  16659. // moving single chars with same font into beginText/endText groups
  16660. // searching for (beginText, setFont, setTextMatrix, showText, endText)+
  16661. var MIN_CHARS_IN_BLOCK = 3;
  16662. var MAX_CHARS_IN_BLOCK = 1000;
  16663. var fnArray = context.fnArray, argsArray = context.argsArray;
  16664. var j = context.currentOperation - 4, i = j + 5;
  16665. var ii = fnArray.length;
  16666. for (; i < ii && fnArray[i - 5] === fnArray[i]; i++) {
  16667. if (fnArray[i] === OPS.setFont) {
  16668. if (argsArray[i - 5][0] !== argsArray[i][0] ||
  16669. argsArray[i - 5][1] !== argsArray[i][1]) {
  16670. break;
  16671. }
  16672. }
  16673. }
  16674. var count = Math.min(((i - j) / 5) | 0, MAX_CHARS_IN_BLOCK);
  16675. if (count < MIN_CHARS_IN_BLOCK) {
  16676. context.currentOperation = i - 1;
  16677. return;
  16678. }
  16679. if (j >= 4 && fnArray[j - 4] === fnArray[j + 1] &&
  16680. fnArray[j - 3] === fnArray[j + 2] &&
  16681. fnArray[j - 2] === fnArray[j + 3] &&
  16682. fnArray[j - 1] === fnArray[j + 4] &&
  16683. argsArray[j - 4][0] === argsArray[j + 1][0] &&
  16684. argsArray[j - 4][1] === argsArray[j + 1][1]) {
  16685. // extending one block ahead (very first block might have 'dependency')
  16686. count++;
  16687. j -= 5;
  16688. }
  16689. var k = j + 7;
  16690. i = j + 4;
  16691. for (var q = 1; q < count; q++) {
  16692. fnArray[i] = fnArray[k];
  16693. argsArray[i] = argsArray[k];
  16694. fnArray[i + 1] = fnArray[k + 1];
  16695. argsArray[i + 1] = argsArray[k + 1];
  16696. i += 2;
  16697. k += 5;
  16698. }
  16699. var removed = (count - 1) * 3;
  16700. fnArray.splice(i, removed);
  16701. argsArray.splice(i, removed);
  16702. context.currentOperation = i;
  16703. });
  16704. function QueueOptimizer() {}
  16705. QueueOptimizer.prototype = {
  16706. optimize: function QueueOptimizer_optimize(queue) {
  16707. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  16708. var context = {
  16709. currentOperation: 0,
  16710. fnArray: fnArray,
  16711. argsArray: argsArray
  16712. };
  16713. var i, ii = argsArray.length;
  16714. var state;
  16715. for (i = 0; i < ii; i++) {
  16716. state = (state || InitialState)[fnArray[i]];
  16717. if (typeof state === 'function') { // we found some handler
  16718. context.currentOperation = i;
  16719. state = state(context);
  16720. i = context.currentOperation;
  16721. ii = context.fnArray.length;
  16722. }
  16723. }
  16724. }
  16725. };
  16726. return QueueOptimizer;
  16727. })();
  16728. var BUILT_IN_CMAPS = [
  16729. // << Start unicode maps.
  16730. 'Adobe-GB1-UCS2',
  16731. 'Adobe-CNS1-UCS2',
  16732. 'Adobe-Japan1-UCS2',
  16733. 'Adobe-Korea1-UCS2',
  16734. // >> End unicode maps.
  16735. '78-EUC-H',
  16736. '78-EUC-V',
  16737. '78-H',
  16738. '78-RKSJ-H',
  16739. '78-RKSJ-V',
  16740. '78-V',
  16741. '78ms-RKSJ-H',
  16742. '78ms-RKSJ-V',
  16743. '83pv-RKSJ-H',
  16744. '90ms-RKSJ-H',
  16745. '90ms-RKSJ-V',
  16746. '90msp-RKSJ-H',
  16747. '90msp-RKSJ-V',
  16748. '90pv-RKSJ-H',
  16749. '90pv-RKSJ-V',
  16750. 'Add-H',
  16751. 'Add-RKSJ-H',
  16752. 'Add-RKSJ-V',
  16753. 'Add-V',
  16754. 'Adobe-CNS1-0',
  16755. 'Adobe-CNS1-1',
  16756. 'Adobe-CNS1-2',
  16757. 'Adobe-CNS1-3',
  16758. 'Adobe-CNS1-4',
  16759. 'Adobe-CNS1-5',
  16760. 'Adobe-CNS1-6',
  16761. 'Adobe-GB1-0',
  16762. 'Adobe-GB1-1',
  16763. 'Adobe-GB1-2',
  16764. 'Adobe-GB1-3',
  16765. 'Adobe-GB1-4',
  16766. 'Adobe-GB1-5',
  16767. 'Adobe-Japan1-0',
  16768. 'Adobe-Japan1-1',
  16769. 'Adobe-Japan1-2',
  16770. 'Adobe-Japan1-3',
  16771. 'Adobe-Japan1-4',
  16772. 'Adobe-Japan1-5',
  16773. 'Adobe-Japan1-6',
  16774. 'Adobe-Korea1-0',
  16775. 'Adobe-Korea1-1',
  16776. 'Adobe-Korea1-2',
  16777. 'B5-H',
  16778. 'B5-V',
  16779. 'B5pc-H',
  16780. 'B5pc-V',
  16781. 'CNS-EUC-H',
  16782. 'CNS-EUC-V',
  16783. 'CNS1-H',
  16784. 'CNS1-V',
  16785. 'CNS2-H',
  16786. 'CNS2-V',
  16787. 'ETHK-B5-H',
  16788. 'ETHK-B5-V',
  16789. 'ETen-B5-H',
  16790. 'ETen-B5-V',
  16791. 'ETenms-B5-H',
  16792. 'ETenms-B5-V',
  16793. 'EUC-H',
  16794. 'EUC-V',
  16795. 'Ext-H',
  16796. 'Ext-RKSJ-H',
  16797. 'Ext-RKSJ-V',
  16798. 'Ext-V',
  16799. 'GB-EUC-H',
  16800. 'GB-EUC-V',
  16801. 'GB-H',
  16802. 'GB-V',
  16803. 'GBK-EUC-H',
  16804. 'GBK-EUC-V',
  16805. 'GBK2K-H',
  16806. 'GBK2K-V',
  16807. 'GBKp-EUC-H',
  16808. 'GBKp-EUC-V',
  16809. 'GBT-EUC-H',
  16810. 'GBT-EUC-V',
  16811. 'GBT-H',
  16812. 'GBT-V',
  16813. 'GBTpc-EUC-H',
  16814. 'GBTpc-EUC-V',
  16815. 'GBpc-EUC-H',
  16816. 'GBpc-EUC-V',
  16817. 'H',
  16818. 'HKdla-B5-H',
  16819. 'HKdla-B5-V',
  16820. 'HKdlb-B5-H',
  16821. 'HKdlb-B5-V',
  16822. 'HKgccs-B5-H',
  16823. 'HKgccs-B5-V',
  16824. 'HKm314-B5-H',
  16825. 'HKm314-B5-V',
  16826. 'HKm471-B5-H',
  16827. 'HKm471-B5-V',
  16828. 'HKscs-B5-H',
  16829. 'HKscs-B5-V',
  16830. 'Hankaku',
  16831. 'Hiragana',
  16832. 'KSC-EUC-H',
  16833. 'KSC-EUC-V',
  16834. 'KSC-H',
  16835. 'KSC-Johab-H',
  16836. 'KSC-Johab-V',
  16837. 'KSC-V',
  16838. 'KSCms-UHC-H',
  16839. 'KSCms-UHC-HW-H',
  16840. 'KSCms-UHC-HW-V',
  16841. 'KSCms-UHC-V',
  16842. 'KSCpc-EUC-H',
  16843. 'KSCpc-EUC-V',
  16844. 'Katakana',
  16845. 'NWP-H',
  16846. 'NWP-V',
  16847. 'RKSJ-H',
  16848. 'RKSJ-V',
  16849. 'Roman',
  16850. 'UniCNS-UCS2-H',
  16851. 'UniCNS-UCS2-V',
  16852. 'UniCNS-UTF16-H',
  16853. 'UniCNS-UTF16-V',
  16854. 'UniCNS-UTF32-H',
  16855. 'UniCNS-UTF32-V',
  16856. 'UniCNS-UTF8-H',
  16857. 'UniCNS-UTF8-V',
  16858. 'UniGB-UCS2-H',
  16859. 'UniGB-UCS2-V',
  16860. 'UniGB-UTF16-H',
  16861. 'UniGB-UTF16-V',
  16862. 'UniGB-UTF32-H',
  16863. 'UniGB-UTF32-V',
  16864. 'UniGB-UTF8-H',
  16865. 'UniGB-UTF8-V',
  16866. 'UniJIS-UCS2-H',
  16867. 'UniJIS-UCS2-HW-H',
  16868. 'UniJIS-UCS2-HW-V',
  16869. 'UniJIS-UCS2-V',
  16870. 'UniJIS-UTF16-H',
  16871. 'UniJIS-UTF16-V',
  16872. 'UniJIS-UTF32-H',
  16873. 'UniJIS-UTF32-V',
  16874. 'UniJIS-UTF8-H',
  16875. 'UniJIS-UTF8-V',
  16876. 'UniJIS2004-UTF16-H',
  16877. 'UniJIS2004-UTF16-V',
  16878. 'UniJIS2004-UTF32-H',
  16879. 'UniJIS2004-UTF32-V',
  16880. 'UniJIS2004-UTF8-H',
  16881. 'UniJIS2004-UTF8-V',
  16882. 'UniJISPro-UCS2-HW-V',
  16883. 'UniJISPro-UCS2-V',
  16884. 'UniJISPro-UTF8-V',
  16885. 'UniJISX0213-UTF32-H',
  16886. 'UniJISX0213-UTF32-V',
  16887. 'UniJISX02132004-UTF32-H',
  16888. 'UniJISX02132004-UTF32-V',
  16889. 'UniKS-UCS2-H',
  16890. 'UniKS-UCS2-V',
  16891. 'UniKS-UTF16-H',
  16892. 'UniKS-UTF16-V',
  16893. 'UniKS-UTF32-H',
  16894. 'UniKS-UTF32-V',
  16895. 'UniKS-UTF8-H',
  16896. 'UniKS-UTF8-V',
  16897. 'V',
  16898. 'WP-Symbol'];
  16899. // CMap, not to be confused with TrueType's cmap.
  16900. var CMap = (function CMapClosure() {
  16901. function CMap(builtInCMap) {
  16902. // Codespace ranges are stored as follows:
  16903. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  16904. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  16905. this.codespaceRanges = [[], [], [], []];
  16906. this.numCodespaceRanges = 0;
  16907. this.map = [];
  16908. this.vertical = false;
  16909. this.useCMap = null;
  16910. this.builtInCMap = builtInCMap;
  16911. }
  16912. CMap.prototype = {
  16913. addCodespaceRange: function(n, low, high) {
  16914. this.codespaceRanges[n - 1].push(low, high);
  16915. this.numCodespaceRanges++;
  16916. },
  16917. mapRange: function(low, high, dstLow) {
  16918. var lastByte = dstLow.length - 1;
  16919. while (low <= high) {
  16920. this.map[low] = dstLow;
  16921. // Only the last byte has to be incremented.
  16922. dstLow = dstLow.substr(0, lastByte) +
  16923. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  16924. ++low;
  16925. }
  16926. },
  16927. mapRangeToArray: function(low, high, array) {
  16928. var i = 0;
  16929. while (low <= high) {
  16930. this.map[low] = array[i++];
  16931. ++low;
  16932. }
  16933. },
  16934. mapOne: function(src, dst) {
  16935. this.map[src] = dst;
  16936. },
  16937. lookup: function(code) {
  16938. return this.map[code];
  16939. },
  16940. readCharCode: function(str, offset) {
  16941. var c = 0;
  16942. var codespaceRanges = this.codespaceRanges;
  16943. var codespaceRangesLen = this.codespaceRanges.length;
  16944. // 9.7.6.2 CMap Mapping
  16945. // The code length is at most 4.
  16946. for (var n = 0; n < codespaceRangesLen; n++) {
  16947. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  16948. // Check each codespace range to see if it falls within.
  16949. var codespaceRange = codespaceRanges[n];
  16950. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  16951. var low = codespaceRange[k++];
  16952. var high = codespaceRange[k++];
  16953. if (c >= low && c <= high) {
  16954. return [c, n + 1];
  16955. }
  16956. }
  16957. }
  16958. return [0, 1];
  16959. }
  16960. };
  16961. return CMap;
  16962. })();
  16963. var IdentityCMap = (function IdentityCMapClosure() {
  16964. function IdentityCMap(vertical, n) {
  16965. CMap.call(this);
  16966. this.vertical = vertical;
  16967. this.addCodespaceRange(n, 0, 0xffff);
  16968. this.mapRange(0, 0xffff, '\u0000');
  16969. }
  16970. Util.inherit(IdentityCMap, CMap, {});
  16971. return IdentityCMap;
  16972. })();
  16973. var BinaryCMapReader = (function BinaryCMapReaderClosure() {
  16974. function fetchBinaryData(url) {
  16975. var nonBinaryRequest = PDFJS.disableWorker;
  16976. var request = new XMLHttpRequest();
  16977. request.open('GET', url, false);
  16978. if (!nonBinaryRequest) {
  16979. try {
  16980. request.responseType = 'arraybuffer';
  16981. nonBinaryRequest = request.responseType !== 'arraybuffer';
  16982. } catch (e) {
  16983. nonBinaryRequest = true;
  16984. }
  16985. }
  16986. if (nonBinaryRequest && request.overrideMimeType) {
  16987. request.overrideMimeType('text/plain; charset=x-user-defined');
  16988. }
  16989. request.send(null);
  16990. if (request.status === 0 && /^https?:/i.test(url)) {
  16991. error('Unable to get binary cMap at: ' + url);
  16992. }
  16993. if (nonBinaryRequest) {
  16994. var data = Array.prototype.map.call(request.responseText, function (ch) {
  16995. return ch.charCodeAt(0) & 255;
  16996. });
  16997. return new Uint8Array(data);
  16998. }
  16999. return new Uint8Array(request.response);
  17000. }
  17001. function hexToInt(a, size) {
  17002. var n = 0;
  17003. for (var i = 0; i <= size; i++) {
  17004. n = (n << 8) | a[i];
  17005. }
  17006. return n >>> 0;
  17007. }
  17008. function hexToStr(a, size) {
  17009. return String.fromCharCode.apply(null, a.subarray(0, size + 1));
  17010. }
  17011. function addHex(a, b, size) {
  17012. var c = 0;
  17013. for (var i = size; i >= 0; i--) {
  17014. c += a[i] + b[i];
  17015. a[i] = c & 255;
  17016. c >>= 8;
  17017. }
  17018. }
  17019. function incHex(a, size) {
  17020. var c = 1;
  17021. for (var i = size; i >= 0 && c > 0; i--) {
  17022. c += a[i];
  17023. a[i] = c & 255;
  17024. c >>= 8;
  17025. }
  17026. }
  17027. var MAX_NUM_SIZE = 16;
  17028. var MAX_ENCODED_NUM_SIZE = 19; // ceil(MAX_NUM_SIZE * 7 / 8)
  17029. function BinaryCMapStream(data) {
  17030. this.buffer = data;
  17031. this.pos = 0;
  17032. this.end = data.length;
  17033. this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
  17034. }
  17035. BinaryCMapStream.prototype = {
  17036. readByte: function () {
  17037. if (this.pos >= this.end) {
  17038. return -1;
  17039. }
  17040. return this.buffer[this.pos++];
  17041. },
  17042. readNumber: function () {
  17043. var n = 0;
  17044. var last;
  17045. do {
  17046. var b = this.readByte();
  17047. if (b < 0) {
  17048. error('unexpected EOF in bcmap');
  17049. }
  17050. last = !(b & 0x80);
  17051. n = (n << 7) | (b & 0x7F);
  17052. } while (!last);
  17053. return n;
  17054. },
  17055. readSigned: function () {
  17056. var n = this.readNumber();
  17057. return (n & 1) ? ~(n >>> 1) : n >>> 1;
  17058. },
  17059. readHex: function (num, size) {
  17060. num.set(this.buffer.subarray(this.pos,
  17061. this.pos + size + 1));
  17062. this.pos += size + 1;
  17063. },
  17064. readHexNumber: function (num, size) {
  17065. var last;
  17066. var stack = this.tmpBuf, sp = 0;
  17067. do {
  17068. var b = this.readByte();
  17069. if (b < 0) {
  17070. error('unexpected EOF in bcmap');
  17071. }
  17072. last = !(b & 0x80);
  17073. stack[sp++] = b & 0x7F;
  17074. } while (!last);
  17075. var i = size, buffer = 0, bufferSize = 0;
  17076. while (i >= 0) {
  17077. while (bufferSize < 8 && stack.length > 0) {
  17078. buffer = (stack[--sp] << bufferSize) | buffer;
  17079. bufferSize += 7;
  17080. }
  17081. num[i] = buffer & 255;
  17082. i--;
  17083. buffer >>= 8;
  17084. bufferSize -= 8;
  17085. }
  17086. },
  17087. readHexSigned: function (num, size) {
  17088. this.readHexNumber(num, size);
  17089. var sign = num[size] & 1 ? 255 : 0;
  17090. var c = 0;
  17091. for (var i = 0; i <= size; i++) {
  17092. c = ((c & 1) << 8) | num[i];
  17093. num[i] = (c >> 1) ^ sign;
  17094. }
  17095. },
  17096. readString: function () {
  17097. var len = this.readNumber();
  17098. var s = '';
  17099. for (var i = 0; i < len; i++) {
  17100. s += String.fromCharCode(this.readNumber());
  17101. }
  17102. return s;
  17103. }
  17104. };
  17105. function processBinaryCMap(url, cMap, extend) {
  17106. var data = fetchBinaryData(url);
  17107. var stream = new BinaryCMapStream(data);
  17108. var header = stream.readByte();
  17109. cMap.vertical = !!(header & 1);
  17110. var useCMap = null;
  17111. var start = new Uint8Array(MAX_NUM_SIZE);
  17112. var end = new Uint8Array(MAX_NUM_SIZE);
  17113. var char = new Uint8Array(MAX_NUM_SIZE);
  17114. var charCode = new Uint8Array(MAX_NUM_SIZE);
  17115. var tmp = new Uint8Array(MAX_NUM_SIZE);
  17116. var code;
  17117. var b;
  17118. while ((b = stream.readByte()) >= 0) {
  17119. var type = b >> 5;
  17120. if (type === 7) { // metadata, e.g. comment or usecmap
  17121. switch (b & 0x1F) {
  17122. case 0:
  17123. stream.readString(); // skipping comment
  17124. break;
  17125. case 1:
  17126. useCMap = stream.readString();
  17127. break;
  17128. }
  17129. continue;
  17130. }
  17131. var sequence = !!(b & 0x10);
  17132. var dataSize = b & 15;
  17133. assert(dataSize + 1 <= MAX_NUM_SIZE);
  17134. var ucs2DataSize = 1;
  17135. var subitemsCount = stream.readNumber();
  17136. var i;
  17137. switch (type) {
  17138. case 0: // codespacerange
  17139. stream.readHex(start, dataSize);
  17140. stream.readHexNumber(end, dataSize);
  17141. addHex(end, start, dataSize);
  17142. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  17143. hexToInt(end, dataSize));
  17144. for (i = 1; i < subitemsCount; i++) {
  17145. incHex(end, dataSize);
  17146. stream.readHexNumber(start, dataSize);
  17147. addHex(start, end, dataSize);
  17148. stream.readHexNumber(end, dataSize);
  17149. addHex(end, start, dataSize);
  17150. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  17151. hexToInt(end, dataSize));
  17152. }
  17153. break;
  17154. case 1: // notdefrange
  17155. stream.readHex(start, dataSize);
  17156. stream.readHexNumber(end, dataSize);
  17157. addHex(end, start, dataSize);
  17158. code = stream.readNumber();
  17159. // undefined range, skipping
  17160. for (i = 1; i < subitemsCount; i++) {
  17161. incHex(end, dataSize);
  17162. stream.readHexNumber(start, dataSize);
  17163. addHex(start, end, dataSize);
  17164. stream.readHexNumber(end, dataSize);
  17165. addHex(end, start, dataSize);
  17166. code = stream.readNumber();
  17167. // nop
  17168. }
  17169. break;
  17170. case 2: // cidchar
  17171. stream.readHex(char, dataSize);
  17172. code = stream.readNumber();
  17173. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17174. for (i = 1; i < subitemsCount; i++) {
  17175. incHex(char, dataSize);
  17176. if (!sequence) {
  17177. stream.readHexNumber(tmp, dataSize);
  17178. addHex(char, tmp, dataSize);
  17179. }
  17180. code = stream.readSigned() + (code + 1);
  17181. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17182. }
  17183. break;
  17184. case 3: // cidrange
  17185. stream.readHex(start, dataSize);
  17186. stream.readHexNumber(end, dataSize);
  17187. addHex(end, start, dataSize);
  17188. code = stream.readNumber();
  17189. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17190. String.fromCharCode(code));
  17191. for (i = 1; i < subitemsCount; i++) {
  17192. incHex(end, dataSize);
  17193. if (!sequence) {
  17194. stream.readHexNumber(start, dataSize);
  17195. addHex(start, end, dataSize);
  17196. } else {
  17197. start.set(end);
  17198. }
  17199. stream.readHexNumber(end, dataSize);
  17200. addHex(end, start, dataSize);
  17201. code = stream.readNumber();
  17202. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17203. String.fromCharCode(code));
  17204. }
  17205. break;
  17206. case 4: // bfchar
  17207. stream.readHex(char, ucs2DataSize);
  17208. stream.readHex(charCode, dataSize);
  17209. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17210. hexToStr(charCode, dataSize));
  17211. for (i = 1; i < subitemsCount; i++) {
  17212. incHex(char, ucs2DataSize);
  17213. if (!sequence) {
  17214. stream.readHexNumber(tmp, ucs2DataSize);
  17215. addHex(char, tmp, ucs2DataSize);
  17216. }
  17217. incHex(charCode, dataSize);
  17218. stream.readHexSigned(tmp, dataSize);
  17219. addHex(charCode, tmp, dataSize);
  17220. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17221. hexToStr(charCode, dataSize));
  17222. }
  17223. break;
  17224. case 5: // bfrange
  17225. stream.readHex(start, ucs2DataSize);
  17226. stream.readHexNumber(end, ucs2DataSize);
  17227. addHex(end, start, ucs2DataSize);
  17228. stream.readHex(charCode, dataSize);
  17229. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17230. hexToInt(end, ucs2DataSize),
  17231. hexToStr(charCode, dataSize));
  17232. for (i = 1; i < subitemsCount; i++) {
  17233. incHex(end, ucs2DataSize);
  17234. if (!sequence) {
  17235. stream.readHexNumber(start, ucs2DataSize);
  17236. addHex(start, end, ucs2DataSize);
  17237. } else {
  17238. start.set(end);
  17239. }
  17240. stream.readHexNumber(end, ucs2DataSize);
  17241. addHex(end, start, ucs2DataSize);
  17242. stream.readHex(charCode, dataSize);
  17243. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17244. hexToInt(end, ucs2DataSize),
  17245. hexToStr(charCode, dataSize));
  17246. }
  17247. break;
  17248. default:
  17249. error('Unknown type: ' + type);
  17250. break;
  17251. }
  17252. }
  17253. if (useCMap) {
  17254. extend(useCMap);
  17255. }
  17256. return cMap;
  17257. }
  17258. function BinaryCMapReader() {}
  17259. BinaryCMapReader.prototype = {
  17260. read: processBinaryCMap
  17261. };
  17262. return BinaryCMapReader;
  17263. })();
  17264. var CMapFactory = (function CMapFactoryClosure() {
  17265. function strToInt(str) {
  17266. var a = 0;
  17267. for (var i = 0; i < str.length; i++) {
  17268. a = (a << 8) | str.charCodeAt(i);
  17269. }
  17270. return a >>> 0;
  17271. }
  17272. function expectString(obj) {
  17273. if (!isString(obj)) {
  17274. error('Malformed CMap: expected string.');
  17275. }
  17276. }
  17277. function expectInt(obj) {
  17278. if (!isInt(obj)) {
  17279. error('Malformed CMap: expected int.');
  17280. }
  17281. }
  17282. function parseBfChar(cMap, lexer) {
  17283. while (true) {
  17284. var obj = lexer.getObj();
  17285. if (isEOF(obj)) {
  17286. break;
  17287. }
  17288. if (isCmd(obj, 'endbfchar')) {
  17289. return;
  17290. }
  17291. expectString(obj);
  17292. var src = strToInt(obj);
  17293. obj = lexer.getObj();
  17294. // TODO are /dstName used?
  17295. expectString(obj);
  17296. var dst = obj;
  17297. cMap.mapOne(src, dst);
  17298. }
  17299. }
  17300. function parseBfRange(cMap, lexer) {
  17301. while (true) {
  17302. var obj = lexer.getObj();
  17303. if (isEOF(obj)) {
  17304. break;
  17305. }
  17306. if (isCmd(obj, 'endbfrange')) {
  17307. return;
  17308. }
  17309. expectString(obj);
  17310. var low = strToInt(obj);
  17311. obj = lexer.getObj();
  17312. expectString(obj);
  17313. var high = strToInt(obj);
  17314. obj = lexer.getObj();
  17315. if (isInt(obj) || isString(obj)) {
  17316. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  17317. cMap.mapRange(low, high, dstLow);
  17318. } else if (isCmd(obj, '[')) {
  17319. obj = lexer.getObj();
  17320. var array = [];
  17321. while (!isCmd(obj, ']') && !isEOF(obj)) {
  17322. array.push(obj);
  17323. obj = lexer.getObj();
  17324. }
  17325. cMap.mapRangeToArray(low, high, array);
  17326. } else {
  17327. break;
  17328. }
  17329. }
  17330. error('Invalid bf range.');
  17331. }
  17332. function parseCidChar(cMap, lexer) {
  17333. while (true) {
  17334. var obj = lexer.getObj();
  17335. if (isEOF(obj)) {
  17336. break;
  17337. }
  17338. if (isCmd(obj, 'endcidchar')) {
  17339. return;
  17340. }
  17341. expectString(obj);
  17342. var src = strToInt(obj);
  17343. obj = lexer.getObj();
  17344. expectInt(obj);
  17345. var dst = String.fromCharCode(obj);
  17346. cMap.mapOne(src, dst);
  17347. }
  17348. }
  17349. function parseCidRange(cMap, lexer) {
  17350. while (true) {
  17351. var obj = lexer.getObj();
  17352. if (isEOF(obj)) {
  17353. break;
  17354. }
  17355. if (isCmd(obj, 'endcidrange')) {
  17356. return;
  17357. }
  17358. expectString(obj);
  17359. var low = strToInt(obj);
  17360. obj = lexer.getObj();
  17361. expectString(obj);
  17362. var high = strToInt(obj);
  17363. obj = lexer.getObj();
  17364. expectInt(obj);
  17365. var dstLow = String.fromCharCode(obj);
  17366. cMap.mapRange(low, high, dstLow);
  17367. }
  17368. }
  17369. function parseCodespaceRange(cMap, lexer) {
  17370. while (true) {
  17371. var obj = lexer.getObj();
  17372. if (isEOF(obj)) {
  17373. break;
  17374. }
  17375. if (isCmd(obj, 'endcodespacerange')) {
  17376. return;
  17377. }
  17378. if (!isString(obj)) {
  17379. break;
  17380. }
  17381. var low = strToInt(obj);
  17382. obj = lexer.getObj();
  17383. if (!isString(obj)) {
  17384. break;
  17385. }
  17386. var high = strToInt(obj);
  17387. cMap.addCodespaceRange(obj.length, low, high);
  17388. }
  17389. error('Invalid codespace range.');
  17390. }
  17391. function parseWMode(cMap, lexer) {
  17392. var obj = lexer.getObj();
  17393. if (isInt(obj)) {
  17394. cMap.vertical = !!obj;
  17395. }
  17396. }
  17397. function parseCMap(cMap, lexer, builtInCMapParams, useCMap) {
  17398. var previous;
  17399. var embededUseCMap;
  17400. objLoop: while (true) {
  17401. var obj = lexer.getObj();
  17402. if (isEOF(obj)) {
  17403. break;
  17404. } else if (isName(obj)) {
  17405. if (obj.name === 'WMode') {
  17406. parseWMode(cMap, lexer);
  17407. }
  17408. previous = obj;
  17409. } else if (isCmd(obj)) {
  17410. switch (obj.cmd) {
  17411. case 'endcmap':
  17412. break objLoop;
  17413. case 'usecmap':
  17414. if (isName(previous)) {
  17415. embededUseCMap = previous.name;
  17416. }
  17417. break;
  17418. case 'begincodespacerange':
  17419. parseCodespaceRange(cMap, lexer);
  17420. break;
  17421. case 'beginbfchar':
  17422. parseBfChar(cMap, lexer);
  17423. break;
  17424. case 'begincidchar':
  17425. parseCidChar(cMap, lexer);
  17426. break;
  17427. case 'beginbfrange':
  17428. parseBfRange(cMap, lexer);
  17429. break;
  17430. case 'begincidrange':
  17431. parseCidRange(cMap, lexer);
  17432. break;
  17433. }
  17434. }
  17435. }
  17436. if (!useCMap && embededUseCMap) {
  17437. // Load the usecmap definition from the file only if there wasn't one
  17438. // specified.
  17439. useCMap = embededUseCMap;
  17440. }
  17441. if (useCMap) {
  17442. extendCMap(cMap, builtInCMapParams, useCMap);
  17443. }
  17444. }
  17445. function extendCMap(cMap, builtInCMapParams, useCMap) {
  17446. cMap.useCMap = createBuiltInCMap(useCMap, builtInCMapParams);
  17447. // If there aren't any code space ranges defined clone all the parent ones
  17448. // into this cMap.
  17449. if (cMap.numCodespaceRanges === 0) {
  17450. var useCodespaceRanges = cMap.useCMap.codespaceRanges;
  17451. for (var i = 0; i < useCodespaceRanges.length; i++) {
  17452. cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
  17453. }
  17454. cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
  17455. }
  17456. // Merge the map into the current one, making sure not to override
  17457. // any previously defined entries.
  17458. for (var key in cMap.useCMap.map) {
  17459. if (key in cMap.map) {
  17460. continue;
  17461. }
  17462. cMap.map[key] = cMap.useCMap.map[key];
  17463. }
  17464. }
  17465. function parseBinaryCMap(name, builtInCMapParams) {
  17466. var url = builtInCMapParams.url + name + '.bcmap';
  17467. var cMap = new CMap(true);
  17468. new BinaryCMapReader().read(url, cMap, function (useCMap) {
  17469. extendCMap(cMap, builtInCMapParams, useCMap);
  17470. });
  17471. return cMap;
  17472. }
  17473. function createBuiltInCMap(name, builtInCMapParams) {
  17474. if (name === 'Identity-H') {
  17475. return new IdentityCMap(false, 2);
  17476. } else if (name === 'Identity-V') {
  17477. return new IdentityCMap(true, 2);
  17478. }
  17479. if (BUILT_IN_CMAPS.indexOf(name) === -1) {
  17480. error('Unknown cMap name: ' + name);
  17481. }
  17482. assert (builtInCMapParams, 'buildin cmap parameters are not provided');
  17483. if (builtInCMapParams.packed) {
  17484. return parseBinaryCMap(name, builtInCMapParams);
  17485. }
  17486. var request = new XMLHttpRequest();
  17487. var url = builtInCMapParams.url + name;
  17488. request.open('GET', url, false);
  17489. request.send(null);
  17490. if (request.status === 0 && /^https?:/i.test(url)) {
  17491. error('Unable to get cMap at: ' + url);
  17492. }
  17493. var cMap = new CMap(true);
  17494. var lexer = new Lexer(new StringStream(request.responseText));
  17495. parseCMap(cMap, lexer, builtInCMapParams, null);
  17496. return cMap;
  17497. }
  17498. return {
  17499. create: function (encoding, builtInCMapParams, useCMap) {
  17500. if (isName(encoding)) {
  17501. return createBuiltInCMap(encoding.name, builtInCMapParams);
  17502. } else if (isStream(encoding)) {
  17503. var cMap = new CMap();
  17504. var lexer = new Lexer(encoding);
  17505. try {
  17506. parseCMap(cMap, lexer, builtInCMapParams, useCMap);
  17507. } catch (e) {
  17508. warn('Invalid CMap data. ' + e);
  17509. }
  17510. return cMap;
  17511. }
  17512. error('Encoding required.');
  17513. }
  17514. };
  17515. })();
  17516. // Unicode Private Use Area
  17517. var PRIVATE_USE_OFFSET_START = 0xE000;
  17518. var PRIVATE_USE_OFFSET_END = 0xF8FF;
  17519. var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
  17520. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  17521. // except for Type 3 fonts
  17522. var PDF_GLYPH_SPACE_UNITS = 1000;
  17523. // Hinting is currently disabled due to unknown problems on windows
  17524. // in tracemonkey and various other pdfs with type1 fonts.
  17525. var HINTING_ENABLED = false;
  17526. // Accented charactars are not displayed properly on windows, using this flag
  17527. // to control analysis of seac charstrings.
  17528. var SEAC_ANALYSIS_ENABLED = false;
  17529. var FontFlags = {
  17530. FixedPitch: 1,
  17531. Serif: 2,
  17532. Symbolic: 4,
  17533. Script: 8,
  17534. Nonsymbolic: 32,
  17535. Italic: 64,
  17536. AllCap: 65536,
  17537. SmallCap: 131072,
  17538. ForceBold: 262144
  17539. };
  17540. var Encodings = {
  17541. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17542. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17543. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  17544. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  17545. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  17546. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  17547. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  17548. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  17549. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  17550. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  17551. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  17552. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  17553. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  17554. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  17555. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  17556. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  17557. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  17558. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  17559. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  17560. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17561. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  17562. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  17563. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  17564. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  17565. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  17566. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  17567. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  17568. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  17569. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  17570. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  17571. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  17572. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  17573. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  17574. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  17575. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  17576. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  17577. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  17578. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  17579. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  17580. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  17581. 'Ydieresissmall'],
  17582. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17583. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17584. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  17585. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  17586. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  17587. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  17588. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  17589. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  17590. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  17591. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  17592. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  17593. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  17594. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  17595. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  17596. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  17597. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  17598. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  17599. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  17600. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  17601. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  17602. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  17603. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  17604. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  17605. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  17606. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  17607. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  17608. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  17609. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  17610. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  17611. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  17612. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  17613. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  17614. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  17615. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  17616. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  17617. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  17618. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  17619. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  17620. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  17621. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  17622. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17623. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17624. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17625. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17626. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17627. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17628. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17629. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17630. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17631. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17632. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17633. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  17634. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  17635. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  17636. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  17637. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  17638. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  17639. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  17640. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  17641. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  17642. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  17643. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  17644. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  17645. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  17646. 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE',
  17647. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  17648. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  17649. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  17650. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  17651. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  17652. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  17653. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  17654. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  17655. 'ogonek', 'caron'],
  17656. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17657. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17658. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17659. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  17660. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17661. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17662. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17663. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17664. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17665. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  17666. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  17667. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17668. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17669. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  17670. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  17671. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  17672. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  17673. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  17674. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  17675. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  17676. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  17677. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  17678. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  17679. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  17680. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  17681. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17682. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17683. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17684. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17685. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17686. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17687. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17688. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17689. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17690. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17691. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17692. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17693. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  17694. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  17695. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  17696. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  17697. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  17698. 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling',
  17699. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  17700. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  17701. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  17702. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  17703. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  17704. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  17705. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  17706. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  17707. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  17708. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  17709. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  17710. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  17711. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  17712. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  17713. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  17714. 'ydieresis'],
  17715. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17716. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17717. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  17718. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  17719. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  17720. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  17721. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  17722. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  17723. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  17724. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  17725. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  17726. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  17727. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  17728. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  17729. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  17730. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17731. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  17732. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  17733. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  17734. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  17735. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  17736. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  17737. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  17738. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  17739. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  17740. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  17741. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  17742. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  17743. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  17744. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  17745. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  17746. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  17747. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  17748. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  17749. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  17750. 'bracerightbt'],
  17751. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17752. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17753. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  17754. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  17755. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  17756. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  17757. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  17758. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  17759. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  17760. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  17761. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  17762. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17763. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17764. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  17765. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  17766. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  17767. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  17768. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  17769. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  17770. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  17771. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  17772. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  17773. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  17774. 'a188', 'a189', 'a190', 'a191']
  17775. };
  17776. /**
  17777. * Hold a map of decoded fonts and of the standard fourteen Type1
  17778. * fonts and their acronyms.
  17779. */
  17780. var stdFontMap = {
  17781. 'ArialNarrow': 'Helvetica',
  17782. 'ArialNarrow-Bold': 'Helvetica-Bold',
  17783. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  17784. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  17785. 'ArialBlack': 'Helvetica',
  17786. 'ArialBlack-Bold': 'Helvetica-Bold',
  17787. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  17788. 'ArialBlack-Italic': 'Helvetica-Oblique',
  17789. 'Arial': 'Helvetica',
  17790. 'Arial-Bold': 'Helvetica-Bold',
  17791. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  17792. 'Arial-Italic': 'Helvetica-Oblique',
  17793. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  17794. 'Arial-BoldMT': 'Helvetica-Bold',
  17795. 'Arial-ItalicMT': 'Helvetica-Oblique',
  17796. 'ArialMT': 'Helvetica',
  17797. 'Courier-Bold': 'Courier-Bold',
  17798. 'Courier-BoldItalic': 'Courier-BoldOblique',
  17799. 'Courier-Italic': 'Courier-Oblique',
  17800. 'CourierNew': 'Courier',
  17801. 'CourierNew-Bold': 'Courier-Bold',
  17802. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  17803. 'CourierNew-Italic': 'Courier-Oblique',
  17804. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  17805. 'CourierNewPS-BoldMT': 'Courier-Bold',
  17806. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  17807. 'CourierNewPSMT': 'Courier',
  17808. 'Helvetica-Bold': 'Helvetica-Bold',
  17809. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  17810. 'Helvetica-Italic': 'Helvetica-Oblique',
  17811. 'Symbol-Bold': 'Symbol',
  17812. 'Symbol-BoldItalic': 'Symbol',
  17813. 'Symbol-Italic': 'Symbol',
  17814. 'TimesNewRoman': 'Times-Roman',
  17815. 'TimesNewRoman-Bold': 'Times-Bold',
  17816. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  17817. 'TimesNewRoman-Italic': 'Times-Italic',
  17818. 'TimesNewRomanPS': 'Times-Roman',
  17819. 'TimesNewRomanPS-Bold': 'Times-Bold',
  17820. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  17821. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  17822. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  17823. 'TimesNewRomanPS-Italic': 'Times-Italic',
  17824. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  17825. 'TimesNewRomanPSMT': 'Times-Roman',
  17826. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  17827. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  17828. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  17829. };
  17830. /**
  17831. * Holds the map of the non-standard fonts that might be included as a standard
  17832. * fonts without glyph data.
  17833. */
  17834. var nonStdFontMap = {
  17835. 'ComicSansMS': 'Comic Sans MS',
  17836. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  17837. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  17838. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  17839. 'LucidaConsole': 'Courier',
  17840. 'LucidaConsole-Bold': 'Courier-Bold',
  17841. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  17842. 'LucidaConsole-Italic': 'Courier-Oblique',
  17843. 'MS-Gothic': 'MS Gothic',
  17844. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  17845. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  17846. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  17847. 'MS-Mincho': 'MS Mincho',
  17848. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  17849. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  17850. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  17851. 'MS-PGothic': 'MS PGothic',
  17852. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  17853. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  17854. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  17855. 'MS-PMincho': 'MS PMincho',
  17856. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  17857. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  17858. 'MS-PMincho-Italic': 'MS PMincho-Italic'
  17859. };
  17860. var serifFonts = {
  17861. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  17862. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  17863. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  17864. 'Arno': true, 'Aster': true, 'Aurora': true,
  17865. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  17866. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  17867. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  17868. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  17869. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  17870. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  17871. 'Cartier': true, 'Caslon': true, 'Catull': true,
  17872. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  17873. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  17874. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  17875. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  17876. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  17877. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  17878. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  17879. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  17880. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  17881. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  17882. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  17883. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  17884. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  17885. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  17886. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  17887. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  17888. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  17889. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  17890. 'Miller': true, 'Minion': true, 'Modern': true,
  17891. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  17892. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  17893. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  17894. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  17895. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  17896. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  17897. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  17898. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  17899. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  17900. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  17901. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  17902. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  17903. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  17904. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  17905. };
  17906. var symbolsFonts = {
  17907. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  17908. };
  17909. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  17910. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  17911. // glyphs, but common for some set of the standard fonts.
  17912. var GlyphMapForStandardFonts = {
  17913. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  17914. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 45,
  17915. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  17916. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  17917. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  17918. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  17919. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  17920. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  17921. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  17922. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  17923. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  17924. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  17925. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  17926. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  17927. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  17928. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  17929. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  17930. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  17931. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  17932. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  17933. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  17934. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  17935. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  17936. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  17937. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  17938. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '223': 711,
  17939. '227': 353, '229': 382, '234': 253, '253': 268, '254': 269, '258': 258,
  17940. '268': 283, '269': 313, '278': 328, '284': 345, '292': 367, '305': 963,
  17941. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  17942. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  17943. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  17944. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  17945. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  17946. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  17947. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  17948. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  17949. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  17950. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  17951. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  17952. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  17953. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  17954. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  17955. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  17956. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  17957. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  17958. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  17959. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  17960. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  17961. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  17962. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  17963. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  17964. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  17965. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  17966. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  17967. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  17968. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  17969. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  17970. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  17971. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  17972. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  17973. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  17974. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  17975. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  17976. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  17977. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  17978. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  17979. };
  17980. // Some characters, e.g. copyrightserif, mapped to the private use area and
  17981. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  17982. // to the similar equivalents in the normal characters range.
  17983. function mapSpecialUnicodeValues(code) {
  17984. if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials unicode block.
  17985. return 0;
  17986. }
  17987. switch (code) {
  17988. case 0xF8E9: // copyrightsans
  17989. case 0xF6D9: // copyrightserif
  17990. return 0x00A9; // copyright
  17991. case 0xF8E8: // registersans
  17992. case 0xF6DA: // registerserif
  17993. return 0x00AE; // registered
  17994. case 0xF8EA: // trademarksans
  17995. case 0xF6DB: // trademarkserif
  17996. return 0x2122; // trademark
  17997. default:
  17998. return code;
  17999. }
  18000. }
  18001. var UnicodeRanges = [
  18002. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  18003. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  18004. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  18005. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  18006. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  18007. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  18008. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  18009. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  18010. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  18011. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  18012. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  18013. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  18014. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  18015. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  18016. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  18017. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  18018. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  18019. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  18020. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  18021. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  18022. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  18023. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  18024. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  18025. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  18026. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  18027. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  18028. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  18029. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  18030. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  18031. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  18032. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  18033. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  18034. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  18035. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  18036. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  18037. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  18038. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  18039. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  18040. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  18041. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  18042. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  18043. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  18044. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  18045. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  18046. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  18047. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  18048. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  18049. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  18050. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  18051. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  18052. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  18053. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  18054. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  18055. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  18056. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  18057. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  18058. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  18059. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  18060. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  18061. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  18062. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  18063. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  18064. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  18065. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  18066. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  18067. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  18068. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  18069. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  18070. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  18071. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  18072. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  18073. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  18074. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  18075. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  18076. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  18077. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  18078. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  18079. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  18080. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  18081. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  18082. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  18083. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  18084. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  18085. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  18086. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  18087. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  18088. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  18089. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  18090. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  18091. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  18092. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  18093. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  18094. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  18095. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  18096. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  18097. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  18098. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  18099. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  18100. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  18101. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  18102. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  18103. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  18104. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  18105. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  18106. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  18107. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  18108. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  18109. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  18110. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  18111. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  18112. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  18113. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  18114. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  18115. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  18116. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  18117. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  18118. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  18119. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  18120. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  18121. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  18122. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  18123. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  18124. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  18125. ];
  18126. var MacStandardGlyphOrdering = [
  18127. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  18128. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  18129. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  18130. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  18131. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  18132. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  18133. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  18134. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  18135. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  18136. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  18137. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  18138. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  18139. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  18140. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  18141. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  18142. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  18143. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  18144. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  18145. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  18146. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  18147. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  18148. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  18149. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  18150. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  18151. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  18152. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  18153. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  18154. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  18155. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  18156. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  18157. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  18158. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  18159. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  18160. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  18161. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  18162. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  18163. function getUnicodeRangeFor(value) {
  18164. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  18165. var range = UnicodeRanges[i];
  18166. if (value >= range.begin && value < range.end) {
  18167. return i;
  18168. }
  18169. }
  18170. return -1;
  18171. }
  18172. function isRTLRangeFor(value) {
  18173. var range = UnicodeRanges[13];
  18174. if (value >= range.begin && value < range.end) {
  18175. return true;
  18176. }
  18177. range = UnicodeRanges[11];
  18178. if (value >= range.begin && value < range.end) {
  18179. return true;
  18180. }
  18181. return false;
  18182. }
  18183. // The normalization table is obtained by filtering the Unicode characters
  18184. // database with <compat> entries.
  18185. var NormalizedUnicodes = {
  18186. '\u00A8': '\u0020\u0308',
  18187. '\u00AF': '\u0020\u0304',
  18188. '\u00B4': '\u0020\u0301',
  18189. '\u00B5': '\u03BC',
  18190. '\u00B8': '\u0020\u0327',
  18191. '\u0132': '\u0049\u004A',
  18192. '\u0133': '\u0069\u006A',
  18193. '\u013F': '\u004C\u00B7',
  18194. '\u0140': '\u006C\u00B7',
  18195. '\u0149': '\u02BC\u006E',
  18196. '\u017F': '\u0073',
  18197. '\u01C4': '\u0044\u017D',
  18198. '\u01C5': '\u0044\u017E',
  18199. '\u01C6': '\u0064\u017E',
  18200. '\u01C7': '\u004C\u004A',
  18201. '\u01C8': '\u004C\u006A',
  18202. '\u01C9': '\u006C\u006A',
  18203. '\u01CA': '\u004E\u004A',
  18204. '\u01CB': '\u004E\u006A',
  18205. '\u01CC': '\u006E\u006A',
  18206. '\u01F1': '\u0044\u005A',
  18207. '\u01F2': '\u0044\u007A',
  18208. '\u01F3': '\u0064\u007A',
  18209. '\u02D8': '\u0020\u0306',
  18210. '\u02D9': '\u0020\u0307',
  18211. '\u02DA': '\u0020\u030A',
  18212. '\u02DB': '\u0020\u0328',
  18213. '\u02DC': '\u0020\u0303',
  18214. '\u02DD': '\u0020\u030B',
  18215. '\u037A': '\u0020\u0345',
  18216. '\u0384': '\u0020\u0301',
  18217. '\u03D0': '\u03B2',
  18218. '\u03D1': '\u03B8',
  18219. '\u03D2': '\u03A5',
  18220. '\u03D5': '\u03C6',
  18221. '\u03D6': '\u03C0',
  18222. '\u03F0': '\u03BA',
  18223. '\u03F1': '\u03C1',
  18224. '\u03F2': '\u03C2',
  18225. '\u03F4': '\u0398',
  18226. '\u03F5': '\u03B5',
  18227. '\u03F9': '\u03A3',
  18228. '\u0587': '\u0565\u0582',
  18229. '\u0675': '\u0627\u0674',
  18230. '\u0676': '\u0648\u0674',
  18231. '\u0677': '\u06C7\u0674',
  18232. '\u0678': '\u064A\u0674',
  18233. '\u0E33': '\u0E4D\u0E32',
  18234. '\u0EB3': '\u0ECD\u0EB2',
  18235. '\u0EDC': '\u0EAB\u0E99',
  18236. '\u0EDD': '\u0EAB\u0EA1',
  18237. '\u0F77': '\u0FB2\u0F81',
  18238. '\u0F79': '\u0FB3\u0F81',
  18239. '\u1E9A': '\u0061\u02BE',
  18240. '\u1FBD': '\u0020\u0313',
  18241. '\u1FBF': '\u0020\u0313',
  18242. '\u1FC0': '\u0020\u0342',
  18243. '\u1FFE': '\u0020\u0314',
  18244. '\u2002': '\u0020',
  18245. '\u2003': '\u0020',
  18246. '\u2004': '\u0020',
  18247. '\u2005': '\u0020',
  18248. '\u2006': '\u0020',
  18249. '\u2008': '\u0020',
  18250. '\u2009': '\u0020',
  18251. '\u200A': '\u0020',
  18252. '\u2017': '\u0020\u0333',
  18253. '\u2024': '\u002E',
  18254. '\u2025': '\u002E\u002E',
  18255. '\u2026': '\u002E\u002E\u002E',
  18256. '\u2033': '\u2032\u2032',
  18257. '\u2034': '\u2032\u2032\u2032',
  18258. '\u2036': '\u2035\u2035',
  18259. '\u2037': '\u2035\u2035\u2035',
  18260. '\u203C': '\u0021\u0021',
  18261. '\u203E': '\u0020\u0305',
  18262. '\u2047': '\u003F\u003F',
  18263. '\u2048': '\u003F\u0021',
  18264. '\u2049': '\u0021\u003F',
  18265. '\u2057': '\u2032\u2032\u2032\u2032',
  18266. '\u205F': '\u0020',
  18267. '\u20A8': '\u0052\u0073',
  18268. '\u2100': '\u0061\u002F\u0063',
  18269. '\u2101': '\u0061\u002F\u0073',
  18270. '\u2103': '\u00B0\u0043',
  18271. '\u2105': '\u0063\u002F\u006F',
  18272. '\u2106': '\u0063\u002F\u0075',
  18273. '\u2107': '\u0190',
  18274. '\u2109': '\u00B0\u0046',
  18275. '\u2116': '\u004E\u006F',
  18276. '\u2121': '\u0054\u0045\u004C',
  18277. '\u2135': '\u05D0',
  18278. '\u2136': '\u05D1',
  18279. '\u2137': '\u05D2',
  18280. '\u2138': '\u05D3',
  18281. '\u213B': '\u0046\u0041\u0058',
  18282. '\u2160': '\u0049',
  18283. '\u2161': '\u0049\u0049',
  18284. '\u2162': '\u0049\u0049\u0049',
  18285. '\u2163': '\u0049\u0056',
  18286. '\u2164': '\u0056',
  18287. '\u2165': '\u0056\u0049',
  18288. '\u2166': '\u0056\u0049\u0049',
  18289. '\u2167': '\u0056\u0049\u0049\u0049',
  18290. '\u2168': '\u0049\u0058',
  18291. '\u2169': '\u0058',
  18292. '\u216A': '\u0058\u0049',
  18293. '\u216B': '\u0058\u0049\u0049',
  18294. '\u216C': '\u004C',
  18295. '\u216D': '\u0043',
  18296. '\u216E': '\u0044',
  18297. '\u216F': '\u004D',
  18298. '\u2170': '\u0069',
  18299. '\u2171': '\u0069\u0069',
  18300. '\u2172': '\u0069\u0069\u0069',
  18301. '\u2173': '\u0069\u0076',
  18302. '\u2174': '\u0076',
  18303. '\u2175': '\u0076\u0069',
  18304. '\u2176': '\u0076\u0069\u0069',
  18305. '\u2177': '\u0076\u0069\u0069\u0069',
  18306. '\u2178': '\u0069\u0078',
  18307. '\u2179': '\u0078',
  18308. '\u217A': '\u0078\u0069',
  18309. '\u217B': '\u0078\u0069\u0069',
  18310. '\u217C': '\u006C',
  18311. '\u217D': '\u0063',
  18312. '\u217E': '\u0064',
  18313. '\u217F': '\u006D',
  18314. '\u222C': '\u222B\u222B',
  18315. '\u222D': '\u222B\u222B\u222B',
  18316. '\u222F': '\u222E\u222E',
  18317. '\u2230': '\u222E\u222E\u222E',
  18318. '\u2474': '\u0028\u0031\u0029',
  18319. '\u2475': '\u0028\u0032\u0029',
  18320. '\u2476': '\u0028\u0033\u0029',
  18321. '\u2477': '\u0028\u0034\u0029',
  18322. '\u2478': '\u0028\u0035\u0029',
  18323. '\u2479': '\u0028\u0036\u0029',
  18324. '\u247A': '\u0028\u0037\u0029',
  18325. '\u247B': '\u0028\u0038\u0029',
  18326. '\u247C': '\u0028\u0039\u0029',
  18327. '\u247D': '\u0028\u0031\u0030\u0029',
  18328. '\u247E': '\u0028\u0031\u0031\u0029',
  18329. '\u247F': '\u0028\u0031\u0032\u0029',
  18330. '\u2480': '\u0028\u0031\u0033\u0029',
  18331. '\u2481': '\u0028\u0031\u0034\u0029',
  18332. '\u2482': '\u0028\u0031\u0035\u0029',
  18333. '\u2483': '\u0028\u0031\u0036\u0029',
  18334. '\u2484': '\u0028\u0031\u0037\u0029',
  18335. '\u2485': '\u0028\u0031\u0038\u0029',
  18336. '\u2486': '\u0028\u0031\u0039\u0029',
  18337. '\u2487': '\u0028\u0032\u0030\u0029',
  18338. '\u2488': '\u0031\u002E',
  18339. '\u2489': '\u0032\u002E',
  18340. '\u248A': '\u0033\u002E',
  18341. '\u248B': '\u0034\u002E',
  18342. '\u248C': '\u0035\u002E',
  18343. '\u248D': '\u0036\u002E',
  18344. '\u248E': '\u0037\u002E',
  18345. '\u248F': '\u0038\u002E',
  18346. '\u2490': '\u0039\u002E',
  18347. '\u2491': '\u0031\u0030\u002E',
  18348. '\u2492': '\u0031\u0031\u002E',
  18349. '\u2493': '\u0031\u0032\u002E',
  18350. '\u2494': '\u0031\u0033\u002E',
  18351. '\u2495': '\u0031\u0034\u002E',
  18352. '\u2496': '\u0031\u0035\u002E',
  18353. '\u2497': '\u0031\u0036\u002E',
  18354. '\u2498': '\u0031\u0037\u002E',
  18355. '\u2499': '\u0031\u0038\u002E',
  18356. '\u249A': '\u0031\u0039\u002E',
  18357. '\u249B': '\u0032\u0030\u002E',
  18358. '\u249C': '\u0028\u0061\u0029',
  18359. '\u249D': '\u0028\u0062\u0029',
  18360. '\u249E': '\u0028\u0063\u0029',
  18361. '\u249F': '\u0028\u0064\u0029',
  18362. '\u24A0': '\u0028\u0065\u0029',
  18363. '\u24A1': '\u0028\u0066\u0029',
  18364. '\u24A2': '\u0028\u0067\u0029',
  18365. '\u24A3': '\u0028\u0068\u0029',
  18366. '\u24A4': '\u0028\u0069\u0029',
  18367. '\u24A5': '\u0028\u006A\u0029',
  18368. '\u24A6': '\u0028\u006B\u0029',
  18369. '\u24A7': '\u0028\u006C\u0029',
  18370. '\u24A8': '\u0028\u006D\u0029',
  18371. '\u24A9': '\u0028\u006E\u0029',
  18372. '\u24AA': '\u0028\u006F\u0029',
  18373. '\u24AB': '\u0028\u0070\u0029',
  18374. '\u24AC': '\u0028\u0071\u0029',
  18375. '\u24AD': '\u0028\u0072\u0029',
  18376. '\u24AE': '\u0028\u0073\u0029',
  18377. '\u24AF': '\u0028\u0074\u0029',
  18378. '\u24B0': '\u0028\u0075\u0029',
  18379. '\u24B1': '\u0028\u0076\u0029',
  18380. '\u24B2': '\u0028\u0077\u0029',
  18381. '\u24B3': '\u0028\u0078\u0029',
  18382. '\u24B4': '\u0028\u0079\u0029',
  18383. '\u24B5': '\u0028\u007A\u0029',
  18384. '\u2A0C': '\u222B\u222B\u222B\u222B',
  18385. '\u2A74': '\u003A\u003A\u003D',
  18386. '\u2A75': '\u003D\u003D',
  18387. '\u2A76': '\u003D\u003D\u003D',
  18388. '\u2E9F': '\u6BCD',
  18389. '\u2EF3': '\u9F9F',
  18390. '\u2F00': '\u4E00',
  18391. '\u2F01': '\u4E28',
  18392. '\u2F02': '\u4E36',
  18393. '\u2F03': '\u4E3F',
  18394. '\u2F04': '\u4E59',
  18395. '\u2F05': '\u4E85',
  18396. '\u2F06': '\u4E8C',
  18397. '\u2F07': '\u4EA0',
  18398. '\u2F08': '\u4EBA',
  18399. '\u2F09': '\u513F',
  18400. '\u2F0A': '\u5165',
  18401. '\u2F0B': '\u516B',
  18402. '\u2F0C': '\u5182',
  18403. '\u2F0D': '\u5196',
  18404. '\u2F0E': '\u51AB',
  18405. '\u2F0F': '\u51E0',
  18406. '\u2F10': '\u51F5',
  18407. '\u2F11': '\u5200',
  18408. '\u2F12': '\u529B',
  18409. '\u2F13': '\u52F9',
  18410. '\u2F14': '\u5315',
  18411. '\u2F15': '\u531A',
  18412. '\u2F16': '\u5338',
  18413. '\u2F17': '\u5341',
  18414. '\u2F18': '\u535C',
  18415. '\u2F19': '\u5369',
  18416. '\u2F1A': '\u5382',
  18417. '\u2F1B': '\u53B6',
  18418. '\u2F1C': '\u53C8',
  18419. '\u2F1D': '\u53E3',
  18420. '\u2F1E': '\u56D7',
  18421. '\u2F1F': '\u571F',
  18422. '\u2F20': '\u58EB',
  18423. '\u2F21': '\u5902',
  18424. '\u2F22': '\u590A',
  18425. '\u2F23': '\u5915',
  18426. '\u2F24': '\u5927',
  18427. '\u2F25': '\u5973',
  18428. '\u2F26': '\u5B50',
  18429. '\u2F27': '\u5B80',
  18430. '\u2F28': '\u5BF8',
  18431. '\u2F29': '\u5C0F',
  18432. '\u2F2A': '\u5C22',
  18433. '\u2F2B': '\u5C38',
  18434. '\u2F2C': '\u5C6E',
  18435. '\u2F2D': '\u5C71',
  18436. '\u2F2E': '\u5DDB',
  18437. '\u2F2F': '\u5DE5',
  18438. '\u2F30': '\u5DF1',
  18439. '\u2F31': '\u5DFE',
  18440. '\u2F32': '\u5E72',
  18441. '\u2F33': '\u5E7A',
  18442. '\u2F34': '\u5E7F',
  18443. '\u2F35': '\u5EF4',
  18444. '\u2F36': '\u5EFE',
  18445. '\u2F37': '\u5F0B',
  18446. '\u2F38': '\u5F13',
  18447. '\u2F39': '\u5F50',
  18448. '\u2F3A': '\u5F61',
  18449. '\u2F3B': '\u5F73',
  18450. '\u2F3C': '\u5FC3',
  18451. '\u2F3D': '\u6208',
  18452. '\u2F3E': '\u6236',
  18453. '\u2F3F': '\u624B',
  18454. '\u2F40': '\u652F',
  18455. '\u2F41': '\u6534',
  18456. '\u2F42': '\u6587',
  18457. '\u2F43': '\u6597',
  18458. '\u2F44': '\u65A4',
  18459. '\u2F45': '\u65B9',
  18460. '\u2F46': '\u65E0',
  18461. '\u2F47': '\u65E5',
  18462. '\u2F48': '\u66F0',
  18463. '\u2F49': '\u6708',
  18464. '\u2F4A': '\u6728',
  18465. '\u2F4B': '\u6B20',
  18466. '\u2F4C': '\u6B62',
  18467. '\u2F4D': '\u6B79',
  18468. '\u2F4E': '\u6BB3',
  18469. '\u2F4F': '\u6BCB',
  18470. '\u2F50': '\u6BD4',
  18471. '\u2F51': '\u6BDB',
  18472. '\u2F52': '\u6C0F',
  18473. '\u2F53': '\u6C14',
  18474. '\u2F54': '\u6C34',
  18475. '\u2F55': '\u706B',
  18476. '\u2F56': '\u722A',
  18477. '\u2F57': '\u7236',
  18478. '\u2F58': '\u723B',
  18479. '\u2F59': '\u723F',
  18480. '\u2F5A': '\u7247',
  18481. '\u2F5B': '\u7259',
  18482. '\u2F5C': '\u725B',
  18483. '\u2F5D': '\u72AC',
  18484. '\u2F5E': '\u7384',
  18485. '\u2F5F': '\u7389',
  18486. '\u2F60': '\u74DC',
  18487. '\u2F61': '\u74E6',
  18488. '\u2F62': '\u7518',
  18489. '\u2F63': '\u751F',
  18490. '\u2F64': '\u7528',
  18491. '\u2F65': '\u7530',
  18492. '\u2F66': '\u758B',
  18493. '\u2F67': '\u7592',
  18494. '\u2F68': '\u7676',
  18495. '\u2F69': '\u767D',
  18496. '\u2F6A': '\u76AE',
  18497. '\u2F6B': '\u76BF',
  18498. '\u2F6C': '\u76EE',
  18499. '\u2F6D': '\u77DB',
  18500. '\u2F6E': '\u77E2',
  18501. '\u2F6F': '\u77F3',
  18502. '\u2F70': '\u793A',
  18503. '\u2F71': '\u79B8',
  18504. '\u2F72': '\u79BE',
  18505. '\u2F73': '\u7A74',
  18506. '\u2F74': '\u7ACB',
  18507. '\u2F75': '\u7AF9',
  18508. '\u2F76': '\u7C73',
  18509. '\u2F77': '\u7CF8',
  18510. '\u2F78': '\u7F36',
  18511. '\u2F79': '\u7F51',
  18512. '\u2F7A': '\u7F8A',
  18513. '\u2F7B': '\u7FBD',
  18514. '\u2F7C': '\u8001',
  18515. '\u2F7D': '\u800C',
  18516. '\u2F7E': '\u8012',
  18517. '\u2F7F': '\u8033',
  18518. '\u2F80': '\u807F',
  18519. '\u2F81': '\u8089',
  18520. '\u2F82': '\u81E3',
  18521. '\u2F83': '\u81EA',
  18522. '\u2F84': '\u81F3',
  18523. '\u2F85': '\u81FC',
  18524. '\u2F86': '\u820C',
  18525. '\u2F87': '\u821B',
  18526. '\u2F88': '\u821F',
  18527. '\u2F89': '\u826E',
  18528. '\u2F8A': '\u8272',
  18529. '\u2F8B': '\u8278',
  18530. '\u2F8C': '\u864D',
  18531. '\u2F8D': '\u866B',
  18532. '\u2F8E': '\u8840',
  18533. '\u2F8F': '\u884C',
  18534. '\u2F90': '\u8863',
  18535. '\u2F91': '\u897E',
  18536. '\u2F92': '\u898B',
  18537. '\u2F93': '\u89D2',
  18538. '\u2F94': '\u8A00',
  18539. '\u2F95': '\u8C37',
  18540. '\u2F96': '\u8C46',
  18541. '\u2F97': '\u8C55',
  18542. '\u2F98': '\u8C78',
  18543. '\u2F99': '\u8C9D',
  18544. '\u2F9A': '\u8D64',
  18545. '\u2F9B': '\u8D70',
  18546. '\u2F9C': '\u8DB3',
  18547. '\u2F9D': '\u8EAB',
  18548. '\u2F9E': '\u8ECA',
  18549. '\u2F9F': '\u8F9B',
  18550. '\u2FA0': '\u8FB0',
  18551. '\u2FA1': '\u8FB5',
  18552. '\u2FA2': '\u9091',
  18553. '\u2FA3': '\u9149',
  18554. '\u2FA4': '\u91C6',
  18555. '\u2FA5': '\u91CC',
  18556. '\u2FA6': '\u91D1',
  18557. '\u2FA7': '\u9577',
  18558. '\u2FA8': '\u9580',
  18559. '\u2FA9': '\u961C',
  18560. '\u2FAA': '\u96B6',
  18561. '\u2FAB': '\u96B9',
  18562. '\u2FAC': '\u96E8',
  18563. '\u2FAD': '\u9751',
  18564. '\u2FAE': '\u975E',
  18565. '\u2FAF': '\u9762',
  18566. '\u2FB0': '\u9769',
  18567. '\u2FB1': '\u97CB',
  18568. '\u2FB2': '\u97ED',
  18569. '\u2FB3': '\u97F3',
  18570. '\u2FB4': '\u9801',
  18571. '\u2FB5': '\u98A8',
  18572. '\u2FB6': '\u98DB',
  18573. '\u2FB7': '\u98DF',
  18574. '\u2FB8': '\u9996',
  18575. '\u2FB9': '\u9999',
  18576. '\u2FBA': '\u99AC',
  18577. '\u2FBB': '\u9AA8',
  18578. '\u2FBC': '\u9AD8',
  18579. '\u2FBD': '\u9ADF',
  18580. '\u2FBE': '\u9B25',
  18581. '\u2FBF': '\u9B2F',
  18582. '\u2FC0': '\u9B32',
  18583. '\u2FC1': '\u9B3C',
  18584. '\u2FC2': '\u9B5A',
  18585. '\u2FC3': '\u9CE5',
  18586. '\u2FC4': '\u9E75',
  18587. '\u2FC5': '\u9E7F',
  18588. '\u2FC6': '\u9EA5',
  18589. '\u2FC7': '\u9EBB',
  18590. '\u2FC8': '\u9EC3',
  18591. '\u2FC9': '\u9ECD',
  18592. '\u2FCA': '\u9ED1',
  18593. '\u2FCB': '\u9EF9',
  18594. '\u2FCC': '\u9EFD',
  18595. '\u2FCD': '\u9F0E',
  18596. '\u2FCE': '\u9F13',
  18597. '\u2FCF': '\u9F20',
  18598. '\u2FD0': '\u9F3B',
  18599. '\u2FD1': '\u9F4A',
  18600. '\u2FD2': '\u9F52',
  18601. '\u2FD3': '\u9F8D',
  18602. '\u2FD4': '\u9F9C',
  18603. '\u2FD5': '\u9FA0',
  18604. '\u3036': '\u3012',
  18605. '\u3038': '\u5341',
  18606. '\u3039': '\u5344',
  18607. '\u303A': '\u5345',
  18608. '\u309B': '\u0020\u3099',
  18609. '\u309C': '\u0020\u309A',
  18610. '\u3131': '\u1100',
  18611. '\u3132': '\u1101',
  18612. '\u3133': '\u11AA',
  18613. '\u3134': '\u1102',
  18614. '\u3135': '\u11AC',
  18615. '\u3136': '\u11AD',
  18616. '\u3137': '\u1103',
  18617. '\u3138': '\u1104',
  18618. '\u3139': '\u1105',
  18619. '\u313A': '\u11B0',
  18620. '\u313B': '\u11B1',
  18621. '\u313C': '\u11B2',
  18622. '\u313D': '\u11B3',
  18623. '\u313E': '\u11B4',
  18624. '\u313F': '\u11B5',
  18625. '\u3140': '\u111A',
  18626. '\u3141': '\u1106',
  18627. '\u3142': '\u1107',
  18628. '\u3143': '\u1108',
  18629. '\u3144': '\u1121',
  18630. '\u3145': '\u1109',
  18631. '\u3146': '\u110A',
  18632. '\u3147': '\u110B',
  18633. '\u3148': '\u110C',
  18634. '\u3149': '\u110D',
  18635. '\u314A': '\u110E',
  18636. '\u314B': '\u110F',
  18637. '\u314C': '\u1110',
  18638. '\u314D': '\u1111',
  18639. '\u314E': '\u1112',
  18640. '\u314F': '\u1161',
  18641. '\u3150': '\u1162',
  18642. '\u3151': '\u1163',
  18643. '\u3152': '\u1164',
  18644. '\u3153': '\u1165',
  18645. '\u3154': '\u1166',
  18646. '\u3155': '\u1167',
  18647. '\u3156': '\u1168',
  18648. '\u3157': '\u1169',
  18649. '\u3158': '\u116A',
  18650. '\u3159': '\u116B',
  18651. '\u315A': '\u116C',
  18652. '\u315B': '\u116D',
  18653. '\u315C': '\u116E',
  18654. '\u315D': '\u116F',
  18655. '\u315E': '\u1170',
  18656. '\u315F': '\u1171',
  18657. '\u3160': '\u1172',
  18658. '\u3161': '\u1173',
  18659. '\u3162': '\u1174',
  18660. '\u3163': '\u1175',
  18661. '\u3164': '\u1160',
  18662. '\u3165': '\u1114',
  18663. '\u3166': '\u1115',
  18664. '\u3167': '\u11C7',
  18665. '\u3168': '\u11C8',
  18666. '\u3169': '\u11CC',
  18667. '\u316A': '\u11CE',
  18668. '\u316B': '\u11D3',
  18669. '\u316C': '\u11D7',
  18670. '\u316D': '\u11D9',
  18671. '\u316E': '\u111C',
  18672. '\u316F': '\u11DD',
  18673. '\u3170': '\u11DF',
  18674. '\u3171': '\u111D',
  18675. '\u3172': '\u111E',
  18676. '\u3173': '\u1120',
  18677. '\u3174': '\u1122',
  18678. '\u3175': '\u1123',
  18679. '\u3176': '\u1127',
  18680. '\u3177': '\u1129',
  18681. '\u3178': '\u112B',
  18682. '\u3179': '\u112C',
  18683. '\u317A': '\u112D',
  18684. '\u317B': '\u112E',
  18685. '\u317C': '\u112F',
  18686. '\u317D': '\u1132',
  18687. '\u317E': '\u1136',
  18688. '\u317F': '\u1140',
  18689. '\u3180': '\u1147',
  18690. '\u3181': '\u114C',
  18691. '\u3182': '\u11F1',
  18692. '\u3183': '\u11F2',
  18693. '\u3184': '\u1157',
  18694. '\u3185': '\u1158',
  18695. '\u3186': '\u1159',
  18696. '\u3187': '\u1184',
  18697. '\u3188': '\u1185',
  18698. '\u3189': '\u1188',
  18699. '\u318A': '\u1191',
  18700. '\u318B': '\u1192',
  18701. '\u318C': '\u1194',
  18702. '\u318D': '\u119E',
  18703. '\u318E': '\u11A1',
  18704. '\u3200': '\u0028\u1100\u0029',
  18705. '\u3201': '\u0028\u1102\u0029',
  18706. '\u3202': '\u0028\u1103\u0029',
  18707. '\u3203': '\u0028\u1105\u0029',
  18708. '\u3204': '\u0028\u1106\u0029',
  18709. '\u3205': '\u0028\u1107\u0029',
  18710. '\u3206': '\u0028\u1109\u0029',
  18711. '\u3207': '\u0028\u110B\u0029',
  18712. '\u3208': '\u0028\u110C\u0029',
  18713. '\u3209': '\u0028\u110E\u0029',
  18714. '\u320A': '\u0028\u110F\u0029',
  18715. '\u320B': '\u0028\u1110\u0029',
  18716. '\u320C': '\u0028\u1111\u0029',
  18717. '\u320D': '\u0028\u1112\u0029',
  18718. '\u320E': '\u0028\u1100\u1161\u0029',
  18719. '\u320F': '\u0028\u1102\u1161\u0029',
  18720. '\u3210': '\u0028\u1103\u1161\u0029',
  18721. '\u3211': '\u0028\u1105\u1161\u0029',
  18722. '\u3212': '\u0028\u1106\u1161\u0029',
  18723. '\u3213': '\u0028\u1107\u1161\u0029',
  18724. '\u3214': '\u0028\u1109\u1161\u0029',
  18725. '\u3215': '\u0028\u110B\u1161\u0029',
  18726. '\u3216': '\u0028\u110C\u1161\u0029',
  18727. '\u3217': '\u0028\u110E\u1161\u0029',
  18728. '\u3218': '\u0028\u110F\u1161\u0029',
  18729. '\u3219': '\u0028\u1110\u1161\u0029',
  18730. '\u321A': '\u0028\u1111\u1161\u0029',
  18731. '\u321B': '\u0028\u1112\u1161\u0029',
  18732. '\u321C': '\u0028\u110C\u116E\u0029',
  18733. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  18734. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  18735. '\u3220': '\u0028\u4E00\u0029',
  18736. '\u3221': '\u0028\u4E8C\u0029',
  18737. '\u3222': '\u0028\u4E09\u0029',
  18738. '\u3223': '\u0028\u56DB\u0029',
  18739. '\u3224': '\u0028\u4E94\u0029',
  18740. '\u3225': '\u0028\u516D\u0029',
  18741. '\u3226': '\u0028\u4E03\u0029',
  18742. '\u3227': '\u0028\u516B\u0029',
  18743. '\u3228': '\u0028\u4E5D\u0029',
  18744. '\u3229': '\u0028\u5341\u0029',
  18745. '\u322A': '\u0028\u6708\u0029',
  18746. '\u322B': '\u0028\u706B\u0029',
  18747. '\u322C': '\u0028\u6C34\u0029',
  18748. '\u322D': '\u0028\u6728\u0029',
  18749. '\u322E': '\u0028\u91D1\u0029',
  18750. '\u322F': '\u0028\u571F\u0029',
  18751. '\u3230': '\u0028\u65E5\u0029',
  18752. '\u3231': '\u0028\u682A\u0029',
  18753. '\u3232': '\u0028\u6709\u0029',
  18754. '\u3233': '\u0028\u793E\u0029',
  18755. '\u3234': '\u0028\u540D\u0029',
  18756. '\u3235': '\u0028\u7279\u0029',
  18757. '\u3236': '\u0028\u8CA1\u0029',
  18758. '\u3237': '\u0028\u795D\u0029',
  18759. '\u3238': '\u0028\u52B4\u0029',
  18760. '\u3239': '\u0028\u4EE3\u0029',
  18761. '\u323A': '\u0028\u547C\u0029',
  18762. '\u323B': '\u0028\u5B66\u0029',
  18763. '\u323C': '\u0028\u76E3\u0029',
  18764. '\u323D': '\u0028\u4F01\u0029',
  18765. '\u323E': '\u0028\u8CC7\u0029',
  18766. '\u323F': '\u0028\u5354\u0029',
  18767. '\u3240': '\u0028\u796D\u0029',
  18768. '\u3241': '\u0028\u4F11\u0029',
  18769. '\u3242': '\u0028\u81EA\u0029',
  18770. '\u3243': '\u0028\u81F3\u0029',
  18771. '\u32C0': '\u0031\u6708',
  18772. '\u32C1': '\u0032\u6708',
  18773. '\u32C2': '\u0033\u6708',
  18774. '\u32C3': '\u0034\u6708',
  18775. '\u32C4': '\u0035\u6708',
  18776. '\u32C5': '\u0036\u6708',
  18777. '\u32C6': '\u0037\u6708',
  18778. '\u32C7': '\u0038\u6708',
  18779. '\u32C8': '\u0039\u6708',
  18780. '\u32C9': '\u0031\u0030\u6708',
  18781. '\u32CA': '\u0031\u0031\u6708',
  18782. '\u32CB': '\u0031\u0032\u6708',
  18783. '\u3358': '\u0030\u70B9',
  18784. '\u3359': '\u0031\u70B9',
  18785. '\u335A': '\u0032\u70B9',
  18786. '\u335B': '\u0033\u70B9',
  18787. '\u335C': '\u0034\u70B9',
  18788. '\u335D': '\u0035\u70B9',
  18789. '\u335E': '\u0036\u70B9',
  18790. '\u335F': '\u0037\u70B9',
  18791. '\u3360': '\u0038\u70B9',
  18792. '\u3361': '\u0039\u70B9',
  18793. '\u3362': '\u0031\u0030\u70B9',
  18794. '\u3363': '\u0031\u0031\u70B9',
  18795. '\u3364': '\u0031\u0032\u70B9',
  18796. '\u3365': '\u0031\u0033\u70B9',
  18797. '\u3366': '\u0031\u0034\u70B9',
  18798. '\u3367': '\u0031\u0035\u70B9',
  18799. '\u3368': '\u0031\u0036\u70B9',
  18800. '\u3369': '\u0031\u0037\u70B9',
  18801. '\u336A': '\u0031\u0038\u70B9',
  18802. '\u336B': '\u0031\u0039\u70B9',
  18803. '\u336C': '\u0032\u0030\u70B9',
  18804. '\u336D': '\u0032\u0031\u70B9',
  18805. '\u336E': '\u0032\u0032\u70B9',
  18806. '\u336F': '\u0032\u0033\u70B9',
  18807. '\u3370': '\u0032\u0034\u70B9',
  18808. '\u33E0': '\u0031\u65E5',
  18809. '\u33E1': '\u0032\u65E5',
  18810. '\u33E2': '\u0033\u65E5',
  18811. '\u33E3': '\u0034\u65E5',
  18812. '\u33E4': '\u0035\u65E5',
  18813. '\u33E5': '\u0036\u65E5',
  18814. '\u33E6': '\u0037\u65E5',
  18815. '\u33E7': '\u0038\u65E5',
  18816. '\u33E8': '\u0039\u65E5',
  18817. '\u33E9': '\u0031\u0030\u65E5',
  18818. '\u33EA': '\u0031\u0031\u65E5',
  18819. '\u33EB': '\u0031\u0032\u65E5',
  18820. '\u33EC': '\u0031\u0033\u65E5',
  18821. '\u33ED': '\u0031\u0034\u65E5',
  18822. '\u33EE': '\u0031\u0035\u65E5',
  18823. '\u33EF': '\u0031\u0036\u65E5',
  18824. '\u33F0': '\u0031\u0037\u65E5',
  18825. '\u33F1': '\u0031\u0038\u65E5',
  18826. '\u33F2': '\u0031\u0039\u65E5',
  18827. '\u33F3': '\u0032\u0030\u65E5',
  18828. '\u33F4': '\u0032\u0031\u65E5',
  18829. '\u33F5': '\u0032\u0032\u65E5',
  18830. '\u33F6': '\u0032\u0033\u65E5',
  18831. '\u33F7': '\u0032\u0034\u65E5',
  18832. '\u33F8': '\u0032\u0035\u65E5',
  18833. '\u33F9': '\u0032\u0036\u65E5',
  18834. '\u33FA': '\u0032\u0037\u65E5',
  18835. '\u33FB': '\u0032\u0038\u65E5',
  18836. '\u33FC': '\u0032\u0039\u65E5',
  18837. '\u33FD': '\u0033\u0030\u65E5',
  18838. '\u33FE': '\u0033\u0031\u65E5',
  18839. '\uFB00': '\u0066\u0066',
  18840. '\uFB01': '\u0066\u0069',
  18841. '\uFB02': '\u0066\u006C',
  18842. '\uFB03': '\u0066\u0066\u0069',
  18843. '\uFB04': '\u0066\u0066\u006C',
  18844. '\uFB05': '\u017F\u0074',
  18845. '\uFB06': '\u0073\u0074',
  18846. '\uFB13': '\u0574\u0576',
  18847. '\uFB14': '\u0574\u0565',
  18848. '\uFB15': '\u0574\u056B',
  18849. '\uFB16': '\u057E\u0576',
  18850. '\uFB17': '\u0574\u056D',
  18851. '\uFB4F': '\u05D0\u05DC',
  18852. '\uFB50': '\u0671',
  18853. '\uFB51': '\u0671',
  18854. '\uFB52': '\u067B',
  18855. '\uFB53': '\u067B',
  18856. '\uFB54': '\u067B',
  18857. '\uFB55': '\u067B',
  18858. '\uFB56': '\u067E',
  18859. '\uFB57': '\u067E',
  18860. '\uFB58': '\u067E',
  18861. '\uFB59': '\u067E',
  18862. '\uFB5A': '\u0680',
  18863. '\uFB5B': '\u0680',
  18864. '\uFB5C': '\u0680',
  18865. '\uFB5D': '\u0680',
  18866. '\uFB5E': '\u067A',
  18867. '\uFB5F': '\u067A',
  18868. '\uFB60': '\u067A',
  18869. '\uFB61': '\u067A',
  18870. '\uFB62': '\u067F',
  18871. '\uFB63': '\u067F',
  18872. '\uFB64': '\u067F',
  18873. '\uFB65': '\u067F',
  18874. '\uFB66': '\u0679',
  18875. '\uFB67': '\u0679',
  18876. '\uFB68': '\u0679',
  18877. '\uFB69': '\u0679',
  18878. '\uFB6A': '\u06A4',
  18879. '\uFB6B': '\u06A4',
  18880. '\uFB6C': '\u06A4',
  18881. '\uFB6D': '\u06A4',
  18882. '\uFB6E': '\u06A6',
  18883. '\uFB6F': '\u06A6',
  18884. '\uFB70': '\u06A6',
  18885. '\uFB71': '\u06A6',
  18886. '\uFB72': '\u0684',
  18887. '\uFB73': '\u0684',
  18888. '\uFB74': '\u0684',
  18889. '\uFB75': '\u0684',
  18890. '\uFB76': '\u0683',
  18891. '\uFB77': '\u0683',
  18892. '\uFB78': '\u0683',
  18893. '\uFB79': '\u0683',
  18894. '\uFB7A': '\u0686',
  18895. '\uFB7B': '\u0686',
  18896. '\uFB7C': '\u0686',
  18897. '\uFB7D': '\u0686',
  18898. '\uFB7E': '\u0687',
  18899. '\uFB7F': '\u0687',
  18900. '\uFB80': '\u0687',
  18901. '\uFB81': '\u0687',
  18902. '\uFB82': '\u068D',
  18903. '\uFB83': '\u068D',
  18904. '\uFB84': '\u068C',
  18905. '\uFB85': '\u068C',
  18906. '\uFB86': '\u068E',
  18907. '\uFB87': '\u068E',
  18908. '\uFB88': '\u0688',
  18909. '\uFB89': '\u0688',
  18910. '\uFB8A': '\u0698',
  18911. '\uFB8B': '\u0698',
  18912. '\uFB8C': '\u0691',
  18913. '\uFB8D': '\u0691',
  18914. '\uFB8E': '\u06A9',
  18915. '\uFB8F': '\u06A9',
  18916. '\uFB90': '\u06A9',
  18917. '\uFB91': '\u06A9',
  18918. '\uFB92': '\u06AF',
  18919. '\uFB93': '\u06AF',
  18920. '\uFB94': '\u06AF',
  18921. '\uFB95': '\u06AF',
  18922. '\uFB96': '\u06B3',
  18923. '\uFB97': '\u06B3',
  18924. '\uFB98': '\u06B3',
  18925. '\uFB99': '\u06B3',
  18926. '\uFB9A': '\u06B1',
  18927. '\uFB9B': '\u06B1',
  18928. '\uFB9C': '\u06B1',
  18929. '\uFB9D': '\u06B1',
  18930. '\uFB9E': '\u06BA',
  18931. '\uFB9F': '\u06BA',
  18932. '\uFBA0': '\u06BB',
  18933. '\uFBA1': '\u06BB',
  18934. '\uFBA2': '\u06BB',
  18935. '\uFBA3': '\u06BB',
  18936. '\uFBA4': '\u06C0',
  18937. '\uFBA5': '\u06C0',
  18938. '\uFBA6': '\u06C1',
  18939. '\uFBA7': '\u06C1',
  18940. '\uFBA8': '\u06C1',
  18941. '\uFBA9': '\u06C1',
  18942. '\uFBAA': '\u06BE',
  18943. '\uFBAB': '\u06BE',
  18944. '\uFBAC': '\u06BE',
  18945. '\uFBAD': '\u06BE',
  18946. '\uFBAE': '\u06D2',
  18947. '\uFBAF': '\u06D2',
  18948. '\uFBB0': '\u06D3',
  18949. '\uFBB1': '\u06D3',
  18950. '\uFBD3': '\u06AD',
  18951. '\uFBD4': '\u06AD',
  18952. '\uFBD5': '\u06AD',
  18953. '\uFBD6': '\u06AD',
  18954. '\uFBD7': '\u06C7',
  18955. '\uFBD8': '\u06C7',
  18956. '\uFBD9': '\u06C6',
  18957. '\uFBDA': '\u06C6',
  18958. '\uFBDB': '\u06C8',
  18959. '\uFBDC': '\u06C8',
  18960. '\uFBDD': '\u0677',
  18961. '\uFBDE': '\u06CB',
  18962. '\uFBDF': '\u06CB',
  18963. '\uFBE0': '\u06C5',
  18964. '\uFBE1': '\u06C5',
  18965. '\uFBE2': '\u06C9',
  18966. '\uFBE3': '\u06C9',
  18967. '\uFBE4': '\u06D0',
  18968. '\uFBE5': '\u06D0',
  18969. '\uFBE6': '\u06D0',
  18970. '\uFBE7': '\u06D0',
  18971. '\uFBE8': '\u0649',
  18972. '\uFBE9': '\u0649',
  18973. '\uFBEA': '\u0626\u0627',
  18974. '\uFBEB': '\u0626\u0627',
  18975. '\uFBEC': '\u0626\u06D5',
  18976. '\uFBED': '\u0626\u06D5',
  18977. '\uFBEE': '\u0626\u0648',
  18978. '\uFBEF': '\u0626\u0648',
  18979. '\uFBF0': '\u0626\u06C7',
  18980. '\uFBF1': '\u0626\u06C7',
  18981. '\uFBF2': '\u0626\u06C6',
  18982. '\uFBF3': '\u0626\u06C6',
  18983. '\uFBF4': '\u0626\u06C8',
  18984. '\uFBF5': '\u0626\u06C8',
  18985. '\uFBF6': '\u0626\u06D0',
  18986. '\uFBF7': '\u0626\u06D0',
  18987. '\uFBF8': '\u0626\u06D0',
  18988. '\uFBF9': '\u0626\u0649',
  18989. '\uFBFA': '\u0626\u0649',
  18990. '\uFBFB': '\u0626\u0649',
  18991. '\uFBFC': '\u06CC',
  18992. '\uFBFD': '\u06CC',
  18993. '\uFBFE': '\u06CC',
  18994. '\uFBFF': '\u06CC',
  18995. '\uFC00': '\u0626\u062C',
  18996. '\uFC01': '\u0626\u062D',
  18997. '\uFC02': '\u0626\u0645',
  18998. '\uFC03': '\u0626\u0649',
  18999. '\uFC04': '\u0626\u064A',
  19000. '\uFC05': '\u0628\u062C',
  19001. '\uFC06': '\u0628\u062D',
  19002. '\uFC07': '\u0628\u062E',
  19003. '\uFC08': '\u0628\u0645',
  19004. '\uFC09': '\u0628\u0649',
  19005. '\uFC0A': '\u0628\u064A',
  19006. '\uFC0B': '\u062A\u062C',
  19007. '\uFC0C': '\u062A\u062D',
  19008. '\uFC0D': '\u062A\u062E',
  19009. '\uFC0E': '\u062A\u0645',
  19010. '\uFC0F': '\u062A\u0649',
  19011. '\uFC10': '\u062A\u064A',
  19012. '\uFC11': '\u062B\u062C',
  19013. '\uFC12': '\u062B\u0645',
  19014. '\uFC13': '\u062B\u0649',
  19015. '\uFC14': '\u062B\u064A',
  19016. '\uFC15': '\u062C\u062D',
  19017. '\uFC16': '\u062C\u0645',
  19018. '\uFC17': '\u062D\u062C',
  19019. '\uFC18': '\u062D\u0645',
  19020. '\uFC19': '\u062E\u062C',
  19021. '\uFC1A': '\u062E\u062D',
  19022. '\uFC1B': '\u062E\u0645',
  19023. '\uFC1C': '\u0633\u062C',
  19024. '\uFC1D': '\u0633\u062D',
  19025. '\uFC1E': '\u0633\u062E',
  19026. '\uFC1F': '\u0633\u0645',
  19027. '\uFC20': '\u0635\u062D',
  19028. '\uFC21': '\u0635\u0645',
  19029. '\uFC22': '\u0636\u062C',
  19030. '\uFC23': '\u0636\u062D',
  19031. '\uFC24': '\u0636\u062E',
  19032. '\uFC25': '\u0636\u0645',
  19033. '\uFC26': '\u0637\u062D',
  19034. '\uFC27': '\u0637\u0645',
  19035. '\uFC28': '\u0638\u0645',
  19036. '\uFC29': '\u0639\u062C',
  19037. '\uFC2A': '\u0639\u0645',
  19038. '\uFC2B': '\u063A\u062C',
  19039. '\uFC2C': '\u063A\u0645',
  19040. '\uFC2D': '\u0641\u062C',
  19041. '\uFC2E': '\u0641\u062D',
  19042. '\uFC2F': '\u0641\u062E',
  19043. '\uFC30': '\u0641\u0645',
  19044. '\uFC31': '\u0641\u0649',
  19045. '\uFC32': '\u0641\u064A',
  19046. '\uFC33': '\u0642\u062D',
  19047. '\uFC34': '\u0642\u0645',
  19048. '\uFC35': '\u0642\u0649',
  19049. '\uFC36': '\u0642\u064A',
  19050. '\uFC37': '\u0643\u0627',
  19051. '\uFC38': '\u0643\u062C',
  19052. '\uFC39': '\u0643\u062D',
  19053. '\uFC3A': '\u0643\u062E',
  19054. '\uFC3B': '\u0643\u0644',
  19055. '\uFC3C': '\u0643\u0645',
  19056. '\uFC3D': '\u0643\u0649',
  19057. '\uFC3E': '\u0643\u064A',
  19058. '\uFC3F': '\u0644\u062C',
  19059. '\uFC40': '\u0644\u062D',
  19060. '\uFC41': '\u0644\u062E',
  19061. '\uFC42': '\u0644\u0645',
  19062. '\uFC43': '\u0644\u0649',
  19063. '\uFC44': '\u0644\u064A',
  19064. '\uFC45': '\u0645\u062C',
  19065. '\uFC46': '\u0645\u062D',
  19066. '\uFC47': '\u0645\u062E',
  19067. '\uFC48': '\u0645\u0645',
  19068. '\uFC49': '\u0645\u0649',
  19069. '\uFC4A': '\u0645\u064A',
  19070. '\uFC4B': '\u0646\u062C',
  19071. '\uFC4C': '\u0646\u062D',
  19072. '\uFC4D': '\u0646\u062E',
  19073. '\uFC4E': '\u0646\u0645',
  19074. '\uFC4F': '\u0646\u0649',
  19075. '\uFC50': '\u0646\u064A',
  19076. '\uFC51': '\u0647\u062C',
  19077. '\uFC52': '\u0647\u0645',
  19078. '\uFC53': '\u0647\u0649',
  19079. '\uFC54': '\u0647\u064A',
  19080. '\uFC55': '\u064A\u062C',
  19081. '\uFC56': '\u064A\u062D',
  19082. '\uFC57': '\u064A\u062E',
  19083. '\uFC58': '\u064A\u0645',
  19084. '\uFC59': '\u064A\u0649',
  19085. '\uFC5A': '\u064A\u064A',
  19086. '\uFC5B': '\u0630\u0670',
  19087. '\uFC5C': '\u0631\u0670',
  19088. '\uFC5D': '\u0649\u0670',
  19089. '\uFC5E': '\u0020\u064C\u0651',
  19090. '\uFC5F': '\u0020\u064D\u0651',
  19091. '\uFC60': '\u0020\u064E\u0651',
  19092. '\uFC61': '\u0020\u064F\u0651',
  19093. '\uFC62': '\u0020\u0650\u0651',
  19094. '\uFC63': '\u0020\u0651\u0670',
  19095. '\uFC64': '\u0626\u0631',
  19096. '\uFC65': '\u0626\u0632',
  19097. '\uFC66': '\u0626\u0645',
  19098. '\uFC67': '\u0626\u0646',
  19099. '\uFC68': '\u0626\u0649',
  19100. '\uFC69': '\u0626\u064A',
  19101. '\uFC6A': '\u0628\u0631',
  19102. '\uFC6B': '\u0628\u0632',
  19103. '\uFC6C': '\u0628\u0645',
  19104. '\uFC6D': '\u0628\u0646',
  19105. '\uFC6E': '\u0628\u0649',
  19106. '\uFC6F': '\u0628\u064A',
  19107. '\uFC70': '\u062A\u0631',
  19108. '\uFC71': '\u062A\u0632',
  19109. '\uFC72': '\u062A\u0645',
  19110. '\uFC73': '\u062A\u0646',
  19111. '\uFC74': '\u062A\u0649',
  19112. '\uFC75': '\u062A\u064A',
  19113. '\uFC76': '\u062B\u0631',
  19114. '\uFC77': '\u062B\u0632',
  19115. '\uFC78': '\u062B\u0645',
  19116. '\uFC79': '\u062B\u0646',
  19117. '\uFC7A': '\u062B\u0649',
  19118. '\uFC7B': '\u062B\u064A',
  19119. '\uFC7C': '\u0641\u0649',
  19120. '\uFC7D': '\u0641\u064A',
  19121. '\uFC7E': '\u0642\u0649',
  19122. '\uFC7F': '\u0642\u064A',
  19123. '\uFC80': '\u0643\u0627',
  19124. '\uFC81': '\u0643\u0644',
  19125. '\uFC82': '\u0643\u0645',
  19126. '\uFC83': '\u0643\u0649',
  19127. '\uFC84': '\u0643\u064A',
  19128. '\uFC85': '\u0644\u0645',
  19129. '\uFC86': '\u0644\u0649',
  19130. '\uFC87': '\u0644\u064A',
  19131. '\uFC88': '\u0645\u0627',
  19132. '\uFC89': '\u0645\u0645',
  19133. '\uFC8A': '\u0646\u0631',
  19134. '\uFC8B': '\u0646\u0632',
  19135. '\uFC8C': '\u0646\u0645',
  19136. '\uFC8D': '\u0646\u0646',
  19137. '\uFC8E': '\u0646\u0649',
  19138. '\uFC8F': '\u0646\u064A',
  19139. '\uFC90': '\u0649\u0670',
  19140. '\uFC91': '\u064A\u0631',
  19141. '\uFC92': '\u064A\u0632',
  19142. '\uFC93': '\u064A\u0645',
  19143. '\uFC94': '\u064A\u0646',
  19144. '\uFC95': '\u064A\u0649',
  19145. '\uFC96': '\u064A\u064A',
  19146. '\uFC97': '\u0626\u062C',
  19147. '\uFC98': '\u0626\u062D',
  19148. '\uFC99': '\u0626\u062E',
  19149. '\uFC9A': '\u0626\u0645',
  19150. '\uFC9B': '\u0626\u0647',
  19151. '\uFC9C': '\u0628\u062C',
  19152. '\uFC9D': '\u0628\u062D',
  19153. '\uFC9E': '\u0628\u062E',
  19154. '\uFC9F': '\u0628\u0645',
  19155. '\uFCA0': '\u0628\u0647',
  19156. '\uFCA1': '\u062A\u062C',
  19157. '\uFCA2': '\u062A\u062D',
  19158. '\uFCA3': '\u062A\u062E',
  19159. '\uFCA4': '\u062A\u0645',
  19160. '\uFCA5': '\u062A\u0647',
  19161. '\uFCA6': '\u062B\u0645',
  19162. '\uFCA7': '\u062C\u062D',
  19163. '\uFCA8': '\u062C\u0645',
  19164. '\uFCA9': '\u062D\u062C',
  19165. '\uFCAA': '\u062D\u0645',
  19166. '\uFCAB': '\u062E\u062C',
  19167. '\uFCAC': '\u062E\u0645',
  19168. '\uFCAD': '\u0633\u062C',
  19169. '\uFCAE': '\u0633\u062D',
  19170. '\uFCAF': '\u0633\u062E',
  19171. '\uFCB0': '\u0633\u0645',
  19172. '\uFCB1': '\u0635\u062D',
  19173. '\uFCB2': '\u0635\u062E',
  19174. '\uFCB3': '\u0635\u0645',
  19175. '\uFCB4': '\u0636\u062C',
  19176. '\uFCB5': '\u0636\u062D',
  19177. '\uFCB6': '\u0636\u062E',
  19178. '\uFCB7': '\u0636\u0645',
  19179. '\uFCB8': '\u0637\u062D',
  19180. '\uFCB9': '\u0638\u0645',
  19181. '\uFCBA': '\u0639\u062C',
  19182. '\uFCBB': '\u0639\u0645',
  19183. '\uFCBC': '\u063A\u062C',
  19184. '\uFCBD': '\u063A\u0645',
  19185. '\uFCBE': '\u0641\u062C',
  19186. '\uFCBF': '\u0641\u062D',
  19187. '\uFCC0': '\u0641\u062E',
  19188. '\uFCC1': '\u0641\u0645',
  19189. '\uFCC2': '\u0642\u062D',
  19190. '\uFCC3': '\u0642\u0645',
  19191. '\uFCC4': '\u0643\u062C',
  19192. '\uFCC5': '\u0643\u062D',
  19193. '\uFCC6': '\u0643\u062E',
  19194. '\uFCC7': '\u0643\u0644',
  19195. '\uFCC8': '\u0643\u0645',
  19196. '\uFCC9': '\u0644\u062C',
  19197. '\uFCCA': '\u0644\u062D',
  19198. '\uFCCB': '\u0644\u062E',
  19199. '\uFCCC': '\u0644\u0645',
  19200. '\uFCCD': '\u0644\u0647',
  19201. '\uFCCE': '\u0645\u062C',
  19202. '\uFCCF': '\u0645\u062D',
  19203. '\uFCD0': '\u0645\u062E',
  19204. '\uFCD1': '\u0645\u0645',
  19205. '\uFCD2': '\u0646\u062C',
  19206. '\uFCD3': '\u0646\u062D',
  19207. '\uFCD4': '\u0646\u062E',
  19208. '\uFCD5': '\u0646\u0645',
  19209. '\uFCD6': '\u0646\u0647',
  19210. '\uFCD7': '\u0647\u062C',
  19211. '\uFCD8': '\u0647\u0645',
  19212. '\uFCD9': '\u0647\u0670',
  19213. '\uFCDA': '\u064A\u062C',
  19214. '\uFCDB': '\u064A\u062D',
  19215. '\uFCDC': '\u064A\u062E',
  19216. '\uFCDD': '\u064A\u0645',
  19217. '\uFCDE': '\u064A\u0647',
  19218. '\uFCDF': '\u0626\u0645',
  19219. '\uFCE0': '\u0626\u0647',
  19220. '\uFCE1': '\u0628\u0645',
  19221. '\uFCE2': '\u0628\u0647',
  19222. '\uFCE3': '\u062A\u0645',
  19223. '\uFCE4': '\u062A\u0647',
  19224. '\uFCE5': '\u062B\u0645',
  19225. '\uFCE6': '\u062B\u0647',
  19226. '\uFCE7': '\u0633\u0645',
  19227. '\uFCE8': '\u0633\u0647',
  19228. '\uFCE9': '\u0634\u0645',
  19229. '\uFCEA': '\u0634\u0647',
  19230. '\uFCEB': '\u0643\u0644',
  19231. '\uFCEC': '\u0643\u0645',
  19232. '\uFCED': '\u0644\u0645',
  19233. '\uFCEE': '\u0646\u0645',
  19234. '\uFCEF': '\u0646\u0647',
  19235. '\uFCF0': '\u064A\u0645',
  19236. '\uFCF1': '\u064A\u0647',
  19237. '\uFCF2': '\u0640\u064E\u0651',
  19238. '\uFCF3': '\u0640\u064F\u0651',
  19239. '\uFCF4': '\u0640\u0650\u0651',
  19240. '\uFCF5': '\u0637\u0649',
  19241. '\uFCF6': '\u0637\u064A',
  19242. '\uFCF7': '\u0639\u0649',
  19243. '\uFCF8': '\u0639\u064A',
  19244. '\uFCF9': '\u063A\u0649',
  19245. '\uFCFA': '\u063A\u064A',
  19246. '\uFCFB': '\u0633\u0649',
  19247. '\uFCFC': '\u0633\u064A',
  19248. '\uFCFD': '\u0634\u0649',
  19249. '\uFCFE': '\u0634\u064A',
  19250. '\uFCFF': '\u062D\u0649',
  19251. '\uFD00': '\u062D\u064A',
  19252. '\uFD01': '\u062C\u0649',
  19253. '\uFD02': '\u062C\u064A',
  19254. '\uFD03': '\u062E\u0649',
  19255. '\uFD04': '\u062E\u064A',
  19256. '\uFD05': '\u0635\u0649',
  19257. '\uFD06': '\u0635\u064A',
  19258. '\uFD07': '\u0636\u0649',
  19259. '\uFD08': '\u0636\u064A',
  19260. '\uFD09': '\u0634\u062C',
  19261. '\uFD0A': '\u0634\u062D',
  19262. '\uFD0B': '\u0634\u062E',
  19263. '\uFD0C': '\u0634\u0645',
  19264. '\uFD0D': '\u0634\u0631',
  19265. '\uFD0E': '\u0633\u0631',
  19266. '\uFD0F': '\u0635\u0631',
  19267. '\uFD10': '\u0636\u0631',
  19268. '\uFD11': '\u0637\u0649',
  19269. '\uFD12': '\u0637\u064A',
  19270. '\uFD13': '\u0639\u0649',
  19271. '\uFD14': '\u0639\u064A',
  19272. '\uFD15': '\u063A\u0649',
  19273. '\uFD16': '\u063A\u064A',
  19274. '\uFD17': '\u0633\u0649',
  19275. '\uFD18': '\u0633\u064A',
  19276. '\uFD19': '\u0634\u0649',
  19277. '\uFD1A': '\u0634\u064A',
  19278. '\uFD1B': '\u062D\u0649',
  19279. '\uFD1C': '\u062D\u064A',
  19280. '\uFD1D': '\u062C\u0649',
  19281. '\uFD1E': '\u062C\u064A',
  19282. '\uFD1F': '\u062E\u0649',
  19283. '\uFD20': '\u062E\u064A',
  19284. '\uFD21': '\u0635\u0649',
  19285. '\uFD22': '\u0635\u064A',
  19286. '\uFD23': '\u0636\u0649',
  19287. '\uFD24': '\u0636\u064A',
  19288. '\uFD25': '\u0634\u062C',
  19289. '\uFD26': '\u0634\u062D',
  19290. '\uFD27': '\u0634\u062E',
  19291. '\uFD28': '\u0634\u0645',
  19292. '\uFD29': '\u0634\u0631',
  19293. '\uFD2A': '\u0633\u0631',
  19294. '\uFD2B': '\u0635\u0631',
  19295. '\uFD2C': '\u0636\u0631',
  19296. '\uFD2D': '\u0634\u062C',
  19297. '\uFD2E': '\u0634\u062D',
  19298. '\uFD2F': '\u0634\u062E',
  19299. '\uFD30': '\u0634\u0645',
  19300. '\uFD31': '\u0633\u0647',
  19301. '\uFD32': '\u0634\u0647',
  19302. '\uFD33': '\u0637\u0645',
  19303. '\uFD34': '\u0633\u062C',
  19304. '\uFD35': '\u0633\u062D',
  19305. '\uFD36': '\u0633\u062E',
  19306. '\uFD37': '\u0634\u062C',
  19307. '\uFD38': '\u0634\u062D',
  19308. '\uFD39': '\u0634\u062E',
  19309. '\uFD3A': '\u0637\u0645',
  19310. '\uFD3B': '\u0638\u0645',
  19311. '\uFD3C': '\u0627\u064B',
  19312. '\uFD3D': '\u0627\u064B',
  19313. '\uFD50': '\u062A\u062C\u0645',
  19314. '\uFD51': '\u062A\u062D\u062C',
  19315. '\uFD52': '\u062A\u062D\u062C',
  19316. '\uFD53': '\u062A\u062D\u0645',
  19317. '\uFD54': '\u062A\u062E\u0645',
  19318. '\uFD55': '\u062A\u0645\u062C',
  19319. '\uFD56': '\u062A\u0645\u062D',
  19320. '\uFD57': '\u062A\u0645\u062E',
  19321. '\uFD58': '\u062C\u0645\u062D',
  19322. '\uFD59': '\u062C\u0645\u062D',
  19323. '\uFD5A': '\u062D\u0645\u064A',
  19324. '\uFD5B': '\u062D\u0645\u0649',
  19325. '\uFD5C': '\u0633\u062D\u062C',
  19326. '\uFD5D': '\u0633\u062C\u062D',
  19327. '\uFD5E': '\u0633\u062C\u0649',
  19328. '\uFD5F': '\u0633\u0645\u062D',
  19329. '\uFD60': '\u0633\u0645\u062D',
  19330. '\uFD61': '\u0633\u0645\u062C',
  19331. '\uFD62': '\u0633\u0645\u0645',
  19332. '\uFD63': '\u0633\u0645\u0645',
  19333. '\uFD64': '\u0635\u062D\u062D',
  19334. '\uFD65': '\u0635\u062D\u062D',
  19335. '\uFD66': '\u0635\u0645\u0645',
  19336. '\uFD67': '\u0634\u062D\u0645',
  19337. '\uFD68': '\u0634\u062D\u0645',
  19338. '\uFD69': '\u0634\u062C\u064A',
  19339. '\uFD6A': '\u0634\u0645\u062E',
  19340. '\uFD6B': '\u0634\u0645\u062E',
  19341. '\uFD6C': '\u0634\u0645\u0645',
  19342. '\uFD6D': '\u0634\u0645\u0645',
  19343. '\uFD6E': '\u0636\u062D\u0649',
  19344. '\uFD6F': '\u0636\u062E\u0645',
  19345. '\uFD70': '\u0636\u062E\u0645',
  19346. '\uFD71': '\u0637\u0645\u062D',
  19347. '\uFD72': '\u0637\u0645\u062D',
  19348. '\uFD73': '\u0637\u0645\u0645',
  19349. '\uFD74': '\u0637\u0645\u064A',
  19350. '\uFD75': '\u0639\u062C\u0645',
  19351. '\uFD76': '\u0639\u0645\u0645',
  19352. '\uFD77': '\u0639\u0645\u0645',
  19353. '\uFD78': '\u0639\u0645\u0649',
  19354. '\uFD79': '\u063A\u0645\u0645',
  19355. '\uFD7A': '\u063A\u0645\u064A',
  19356. '\uFD7B': '\u063A\u0645\u0649',
  19357. '\uFD7C': '\u0641\u062E\u0645',
  19358. '\uFD7D': '\u0641\u062E\u0645',
  19359. '\uFD7E': '\u0642\u0645\u062D',
  19360. '\uFD7F': '\u0642\u0645\u0645',
  19361. '\uFD80': '\u0644\u062D\u0645',
  19362. '\uFD81': '\u0644\u062D\u064A',
  19363. '\uFD82': '\u0644\u062D\u0649',
  19364. '\uFD83': '\u0644\u062C\u062C',
  19365. '\uFD84': '\u0644\u062C\u062C',
  19366. '\uFD85': '\u0644\u062E\u0645',
  19367. '\uFD86': '\u0644\u062E\u0645',
  19368. '\uFD87': '\u0644\u0645\u062D',
  19369. '\uFD88': '\u0644\u0645\u062D',
  19370. '\uFD89': '\u0645\u062D\u062C',
  19371. '\uFD8A': '\u0645\u062D\u0645',
  19372. '\uFD8B': '\u0645\u062D\u064A',
  19373. '\uFD8C': '\u0645\u062C\u062D',
  19374. '\uFD8D': '\u0645\u062C\u0645',
  19375. '\uFD8E': '\u0645\u062E\u062C',
  19376. '\uFD8F': '\u0645\u062E\u0645',
  19377. '\uFD92': '\u0645\u062C\u062E',
  19378. '\uFD93': '\u0647\u0645\u062C',
  19379. '\uFD94': '\u0647\u0645\u0645',
  19380. '\uFD95': '\u0646\u062D\u0645',
  19381. '\uFD96': '\u0646\u062D\u0649',
  19382. '\uFD97': '\u0646\u062C\u0645',
  19383. '\uFD98': '\u0646\u062C\u0645',
  19384. '\uFD99': '\u0646\u062C\u0649',
  19385. '\uFD9A': '\u0646\u0645\u064A',
  19386. '\uFD9B': '\u0646\u0645\u0649',
  19387. '\uFD9C': '\u064A\u0645\u0645',
  19388. '\uFD9D': '\u064A\u0645\u0645',
  19389. '\uFD9E': '\u0628\u062E\u064A',
  19390. '\uFD9F': '\u062A\u062C\u064A',
  19391. '\uFDA0': '\u062A\u062C\u0649',
  19392. '\uFDA1': '\u062A\u062E\u064A',
  19393. '\uFDA2': '\u062A\u062E\u0649',
  19394. '\uFDA3': '\u062A\u0645\u064A',
  19395. '\uFDA4': '\u062A\u0645\u0649',
  19396. '\uFDA5': '\u062C\u0645\u064A',
  19397. '\uFDA6': '\u062C\u062D\u0649',
  19398. '\uFDA7': '\u062C\u0645\u0649',
  19399. '\uFDA8': '\u0633\u062E\u0649',
  19400. '\uFDA9': '\u0635\u062D\u064A',
  19401. '\uFDAA': '\u0634\u062D\u064A',
  19402. '\uFDAB': '\u0636\u062D\u064A',
  19403. '\uFDAC': '\u0644\u062C\u064A',
  19404. '\uFDAD': '\u0644\u0645\u064A',
  19405. '\uFDAE': '\u064A\u062D\u064A',
  19406. '\uFDAF': '\u064A\u062C\u064A',
  19407. '\uFDB0': '\u064A\u0645\u064A',
  19408. '\uFDB1': '\u0645\u0645\u064A',
  19409. '\uFDB2': '\u0642\u0645\u064A',
  19410. '\uFDB3': '\u0646\u062D\u064A',
  19411. '\uFDB4': '\u0642\u0645\u062D',
  19412. '\uFDB5': '\u0644\u062D\u0645',
  19413. '\uFDB6': '\u0639\u0645\u064A',
  19414. '\uFDB7': '\u0643\u0645\u064A',
  19415. '\uFDB8': '\u0646\u062C\u062D',
  19416. '\uFDB9': '\u0645\u062E\u064A',
  19417. '\uFDBA': '\u0644\u062C\u0645',
  19418. '\uFDBB': '\u0643\u0645\u0645',
  19419. '\uFDBC': '\u0644\u062C\u0645',
  19420. '\uFDBD': '\u0646\u062C\u062D',
  19421. '\uFDBE': '\u062C\u062D\u064A',
  19422. '\uFDBF': '\u062D\u062C\u064A',
  19423. '\uFDC0': '\u0645\u062C\u064A',
  19424. '\uFDC1': '\u0641\u0645\u064A',
  19425. '\uFDC2': '\u0628\u062D\u064A',
  19426. '\uFDC3': '\u0643\u0645\u0645',
  19427. '\uFDC4': '\u0639\u062C\u0645',
  19428. '\uFDC5': '\u0635\u0645\u0645',
  19429. '\uFDC6': '\u0633\u062E\u064A',
  19430. '\uFDC7': '\u0646\u062C\u064A',
  19431. '\uFE49': '\u203E',
  19432. '\uFE4A': '\u203E',
  19433. '\uFE4B': '\u203E',
  19434. '\uFE4C': '\u203E',
  19435. '\uFE4D': '\u005F',
  19436. '\uFE4E': '\u005F',
  19437. '\uFE4F': '\u005F',
  19438. '\uFE80': '\u0621',
  19439. '\uFE81': '\u0622',
  19440. '\uFE82': '\u0622',
  19441. '\uFE83': '\u0623',
  19442. '\uFE84': '\u0623',
  19443. '\uFE85': '\u0624',
  19444. '\uFE86': '\u0624',
  19445. '\uFE87': '\u0625',
  19446. '\uFE88': '\u0625',
  19447. '\uFE89': '\u0626',
  19448. '\uFE8A': '\u0626',
  19449. '\uFE8B': '\u0626',
  19450. '\uFE8C': '\u0626',
  19451. '\uFE8D': '\u0627',
  19452. '\uFE8E': '\u0627',
  19453. '\uFE8F': '\u0628',
  19454. '\uFE90': '\u0628',
  19455. '\uFE91': '\u0628',
  19456. '\uFE92': '\u0628',
  19457. '\uFE93': '\u0629',
  19458. '\uFE94': '\u0629',
  19459. '\uFE95': '\u062A',
  19460. '\uFE96': '\u062A',
  19461. '\uFE97': '\u062A',
  19462. '\uFE98': '\u062A',
  19463. '\uFE99': '\u062B',
  19464. '\uFE9A': '\u062B',
  19465. '\uFE9B': '\u062B',
  19466. '\uFE9C': '\u062B',
  19467. '\uFE9D': '\u062C',
  19468. '\uFE9E': '\u062C',
  19469. '\uFE9F': '\u062C',
  19470. '\uFEA0': '\u062C',
  19471. '\uFEA1': '\u062D',
  19472. '\uFEA2': '\u062D',
  19473. '\uFEA3': '\u062D',
  19474. '\uFEA4': '\u062D',
  19475. '\uFEA5': '\u062E',
  19476. '\uFEA6': '\u062E',
  19477. '\uFEA7': '\u062E',
  19478. '\uFEA8': '\u062E',
  19479. '\uFEA9': '\u062F',
  19480. '\uFEAA': '\u062F',
  19481. '\uFEAB': '\u0630',
  19482. '\uFEAC': '\u0630',
  19483. '\uFEAD': '\u0631',
  19484. '\uFEAE': '\u0631',
  19485. '\uFEAF': '\u0632',
  19486. '\uFEB0': '\u0632',
  19487. '\uFEB1': '\u0633',
  19488. '\uFEB2': '\u0633',
  19489. '\uFEB3': '\u0633',
  19490. '\uFEB4': '\u0633',
  19491. '\uFEB5': '\u0634',
  19492. '\uFEB6': '\u0634',
  19493. '\uFEB7': '\u0634',
  19494. '\uFEB8': '\u0634',
  19495. '\uFEB9': '\u0635',
  19496. '\uFEBA': '\u0635',
  19497. '\uFEBB': '\u0635',
  19498. '\uFEBC': '\u0635',
  19499. '\uFEBD': '\u0636',
  19500. '\uFEBE': '\u0636',
  19501. '\uFEBF': '\u0636',
  19502. '\uFEC0': '\u0636',
  19503. '\uFEC1': '\u0637',
  19504. '\uFEC2': '\u0637',
  19505. '\uFEC3': '\u0637',
  19506. '\uFEC4': '\u0637',
  19507. '\uFEC5': '\u0638',
  19508. '\uFEC6': '\u0638',
  19509. '\uFEC7': '\u0638',
  19510. '\uFEC8': '\u0638',
  19511. '\uFEC9': '\u0639',
  19512. '\uFECA': '\u0639',
  19513. '\uFECB': '\u0639',
  19514. '\uFECC': '\u0639',
  19515. '\uFECD': '\u063A',
  19516. '\uFECE': '\u063A',
  19517. '\uFECF': '\u063A',
  19518. '\uFED0': '\u063A',
  19519. '\uFED1': '\u0641',
  19520. '\uFED2': '\u0641',
  19521. '\uFED3': '\u0641',
  19522. '\uFED4': '\u0641',
  19523. '\uFED5': '\u0642',
  19524. '\uFED6': '\u0642',
  19525. '\uFED7': '\u0642',
  19526. '\uFED8': '\u0642',
  19527. '\uFED9': '\u0643',
  19528. '\uFEDA': '\u0643',
  19529. '\uFEDB': '\u0643',
  19530. '\uFEDC': '\u0643',
  19531. '\uFEDD': '\u0644',
  19532. '\uFEDE': '\u0644',
  19533. '\uFEDF': '\u0644',
  19534. '\uFEE0': '\u0644',
  19535. '\uFEE1': '\u0645',
  19536. '\uFEE2': '\u0645',
  19537. '\uFEE3': '\u0645',
  19538. '\uFEE4': '\u0645',
  19539. '\uFEE5': '\u0646',
  19540. '\uFEE6': '\u0646',
  19541. '\uFEE7': '\u0646',
  19542. '\uFEE8': '\u0646',
  19543. '\uFEE9': '\u0647',
  19544. '\uFEEA': '\u0647',
  19545. '\uFEEB': '\u0647',
  19546. '\uFEEC': '\u0647',
  19547. '\uFEED': '\u0648',
  19548. '\uFEEE': '\u0648',
  19549. '\uFEEF': '\u0649',
  19550. '\uFEF0': '\u0649',
  19551. '\uFEF1': '\u064A',
  19552. '\uFEF2': '\u064A',
  19553. '\uFEF3': '\u064A',
  19554. '\uFEF4': '\u064A',
  19555. '\uFEF5': '\u0644\u0622',
  19556. '\uFEF6': '\u0644\u0622',
  19557. '\uFEF7': '\u0644\u0623',
  19558. '\uFEF8': '\u0644\u0623',
  19559. '\uFEF9': '\u0644\u0625',
  19560. '\uFEFA': '\u0644\u0625',
  19561. '\uFEFB': '\u0644\u0627',
  19562. '\uFEFC': '\u0644\u0627'
  19563. };
  19564. function reverseIfRtl(chars) {
  19565. var charsLength = chars.length;
  19566. //reverse an arabic ligature
  19567. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) {
  19568. return chars;
  19569. }
  19570. var s = '';
  19571. for (var ii = charsLength - 1; ii >= 0; ii--) {
  19572. s += chars[ii];
  19573. }
  19574. return s;
  19575. }
  19576. function adjustWidths(properties) {
  19577. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  19578. return;
  19579. }
  19580. // adjusting width to fontMatrix scale
  19581. var scale = 0.001 / properties.fontMatrix[0];
  19582. var glyphsWidths = properties.widths;
  19583. for (var glyph in glyphsWidths) {
  19584. glyphsWidths[glyph] *= scale;
  19585. }
  19586. properties.defaultWidth *= scale;
  19587. }
  19588. var Glyph = (function GlyphClosure() {
  19589. function Glyph(fontChar, unicode, accent, width, vmetric, operatorList) {
  19590. this.fontChar = fontChar;
  19591. this.unicode = unicode;
  19592. this.accent = accent;
  19593. this.width = width;
  19594. this.vmetric = vmetric;
  19595. this.operatorList = operatorList;
  19596. }
  19597. Glyph.prototype.matchesForCache =
  19598. function(fontChar, unicode, accent, width, vmetric, operatorList) {
  19599. return this.fontChar === fontChar &&
  19600. this.unicode === unicode &&
  19601. this.accent === accent &&
  19602. this.width === width &&
  19603. this.vmetric === vmetric &&
  19604. this.operatorList === operatorList;
  19605. };
  19606. return Glyph;
  19607. })();
  19608. /**
  19609. * 'Font' is the class the outside world should use, it encapsulate all the font
  19610. * decoding logics whatever type it is (assuming the font type is supported).
  19611. *
  19612. * For example to read a Type1 font and to attach it to the document:
  19613. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  19614. * type1Font.bind();
  19615. */
  19616. var Font = (function FontClosure() {
  19617. function Font(name, file, properties) {
  19618. var charCode;
  19619. this.name = name;
  19620. this.loadedName = properties.loadedName;
  19621. this.coded = properties.coded;
  19622. this.loadCharProcs = properties.coded;
  19623. this.sizes = [];
  19624. this.glyphCache = {};
  19625. var names = name.split('+');
  19626. names = names.length > 1 ? names[1] : names[0];
  19627. names = names.split(/[-,_]/g)[0];
  19628. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  19629. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  19630. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  19631. var type = properties.type;
  19632. this.type = type;
  19633. this.fallbackName = (this.isMonospace ? 'monospace' :
  19634. (this.isSerifFont ? 'serif' : 'sans-serif'));
  19635. this.differences = properties.differences;
  19636. this.widths = properties.widths;
  19637. this.defaultWidth = properties.defaultWidth;
  19638. this.composite = properties.composite;
  19639. this.wideChars = properties.wideChars;
  19640. this.cMap = properties.cMap;
  19641. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  19642. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  19643. this.fontMatrix = properties.fontMatrix;
  19644. var unicode = this.buildToUnicode(properties);
  19645. this.toUnicode = properties.toUnicode = unicode.toUnicode;
  19646. this.isIdentityUnicode = properties.isIdentityUnicode = unicode.isIdentity;
  19647. this.toFontChar = [];
  19648. if (properties.type == 'Type3') {
  19649. for (charCode = 0; charCode < 256; charCode++) {
  19650. this.toFontChar[charCode] = (this.differences[charCode] ||
  19651. properties.defaultEncoding[charCode]);
  19652. }
  19653. return;
  19654. }
  19655. this.cidEncoding = properties.cidEncoding;
  19656. this.vertical = properties.vertical;
  19657. if (this.vertical) {
  19658. this.vmetrics = properties.vmetrics;
  19659. this.defaultVMetrics = properties.defaultVMetrics;
  19660. }
  19661. if (!file || file.isEmpty) {
  19662. if (file) {
  19663. // Some bad PDF generators will include empty font files,
  19664. // attempting to recover by assuming that no file exists.
  19665. warn('Font file is empty in "' + name + '" (' + this.loadedName + ')');
  19666. }
  19667. this.missingFile = true;
  19668. // The file data is not specified. Trying to fix the font name
  19669. // to be used with the canvas.font.
  19670. var fontName = name.replace(/[,_]/g, '-');
  19671. var isStandardFont = fontName in stdFontMap;
  19672. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  19673. this.bold = (fontName.search(/bold/gi) != -1);
  19674. this.italic = ((fontName.search(/oblique/gi) != -1) ||
  19675. (fontName.search(/italic/gi) != -1));
  19676. // Use 'name' instead of 'fontName' here because the original
  19677. // name ArialBlack for example will be replaced by Helvetica.
  19678. this.black = (name.search(/Black/g) != -1);
  19679. // if at least one width is present, remeasure all chars when exists
  19680. this.remeasure = Object.keys(this.widths).length > 0;
  19681. if (isStandardFont && type === 'CIDFontType2' &&
  19682. properties.cidEncoding.indexOf('Identity-') === 0) {
  19683. // Standard fonts might be embedded as CID font without glyph mapping.
  19684. // Building one based on GlyphMapForStandardFonts.
  19685. var map = [];
  19686. for (var code in GlyphMapForStandardFonts) {
  19687. map[+code] = GlyphMapForStandardFonts[code];
  19688. }
  19689. this.toFontChar = map;
  19690. this.toUnicode = map;
  19691. } else if (/Symbol/i.test(fontName)) {
  19692. var symbols = Encodings.SymbolSetEncoding;
  19693. for (charCode in symbols) {
  19694. var fontChar = GlyphsUnicode[symbols[charCode]];
  19695. if (!fontChar) {
  19696. continue;
  19697. }
  19698. this.toFontChar[charCode] = fontChar;
  19699. }
  19700. } else if (isStandardFont) {
  19701. this.toFontChar = [];
  19702. for (charCode in properties.defaultEncoding) {
  19703. var glyphName = properties.differences[charCode] ||
  19704. properties.defaultEncoding[charCode];
  19705. this.toFontChar[charCode] = GlyphsUnicode[glyphName];
  19706. }
  19707. } else {
  19708. for (charCode in this.toUnicode) {
  19709. this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);
  19710. }
  19711. }
  19712. this.loadedName = fontName.split('-')[0];
  19713. this.loading = false;
  19714. return;
  19715. }
  19716. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  19717. var subtype = properties.subtype;
  19718. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1')) {
  19719. // Some TrueType fonts by mistake claim Type1C
  19720. if (isTrueTypeFile(file)) {
  19721. subtype = 'TrueType';
  19722. } else {
  19723. type = 'Type1';
  19724. }
  19725. }
  19726. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') {
  19727. type = 'CIDFontType0';
  19728. }
  19729. // XXX: Temporarily change the type for open type so we trigger a warning.
  19730. // This should be removed when we add support for open type.
  19731. if (subtype === 'OpenType') {
  19732. type = 'OpenType';
  19733. }
  19734. var data;
  19735. switch (type) {
  19736. case 'Type1':
  19737. case 'CIDFontType0':
  19738. this.mimetype = 'font/opentype';
  19739. var cff = (subtype == 'Type1C' || subtype == 'CIDFontType0C') ?
  19740. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  19741. adjustWidths(properties);
  19742. // Wrap the CFF data inside an OTF font file
  19743. data = this.convert(name, cff, properties);
  19744. break;
  19745. case 'OpenType':
  19746. case 'TrueType':
  19747. case 'CIDFontType2':
  19748. this.mimetype = 'font/opentype';
  19749. // Repair the TrueType file. It is can be damaged in the point of
  19750. // view of the sanitizer
  19751. data = this.checkAndRepair(name, file, properties);
  19752. break;
  19753. default:
  19754. error('Font ' + type + ' is not supported');
  19755. break;
  19756. }
  19757. this.data = data;
  19758. // Transfer some properties again that could change during font conversion
  19759. this.fontMatrix = properties.fontMatrix;
  19760. this.widths = properties.widths;
  19761. this.defaultWidth = properties.defaultWidth;
  19762. this.encoding = properties.baseEncoding;
  19763. this.seacMap = properties.seacMap;
  19764. this.loading = true;
  19765. }
  19766. Font.getFontID = (function () {
  19767. var ID = 1;
  19768. return function Font_getFontID() {
  19769. return String(ID++);
  19770. };
  19771. })();
  19772. function int16(b0, b1) {
  19773. return (b0 << 8) + b1;
  19774. }
  19775. function int32(b0, b1, b2, b3) {
  19776. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  19777. }
  19778. function getMaxPower2(number) {
  19779. var maxPower = 0;
  19780. var value = number;
  19781. while (value >= 2) {
  19782. value /= 2;
  19783. maxPower++;
  19784. }
  19785. value = 2;
  19786. for (var i = 1; i < maxPower; i++) {
  19787. value *= 2;
  19788. }
  19789. return value;
  19790. }
  19791. function string16(value) {
  19792. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19793. }
  19794. function safeString16(value) {
  19795. // clamp value to the 16-bit int range
  19796. value = (value > 0x7FFF ? 0x7FFF : (value < -0x8000 ? -0x8000 : value));
  19797. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19798. }
  19799. function createOpenTypeHeader(sfnt, file, numTables) {
  19800. // Windows hates the Mac TrueType sfnt version number
  19801. if (sfnt == 'true') {
  19802. sfnt = string32(0x00010000);
  19803. }
  19804. // sfnt version (4 bytes)
  19805. var header = sfnt;
  19806. // numTables (2 bytes)
  19807. header += string16(numTables);
  19808. // searchRange (2 bytes)
  19809. var tablesMaxPower2 = getMaxPower2(numTables);
  19810. var searchRange = tablesMaxPower2 * 16;
  19811. header += string16(searchRange);
  19812. // entrySelector (2 bytes)
  19813. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  19814. // rangeShift (2 bytes)
  19815. header += string16(numTables * 16 - searchRange);
  19816. file.file += header;
  19817. file.virtualOffset += header.length;
  19818. }
  19819. function createTableEntry(file, tag, data) {
  19820. // offset
  19821. var offset = file.virtualOffset;
  19822. // length
  19823. var length = data.length;
  19824. // Per spec tables must be 4-bytes align so add padding as needed
  19825. while (data.length & 3) {
  19826. data.push(0x00);
  19827. }
  19828. while (file.virtualOffset & 3) {
  19829. file.virtualOffset++;
  19830. }
  19831. // checksum
  19832. var checksum = 0, n = data.length;
  19833. for (var i = 0; i < n; i += 4) {
  19834. checksum = (checksum + int32(data[i], data[i + 1], data[i + 2],
  19835. data[i + 3])) | 0;
  19836. }
  19837. var tableEntry = (tag + string32(checksum) +
  19838. string32(offset) + string32(length));
  19839. file.file += tableEntry;
  19840. file.virtualOffset += data.length;
  19841. }
  19842. function isTrueTypeFile(file) {
  19843. var header = file.peekBytes(4);
  19844. return readUint32(header, 0) === 0x00010000;
  19845. }
  19846. /**
  19847. * Rebuilds the char code to glyph ID map by trying to replace the char codes
  19848. * with their unicode value. It also moves char codes that are in known
  19849. * problematic locations.
  19850. * @return {Object} Two properties:
  19851. * 'toFontChar' - maps original char codes(the value that will be read
  19852. * from commands such as show text) to the char codes that will be used in the
  19853. * font that we build
  19854. * 'charCodeToGlyphId' - maps the new font char codes to glyph ids
  19855. */
  19856. function adjustMapping(charCodeToGlyphId, properties) {
  19857. var toUnicode = properties.toUnicode;
  19858. var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
  19859. var isIdentityUnicode = properties.isIdentityUnicode;
  19860. var newMap = Object.create(null);
  19861. var toFontChar = [];
  19862. var usedFontCharCodes = [];
  19863. var nextAvailableFontCharCode = PRIVATE_USE_OFFSET_START;
  19864. for (var originalCharCode in charCodeToGlyphId) {
  19865. originalCharCode |= 0;
  19866. var glyphId = charCodeToGlyphId[originalCharCode];
  19867. var fontCharCode = originalCharCode;
  19868. // First try to map the value to a unicode position if a non identity map
  19869. // was created.
  19870. if (!isIdentityUnicode && originalCharCode in toUnicode) {
  19871. var unicode = toUnicode[fontCharCode];
  19872. // TODO: Try to map ligatures to the correct spot.
  19873. if (unicode.length === 1) {
  19874. fontCharCode = unicode.charCodeAt(0);
  19875. }
  19876. }
  19877. // Try to move control characters, special characters and already mapped
  19878. // characters to the private use area since they will not be drawn by
  19879. // canvas if left in their current position. Also, move characters if the
  19880. // font was symbolic and there is only an identity unicode map since the
  19881. // characters probably aren't in the correct position (fixes an issue
  19882. // with firefox and thuluthfont).
  19883. if ((fontCharCode in usedFontCharCodes ||
  19884. fontCharCode <= 0x1f || // Control chars
  19885. fontCharCode === 0x7F || // Control char
  19886. fontCharCode === 0xAD || // Soft hyphen
  19887. (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
  19888. // Prevent drawing characters in the specials unicode block.
  19889. (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
  19890. (isSymbolic && isIdentityUnicode)) &&
  19891. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
  19892. // Loop to try and find a free spot in the private use area.
  19893. do {
  19894. fontCharCode = nextAvailableFontCharCode++;
  19895. if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
  19896. fontCharCode = 0xF020;
  19897. nextAvailableFontCharCode = fontCharCode + 1;
  19898. }
  19899. } while (fontCharCode in usedFontCharCodes &&
  19900. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END);
  19901. }
  19902. newMap[fontCharCode] = glyphId;
  19903. toFontChar[originalCharCode] = fontCharCode;
  19904. usedFontCharCodes[fontCharCode] = true;
  19905. }
  19906. return {
  19907. toFontChar: toFontChar,
  19908. charCodeToGlyphId: newMap,
  19909. nextAvailableFontCharCode: nextAvailableFontCharCode
  19910. };
  19911. }
  19912. function getRanges(glyphs) {
  19913. // Array.sort() sorts by characters, not numerically, so convert to an
  19914. // array of characters.
  19915. var codes = [];
  19916. for (var charCode in glyphs) {
  19917. codes.push({ fontCharCode: charCode | 0, glyphId: glyphs[charCode] });
  19918. }
  19919. codes.sort(function fontGetRangesSort(a, b) {
  19920. return a.fontCharCode - b.fontCharCode;
  19921. });
  19922. // Split the sorted codes into ranges.
  19923. var ranges = [];
  19924. var length = codes.length;
  19925. for (var n = 0; n < length; ) {
  19926. var start = codes[n].fontCharCode;
  19927. var codeIndices = [codes[n].glyphId];
  19928. ++n;
  19929. var end = start;
  19930. while (n < length && end + 1 == codes[n].fontCharCode) {
  19931. codeIndices.push(codes[n].glyphId);
  19932. ++end;
  19933. ++n;
  19934. if (end === 0xFFFF) {
  19935. break;
  19936. }
  19937. }
  19938. ranges.push([start, end, codeIndices]);
  19939. }
  19940. return ranges;
  19941. }
  19942. function createCmapTable(glyphs) {
  19943. var ranges = getRanges(glyphs);
  19944. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  19945. var cmap = '\x00\x00' + // version
  19946. string16(numTables) + // numTables
  19947. '\x00\x03' + // platformID
  19948. '\x00\x01' + // encodingID
  19949. string32(4 + numTables * 8); // start of the table record
  19950. var i, ii, j, jj;
  19951. for (i = ranges.length - 1; i >= 0; --i) {
  19952. if (ranges[i][0] <= 0xFFFF) { break; }
  19953. }
  19954. var bmpLength = i + 1;
  19955. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  19956. ranges[i][1] = 0xFFFE;
  19957. }
  19958. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  19959. var segCount = bmpLength + trailingRangesCount;
  19960. var segCount2 = segCount * 2;
  19961. var searchRange = getMaxPower2(segCount) * 2;
  19962. var searchEntry = Math.log(segCount) / Math.log(2);
  19963. var rangeShift = 2 * segCount - searchRange;
  19964. // Fill up the 4 parallel arrays describing the segments.
  19965. var startCount = '';
  19966. var endCount = '';
  19967. var idDeltas = '';
  19968. var idRangeOffsets = '';
  19969. var glyphsIds = '';
  19970. var bias = 0;
  19971. var range, start, end, codes;
  19972. for (i = 0, ii = bmpLength; i < ii; i++) {
  19973. range = ranges[i];
  19974. start = range[0];
  19975. end = range[1];
  19976. startCount += string16(start);
  19977. endCount += string16(end);
  19978. codes = range[2];
  19979. var contiguous = true;
  19980. for (j = 1, jj = codes.length; j < jj; ++j) {
  19981. if (codes[j] !== codes[j - 1] + 1) {
  19982. contiguous = false;
  19983. break;
  19984. }
  19985. }
  19986. if (!contiguous) {
  19987. var offset = (segCount - i) * 2 + bias * 2;
  19988. bias += (end - start + 1);
  19989. idDeltas += string16(0);
  19990. idRangeOffsets += string16(offset);
  19991. for (j = 0, jj = codes.length; j < jj; ++j) {
  19992. glyphsIds += string16(codes[j]);
  19993. }
  19994. } else {
  19995. var startCode = codes[0];
  19996. idDeltas += string16((startCode - start) & 0xFFFF);
  19997. idRangeOffsets += string16(0);
  19998. }
  19999. }
  20000. if (trailingRangesCount > 0) {
  20001. endCount += '\xFF\xFF';
  20002. startCount += '\xFF\xFF';
  20003. idDeltas += '\x00\x01';
  20004. idRangeOffsets += '\x00\x00';
  20005. }
  20006. var format314 = '\x00\x00' + // language
  20007. string16(segCount2) +
  20008. string16(searchRange) +
  20009. string16(searchEntry) +
  20010. string16(rangeShift) +
  20011. endCount + '\x00\x00' + startCount +
  20012. idDeltas + idRangeOffsets + glyphsIds;
  20013. var format31012 = '';
  20014. var header31012 = '';
  20015. if (numTables > 1) {
  20016. cmap += '\x00\x03' + // platformID
  20017. '\x00\x0A' + // encodingID
  20018. string32(4 + numTables * 8 +
  20019. 4 + format314.length); // start of the table record
  20020. format31012 = '';
  20021. for (i = 0, ii = ranges.length; i < ii; i++) {
  20022. range = ranges[i];
  20023. start = range[0];
  20024. codes = range[2];
  20025. var code = codes[0];
  20026. for (j = 1, jj = codes.length; j < jj; ++j) {
  20027. if (codes[j] !== codes[j - 1] + 1) {
  20028. end = range[0] + j - 1;
  20029. format31012 += string32(start) + // startCharCode
  20030. string32(end) + // endCharCode
  20031. string32(code); // startGlyphID
  20032. start = end + 1;
  20033. code = codes[j];
  20034. }
  20035. }
  20036. format31012 += string32(start) + // startCharCode
  20037. string32(range[1]) + // endCharCode
  20038. string32(code); // startGlyphID
  20039. }
  20040. header31012 = '\x00\x0C' + // format
  20041. '\x00\x00' + // reserved
  20042. string32(format31012.length + 16) + // length
  20043. '\x00\x00\x00\x00' + // language
  20044. string32(format31012.length / 12); // nGroups
  20045. }
  20046. return stringToArray(cmap +
  20047. '\x00\x04' + // format
  20048. string16(format314.length + 4) + // length
  20049. format314 + header31012 + format31012);
  20050. }
  20051. function validateOS2Table(os2) {
  20052. var stream = new Stream(os2.data);
  20053. var version = stream.getUint16();
  20054. // TODO verify all OS/2 tables fields, but currently we validate only those
  20055. // that give us issues
  20056. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  20057. var selection = stream.getUint16();
  20058. if (version < 4 && (selection & 0x0300)) {
  20059. return false;
  20060. }
  20061. var firstChar = stream.getUint16();
  20062. var lastChar = stream.getUint16();
  20063. if (firstChar > lastChar) {
  20064. return false;
  20065. }
  20066. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  20067. var usWinAscent = stream.getUint16();
  20068. if (usWinAscent === 0) { // makes font unreadable by windows
  20069. return false;
  20070. }
  20071. // OS/2 appears to be valid, resetting some fields
  20072. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  20073. return true;
  20074. }
  20075. function createOS2Table(properties, charstrings, override) {
  20076. override = override || {
  20077. unitsPerEm: 0,
  20078. yMax: 0,
  20079. yMin: 0,
  20080. ascent: 0,
  20081. descent: 0
  20082. };
  20083. var ulUnicodeRange1 = 0;
  20084. var ulUnicodeRange2 = 0;
  20085. var ulUnicodeRange3 = 0;
  20086. var ulUnicodeRange4 = 0;
  20087. var firstCharIndex = null;
  20088. var lastCharIndex = 0;
  20089. if (charstrings) {
  20090. for (var code in charstrings) {
  20091. code |= 0;
  20092. if (firstCharIndex > code || !firstCharIndex) {
  20093. firstCharIndex = code;
  20094. }
  20095. if (lastCharIndex < code) {
  20096. lastCharIndex = code;
  20097. }
  20098. var position = getUnicodeRangeFor(code);
  20099. if (position < 32) {
  20100. ulUnicodeRange1 |= 1 << position;
  20101. } else if (position < 64) {
  20102. ulUnicodeRange2 |= 1 << position - 32;
  20103. } else if (position < 96) {
  20104. ulUnicodeRange3 |= 1 << position - 64;
  20105. } else if (position < 123) {
  20106. ulUnicodeRange4 |= 1 << position - 96;
  20107. } else {
  20108. error('Unicode ranges Bits > 123 are reserved for internal usage');
  20109. }
  20110. }
  20111. } else {
  20112. // TODO
  20113. firstCharIndex = 0;
  20114. lastCharIndex = 255;
  20115. }
  20116. var bbox = properties.bbox || [0, 0, 0, 0];
  20117. var unitsPerEm = (override.unitsPerEm ||
  20118. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0]);
  20119. // if the font units differ to the PDF glyph space units
  20120. // then scale up the values
  20121. var scale = (properties.ascentScaled ? 1.0 :
  20122. unitsPerEm / PDF_GLYPH_SPACE_UNITS);
  20123. var typoAscent = (override.ascent ||
  20124. Math.round(scale * (properties.ascent || bbox[3])));
  20125. var typoDescent = (override.descent ||
  20126. Math.round(scale * (properties.descent || bbox[1])));
  20127. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  20128. typoDescent = -typoDescent; // fixing incorrect descent
  20129. }
  20130. var winAscent = override.yMax || typoAscent;
  20131. var winDescent = -override.yMin || -typoDescent;
  20132. return '\x00\x03' + // version
  20133. '\x02\x24' + // xAvgCharWidth
  20134. '\x01\xF4' + // usWeightClass
  20135. '\x00\x05' + // usWidthClass
  20136. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  20137. '\x02\x8A' + // ySubscriptXSize
  20138. '\x02\xBB' + // ySubscriptYSize
  20139. '\x00\x00' + // ySubscriptXOffset
  20140. '\x00\x8C' + // ySubscriptYOffset
  20141. '\x02\x8A' + // ySuperScriptXSize
  20142. '\x02\xBB' + // ySuperScriptYSize
  20143. '\x00\x00' + // ySuperScriptXOffset
  20144. '\x01\xDF' + // ySuperScriptYOffset
  20145. '\x00\x31' + // yStrikeOutSize
  20146. '\x01\x02' + // yStrikeOutPosition
  20147. '\x00\x00' + // sFamilyClass
  20148. '\x00\x00\x06' +
  20149. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  20150. '\x00\x00\x00\x00\x00\x00' + // Panose
  20151. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  20152. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  20153. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  20154. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  20155. '\x2A\x32\x31\x2A' + // achVendID
  20156. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  20157. string16(firstCharIndex ||
  20158. properties.firstChar) + // usFirstCharIndex
  20159. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  20160. string16(typoAscent) + // sTypoAscender
  20161. string16(typoDescent) + // sTypoDescender
  20162. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  20163. string16(winAscent) + // usWinAscent
  20164. string16(winDescent) + // usWinDescent
  20165. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  20166. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  20167. string16(properties.xHeight) + // sxHeight
  20168. string16(properties.capHeight) + // sCapHeight
  20169. string16(0) + // usDefaultChar
  20170. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  20171. '\x00\x03'; // usMaxContext
  20172. }
  20173. function createPostTable(properties) {
  20174. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  20175. return ('\x00\x03\x00\x00' + // Version number
  20176. string32(angle) + // italicAngle
  20177. '\x00\x00' + // underlinePosition
  20178. '\x00\x00' + // underlineThickness
  20179. string32(properties.fixedPitch) + // isFixedPitch
  20180. '\x00\x00\x00\x00' + // minMemType42
  20181. '\x00\x00\x00\x00' + // maxMemType42
  20182. '\x00\x00\x00\x00' + // minMemType1
  20183. '\x00\x00\x00\x00'); // maxMemType1
  20184. }
  20185. function createNameTable(name, proto) {
  20186. if (!proto) {
  20187. proto = [[], []]; // no strings and unicode strings
  20188. }
  20189. var strings = [
  20190. proto[0][0] || 'Original licence', // 0.Copyright
  20191. proto[0][1] || name, // 1.Font family
  20192. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  20193. proto[0][3] || 'uniqueID', // 3.Unique ID
  20194. proto[0][4] || name, // 4.Full font name
  20195. proto[0][5] || 'Version 0.11', // 5.Version
  20196. proto[0][6] || '', // 6.Postscript name
  20197. proto[0][7] || 'Unknown', // 7.Trademark
  20198. proto[0][8] || 'Unknown', // 8.Manufacturer
  20199. proto[0][9] || 'Unknown' // 9.Designer
  20200. ];
  20201. // Mac want 1-byte per character strings while Windows want
  20202. // 2-bytes per character, so duplicate the names table
  20203. var stringsUnicode = [];
  20204. var i, ii, j, jj, str;
  20205. for (i = 0, ii = strings.length; i < ii; i++) {
  20206. str = proto[1][i] || strings[i];
  20207. var strBufUnicode = [];
  20208. for (j = 0, jj = str.length; j < jj; j++) {
  20209. strBufUnicode.push(string16(str.charCodeAt(j)));
  20210. }
  20211. stringsUnicode.push(strBufUnicode.join(''));
  20212. }
  20213. var names = [strings, stringsUnicode];
  20214. var platforms = ['\x00\x01', '\x00\x03'];
  20215. var encodings = ['\x00\x00', '\x00\x01'];
  20216. var languages = ['\x00\x00', '\x04\x09'];
  20217. var namesRecordCount = strings.length * platforms.length;
  20218. var nameTable =
  20219. '\x00\x00' + // format
  20220. string16(namesRecordCount) + // Number of names Record
  20221. string16(namesRecordCount * 12 + 6); // Storage
  20222. // Build the name records field
  20223. var strOffset = 0;
  20224. for (i = 0, ii = platforms.length; i < ii; i++) {
  20225. var strs = names[i];
  20226. for (j = 0, jj = strs.length; j < jj; j++) {
  20227. str = strs[j];
  20228. var nameRecord =
  20229. platforms[i] + // platform ID
  20230. encodings[i] + // encoding ID
  20231. languages[i] + // language ID
  20232. string16(j) + // name ID
  20233. string16(str.length) +
  20234. string16(strOffset);
  20235. nameTable += nameRecord;
  20236. strOffset += str.length;
  20237. }
  20238. }
  20239. nameTable += strings.join('') + stringsUnicode.join('');
  20240. return nameTable;
  20241. }
  20242. Font.prototype = {
  20243. name: null,
  20244. font: null,
  20245. mimetype: null,
  20246. encoding: null,
  20247. get renderer() {
  20248. var renderer = FontRendererFactory.create(this);
  20249. return shadow(this, 'renderer', renderer);
  20250. },
  20251. exportData: function Font_exportData() {
  20252. var data = {};
  20253. for (var i in this) {
  20254. if (this.hasOwnProperty(i)) {
  20255. data[i] = this[i];
  20256. }
  20257. }
  20258. return data;
  20259. },
  20260. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  20261. function readTableEntry(file) {
  20262. var tag = bytesToString(file.getBytes(4));
  20263. var checksum = file.getInt32();
  20264. var offset = file.getInt32() >>> 0;
  20265. var length = file.getInt32() >>> 0;
  20266. // Read the table associated data
  20267. var previousPosition = file.pos;
  20268. file.pos = file.start ? file.start : 0;
  20269. file.skip(offset);
  20270. var data = file.getBytes(length);
  20271. file.pos = previousPosition;
  20272. if (tag == 'head') {
  20273. // clearing checksum adjustment
  20274. data[8] = data[9] = data[10] = data[11] = 0;
  20275. data[17] |= 0x20; //Set font optimized for cleartype flag
  20276. }
  20277. return {
  20278. tag: tag,
  20279. checksum: checksum,
  20280. length: length,
  20281. offset: offset,
  20282. data: data
  20283. };
  20284. }
  20285. function readOpenTypeHeader(ttf) {
  20286. return {
  20287. version: bytesToString(ttf.getBytes(4)),
  20288. numTables: ttf.getUint16(),
  20289. searchRange: ttf.getUint16(),
  20290. entrySelector: ttf.getUint16(),
  20291. rangeShift: ttf.getUint16()
  20292. };
  20293. }
  20294. /**
  20295. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  20296. * PDF spec
  20297. */
  20298. function readCmapTable(cmap, font, isSymbolicFont) {
  20299. var segment;
  20300. var start = (font.start ? font.start : 0) + cmap.offset;
  20301. font.pos = start;
  20302. var version = font.getUint16();
  20303. var numTables = font.getUint16();
  20304. var potentialTable;
  20305. var canBreak = false;
  20306. // There's an order of preference in terms of which cmap subtable to
  20307. // use:
  20308. // - non-symbolic fonts the preference is a 3,1 table then a 1,0 table
  20309. // - symbolic fonts the preference is a 3,0 table then a 1,0 table
  20310. // The following takes advantage of the fact that the tables are sorted
  20311. // to work.
  20312. for (var i = 0; i < numTables; i++) {
  20313. var platformId = font.getUint16();
  20314. var encodingId = font.getUint16();
  20315. var offset = font.getInt32() >>> 0;
  20316. var useTable = false;
  20317. if (platformId == 1 && encodingId === 0) {
  20318. useTable = true;
  20319. // Continue the loop since there still may be a higher priority
  20320. // table.
  20321. } else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
  20322. useTable = true;
  20323. canBreak = true;
  20324. } else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  20325. useTable = true;
  20326. canBreak = true;
  20327. }
  20328. if (useTable) {
  20329. potentialTable = {
  20330. platformId: platformId,
  20331. encodingId: encodingId,
  20332. offset: offset
  20333. };
  20334. }
  20335. if (canBreak) {
  20336. break;
  20337. }
  20338. }
  20339. if (!potentialTable) {
  20340. warn('Could not find a preferred cmap table.');
  20341. return [];
  20342. }
  20343. font.pos = start + potentialTable.offset;
  20344. var format = font.getUint16();
  20345. var length = font.getUint16();
  20346. var language = font.getUint16();
  20347. var hasShortCmap = false;
  20348. var mappings = [];
  20349. var j, glyphId;
  20350. // TODO(mack): refactor this cmap subtable reading logic out
  20351. if (format === 0) {
  20352. for (j = 0; j < 256; j++) {
  20353. var index = font.getByte();
  20354. if (!index) {
  20355. continue;
  20356. }
  20357. mappings.push({
  20358. charCode: j,
  20359. glyphId: index
  20360. });
  20361. }
  20362. hasShortCmap = true;
  20363. } else if (format === 4) {
  20364. // re-creating the table in format 4 since the encoding
  20365. // might be changed
  20366. var segCount = (font.getUint16() >> 1);
  20367. font.getBytes(6); // skipping range fields
  20368. var segIndex, segments = [];
  20369. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20370. segments.push({ end: font.getUint16() });
  20371. }
  20372. font.getUint16();
  20373. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20374. segments[segIndex].start = font.getUint16();
  20375. }
  20376. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20377. segments[segIndex].delta = font.getUint16();
  20378. }
  20379. var offsetsCount = 0;
  20380. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20381. segment = segments[segIndex];
  20382. var rangeOffset = font.getUint16();
  20383. if (!rangeOffset) {
  20384. segment.offsetIndex = -1;
  20385. continue;
  20386. }
  20387. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  20388. segment.offsetIndex = offsetIndex;
  20389. offsetsCount = Math.max(offsetsCount, offsetIndex +
  20390. segment.end - segment.start + 1);
  20391. }
  20392. var offsets = [];
  20393. for (j = 0; j < offsetsCount; j++) {
  20394. offsets.push(font.getUint16());
  20395. }
  20396. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20397. segment = segments[segIndex];
  20398. start = segment.start;
  20399. var end = segment.end;
  20400. var delta = segment.delta;
  20401. offsetIndex = segment.offsetIndex;
  20402. for (j = start; j <= end; j++) {
  20403. if (j == 0xFFFF) {
  20404. continue;
  20405. }
  20406. glyphId = (offsetIndex < 0 ?
  20407. j : offsets[offsetIndex + j - start]);
  20408. glyphId = (glyphId + delta) & 0xFFFF;
  20409. if (glyphId === 0) {
  20410. continue;
  20411. }
  20412. mappings.push({
  20413. charCode: j,
  20414. glyphId: glyphId
  20415. });
  20416. }
  20417. }
  20418. } else if (format == 6) {
  20419. // Format 6 is a 2-bytes dense mapping, which means the font data
  20420. // lives glue together even if they are pretty far in the unicode
  20421. // table. (This looks weird, so I can have missed something), this
  20422. // works on Linux but seems to fails on Mac so let's rewrite the
  20423. // cmap table to a 3-1-4 style
  20424. var firstCode = font.getUint16();
  20425. var entryCount = font.getUint16();
  20426. for (j = 0; j < entryCount; j++) {
  20427. glyphId = font.getUint16();
  20428. var charCode = firstCode + j;
  20429. mappings.push({
  20430. charCode: charCode,
  20431. glyphId: glyphId
  20432. });
  20433. }
  20434. } else {
  20435. error('cmap table has unsupported format: ' + format);
  20436. }
  20437. // removing duplicate entries
  20438. mappings.sort(function (a, b) {
  20439. return a.charCode - b.charCode;
  20440. });
  20441. for (i = 1; i < mappings.length; i++) {
  20442. if (mappings[i - 1].charCode === mappings[i].charCode) {
  20443. mappings.splice(i, 1);
  20444. i--;
  20445. }
  20446. }
  20447. return {
  20448. platformId: potentialTable.platformId,
  20449. encodingId: potentialTable.encodingId,
  20450. mappings: mappings,
  20451. hasShortCmap: hasShortCmap
  20452. };
  20453. }
  20454. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  20455. if (!header) {
  20456. if (metrics) {
  20457. metrics.data = null;
  20458. }
  20459. return;
  20460. }
  20461. font.pos = (font.start ? font.start : 0) + header.offset;
  20462. font.pos += header.length - 2;
  20463. var numOfMetrics = font.getUint16();
  20464. if (numOfMetrics > numGlyphs) {
  20465. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  20466. 'greater than the numGlyphs (' + numGlyphs + ')');
  20467. // Reduce numOfMetrics if it is greater than numGlyphs
  20468. numOfMetrics = numGlyphs;
  20469. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  20470. header.data[35] = numOfMetrics & 0x00ff;
  20471. }
  20472. var numOfSidebearings = numGlyphs - numOfMetrics;
  20473. var numMissing = numOfSidebearings -
  20474. ((metrics.length - numOfMetrics * 4) >> 1);
  20475. var i, ii;
  20476. if (numMissing > 0) {
  20477. font.pos = (font.start ? font.start : 0) + metrics.offset;
  20478. var entries = '';
  20479. for (i = 0, ii = metrics.length; i < ii; i++) {
  20480. entries += String.fromCharCode(font.getByte());
  20481. }
  20482. for (i = 0; i < numMissing; i++) {
  20483. entries += '\x00\x00';
  20484. }
  20485. metrics.data = stringToArray(entries);
  20486. }
  20487. }
  20488. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  20489. hintsValid) {
  20490. if (sourceEnd - sourceStart <= 12) {
  20491. // glyph with data less than 12 is invalid one
  20492. return 0;
  20493. }
  20494. var glyf = source.subarray(sourceStart, sourceEnd);
  20495. var contoursCount = (glyf[0] << 8) | glyf[1];
  20496. if (contoursCount & 0x8000) {
  20497. // complex glyph, writing as is
  20498. dest.set(glyf, destStart);
  20499. return glyf.length;
  20500. }
  20501. var i, j = 10, flagsCount = 0;
  20502. for (i = 0; i < contoursCount; i++) {
  20503. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  20504. flagsCount = endPoint + 1;
  20505. j += 2;
  20506. }
  20507. // skipping instructions
  20508. var instructionsStart = j;
  20509. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  20510. j += 2 + instructionsLength;
  20511. var instructionsEnd = j;
  20512. // validating flags
  20513. var coordinatesLength = 0;
  20514. for (i = 0; i < flagsCount; i++) {
  20515. var flag = glyf[j++];
  20516. if (flag & 0xC0) {
  20517. // reserved flags must be zero, cleaning up
  20518. glyf[j - 1] = flag & 0x3F;
  20519. }
  20520. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  20521. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  20522. coordinatesLength += xyLength;
  20523. if (flag & 8) {
  20524. var repeat = glyf[j++];
  20525. i += repeat;
  20526. coordinatesLength += repeat * xyLength;
  20527. }
  20528. }
  20529. // glyph without coordinates will be rejected
  20530. if (coordinatesLength === 0) {
  20531. return 0;
  20532. }
  20533. var glyphDataLength = j + coordinatesLength;
  20534. if (glyphDataLength > glyf.length) {
  20535. // not enough data for coordinates
  20536. return 0;
  20537. }
  20538. if (!hintsValid && instructionsLength > 0) {
  20539. dest.set(glyf.subarray(0, instructionsStart), destStart);
  20540. dest.set([0, 0], destStart + instructionsStart);
  20541. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  20542. destStart + instructionsStart + 2);
  20543. glyphDataLength -= instructionsLength;
  20544. if (glyf.length - glyphDataLength > 3) {
  20545. glyphDataLength = (glyphDataLength + 3) & ~3;
  20546. }
  20547. return glyphDataLength;
  20548. }
  20549. if (glyf.length - glyphDataLength > 3) {
  20550. // truncating and aligning to 4 bytes the long glyph data
  20551. glyphDataLength = (glyphDataLength + 3) & ~3;
  20552. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  20553. return glyphDataLength;
  20554. }
  20555. // glyph data is fine
  20556. dest.set(glyf, destStart);
  20557. return glyf.length;
  20558. }
  20559. function sanitizeHead(head, numGlyphs, locaLength) {
  20560. var data = head.data;
  20561. // Validate version:
  20562. // Should always be 0x00010000
  20563. var version = int32(data[0], data[1], data[2], data[3]);
  20564. if (version >> 16 !== 1) {
  20565. info('Attempting to fix invalid version in head table: ' + version);
  20566. data[0] = 0;
  20567. data[1] = 1;
  20568. data[2] = 0;
  20569. data[3] = 0;
  20570. }
  20571. var indexToLocFormat = int16(data[50], data[51]);
  20572. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  20573. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  20574. indexToLocFormat);
  20575. // The value of indexToLocFormat should be 0 if the loca table
  20576. // consists of short offsets, and should be 1 if the loca table
  20577. // consists of long offsets.
  20578. //
  20579. // The number of entries in the loca table should be numGlyphs + 1.
  20580. //
  20581. // Using this information, we can work backwards to deduce if the
  20582. // size of each offset in the loca table, and thus figure out the
  20583. // appropriate value for indexToLocFormat.
  20584. var numGlyphsPlusOne = numGlyphs + 1;
  20585. if (locaLength === numGlyphsPlusOne << 1) {
  20586. // 0x0000 indicates the loca table consists of short offsets
  20587. data[50] = 0;
  20588. data[51] = 0;
  20589. } else if (locaLength === numGlyphsPlusOne << 2) {
  20590. // 0x0001 indicates the loca table consists of long offsets
  20591. data[50] = 0;
  20592. data[51] = 1;
  20593. } else {
  20594. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  20595. }
  20596. }
  20597. }
  20598. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  20599. isGlyphLocationsLong, hintsValid,
  20600. dupFirstEntry) {
  20601. var itemSize, itemDecode, itemEncode;
  20602. if (isGlyphLocationsLong) {
  20603. itemSize = 4;
  20604. itemDecode = function fontItemDecodeLong(data, offset) {
  20605. return (data[offset] << 24) | (data[offset + 1] << 16) |
  20606. (data[offset + 2] << 8) | data[offset + 3];
  20607. };
  20608. itemEncode = function fontItemEncodeLong(data, offset, value) {
  20609. data[offset] = (value >>> 24) & 0xFF;
  20610. data[offset + 1] = (value >> 16) & 0xFF;
  20611. data[offset + 2] = (value >> 8) & 0xFF;
  20612. data[offset + 3] = value & 0xFF;
  20613. };
  20614. } else {
  20615. itemSize = 2;
  20616. itemDecode = function fontItemDecode(data, offset) {
  20617. return (data[offset] << 9) | (data[offset + 1] << 1);
  20618. };
  20619. itemEncode = function fontItemEncode(data, offset, value) {
  20620. data[offset] = (value >> 9) & 0xFF;
  20621. data[offset + 1] = (value >> 1) & 0xFF;
  20622. };
  20623. }
  20624. var locaData = loca.data;
  20625. var locaDataSize = itemSize * (1 + numGlyphs);
  20626. // is loca.data too short or long?
  20627. if (locaData.length !== locaDataSize) {
  20628. locaData = new Uint8Array(locaDataSize);
  20629. locaData.set(loca.data.subarray(0, locaDataSize));
  20630. loca.data = locaData;
  20631. }
  20632. // removing the invalid glyphs
  20633. var oldGlyfData = glyf.data;
  20634. var oldGlyfDataLength = oldGlyfData.length;
  20635. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  20636. var startOffset = itemDecode(locaData, 0);
  20637. var writeOffset = 0;
  20638. itemEncode(locaData, 0, writeOffset);
  20639. var i, j;
  20640. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20641. var endOffset = itemDecode(locaData, j);
  20642. if (endOffset > oldGlyfDataLength &&
  20643. ((oldGlyfDataLength + 3) & ~3) === endOffset) {
  20644. // Aspose breaks fonts by aligning the glyphs to the qword, but not
  20645. // the glyf table size, which makes last glyph out of range.
  20646. endOffset = oldGlyfDataLength;
  20647. }
  20648. if (endOffset > oldGlyfDataLength) {
  20649. // glyph end offset points outside glyf data, rejecting the glyph
  20650. itemEncode(locaData, j, writeOffset);
  20651. startOffset = endOffset;
  20652. continue;
  20653. }
  20654. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  20655. newGlyfData, writeOffset, hintsValid);
  20656. writeOffset += newLength;
  20657. itemEncode(locaData, j, writeOffset);
  20658. startOffset = endOffset;
  20659. }
  20660. if (writeOffset === 0) {
  20661. // glyf table cannot be empty -- redoing the glyf and loca tables
  20662. // to have single glyph with one point
  20663. var simpleGlyph = new Uint8Array(
  20664. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  20665. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20666. itemEncode(locaData, j, simpleGlyph.length);
  20667. }
  20668. glyf.data = simpleGlyph;
  20669. return;
  20670. }
  20671. if (dupFirstEntry) {
  20672. var firstEntryLength = itemDecode(locaData, itemSize);
  20673. if (newGlyfData.length > firstEntryLength + writeOffset) {
  20674. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  20675. } else {
  20676. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  20677. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  20678. }
  20679. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  20680. itemEncode(loca.data, locaData.length - itemSize,
  20681. writeOffset + firstEntryLength);
  20682. } else {
  20683. glyf.data = newGlyfData.subarray(0, writeOffset);
  20684. }
  20685. }
  20686. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  20687. var start = (font.start ? font.start : 0) + post.offset;
  20688. font.pos = start;
  20689. var length = post.length, end = start + length;
  20690. var version = font.getInt32();
  20691. // skip rest to the tables
  20692. font.getBytes(28);
  20693. var glyphNames;
  20694. var valid = true;
  20695. var i;
  20696. switch (version) {
  20697. case 0x00010000:
  20698. glyphNames = MacStandardGlyphOrdering;
  20699. break;
  20700. case 0x00020000:
  20701. var numGlyphs = font.getUint16();
  20702. if (numGlyphs != maxpNumGlyphs) {
  20703. valid = false;
  20704. break;
  20705. }
  20706. var glyphNameIndexes = [];
  20707. for (i = 0; i < numGlyphs; ++i) {
  20708. var index = font.getUint16();
  20709. if (index >= 32768) {
  20710. valid = false;
  20711. break;
  20712. }
  20713. glyphNameIndexes.push(index);
  20714. }
  20715. if (!valid) {
  20716. break;
  20717. }
  20718. var customNames = [];
  20719. while (font.pos < end) {
  20720. var stringLength = font.getByte();
  20721. var string = '';
  20722. for (i = 0; i < stringLength; ++i) {
  20723. string += String.fromCharCode(font.getByte());
  20724. }
  20725. customNames.push(string);
  20726. }
  20727. glyphNames = [];
  20728. for (i = 0; i < numGlyphs; ++i) {
  20729. var j = glyphNameIndexes[i];
  20730. if (j < 258) {
  20731. glyphNames.push(MacStandardGlyphOrdering[j]);
  20732. continue;
  20733. }
  20734. glyphNames.push(customNames[j - 258]);
  20735. }
  20736. break;
  20737. case 0x00030000:
  20738. break;
  20739. default:
  20740. warn('Unknown/unsupported post table version ' + version);
  20741. valid = false;
  20742. break;
  20743. }
  20744. properties.glyphNames = glyphNames;
  20745. return valid;
  20746. }
  20747. function readNameTable(nameTable) {
  20748. var start = (font.start ? font.start : 0) + nameTable.offset;
  20749. font.pos = start;
  20750. var names = [[], []];
  20751. var length = nameTable.length, end = start + length;
  20752. var format = font.getUint16();
  20753. var FORMAT_0_HEADER_LENGTH = 6;
  20754. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  20755. // unsupported name table format or table "too" small
  20756. return names;
  20757. }
  20758. var numRecords = font.getUint16();
  20759. var stringsStart = font.getUint16();
  20760. var records = [];
  20761. var NAME_RECORD_LENGTH = 12;
  20762. var i, ii;
  20763. for (i = 0; i < numRecords &&
  20764. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  20765. var r = {
  20766. platform: font.getUint16(),
  20767. encoding: font.getUint16(),
  20768. language: font.getUint16(),
  20769. name: font.getUint16(),
  20770. length: font.getUint16(),
  20771. offset: font.getUint16()
  20772. };
  20773. // using only Macintosh and Windows platform/encoding names
  20774. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  20775. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  20776. records.push(r);
  20777. }
  20778. }
  20779. for (i = 0, ii = records.length; i < ii; i++) {
  20780. var record = records[i];
  20781. var pos = start + stringsStart + record.offset;
  20782. if (pos + record.length > end) {
  20783. continue; // outside of name table, ignoring
  20784. }
  20785. font.pos = pos;
  20786. var nameIndex = record.name;
  20787. if (record.encoding) {
  20788. // unicode
  20789. var str = '';
  20790. for (var j = 0, jj = record.length; j < jj; j += 2) {
  20791. str += String.fromCharCode(font.getUint16());
  20792. }
  20793. names[1][nameIndex] = str;
  20794. } else {
  20795. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  20796. }
  20797. }
  20798. return names;
  20799. }
  20800. var TTOpsStackDeltas = [
  20801. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  20802. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  20803. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  20804. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  20805. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  20806. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  20807. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  20808. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  20809. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  20810. // 0xC0-DF == -1 and 0xE0-FF == -2
  20811. function sanitizeTTProgram(table, ttContext) {
  20812. var data = table.data;
  20813. var i = 0, j, n, b, funcId, pc, lastEndf = 0, lastDeff = 0;
  20814. var stack = [];
  20815. var callstack = [];
  20816. var functionsCalled = [];
  20817. var tooComplexToFollowFunctions =
  20818. ttContext.tooComplexToFollowFunctions;
  20819. var inFDEF = false, ifLevel = 0, inELSE = 0;
  20820. for (var ii = data.length; i < ii;) {
  20821. var op = data[i++];
  20822. // The TrueType instruction set docs can be found at
  20823. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  20824. if (op === 0x40) { // NPUSHB - pushes n bytes
  20825. n = data[i++];
  20826. if (inFDEF || inELSE) {
  20827. i += n;
  20828. } else {
  20829. for (j = 0; j < n; j++) {
  20830. stack.push(data[i++]);
  20831. }
  20832. }
  20833. } else if (op === 0x41) { // NPUSHW - pushes n words
  20834. n = data[i++];
  20835. if (inFDEF || inELSE) {
  20836. i += n * 2;
  20837. } else {
  20838. for (j = 0; j < n; j++) {
  20839. b = data[i++];
  20840. stack.push((b << 8) | data[i++]);
  20841. }
  20842. }
  20843. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  20844. n = op - 0xB0 + 1;
  20845. if (inFDEF || inELSE) {
  20846. i += n;
  20847. } else {
  20848. for (j = 0; j < n; j++) {
  20849. stack.push(data[i++]);
  20850. }
  20851. }
  20852. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  20853. n = op - 0xB8 + 1;
  20854. if (inFDEF || inELSE) {
  20855. i += n * 2;
  20856. } else {
  20857. for (j = 0; j < n; j++) {
  20858. b = data[i++];
  20859. stack.push((b << 8) | data[i++]);
  20860. }
  20861. }
  20862. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  20863. if (!inFDEF && !inELSE) {
  20864. // collecting inforamtion about which functions are used
  20865. funcId = stack[stack.length - 1];
  20866. ttContext.functionsUsed[funcId] = true;
  20867. if (funcId in ttContext.functionsStackDeltas) {
  20868. stack.length += ttContext.functionsStackDeltas[funcId];
  20869. } else if (funcId in ttContext.functionsDefined &&
  20870. functionsCalled.indexOf(funcId) < 0) {
  20871. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  20872. functionsCalled.push(funcId);
  20873. pc = ttContext.functionsDefined[funcId];
  20874. if (!pc) {
  20875. warn('TT: CALL non-existent function');
  20876. ttContext.hintsValid = false;
  20877. return;
  20878. }
  20879. data = pc.data;
  20880. i = pc.i;
  20881. }
  20882. }
  20883. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  20884. if (inFDEF || inELSE) {
  20885. warn('TT: nested FDEFs not allowed');
  20886. tooComplexToFollowFunctions = true;
  20887. }
  20888. inFDEF = true;
  20889. // collecting inforamtion about which functions are defined
  20890. lastDeff = i;
  20891. funcId = stack.pop();
  20892. ttContext.functionsDefined[funcId] = {data: data, i: i};
  20893. } else if (op === 0x2D) { // ENDF - end of function
  20894. if (inFDEF) {
  20895. inFDEF = false;
  20896. lastEndf = i;
  20897. } else {
  20898. pc = callstack.pop();
  20899. if (!pc) {
  20900. warn('TT: ENDF bad stack');
  20901. ttContext.hintsValid = false;
  20902. return;
  20903. }
  20904. funcId = functionsCalled.pop();
  20905. data = pc.data;
  20906. i = pc.i;
  20907. ttContext.functionsStackDeltas[funcId] =
  20908. stack.length - pc.stackTop;
  20909. }
  20910. } else if (op === 0x89) { // IDEF - instruction definition
  20911. if (inFDEF || inELSE) {
  20912. warn('TT: nested IDEFs not allowed');
  20913. tooComplexToFollowFunctions = true;
  20914. }
  20915. inFDEF = true;
  20916. // recording it as a function to track ENDF
  20917. lastDeff = i;
  20918. } else if (op === 0x58) { // IF
  20919. ++ifLevel;
  20920. } else if (op === 0x1B) { // ELSE
  20921. inELSE = ifLevel;
  20922. } else if (op === 0x59) { // EIF
  20923. if (inELSE === ifLevel) {
  20924. inELSE = 0;
  20925. }
  20926. --ifLevel;
  20927. } else if (op === 0x1C) { // JMPR
  20928. if (!inFDEF && !inELSE) {
  20929. var offset = stack[stack.length - 1];
  20930. // only jumping forward to prevent infinite loop
  20931. if (offset > 0) {
  20932. i += offset - 1;
  20933. }
  20934. }
  20935. }
  20936. // Adjusting stack not extactly, but just enough to get function id
  20937. if (!inFDEF && !inELSE) {
  20938. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  20939. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  20940. if (op >= 0x71 && op <= 0x75) {
  20941. n = stack.pop();
  20942. if (n === n) {
  20943. stackDelta = -n * 2;
  20944. }
  20945. }
  20946. while (stackDelta < 0 && stack.length > 0) {
  20947. stack.pop();
  20948. stackDelta++;
  20949. }
  20950. while (stackDelta > 0) {
  20951. stack.push(NaN); // pushing any number into stack
  20952. stackDelta--;
  20953. }
  20954. }
  20955. }
  20956. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  20957. var content = [data];
  20958. if (i > data.length) {
  20959. content.push(new Uint8Array(i - data.length));
  20960. }
  20961. if (lastDeff > lastEndf) {
  20962. warn('TT: complementing a missing function tail');
  20963. // new function definition started, but not finished
  20964. // complete function by [CLEAR, ENDF]
  20965. content.push(new Uint8Array([0x22, 0x2D]));
  20966. }
  20967. foldTTTable(table, content);
  20968. }
  20969. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  20970. if (ttContext.tooComplexToFollowFunctions) {
  20971. return;
  20972. }
  20973. if (ttContext.functionsDefined.length > maxFunctionDefs) {
  20974. warn('TT: more functions defined than expected');
  20975. ttContext.hintsValid = false;
  20976. return;
  20977. }
  20978. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  20979. if (j > maxFunctionDefs) {
  20980. warn('TT: invalid function id: ' + j);
  20981. ttContext.hintsValid = false;
  20982. return;
  20983. }
  20984. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  20985. warn('TT: undefined function: ' + j);
  20986. ttContext.hintsValid = false;
  20987. return;
  20988. }
  20989. }
  20990. }
  20991. function foldTTTable(table, content) {
  20992. if (content.length > 1) {
  20993. // concatenating the content items
  20994. var newLength = 0;
  20995. var j, jj;
  20996. for (j = 0, jj = content.length; j < jj; j++) {
  20997. newLength += content[j].length;
  20998. }
  20999. newLength = (newLength + 3) & ~3;
  21000. var result = new Uint8Array(newLength);
  21001. var pos = 0;
  21002. for (j = 0, jj = content.length; j < jj; j++) {
  21003. result.set(content[j], pos);
  21004. pos += content[j].length;
  21005. }
  21006. table.data = result;
  21007. table.length = newLength;
  21008. }
  21009. }
  21010. function sanitizeTTPrograms(fpgm, prep, cvt) {
  21011. var ttContext = {
  21012. functionsDefined: [],
  21013. functionsUsed: [],
  21014. functionsStackDeltas: [],
  21015. tooComplexToFollowFunctions: false,
  21016. hintsValid: true
  21017. };
  21018. if (fpgm) {
  21019. sanitizeTTProgram(fpgm, ttContext);
  21020. }
  21021. if (prep) {
  21022. sanitizeTTProgram(prep, ttContext);
  21023. }
  21024. if (fpgm) {
  21025. checkInvalidFunctions(ttContext, maxFunctionDefs);
  21026. }
  21027. if (cvt && (cvt.length & 1)) {
  21028. var cvtData = new Uint8Array(cvt.length + 1);
  21029. cvtData.set(cvt.data);
  21030. cvt.data = cvtData;
  21031. }
  21032. return ttContext.hintsValid;
  21033. }
  21034. // The following steps modify the original font data, making copy
  21035. font = new Stream(new Uint8Array(font.getBytes()));
  21036. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  21037. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  21038. var header = readOpenTypeHeader(font);
  21039. var numTables = header.numTables;
  21040. var cff, cffFile;
  21041. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  21042. hmtx: null, maxp: null, name: null, post: null };
  21043. var table, tableData;
  21044. for (var i = 0; i < numTables; i++) {
  21045. table = readTableEntry(font);
  21046. if (VALID_TABLES.indexOf(table.tag) < 0) {
  21047. continue; // skipping table if it's not a required or optional table
  21048. }
  21049. if (table.length === 0) {
  21050. continue; // skipping empty tables
  21051. }
  21052. tables[table.tag] = table;
  21053. }
  21054. var isTrueType = !tables['CFF '];
  21055. if (!isTrueType) {
  21056. // OpenType font
  21057. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  21058. // no major tables: throwing everything at CFFFont
  21059. cffFile = new Stream(tables['CFF '].data);
  21060. cff = new CFFFont(cffFile, properties);
  21061. return this.convert(name, cff, properties);
  21062. }
  21063. delete tables.glyf;
  21064. delete tables.loca;
  21065. delete tables.fpgm;
  21066. delete tables.prep;
  21067. delete tables['cvt '];
  21068. } else {
  21069. if (!tables.glyf || !tables.loca) {
  21070. error('Required "glyf" or "loca" tables are not found');
  21071. }
  21072. }
  21073. if (!tables.maxp) {
  21074. error('Required "maxp" table is not found');
  21075. }
  21076. font.pos = (font.start || 0) + tables.maxp.offset;
  21077. var version = font.getInt32();
  21078. var numGlyphs = font.getUint16();
  21079. var maxFunctionDefs = 0;
  21080. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  21081. // maxZones can be invalid
  21082. font.pos += 8;
  21083. var maxZones = font.getUint16();
  21084. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  21085. tables.maxp.data[14] = 0;
  21086. tables.maxp.data[15] = 2;
  21087. }
  21088. font.pos += 4;
  21089. maxFunctionDefs = font.getUint16();
  21090. }
  21091. var dupFirstEntry = false;
  21092. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  21093. properties.toUnicode[0] > '\u0000') {
  21094. // oracle's defect (see 3427), duplicating first entry
  21095. dupFirstEntry = true;
  21096. numGlyphs++;
  21097. tables.maxp.data[4] = numGlyphs >> 8;
  21098. tables.maxp.data[5] = numGlyphs & 255;
  21099. }
  21100. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  21101. tables['cvt '], maxFunctionDefs);
  21102. if (!hintsValid) {
  21103. delete tables.fpgm;
  21104. delete tables.prep;
  21105. delete tables['cvt '];
  21106. }
  21107. // Tables needs to be written by ascendant alphabetic order
  21108. var tablesNames = Object.keys(tables);
  21109. tablesNames.sort();
  21110. numTables = tablesNames.length;
  21111. // header and new offsets. Table entry information is appended to the
  21112. // end of file. The virtualOffset represents where to put the actual
  21113. // data of a particular table;
  21114. var ttf = {
  21115. file: '',
  21116. virtualOffset: numTables * (4 * 4)
  21117. };
  21118. // The new numbers of tables will be the last one plus the num
  21119. // of missing tables
  21120. createOpenTypeHeader(header.version, ttf, numTables);
  21121. // Ensure the hmtx table contains the advance width and
  21122. // sidebearings information for numGlyphs in the maxp table
  21123. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  21124. if (!tables.head) {
  21125. error('Required "head" table is not found');
  21126. }
  21127. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  21128. if (isTrueType) {
  21129. var isGlyphLocationsLong = int16(tables.head.data[50],
  21130. tables.head.data[51]);
  21131. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  21132. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  21133. }
  21134. if (!tables.hhea) {
  21135. error('Required "hhea" table is not found');
  21136. }
  21137. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  21138. // Sometimes it's 0. That needs to be fixed
  21139. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  21140. tables.hhea.data[10] = 0xFF;
  21141. tables.hhea.data[11] = 0xFF;
  21142. }
  21143. // The 'post' table has glyphs names.
  21144. if (tables.post) {
  21145. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  21146. if (!valid) {
  21147. tables.post = null;
  21148. }
  21149. }
  21150. var charCodeToGlyphId = [], charCode;
  21151. if (properties.type == 'CIDFontType2') {
  21152. var cidToGidMap = properties.cidToGidMap || [];
  21153. var cMap = properties.cMap.map;
  21154. for (charCode in cMap) {
  21155. charCode |= 0;
  21156. var cid = cMap[charCode];
  21157. assert(cid.length === 1, 'Max size of CID is 65,535');
  21158. cid = cid.charCodeAt(0);
  21159. var glyphId = -1;
  21160. if (cidToGidMap.length === 0) {
  21161. glyphId = charCode;
  21162. } else if (cid in cidToGidMap) {
  21163. glyphId = cidToGidMap[cid];
  21164. }
  21165. if (glyphId >= 0 && glyphId < numGlyphs) {
  21166. charCodeToGlyphId[charCode] = glyphId;
  21167. }
  21168. }
  21169. if (dupFirstEntry) {
  21170. charCodeToGlyphId[0] = numGlyphs - 1;
  21171. }
  21172. } else {
  21173. // Most of the following logic in this code branch is based on the
  21174. // 9.6.6.4 of the PDF spec.
  21175. var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);
  21176. var cmapPlatformId = cmapTable.platformId;
  21177. var cmapEncodingId = cmapTable.encodingId;
  21178. var cmapMappings = cmapTable.mappings;
  21179. var cmapMappingsLength = cmapMappings.length;
  21180. var hasEncoding = properties.differences.length ||
  21181. !!properties.baseEncodingName;
  21182. // The spec seems to imply that if the font is symbolic the encoding
  21183. // should be ignored, this doesn't appear to work for 'preistabelle.pdf'
  21184. // where the the font is symbolic and it has an encoding.
  21185. if (hasEncoding &&
  21186. (cmapPlatformId === 3 && cmapEncodingId === 1 ||
  21187. cmapPlatformId === 1 && cmapEncodingId === 0)) {
  21188. var baseEncoding = [];
  21189. if (properties.baseEncodingName === 'MacRomanEncoding' ||
  21190. properties.baseEncodingName === 'WinAnsiEncoding') {
  21191. baseEncoding = Encodings[properties.baseEncodingName];
  21192. }
  21193. for (charCode = 0; charCode < 256; charCode++) {
  21194. var glyphName;
  21195. if (this.differences && charCode in this.differences) {
  21196. glyphName = this.differences[charCode];
  21197. } else if (charCode in baseEncoding &&
  21198. baseEncoding[charCode] !== '') {
  21199. glyphName = baseEncoding[charCode];
  21200. } else {
  21201. glyphName = Encodings.StandardEncoding[charCode];
  21202. }
  21203. if (!glyphName) {
  21204. continue;
  21205. }
  21206. var unicodeOrCharCode;
  21207. if (cmapPlatformId === 3 && cmapEncodingId === 1) {
  21208. unicodeOrCharCode = GlyphsUnicode[glyphName];
  21209. } else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
  21210. // TODO: the encoding needs to be updated with mac os table.
  21211. unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);
  21212. }
  21213. var found = false;
  21214. for (i = 0; i < cmapMappingsLength; ++i) {
  21215. if (cmapMappings[i].charCode === unicodeOrCharCode) {
  21216. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21217. found = true;
  21218. break;
  21219. }
  21220. }
  21221. if (!found && properties.glyphNames) {
  21222. // Try to map using the post table. There are currently no known
  21223. // pdfs that this fixes.
  21224. glyphId = properties.glyphNames.indexOf(glyphName);
  21225. if (glyphId > 0) {
  21226. charCodeToGlyphId[charCode] = glyphId;
  21227. }
  21228. }
  21229. }
  21230. } else {
  21231. // For (3, 0) cmap tables:
  21232. // The charcode key being stored in charCodeToGlyphId is the lower
  21233. // byte of the two-byte charcodes of the cmap table since according to
  21234. // the spec: 'each byte from the string shall be prepended with the
  21235. // high byte of the range [of charcodes in the cmap table], to form
  21236. // a two-byte character, which shall be used to select the
  21237. // associated glyph description from the subtable'.
  21238. //
  21239. // For (1, 0) cmap tables:
  21240. // 'single bytes from the string shall be used to look up the
  21241. // associated glyph descriptions from the subtable'. This means
  21242. // charcodes in the cmap will be single bytes, so no-op since
  21243. // glyph.charCode & 0xFF === glyph.charCode
  21244. for (i = 0; i < cmapMappingsLength; ++i) {
  21245. charCode = cmapMappings[i].charCode & 0xFF;
  21246. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21247. }
  21248. }
  21249. }
  21250. if (charCodeToGlyphId.length === 0) {
  21251. // defines at least one glyph
  21252. charCodeToGlyphId[0] = 0;
  21253. }
  21254. // Converting glyphs and ids into font's cmap table
  21255. var newMapping = adjustMapping(charCodeToGlyphId, properties);
  21256. this.toFontChar = newMapping.toFontChar;
  21257. tables.cmap = {
  21258. tag: 'cmap',
  21259. data: createCmapTable(newMapping.charCodeToGlyphId)
  21260. };
  21261. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  21262. // extract some more font properties from the OpenType head and
  21263. // hhea tables; yMin and descent value are always negative
  21264. var override = {
  21265. unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),
  21266. yMax: int16(tables.head.data[42], tables.head.data[43]),
  21267. yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,
  21268. ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),
  21269. descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000
  21270. };
  21271. tables['OS/2'] = {
  21272. tag: 'OS/2',
  21273. data: stringToArray(createOS2Table(properties,
  21274. newMapping.charCodeToGlyphId,
  21275. override))
  21276. };
  21277. }
  21278. // Rewrite the 'post' table if needed
  21279. if (!tables.post) {
  21280. tables.post = {
  21281. tag: 'post',
  21282. data: stringToArray(createPostTable(properties))
  21283. };
  21284. }
  21285. if (!isTrueType) {
  21286. try {
  21287. // Trying to repair CFF file
  21288. cffFile = new Stream(tables['CFF '].data);
  21289. var parser = new CFFParser(cffFile, properties);
  21290. cff = parser.parse();
  21291. var compiler = new CFFCompiler(cff);
  21292. tables['CFF '].data = compiler.compile();
  21293. } catch (e) {
  21294. warn('Failed to compile font ' + properties.loadedName);
  21295. }
  21296. }
  21297. // Re-creating 'name' table
  21298. if (!tables.name) {
  21299. tables.name = {
  21300. tag: 'name',
  21301. data: stringToArray(createNameTable(this.name))
  21302. };
  21303. } else {
  21304. // ... using existing 'name' table as prototype
  21305. var namePrototype = readNameTable(tables.name);
  21306. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  21307. }
  21308. // rewrite the tables but tweak offsets
  21309. for (i = 0; i < numTables; i++) {
  21310. table = tables[tablesNames[i]];
  21311. var data = [];
  21312. tableData = table.data;
  21313. for (var j = 0, jj = tableData.length; j < jj; j++) {
  21314. data.push(tableData[j]);
  21315. }
  21316. createTableEntry(ttf, table.tag, data);
  21317. }
  21318. // Add the table datas
  21319. for (i = 0; i < numTables; i++) {
  21320. table = tables[tablesNames[i]];
  21321. tableData = table.data;
  21322. ttf.file += bytesToString(new Uint8Array(tableData));
  21323. // 4-byte aligned data
  21324. while (ttf.file.length & 3) {
  21325. ttf.file += String.fromCharCode(0);
  21326. }
  21327. }
  21328. return stringToArray(ttf.file);
  21329. },
  21330. convert: function Font_convert(fontName, font, properties) {
  21331. // The offsets object holds at the same time a representation of where
  21332. // to write the table entry information about a table and another offset
  21333. // representing the offset where to draw the actual data of a particular
  21334. // table
  21335. var otf = {
  21336. file: '',
  21337. virtualOffset: 9 * (4 * 4)
  21338. };
  21339. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  21340. // TODO: Check the charstring widths to determine this.
  21341. properties.fixedPitch = false;
  21342. var mapping = font.getGlyphMapping(properties);
  21343. var newMapping = adjustMapping(mapping, properties);
  21344. this.toFontChar = newMapping.toFontChar;
  21345. var numGlyphs = font.numGlyphs;
  21346. function getCharCode(charCodeToGlyphId, glyphId, addMap) {
  21347. for (var charCode in charCodeToGlyphId) {
  21348. if (glyphId === charCodeToGlyphId[charCode]) {
  21349. return charCode | 0;
  21350. }
  21351. }
  21352. if (addMap) {
  21353. newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
  21354. glyphId;
  21355. return newMapping.nextAvailableFontCharCode++;
  21356. }
  21357. return null;
  21358. }
  21359. var seacs = font.seacs;
  21360. if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
  21361. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  21362. var charset = font.getCharset();
  21363. var seacMap = Object.create(null);
  21364. for (var glyphId in seacs) {
  21365. glyphId |= 0;
  21366. var seac = seacs[glyphId];
  21367. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  21368. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  21369. var baseGlyphId = charset.indexOf(baseGlyphName);
  21370. var accentGlyphId = charset.indexOf(accentGlyphName);
  21371. if (baseGlyphId < 0 || accentGlyphId < 0) {
  21372. continue;
  21373. }
  21374. var accentOffset = {
  21375. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  21376. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  21377. };
  21378. var charCode = getCharCode(mapping, glyphId);
  21379. if (charCode === null) {
  21380. // There's no point in mapping it if the char code was never mapped
  21381. // to begin with.
  21382. continue;
  21383. }
  21384. // Find a fontCharCode that maps to the base and accent glyphs. If one
  21385. // doesn't exists, create it.
  21386. var charCodeToGlyphId = newMapping.charCodeToGlyphId;
  21387. var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId,
  21388. true);
  21389. var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId,
  21390. true);
  21391. seacMap[charCode] = {
  21392. baseFontCharCode: baseFontCharCode,
  21393. accentFontCharCode: accentFontCharCode,
  21394. accentOffset: accentOffset
  21395. };
  21396. }
  21397. properties.seacMap = seacMap;
  21398. }
  21399. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  21400. var fields = {
  21401. // PostScript Font Program
  21402. 'CFF ': font.data,
  21403. // OS/2 and Windows Specific metrics
  21404. 'OS/2': stringToArray(createOS2Table(properties,
  21405. newMapping.charCodeToGlyphId)),
  21406. // Character to glyphs mapping
  21407. 'cmap': createCmapTable(newMapping.charCodeToGlyphId),
  21408. // Font header
  21409. 'head': (function fontFieldsHead() {
  21410. return stringToArray(
  21411. '\x00\x01\x00\x00' + // Version number
  21412. '\x00\x00\x10\x00' + // fontRevision
  21413. '\x00\x00\x00\x00' + // checksumAdjustement
  21414. '\x5F\x0F\x3C\xF5' + // magicNumber
  21415. '\x00\x00' + // Flags
  21416. safeString16(unitsPerEm) + // unitsPerEM
  21417. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  21418. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  21419. '\x00\x00' + // xMin
  21420. safeString16(properties.descent) + // yMin
  21421. '\x0F\xFF' + // xMax
  21422. safeString16(properties.ascent) + // yMax
  21423. string16(properties.italicAngle ? 2 : 0) + // macStyle
  21424. '\x00\x11' + // lowestRecPPEM
  21425. '\x00\x00' + // fontDirectionHint
  21426. '\x00\x00' + // indexToLocFormat
  21427. '\x00\x00'); // glyphDataFormat
  21428. })(),
  21429. // Horizontal header
  21430. 'hhea': (function fontFieldsHhea() {
  21431. return stringToArray(
  21432. '\x00\x01\x00\x00' + // Version number
  21433. safeString16(properties.ascent) + // Typographic Ascent
  21434. safeString16(properties.descent) + // Typographic Descent
  21435. '\x00\x00' + // Line Gap
  21436. '\xFF\xFF' + // advanceWidthMax
  21437. '\x00\x00' + // minLeftSidebearing
  21438. '\x00\x00' + // minRightSidebearing
  21439. '\x00\x00' + // xMaxExtent
  21440. safeString16(properties.capHeight) + // caretSlopeRise
  21441. safeString16(Math.tan(properties.italicAngle) *
  21442. properties.xHeight) + // caretSlopeRun
  21443. '\x00\x00' + // caretOffset
  21444. '\x00\x00' + // -reserved-
  21445. '\x00\x00' + // -reserved-
  21446. '\x00\x00' + // -reserved-
  21447. '\x00\x00' + // -reserved-
  21448. '\x00\x00' + // metricDataFormat
  21449. string16(numGlyphs)); // Number of HMetrics
  21450. })(),
  21451. // Horizontal metrics
  21452. 'hmtx': (function fontFieldsHmtx() {
  21453. var charstrings = font.charstrings;
  21454. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  21455. for (var i = 1, ii = numGlyphs; i < ii; i++) {
  21456. // TODO: For CFF fonts the width should technically match th x in
  21457. // the glyph, but it doesn't seem to matter.
  21458. var charstring = charstrings ? charstrings[i - 1] : {};
  21459. var width = 'width' in charstring ? charstring.width : 0;
  21460. hmtx += string16(width) + string16(0);
  21461. }
  21462. return stringToArray(hmtx);
  21463. })(),
  21464. // Maximum profile
  21465. 'maxp': (function fontFieldsMaxp() {
  21466. return stringToArray(
  21467. '\x00\x00\x50\x00' + // Version number
  21468. string16(numGlyphs)); // Num of glyphs
  21469. })(),
  21470. // Naming tables
  21471. 'name': stringToArray(createNameTable(fontName)),
  21472. // PostScript informations
  21473. 'post': stringToArray(createPostTable(properties))
  21474. };
  21475. var field;
  21476. for (field in fields) {
  21477. createTableEntry(otf, field, fields[field]);
  21478. }
  21479. for (field in fields) {
  21480. var table = fields[field];
  21481. otf.file += bytesToString(new Uint8Array(table));
  21482. }
  21483. return stringToArray(otf.file);
  21484. },
  21485. /**
  21486. * Builds a char code to unicode map based on section 9.10 of the spec.
  21487. * @param {Object} properties Font properties object.
  21488. * @return {Object} Has two properties: 'toUnicode' which maps char codes to
  21489. * unicode (string) values and 'isIdentity' which is true if an identity map
  21490. * is used.
  21491. */
  21492. buildToUnicode: function Font_buildToUnicode(properties) {
  21493. var map = {
  21494. isIdentity: false,
  21495. toUnicode: null
  21496. };
  21497. // Section 9.10.2 Mapping Character Codes to Unicode Values
  21498. if (properties.toUnicode && properties.toUnicode.length !== 0) {
  21499. map.toUnicode = properties.toUnicode;
  21500. return map;
  21501. }
  21502. // According to the spec if the font is a simple font we should only map
  21503. // to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
  21504. // the differences array only contains adobe standard or symbol set names,
  21505. // in pratice it seems better to always try to create a toUnicode
  21506. // map based of the default encoding.
  21507. var toUnicode, charcode;
  21508. if (!properties.composite /* is simple font */) {
  21509. toUnicode = [];
  21510. var encoding = properties.defaultEncoding.slice();
  21511. // Merge in the differences array.
  21512. var differences = properties.differences;
  21513. for (charcode in differences) {
  21514. encoding[charcode] = differences[charcode];
  21515. }
  21516. for (charcode in encoding) {
  21517. // a) Map the character code to a character name.
  21518. var glyphName = encoding[charcode];
  21519. // b) Look up the character name in the Adobe Glyph List (see the
  21520. // Bibliography) to obtain the corresponding Unicode value.
  21521. if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
  21522. // (undocumented) c) Few heuristics to recognize unknown glyphs
  21523. // NOTE: Adobe Reader does not do this step, but OSX Preview does
  21524. var code;
  21525. // Gxx glyph
  21526. if (glyphName.length === 3 &&
  21527. glyphName[0] === 'G' &&
  21528. (code = parseInt(glyphName.substr(1), 16))) {
  21529. toUnicode[charcode] = String.fromCharCode(code);
  21530. }
  21531. // Cddd glyph
  21532. if (glyphName.length >= 3 &&
  21533. glyphName[0] === 'C' &&
  21534. (code = +glyphName.substr(1))) {
  21535. toUnicode[charcode] = String.fromCharCode(code);
  21536. }
  21537. continue;
  21538. }
  21539. toUnicode[charcode] = String.fromCharCode(GlyphsUnicode[glyphName]);
  21540. }
  21541. map.toUnicode = toUnicode;
  21542. return map;
  21543. }
  21544. // If the font is a composite font that uses one of the predefined CMaps
  21545. // listed in Table 118 (except Identity–H and Identity–V) or whose
  21546. // descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1, or
  21547. // Adobe-Korea1 character collection:
  21548. if (properties.composite && (
  21549. (properties.cMap.builtInCMap &&
  21550. !(properties.cMap instanceof IdentityCMap)) ||
  21551. (properties.cidSystemInfo.registry === 'Adobe' &&
  21552. (properties.cidSystemInfo.ordering === 'GB1' ||
  21553. properties.cidSystemInfo.ordering === 'CNS1' ||
  21554. properties.cidSystemInfo.ordering === 'Japan1' ||
  21555. properties.cidSystemInfo.ordering === 'Korea1')))) {
  21556. // Then:
  21557. // a) Map the character code to a character identifier (CID) according
  21558. // to the font’s CMap.
  21559. // b) Obtain the registry and ordering of the character collection used
  21560. // by the font’s CMap (for example, Adobe and Japan1) from its
  21561. // CIDSystemInfo dictionary.
  21562. var registry = properties.cidSystemInfo.registry;
  21563. var ordering = properties.cidSystemInfo.ordering;
  21564. // c) Construct a second CMap name by concatenating the registry and
  21565. // ordering obtained in step (b) in the format registry–ordering–UCS2
  21566. // (for example, Adobe–Japan1–UCS2).
  21567. var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
  21568. // d) Obtain the CMap with the name constructed in step (c) (available
  21569. // from the ASN Web site; see the Bibliography).
  21570. var ucs2CMap = CMapFactory.create(ucs2CMapName,
  21571. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  21572. var cMap = properties.cMap;
  21573. toUnicode = [];
  21574. for (charcode in cMap.map) {
  21575. var cid = cMap.map[charcode];
  21576. assert(cid.length === 1, 'Max size of CID is 65,535');
  21577. // e) Map the CID obtained in step (a) according to the CMap obtained
  21578. // in step (d), producing a Unicode value.
  21579. var ucs2 = ucs2CMap.map[cid.charCodeAt(0)];
  21580. if (!ucs2) {
  21581. continue;
  21582. }
  21583. toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) +
  21584. ucs2.charCodeAt(1));
  21585. }
  21586. map.toUnicode = toUnicode;
  21587. return map;
  21588. }
  21589. // The viewer's choice, just use an identity map.
  21590. toUnicode = [];
  21591. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  21592. for (var i = firstChar; i <= lastChar; i++) {
  21593. toUnicode[i] = String.fromCharCode(i);
  21594. }
  21595. map.isIdentity = true;
  21596. map.toUnicode = toUnicode;
  21597. return map;
  21598. },
  21599. get spaceWidth() {
  21600. if ('_shadowWidth' in this) {
  21601. return this._shadowWidth;
  21602. }
  21603. // trying to estimate space character width
  21604. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  21605. var width;
  21606. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  21607. var glyphName = possibleSpaceReplacements[i];
  21608. // if possible, getting width by glyph name
  21609. if (glyphName in this.widths) {
  21610. width = this.widths[glyphName];
  21611. break;
  21612. }
  21613. var glyphUnicode = GlyphsUnicode[glyphName];
  21614. // finding the charcode via unicodeToCID map
  21615. var charcode = 0;
  21616. if (this.composite) {
  21617. if (glyphUnicode in this.cMap.map) {
  21618. charcode = this.cMap.lookup(glyphUnicode).charCodeAt(0);
  21619. }
  21620. }
  21621. // ... via toUnicode map
  21622. if (!charcode && 'toUnicode' in this) {
  21623. charcode = this.toUnicode.indexOf(glyphUnicode);
  21624. }
  21625. // setting it to unicode if negative or undefined
  21626. if (charcode <= 0) {
  21627. charcode = glyphUnicode;
  21628. }
  21629. // trying to get width via charcode
  21630. width = this.widths[charcode];
  21631. if (width) {
  21632. break; // the non-zero width found
  21633. }
  21634. }
  21635. width = width || this.defaultWidth;
  21636. // Do not shadow the property here. See discussion:
  21637. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  21638. this._shadowWidth = width;
  21639. return width;
  21640. },
  21641. charToGlyph: function Font_charToGlyph(charcode) {
  21642. var fontCharCode, width, operatorList;
  21643. var widthCode = charcode;
  21644. if (this.cMap && charcode in this.cMap.map) {
  21645. widthCode = this.cMap.map[charcode].charCodeAt(0);
  21646. }
  21647. width = this.widths[widthCode];
  21648. width = isNum(width) ? width : this.defaultWidth;
  21649. var vmetric = this.vmetrics && this.vmetrics[widthCode];
  21650. var unicode = this.toUnicode[charcode] || charcode;
  21651. if (typeof unicode === 'number') {
  21652. unicode = String.fromCharCode(unicode);
  21653. }
  21654. // First try the toFontChar map, if it's not there then try falling
  21655. // back to the char code.
  21656. fontCharCode = this.toFontChar[charcode] || charcode;
  21657. if (this.missingFile) {
  21658. fontCharCode = mapSpecialUnicodeValues(fontCharCode);
  21659. }
  21660. if (this.type === 'Type3') {
  21661. // Font char code in this case is actually a glyph name.
  21662. operatorList = this.charProcOperatorList[fontCharCode];
  21663. }
  21664. var accent = null;
  21665. if (this.seacMap && this.seacMap[charcode]) {
  21666. var seac = this.seacMap[charcode];
  21667. fontCharCode = seac.baseFontCharCode;
  21668. accent = {
  21669. fontChar: String.fromCharCode(seac.accentFontCharCode),
  21670. offset: seac.accentOffset
  21671. };
  21672. }
  21673. var fontChar = String.fromCharCode(fontCharCode);
  21674. var glyph = this.glyphCache[charcode];
  21675. if (!glyph ||
  21676. !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,
  21677. operatorList)) {
  21678. glyph = new Glyph(fontChar, unicode, accent, width, vmetric,
  21679. operatorList);
  21680. this.glyphCache[charcode] = glyph;
  21681. }
  21682. return glyph;
  21683. },
  21684. charsToGlyphs: function Font_charsToGlyphs(chars) {
  21685. var charsCache = this.charsCache;
  21686. var glyphs, glyph, charcode;
  21687. // if we translated this string before, just grab it from the cache
  21688. if (charsCache) {
  21689. glyphs = charsCache[chars];
  21690. if (glyphs) {
  21691. return glyphs;
  21692. }
  21693. }
  21694. // lazily create the translation cache
  21695. if (!charsCache) {
  21696. charsCache = this.charsCache = Object.create(null);
  21697. }
  21698. glyphs = [];
  21699. var charsCacheKey = chars;
  21700. var i = 0, ii;
  21701. if (this.cMap) {
  21702. // composite fonts have multi-byte strings convert the string from
  21703. // single-byte to multi-byte
  21704. while (i < chars.length) {
  21705. var c = this.cMap.readCharCode(chars, i);
  21706. charcode = c[0];
  21707. var length = c[1];
  21708. i += length;
  21709. glyph = this.charToGlyph(charcode);
  21710. glyphs.push(glyph);
  21711. // placing null after each word break charcode (ASCII SPACE)
  21712. // Ignore occurences of 0x20 in multiple-byte codes.
  21713. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  21714. glyphs.push(null);
  21715. }
  21716. }
  21717. } else {
  21718. for (i = 0, ii = chars.length; i < ii; ++i) {
  21719. charcode = chars.charCodeAt(i);
  21720. glyph = this.charToGlyph(charcode);
  21721. glyphs.push(glyph);
  21722. if (charcode == 0x20) {
  21723. glyphs.push(null);
  21724. }
  21725. }
  21726. }
  21727. // Enter the translated string into the cache
  21728. return (charsCache[charsCacheKey] = glyphs);
  21729. }
  21730. };
  21731. return Font;
  21732. })();
  21733. var ErrorFont = (function ErrorFontClosure() {
  21734. function ErrorFont(error) {
  21735. this.error = error;
  21736. }
  21737. ErrorFont.prototype = {
  21738. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  21739. return [];
  21740. },
  21741. exportData: function ErrorFont_exportData() {
  21742. return {error: this.error};
  21743. }
  21744. };
  21745. return ErrorFont;
  21746. })();
  21747. /**
  21748. * Shared logic for building a char code to glyph id mapping for Type1 and
  21749. * simple CFF fonts. See section 9.6.6.2 of the spec.
  21750. * @param {Object} properties Font properties object.
  21751. * @param {Object} builtInEncoding The encoding contained within the actual font
  21752. * data.
  21753. * @param {Array} Array of glyph names where the index is the glyph ID.
  21754. * @returns {Object} A char code to glyph ID map.
  21755. */
  21756. function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
  21757. var charCodeToGlyphId = Object.create(null);
  21758. var glyphId, charCode, baseEncoding;
  21759. if (properties.baseEncodingName) {
  21760. // If a valid base encoding name was used, the mapping is initialized with
  21761. // that.
  21762. baseEncoding = Encodings[properties.baseEncodingName];
  21763. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21764. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21765. if (glyphId >= 0) {
  21766. charCodeToGlyphId[charCode] = glyphId;
  21767. }
  21768. }
  21769. } else if (!!(properties.flags & FontFlags.Symbolic)) {
  21770. // For a symbolic font the encoding should be the fonts built-in
  21771. // encoding.
  21772. for (charCode in builtInEncoding) {
  21773. charCodeToGlyphId[charCode] = builtInEncoding[charCode];
  21774. }
  21775. } else {
  21776. // For non-symbolic fonts that don't have a base encoding the standard
  21777. // encoding should be used.
  21778. baseEncoding = Encodings.StandardEncoding;
  21779. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21780. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21781. if (glyphId >= 0) {
  21782. charCodeToGlyphId[charCode] = glyphId;
  21783. }
  21784. }
  21785. }
  21786. // Lastly, merge in the differences.
  21787. var differences = properties.differences;
  21788. if (differences) {
  21789. for (charCode in differences) {
  21790. var glyphName = differences[charCode];
  21791. glyphId = glyphNames.indexOf(glyphName);
  21792. if (glyphId >= 0) {
  21793. charCodeToGlyphId[charCode] = glyphId;
  21794. }
  21795. }
  21796. }
  21797. return charCodeToGlyphId;
  21798. }
  21799. /*
  21800. * CharStrings are encoded following the the CharString Encoding sequence
  21801. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  21802. * The value in a byte indicates a command, a number, or subsequent bytes
  21803. * that are to be interpreted in a special way.
  21804. *
  21805. * CharString Number Encoding:
  21806. * A CharString byte containing the values from 32 through 255 inclusive
  21807. * indicate an integer. These values are decoded in four ranges.
  21808. *
  21809. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  21810. * indicate the integer v - 139. Thus, the integer values from -107 through
  21811. * 107 inclusive may be encoded in single byte.
  21812. *
  21813. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  21814. * indicates an integer involving the next byte, w, according to the formula:
  21815. * [(v - 247) x 256] + w + 108
  21816. *
  21817. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  21818. * indicates an integer involving the next byte, w, according to the formula:
  21819. * -[(v - 251) * 256] - w - 108
  21820. *
  21821. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  21822. * are a two complement signed integer. The first of these bytes contains the
  21823. * highest order bits, the second byte contains the next higher order bits
  21824. * and the fourth byte contain the lowest order bits.
  21825. *
  21826. *
  21827. * CharString Command Encoding:
  21828. * CharStrings commands are encoded in 1 or 2 bytes.
  21829. *
  21830. * Single byte commands are encoded in 1 byte that contains a value between
  21831. * 0 and 31 inclusive.
  21832. * If a command byte contains the value 12, then the value in the next byte
  21833. * indicates a command. This "escape" mechanism allows many extra commands
  21834. * to be encoded and this encoding technique helps to minimize the length of
  21835. * the charStrings.
  21836. */
  21837. var Type1CharString = (function Type1CharStringClosure() {
  21838. var COMMAND_MAP = {
  21839. 'hstem': [1],
  21840. 'vstem': [3],
  21841. 'vmoveto': [4],
  21842. 'rlineto': [5],
  21843. 'hlineto': [6],
  21844. 'vlineto': [7],
  21845. 'rrcurveto': [8],
  21846. 'callsubr': [10],
  21847. 'flex': [12, 35],
  21848. 'drop' : [12, 18],
  21849. 'endchar': [14],
  21850. 'rmoveto': [21],
  21851. 'hmoveto': [22],
  21852. 'vhcurveto': [30],
  21853. 'hvcurveto': [31]
  21854. };
  21855. function Type1CharString() {
  21856. this.width = 0;
  21857. this.lsb = 0;
  21858. this.flexing = false;
  21859. this.output = [];
  21860. this.stack = [];
  21861. }
  21862. Type1CharString.prototype = {
  21863. convert: function Type1CharString_convert(encoded, subrs) {
  21864. var count = encoded.length;
  21865. var error = false;
  21866. var wx, sbx, subrNumber;
  21867. for (var i = 0; i < count; i++) {
  21868. var value = encoded[i];
  21869. if (value < 32) {
  21870. if (value === 12) {
  21871. value = (value << 8) + encoded[++i];
  21872. }
  21873. switch (value) {
  21874. case 1: // hstem
  21875. if (!HINTING_ENABLED) {
  21876. this.stack = [];
  21877. break;
  21878. }
  21879. error = this.executeCommand(2, COMMAND_MAP.hstem);
  21880. break;
  21881. case 3: // vstem
  21882. if (!HINTING_ENABLED) {
  21883. this.stack = [];
  21884. break;
  21885. }
  21886. error = this.executeCommand(2, COMMAND_MAP.vstem);
  21887. break;
  21888. case 4: // vmoveto
  21889. if (this.flexing) {
  21890. if (this.stack.length < 1) {
  21891. error = true;
  21892. break;
  21893. }
  21894. // Add the dx for flex and but also swap the values so they are
  21895. // the right order.
  21896. var dy = this.stack.pop();
  21897. this.stack.push(0, dy);
  21898. break;
  21899. }
  21900. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  21901. break;
  21902. case 5: // rlineto
  21903. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  21904. break;
  21905. case 6: // hlineto
  21906. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  21907. break;
  21908. case 7: // vlineto
  21909. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  21910. break;
  21911. case 8: // rrcurveto
  21912. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  21913. break;
  21914. case 9: // closepath
  21915. // closepath is a Type1 command that does not take argument and is
  21916. // useless in Type2 and it can simply be ignored.
  21917. this.stack = [];
  21918. break;
  21919. case 10: // callsubr
  21920. if (this.stack.length < 1) {
  21921. error = true;
  21922. break;
  21923. }
  21924. subrNumber = this.stack.pop();
  21925. error = this.convert(subrs[subrNumber], subrs);
  21926. break;
  21927. case 11: // return
  21928. return error;
  21929. case 13: // hsbw
  21930. if (this.stack.length < 2) {
  21931. error = true;
  21932. break;
  21933. }
  21934. // To convert to type2 we have to move the width value to the
  21935. // first part of the charstring and then use hmoveto with lsb.
  21936. wx = this.stack.pop();
  21937. sbx = this.stack.pop();
  21938. this.lsb = sbx;
  21939. this.width = wx;
  21940. this.stack.push(sbx);
  21941. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  21942. break;
  21943. case 14: // endchar
  21944. this.output.push(COMMAND_MAP.endchar[0]);
  21945. break;
  21946. case 21: // rmoveto
  21947. if (this.flexing) {
  21948. break;
  21949. }
  21950. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  21951. break;
  21952. case 22: // hmoveto
  21953. if (this.flexing) {
  21954. // Add the dy for flex.
  21955. this.stack.push(0);
  21956. break;
  21957. }
  21958. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  21959. break;
  21960. case 30: // vhcurveto
  21961. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  21962. break;
  21963. case 31: // hvcurveto
  21964. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  21965. break;
  21966. case (12 << 8) + 0: // dotsection
  21967. // dotsection is a Type1 command to specify some hinting feature
  21968. // for dots that do not take a parameter and it can safely be
  21969. // ignored for Type2.
  21970. this.stack = [];
  21971. break;
  21972. case (12 << 8) + 1: // vstem3
  21973. if (!HINTING_ENABLED) {
  21974. this.stack = [];
  21975. break;
  21976. }
  21977. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  21978. // multiple parameters, so instead of returning [vh]stem3 take a
  21979. // shortcut and return [vhstem] instead.
  21980. error = this.executeCommand(2, COMMAND_MAP.vstem);
  21981. break;
  21982. case (12 << 8) + 2: // hstem3
  21983. if (!HINTING_ENABLED) {
  21984. this.stack = [];
  21985. break;
  21986. }
  21987. // See vstem3.
  21988. error = this.executeCommand(2, COMMAND_MAP.hstem);
  21989. break;
  21990. case (12 << 8) + 6: // seac
  21991. // seac is like type 2's special endchar but it doesn't use the
  21992. // first argument asb, so remove it.
  21993. if (SEAC_ANALYSIS_ENABLED) {
  21994. this.seac = this.stack.splice(-4, 4);
  21995. error = this.executeCommand(0, COMMAND_MAP.endchar);
  21996. } else {
  21997. error = this.executeCommand(4, COMMAND_MAP.endchar);
  21998. }
  21999. break;
  22000. case (12 << 8) + 7: // sbw
  22001. if (this.stack.length < 4) {
  22002. error = true;
  22003. break;
  22004. }
  22005. // To convert to type2 we have to move the width value to the
  22006. // first part of the charstring and then use rmoveto with
  22007. // (dx, dy). The height argument will not be used for vmtx and
  22008. // vhea tables reconstruction -- ignoring it.
  22009. var wy = this.stack.pop();
  22010. wx = this.stack.pop();
  22011. var sby = this.stack.pop();
  22012. sbx = this.stack.pop();
  22013. this.lsb = sbx;
  22014. this.width = wx;
  22015. this.stack.push(sbx, sby);
  22016. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  22017. break;
  22018. case (12 << 8) + 12: // div
  22019. if (this.stack.length < 2) {
  22020. error = true;
  22021. break;
  22022. }
  22023. var num2 = this.stack.pop();
  22024. var num1 = this.stack.pop();
  22025. this.stack.push(num1 / num2);
  22026. break;
  22027. case (12 << 8) + 16: // callothersubr
  22028. if (this.stack.length < 2) {
  22029. error = true;
  22030. break;
  22031. }
  22032. subrNumber = this.stack.pop();
  22033. var numArgs = this.stack.pop();
  22034. if (subrNumber === 0 && numArgs === 3) {
  22035. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  22036. this.stack.push(
  22037. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  22038. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  22039. flexArgs[4], // bcp2x
  22040. flexArgs[5], // bcp2y
  22041. flexArgs[6], // p2x
  22042. flexArgs[7], // p2y
  22043. flexArgs[8], // bcp3x
  22044. flexArgs[9], // bcp3y
  22045. flexArgs[10], // bcp4x
  22046. flexArgs[11], // bcp4y
  22047. flexArgs[12], // p3x
  22048. flexArgs[13], // p3y
  22049. flexArgs[14] // flexDepth
  22050. // 15 = finalx unused by flex
  22051. // 16 = finaly unused by flex
  22052. );
  22053. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  22054. this.flexing = false;
  22055. this.stack.push(flexArgs[15], flexArgs[16]);
  22056. } else if (subrNumber === 1 && numArgs === 0) {
  22057. this.flexing = true;
  22058. }
  22059. break;
  22060. case (12 << 8) + 17: // pop
  22061. // Ignore this since it is only used with othersubr.
  22062. break;
  22063. case (12 << 8) + 33: // setcurrentpoint
  22064. // Ignore for now.
  22065. this.stack = [];
  22066. break;
  22067. default:
  22068. warn('Unknown type 1 charstring command of "' + value + '"');
  22069. break;
  22070. }
  22071. if (error) {
  22072. break;
  22073. }
  22074. continue;
  22075. } else if (value <= 246) {
  22076. value = value - 139;
  22077. } else if (value <= 250) {
  22078. value = ((value - 247) * 256) + encoded[++i] + 108;
  22079. } else if (value <= 254) {
  22080. value = -((value - 251) * 256) - encoded[++i] - 108;
  22081. } else {
  22082. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  22083. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  22084. }
  22085. this.stack.push(value);
  22086. }
  22087. return error;
  22088. },
  22089. executeCommand: function(howManyArgs, command, keepStack) {
  22090. var stackLength = this.stack.length;
  22091. if (howManyArgs > stackLength) {
  22092. return true;
  22093. }
  22094. var start = stackLength - howManyArgs;
  22095. for (var i = start; i < stackLength; i++) {
  22096. var value = this.stack[i];
  22097. if (value === (value | 0)) { // int
  22098. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  22099. } else { // fixed point
  22100. value = (65536 * value) | 0;
  22101. this.output.push(255,
  22102. (value >> 24) & 0xFF,
  22103. (value >> 16) & 0xFF,
  22104. (value >> 8) & 0xFF,
  22105. value & 0xFF);
  22106. }
  22107. }
  22108. this.output.push.apply(this.output, command);
  22109. if (keepStack) {
  22110. this.stack.splice(start, howManyArgs);
  22111. } else {
  22112. this.stack.length = 0;
  22113. }
  22114. return false;
  22115. }
  22116. };
  22117. return Type1CharString;
  22118. })();
  22119. /*
  22120. * Type1Parser encapsulate the needed code for parsing a Type1 font
  22121. * program. Some of its logic depends on the Type2 charstrings
  22122. * structure.
  22123. * Note: this doesn't really parse the font since that would require evaluation
  22124. * of PostScript, but it is possible in most cases to extract what we need
  22125. * without a full parse.
  22126. */
  22127. var Type1Parser = (function Type1ParserClosure() {
  22128. /*
  22129. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  22130. * of Plaintext Bytes. The function took a key as a parameter which can be
  22131. * for decrypting the eexec block of for decoding charStrings.
  22132. */
  22133. var EEXEC_ENCRYPT_KEY = 55665;
  22134. var CHAR_STRS_ENCRYPT_KEY = 4330;
  22135. function isHexDigit(code) {
  22136. return code >= 48 && code <= 57 || // '0'-'9'
  22137. code >= 65 && code <= 70 || // 'A'-'F'
  22138. code >= 97 && code <= 102; // 'a'-'f'
  22139. }
  22140. function decrypt(data, key, discardNumber) {
  22141. var r = key | 0, c1 = 52845, c2 = 22719;
  22142. var count = data.length;
  22143. var decrypted = new Uint8Array(count);
  22144. for (var i = 0; i < count; i++) {
  22145. var value = data[i];
  22146. decrypted[i] = value ^ (r >> 8);
  22147. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  22148. }
  22149. return Array.prototype.slice.call(decrypted, discardNumber);
  22150. }
  22151. function decryptAscii(data, key, discardNumber) {
  22152. var r = key | 0, c1 = 52845, c2 = 22719;
  22153. var count = data.length, maybeLength = count >>> 1;
  22154. var decrypted = new Uint8Array(maybeLength);
  22155. var i, j;
  22156. for (i = 0, j = 0; i < count; i++) {
  22157. var digit1 = data[i];
  22158. if (!isHexDigit(digit1)) {
  22159. continue;
  22160. }
  22161. i++;
  22162. var digit2;
  22163. while (i < count && !isHexDigit(digit2 = data[i])) {
  22164. i++;
  22165. }
  22166. if (i < count) {
  22167. var value = parseInt(String.fromCharCode(digit1, digit2), 16);
  22168. decrypted[j++] = value ^ (r >> 8);
  22169. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  22170. }
  22171. }
  22172. return Array.prototype.slice.call(decrypted, discardNumber, j);
  22173. }
  22174. function isSpecial(c) {
  22175. return c === 0x2F || // '/'
  22176. c === 0x5B || c === 0x5D || // '[', ']'
  22177. c === 0x7B || c === 0x7D || // '{', '}'
  22178. c === 0x28 || c === 0x29; // '(', ')'
  22179. }
  22180. function Type1Parser(stream, encrypted) {
  22181. if (encrypted) {
  22182. var data = stream.getBytes();
  22183. var isBinary = !(isHexDigit(data[0]) && isHexDigit(data[1]) &&
  22184. isHexDigit(data[2]) && isHexDigit(data[3]));
  22185. stream = new Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) :
  22186. decryptAscii(data, EEXEC_ENCRYPT_KEY, 4));
  22187. }
  22188. this.stream = stream;
  22189. this.nextChar();
  22190. }
  22191. Type1Parser.prototype = {
  22192. readNumberArray: function Type1Parser_readNumberArray() {
  22193. this.getToken(); // read '[' or '{' (arrays can start with either)
  22194. var array = [];
  22195. while (true) {
  22196. var token = this.getToken();
  22197. if (token === null || token === ']' || token === '}') {
  22198. break;
  22199. }
  22200. array.push(parseFloat(token || 0));
  22201. }
  22202. return array;
  22203. },
  22204. readNumber: function Type1Parser_readNumber() {
  22205. var token = this.getToken();
  22206. return parseFloat(token || 0);
  22207. },
  22208. readInt: function Type1Parser_readInt() {
  22209. // Use '| 0' to prevent setting a double into length such as the double
  22210. // does not flow into the loop variable.
  22211. var token = this.getToken();
  22212. return parseInt(token || 0, 10) | 0;
  22213. },
  22214. readBoolean: function Type1Parser_readBoolean() {
  22215. var token = this.getToken();
  22216. // Use 1 and 0 since that's what type2 charstrings use.
  22217. return token === 'true' ? 1 : 0;
  22218. },
  22219. nextChar : function Type1_nextChar() {
  22220. return (this.currentChar = this.stream.getByte());
  22221. },
  22222. getToken: function Type1Parser_getToken() {
  22223. // Eat whitespace and comments.
  22224. var comment = false;
  22225. var ch = this.currentChar;
  22226. while (true) {
  22227. if (ch === -1) {
  22228. return null;
  22229. }
  22230. if (comment) {
  22231. if (ch === 0x0A || ch === 0x0D) {
  22232. comment = false;
  22233. }
  22234. } else if (ch === 0x25) { // '%'
  22235. comment = true;
  22236. } else if (!Lexer.isSpace(ch)) {
  22237. break;
  22238. }
  22239. ch = this.nextChar();
  22240. }
  22241. if (isSpecial(ch)) {
  22242. this.nextChar();
  22243. return String.fromCharCode(ch);
  22244. }
  22245. var token = '';
  22246. do {
  22247. token += String.fromCharCode(ch);
  22248. ch = this.nextChar();
  22249. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  22250. return token;
  22251. },
  22252. /*
  22253. * Returns an object containing a Subrs array and a CharStrings
  22254. * array extracted from and eexec encrypted block of data
  22255. */
  22256. extractFontProgram: function Type1Parser_extractFontProgram() {
  22257. var stream = this.stream;
  22258. var subrs = [], charstrings = [];
  22259. var program = {
  22260. subrs: [],
  22261. charstrings: [],
  22262. properties: {
  22263. 'privateData': {
  22264. 'lenIV': 4
  22265. }
  22266. }
  22267. };
  22268. var token, length, data, lenIV, encoded;
  22269. while ((token = this.getToken()) !== null) {
  22270. if (token !== '/') {
  22271. continue;
  22272. }
  22273. token = this.getToken();
  22274. switch (token) {
  22275. case 'CharStrings':
  22276. // The number immediately following CharStrings must be greater or
  22277. // equal to the number of CharStrings.
  22278. this.getToken();
  22279. this.getToken(); // read in 'dict'
  22280. this.getToken(); // read in 'dup'
  22281. this.getToken(); // read in 'begin'
  22282. while(true) {
  22283. token = this.getToken();
  22284. if (token === null || token === 'end') {
  22285. break;
  22286. }
  22287. if (token !== '/') {
  22288. continue;
  22289. }
  22290. var glyph = this.getToken();
  22291. length = this.readInt();
  22292. this.getToken(); // read in 'RD' or '-|'
  22293. data = stream.makeSubStream(stream.pos, length);
  22294. lenIV = program.properties.privateData['lenIV'];
  22295. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22296. // Skip past the required space and binary data.
  22297. stream.skip(length);
  22298. this.nextChar();
  22299. token = this.getToken(); // read in 'ND' or '|-'
  22300. if (token === 'noaccess') {
  22301. this.getToken(); // read in 'def'
  22302. }
  22303. charstrings.push({
  22304. glyph: glyph,
  22305. encoded: encoded
  22306. });
  22307. }
  22308. break;
  22309. case 'Subrs':
  22310. var num = this.readInt();
  22311. this.getToken(); // read in 'array'
  22312. while ((token = this.getToken()) === 'dup') {
  22313. var index = this.readInt();
  22314. length = this.readInt();
  22315. this.getToken(); // read in 'RD' or '-|'
  22316. data = stream.makeSubStream(stream.pos, length);
  22317. lenIV = program.properties.privateData['lenIV'];
  22318. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22319. // Skip past the required space and binary data.
  22320. stream.skip(length);
  22321. this.nextChar();
  22322. token = this.getToken(); // read in 'NP' or '|'
  22323. if (token === 'noaccess') {
  22324. this.getToken(); // read in 'put'
  22325. }
  22326. subrs[index] = encoded;
  22327. }
  22328. break;
  22329. case 'BlueValues':
  22330. case 'OtherBlues':
  22331. case 'FamilyBlues':
  22332. case 'FamilyOtherBlues':
  22333. var blueArray = this.readNumberArray();
  22334. // *Blue* values may contain invalid data: disables reading of
  22335. // those values when hinting is disabled.
  22336. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  22337. HINTING_ENABLED) {
  22338. program.properties.privateData[token] = blueArray;
  22339. }
  22340. break;
  22341. case 'StemSnapH':
  22342. case 'StemSnapV':
  22343. program.properties.privateData[token] = this.readNumberArray();
  22344. break;
  22345. case 'StdHW':
  22346. case 'StdVW':
  22347. program.properties.privateData[token] =
  22348. this.readNumberArray()[0];
  22349. break;
  22350. case 'BlueShift':
  22351. case 'lenIV':
  22352. case 'BlueFuzz':
  22353. case 'BlueScale':
  22354. case 'LanguageGroup':
  22355. case 'ExpansionFactor':
  22356. program.properties.privateData[token] = this.readNumber();
  22357. break;
  22358. case 'ForceBold':
  22359. program.properties.privateData[token] = this.readBoolean();
  22360. break;
  22361. }
  22362. }
  22363. for (var i = 0; i < charstrings.length; i++) {
  22364. glyph = charstrings[i].glyph;
  22365. encoded = charstrings[i].encoded;
  22366. var charString = new Type1CharString();
  22367. var error = charString.convert(encoded, subrs);
  22368. var output = charString.output;
  22369. if (error) {
  22370. // It seems when FreeType encounters an error while evaluating a glyph
  22371. // that it completely ignores the glyph so we'll mimic that behaviour
  22372. // here and put an endchar to make the validator happy.
  22373. output = [14];
  22374. }
  22375. program.charstrings.push({
  22376. glyphName: glyph,
  22377. charstring: output,
  22378. width: charString.width,
  22379. lsb: charString.lsb,
  22380. seac: charString.seac
  22381. });
  22382. }
  22383. return program;
  22384. },
  22385. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  22386. var token;
  22387. while ((token = this.getToken()) !== null) {
  22388. if (token !== '/') {
  22389. continue;
  22390. }
  22391. token = this.getToken();
  22392. switch (token) {
  22393. case 'FontMatrix':
  22394. var matrix = this.readNumberArray();
  22395. properties.fontMatrix = matrix;
  22396. break;
  22397. case 'Encoding':
  22398. var encodingArg = this.getToken();
  22399. var encoding;
  22400. if (!/^\d+$/.test(encodingArg)) {
  22401. // encoding name is specified
  22402. encoding = Encodings[encodingArg];
  22403. } else {
  22404. encoding = [];
  22405. var size = parseInt(encodingArg, 10) | 0;
  22406. this.getToken(); // read in 'array'
  22407. for (var j = 0; j < size; j++) {
  22408. token = this.getToken();
  22409. // skipping till first dup or def (e.g. ignoring for statement)
  22410. while (token !== 'dup' && token !== 'def') {
  22411. token = this.getToken();
  22412. if (token === null) {
  22413. return; // invalid header
  22414. }
  22415. }
  22416. if (token === 'def') {
  22417. break; // read all array data
  22418. }
  22419. var index = this.readInt();
  22420. this.getToken(); // read in '/'
  22421. var glyph = this.getToken();
  22422. encoding[index] = glyph;
  22423. this.getToken(); // read the in 'put'
  22424. }
  22425. }
  22426. properties.builtInEncoding = encoding;
  22427. break;
  22428. case 'FontBBox':
  22429. var fontBBox = this.readNumberArray();
  22430. // adjusting ascent/descent
  22431. properties.ascent = fontBBox[3];
  22432. properties.descent = fontBBox[1];
  22433. properties.ascentScaled = true;
  22434. break;
  22435. }
  22436. }
  22437. }
  22438. };
  22439. return Type1Parser;
  22440. })();
  22441. /**
  22442. * The CFF class takes a Type1 file and wrap it into a
  22443. * 'Compact Font Format' which itself embed Type2 charstrings.
  22444. */
  22445. var CFFStandardStrings = [
  22446. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  22447. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  22448. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  22449. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  22450. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  22451. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  22452. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  22453. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  22454. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  22455. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  22456. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  22457. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  22458. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  22459. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  22460. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  22461. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  22462. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  22463. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  22464. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  22465. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  22466. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  22467. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  22468. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  22469. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  22470. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  22471. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  22472. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  22473. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  22474. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  22475. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  22476. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  22477. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  22478. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  22479. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  22480. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  22481. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  22482. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  22483. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  22484. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  22485. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  22486. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  22487. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  22488. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  22489. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  22490. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  22491. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  22492. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  22493. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  22494. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  22495. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  22496. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  22497. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  22498. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  22499. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  22500. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  22501. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  22502. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  22503. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  22504. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  22505. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  22506. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  22507. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  22508. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  22509. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  22510. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  22511. ];
  22512. // Type1Font is also a CIDFontType0.
  22513. var Type1Font = function Type1Font(name, file, properties) {
  22514. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  22515. // Also, length1 and length2 might be off by 6 bytes as well.
  22516. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  22517. var PFB_HEADER_SIZE = 6;
  22518. var headerBlockLength = properties.length1;
  22519. var eexecBlockLength = properties.length2;
  22520. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  22521. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  22522. if (pfbHeaderPresent) {
  22523. file.skip(PFB_HEADER_SIZE);
  22524. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22525. (pfbHeader[3] << 8) | pfbHeader[2];
  22526. }
  22527. // Get the data block containing glyphs and subrs informations
  22528. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  22529. var headerBlockParser = new Type1Parser(headerBlock);
  22530. headerBlockParser.extractFontHeader(properties);
  22531. if (pfbHeaderPresent) {
  22532. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  22533. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22534. (pfbHeader[3] << 8) | pfbHeader[2];
  22535. }
  22536. // Decrypt the data blocks and retrieve it's content
  22537. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  22538. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  22539. var data = eexecBlockParser.extractFontProgram();
  22540. for (var info in data.properties) {
  22541. properties[info] = data.properties[info];
  22542. }
  22543. var charstrings = data.charstrings;
  22544. var type2Charstrings = this.getType2Charstrings(charstrings);
  22545. var subrs = this.getType2Subrs(data.subrs);
  22546. this.charstrings = charstrings;
  22547. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  22548. subrs, properties);
  22549. this.seacs = this.getSeacs(data.charstrings);
  22550. };
  22551. Type1Font.prototype = {
  22552. get numGlyphs() {
  22553. return this.charstrings.length + 1;
  22554. },
  22555. getCharset: function Type1Font_getCharset() {
  22556. var charset = ['.notdef'];
  22557. var charstrings = this.charstrings;
  22558. for (var glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22559. charset.push(charstrings[glyphId].glyphName);
  22560. }
  22561. return charset;
  22562. },
  22563. getGlyphMapping: function Type1Font_getGlyphMapping(properties) {
  22564. var charstrings = this.charstrings;
  22565. var glyphNames = ['.notdef'], glyphId;
  22566. for (glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22567. glyphNames.push(charstrings[glyphId].glyphName);
  22568. }
  22569. var encoding = properties.builtInEncoding;
  22570. if (encoding) {
  22571. var builtInEncoding = {};
  22572. for (var charCode in encoding) {
  22573. glyphId = glyphNames.indexOf(encoding[charCode]);
  22574. if (glyphId >= 0) {
  22575. builtInEncoding[charCode] = glyphId;
  22576. }
  22577. }
  22578. }
  22579. return type1FontGlyphMapping(properties, builtInEncoding, glyphNames);
  22580. },
  22581. getSeacs: function Type1Font_getSeacs(charstrings) {
  22582. var i, ii;
  22583. var seacMap = [];
  22584. for (i = 0, ii = charstrings.length; i < ii; i++) {
  22585. var charstring = charstrings[i];
  22586. if (charstring.seac) {
  22587. // Offset by 1 for .notdef
  22588. seacMap[i + 1] = charstring.seac;
  22589. }
  22590. }
  22591. return seacMap;
  22592. },
  22593. getType2Charstrings: function Type1Font_getType2Charstrings(
  22594. type1Charstrings) {
  22595. var type2Charstrings = [];
  22596. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  22597. type2Charstrings.push(type1Charstrings[i].charstring);
  22598. }
  22599. return type2Charstrings;
  22600. },
  22601. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  22602. var bias = 0;
  22603. var count = type1Subrs.length;
  22604. if (count < 1133) {
  22605. bias = 107;
  22606. } else if (count < 33769) {
  22607. bias = 1131;
  22608. } else {
  22609. bias = 32768;
  22610. }
  22611. // Add a bunch of empty subrs to deal with the Type2 bias
  22612. var type2Subrs = [];
  22613. var i;
  22614. for (i = 0; i < bias; i++) {
  22615. type2Subrs.push([0x0B]);
  22616. }
  22617. for (i = 0; i < count; i++) {
  22618. type2Subrs.push(type1Subrs[i]);
  22619. }
  22620. return type2Subrs;
  22621. },
  22622. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  22623. var cff = new CFF();
  22624. cff.header = new CFFHeader(1, 0, 4, 4);
  22625. cff.names = [name];
  22626. var topDict = new CFFTopDict();
  22627. // CFF strings IDs 0...390 are predefined names, so refering
  22628. // to entries in our own String INDEX starts at SID 391.
  22629. topDict.setByName('version', 391);
  22630. topDict.setByName('Notice', 392);
  22631. topDict.setByName('FullName', 393);
  22632. topDict.setByName('FamilyName', 394);
  22633. topDict.setByName('Weight', 395);
  22634. topDict.setByName('Encoding', null); // placeholder
  22635. topDict.setByName('FontMatrix', properties.fontMatrix);
  22636. topDict.setByName('FontBBox', properties.bbox);
  22637. topDict.setByName('charset', null); // placeholder
  22638. topDict.setByName('CharStrings', null); // placeholder
  22639. topDict.setByName('Private', null); // placeholder
  22640. cff.topDict = topDict;
  22641. var strings = new CFFStrings();
  22642. strings.add('Version 0.11'); // Version
  22643. strings.add('See original notice'); // Notice
  22644. strings.add(name); // FullName
  22645. strings.add(name); // FamilyName
  22646. strings.add('Medium'); // Weight
  22647. cff.strings = strings;
  22648. cff.globalSubrIndex = new CFFIndex();
  22649. var count = glyphs.length;
  22650. var charsetArray = [0];
  22651. var i, ii;
  22652. for (i = 0; i < count; i++) {
  22653. var index = CFFStandardStrings.indexOf(charstrings[i].glyphName);
  22654. // TODO: Insert the string and correctly map it. Previously it was
  22655. // thought mapping names that aren't in the standard strings to .notdef
  22656. // was fine, however in issue818 when mapping them all to .notdef the
  22657. // adieresis glyph no longer worked.
  22658. if (index == -1) {
  22659. index = 0;
  22660. }
  22661. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  22662. }
  22663. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  22664. var charStringsIndex = new CFFIndex();
  22665. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  22666. for (i = 0; i < count; i++) {
  22667. charStringsIndex.add(glyphs[i]);
  22668. }
  22669. cff.charStrings = charStringsIndex;
  22670. var privateDict = new CFFPrivateDict();
  22671. privateDict.setByName('Subrs', null); // placeholder
  22672. var fields = [
  22673. 'BlueValues',
  22674. 'OtherBlues',
  22675. 'FamilyBlues',
  22676. 'FamilyOtherBlues',
  22677. 'StemSnapH',
  22678. 'StemSnapV',
  22679. 'BlueShift',
  22680. 'BlueFuzz',
  22681. 'BlueScale',
  22682. 'LanguageGroup',
  22683. 'ExpansionFactor',
  22684. 'ForceBold',
  22685. 'StdHW',
  22686. 'StdVW'
  22687. ];
  22688. for (i = 0, ii = fields.length; i < ii; i++) {
  22689. var field = fields[i];
  22690. if (!properties.privateData.hasOwnProperty(field)) {
  22691. continue;
  22692. }
  22693. var value = properties.privateData[field];
  22694. if (isArray(value)) {
  22695. // All of the private dictionary array data in CFF must be stored as
  22696. // "delta-encoded" numbers.
  22697. for (var j = value.length - 1; j > 0; j--) {
  22698. value[j] -= value[j - 1]; // ... difference from previous value
  22699. }
  22700. }
  22701. privateDict.setByName(field, value);
  22702. }
  22703. cff.topDict.privateDict = privateDict;
  22704. var subrIndex = new CFFIndex();
  22705. for (i = 0, ii = subrs.length; i < ii; i++) {
  22706. subrIndex.add(subrs[i]);
  22707. }
  22708. privateDict.subrsIndex = subrIndex;
  22709. var compiler = new CFFCompiler(cff);
  22710. return compiler.compile();
  22711. }
  22712. };
  22713. var CFFFont = (function CFFFontClosure() {
  22714. function CFFFont(file, properties) {
  22715. this.properties = properties;
  22716. var parser = new CFFParser(file, properties);
  22717. this.cff = parser.parse();
  22718. var compiler = new CFFCompiler(this.cff);
  22719. this.seacs = this.cff.seacs;
  22720. try {
  22721. this.data = compiler.compile();
  22722. } catch (e) {
  22723. warn('Failed to compile font ' + properties.loadedName);
  22724. // There may have just been an issue with the compiler, set the data
  22725. // anyway and hope the font loaded.
  22726. this.data = file;
  22727. }
  22728. }
  22729. CFFFont.prototype = {
  22730. get numGlyphs() {
  22731. return this.cff.charStrings.count;
  22732. },
  22733. getCharset: function CFFFont_getCharset() {
  22734. return this.cff.charset.charset;
  22735. },
  22736. getGlyphMapping: function CFFFont_getGlyphMapping() {
  22737. var cff = this.cff;
  22738. var properties = this.properties;
  22739. var charsets = cff.charset.charset;
  22740. var charCodeToGlyphId;
  22741. var glyphId;
  22742. if (properties.composite) {
  22743. charCodeToGlyphId = Object.create(null);
  22744. if (cff.isCIDFont) {
  22745. // If the font is actually a CID font then we should use the charset
  22746. // to map CIDs to GIDs.
  22747. for (glyphId = 0; glyphId < charsets.length; glyphId++) {
  22748. var cidString = String.fromCharCode(charsets[glyphId]);
  22749. var charCode = properties.cMap.map.indexOf(cidString);
  22750. charCodeToGlyphId[charCode] = glyphId;
  22751. }
  22752. } else {
  22753. // If it is NOT actually a CID font then CIDs should be mapped
  22754. // directly to GIDs.
  22755. for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) {
  22756. charCodeToGlyphId[glyphId] = glyphId;
  22757. }
  22758. }
  22759. return charCodeToGlyphId;
  22760. }
  22761. var encoding = cff.encoding ? cff.encoding.encoding : null;
  22762. charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
  22763. return charCodeToGlyphId;
  22764. }
  22765. };
  22766. return CFFFont;
  22767. })();
  22768. var CFFParser = (function CFFParserClosure() {
  22769. var CharstringValidationData = [
  22770. null,
  22771. { id: 'hstem', min: 2, resetStack: true, stem: true },
  22772. null,
  22773. { id: 'vstem', min: 2, resetStack: true, stem: true },
  22774. { id: 'vmoveto', min: 1, resetStack: true },
  22775. { id: 'rlineto', min: 2, resetStack: true },
  22776. { id: 'hlineto', min: 1, resetStack: true },
  22777. { id: 'vlineto', min: 1, resetStack: true },
  22778. { id: 'rrcurveto', min: 6, resetStack: true },
  22779. null,
  22780. { id: 'callsubr', min: 1, undefStack: true },
  22781. { id: 'return', min: 0, undefStack: true },
  22782. null, // 12
  22783. null,
  22784. null, // endchar
  22785. null,
  22786. null,
  22787. null,
  22788. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  22789. null, // hintmask
  22790. null, // cntrmask
  22791. { id: 'rmoveto', min: 2, resetStack: true },
  22792. { id: 'hmoveto', min: 1, resetStack: true },
  22793. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  22794. { id: 'rcurveline', min: 8, resetStack: true },
  22795. { id: 'rlinecurve', min: 8, resetStack: true },
  22796. { id: 'vvcurveto', min: 4, resetStack: true },
  22797. { id: 'hhcurveto', min: 4, resetStack: true },
  22798. null, // shortint
  22799. { id: 'callgsubr', min: 1, undefStack: true },
  22800. { id: 'vhcurveto', min: 4, resetStack: true },
  22801. { id: 'hvcurveto', min: 4, resetStack: true }
  22802. ];
  22803. var CharstringValidationData12 = [
  22804. null,
  22805. null,
  22806. null,
  22807. { id: 'and', min: 2, stackDelta: -1 },
  22808. { id: 'or', min: 2, stackDelta: -1 },
  22809. { id: 'not', min: 1, stackDelta: 0 },
  22810. null,
  22811. null,
  22812. null,
  22813. { id: 'abs', min: 1, stackDelta: 0 },
  22814. { id: 'add', min: 2, stackDelta: -1,
  22815. stackFn: function stack_div(stack, index) {
  22816. stack[index - 2] = stack[index - 2] + stack[index - 1];
  22817. }
  22818. },
  22819. { id: 'sub', min: 2, stackDelta: -1,
  22820. stackFn: function stack_div(stack, index) {
  22821. stack[index - 2] = stack[index - 2] - stack[index - 1];
  22822. }
  22823. },
  22824. { id: 'div', min: 2, stackDelta: -1,
  22825. stackFn: function stack_div(stack, index) {
  22826. stack[index - 2] = stack[index - 2] / stack[index - 1];
  22827. }
  22828. },
  22829. null,
  22830. { id: 'neg', min: 1, stackDelta: 0,
  22831. stackFn: function stack_div(stack, index) {
  22832. stack[index - 1] = -stack[index - 1];
  22833. }
  22834. },
  22835. { id: 'eq', min: 2, stackDelta: -1 },
  22836. null,
  22837. null,
  22838. { id: 'drop', min: 1, stackDelta: -1 },
  22839. null,
  22840. { id: 'put', min: 2, stackDelta: -2 },
  22841. { id: 'get', min: 1, stackDelta: 0 },
  22842. { id: 'ifelse', min: 4, stackDelta: -3 },
  22843. { id: 'random', min: 0, stackDelta: 1 },
  22844. { id: 'mul', min: 2, stackDelta: -1,
  22845. stackFn: function stack_div(stack, index) {
  22846. stack[index - 2] = stack[index - 2] * stack[index - 1];
  22847. }
  22848. },
  22849. null,
  22850. { id: 'sqrt', min: 1, stackDelta: 0 },
  22851. { id: 'dup', min: 1, stackDelta: 1 },
  22852. { id: 'exch', min: 2, stackDelta: 0 },
  22853. { id: 'index', min: 2, stackDelta: 0 },
  22854. { id: 'roll', min: 3, stackDelta: -2 },
  22855. null,
  22856. null,
  22857. null,
  22858. { id: 'hflex', min: 7, resetStack: true },
  22859. { id: 'flex', min: 13, resetStack: true },
  22860. { id: 'hflex1', min: 9, resetStack: true },
  22861. { id: 'flex1', min: 11, resetStack: true }
  22862. ];
  22863. function CFFParser(file, properties) {
  22864. this.bytes = file.getBytes();
  22865. this.properties = properties;
  22866. }
  22867. CFFParser.prototype = {
  22868. parse: function CFFParser_parse() {
  22869. var properties = this.properties;
  22870. var cff = new CFF();
  22871. this.cff = cff;
  22872. // The first five sections must be in order, all the others are reached
  22873. // via offsets contained in one of the below.
  22874. var header = this.parseHeader();
  22875. var nameIndex = this.parseIndex(header.endPos);
  22876. var topDictIndex = this.parseIndex(nameIndex.endPos);
  22877. var stringIndex = this.parseIndex(topDictIndex.endPos);
  22878. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  22879. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  22880. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  22881. cff.header = header.obj;
  22882. cff.names = this.parseNameIndex(nameIndex.obj);
  22883. cff.strings = this.parseStringIndex(stringIndex.obj);
  22884. cff.topDict = topDict;
  22885. cff.globalSubrIndex = globalSubrIndex.obj;
  22886. this.parsePrivateDict(cff.topDict);
  22887. cff.isCIDFont = topDict.hasName('ROS');
  22888. var charStringOffset = topDict.getByName('CharStrings');
  22889. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  22890. cff.charStrings = charStringsAndSeacs.charStrings;
  22891. cff.seacs = charStringsAndSeacs.seacs;
  22892. var fontMatrix = topDict.getByName('FontMatrix');
  22893. if (fontMatrix) {
  22894. properties.fontMatrix = fontMatrix;
  22895. }
  22896. var fontBBox = topDict.getByName('FontBBox');
  22897. if (fontBBox) {
  22898. // adjusting ascent/descent
  22899. properties.ascent = fontBBox[3];
  22900. properties.descent = fontBBox[1];
  22901. properties.ascentScaled = true;
  22902. }
  22903. var charset, encoding;
  22904. if (cff.isCIDFont) {
  22905. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  22906. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  22907. var dictRaw = fdArrayIndex.get(i);
  22908. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  22909. cff.strings);
  22910. this.parsePrivateDict(fontDict);
  22911. cff.fdArray.push(fontDict);
  22912. }
  22913. // cid fonts don't have an encoding
  22914. encoding = null;
  22915. charset = this.parseCharsets(topDict.getByName('charset'),
  22916. cff.charStrings.count, cff.strings, true);
  22917. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  22918. cff.charStrings.count);
  22919. } else {
  22920. charset = this.parseCharsets(topDict.getByName('charset'),
  22921. cff.charStrings.count, cff.strings, false);
  22922. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  22923. properties,
  22924. cff.strings, charset.charset);
  22925. }
  22926. cff.charset = charset;
  22927. cff.encoding = encoding;
  22928. return cff;
  22929. },
  22930. parseHeader: function CFFParser_parseHeader() {
  22931. var bytes = this.bytes;
  22932. var bytesLength = bytes.length;
  22933. var offset = 0;
  22934. // Prevent an infinite loop, by checking that the offset is within the
  22935. // bounds of the bytes array. Necessary in empty, or invalid, font files.
  22936. while (offset < bytesLength && bytes[offset] !== 1) {
  22937. ++offset;
  22938. }
  22939. if (offset >= bytesLength) {
  22940. error('Invalid CFF header');
  22941. } else if (offset !== 0) {
  22942. info('cff data is shifted');
  22943. bytes = bytes.subarray(offset);
  22944. this.bytes = bytes;
  22945. }
  22946. var major = bytes[0];
  22947. var minor = bytes[1];
  22948. var hdrSize = bytes[2];
  22949. var offSize = bytes[3];
  22950. var header = new CFFHeader(major, minor, hdrSize, offSize);
  22951. return { obj: header, endPos: hdrSize };
  22952. },
  22953. parseDict: function CFFParser_parseDict(dict) {
  22954. var pos = 0;
  22955. function parseOperand() {
  22956. var value = dict[pos++];
  22957. if (value === 30) {
  22958. return parseFloatOperand(pos);
  22959. } else if (value === 28) {
  22960. value = dict[pos++];
  22961. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  22962. return value;
  22963. } else if (value === 29) {
  22964. value = dict[pos++];
  22965. value = (value << 8) | dict[pos++];
  22966. value = (value << 8) | dict[pos++];
  22967. value = (value << 8) | dict[pos++];
  22968. return value;
  22969. } else if (value >= 32 && value <= 246) {
  22970. return value - 139;
  22971. } else if (value >= 247 && value <= 250) {
  22972. return ((value - 247) * 256) + dict[pos++] + 108;
  22973. } else if (value >= 251 && value <= 254) {
  22974. return -((value - 251) * 256) - dict[pos++] - 108;
  22975. } else {
  22976. error('255 is not a valid DICT command');
  22977. }
  22978. return -1;
  22979. }
  22980. function parseFloatOperand() {
  22981. var str = '';
  22982. var eof = 15;
  22983. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  22984. '9', '.', 'E', 'E-', null, '-'];
  22985. var length = dict.length;
  22986. while (pos < length) {
  22987. var b = dict[pos++];
  22988. var b1 = b >> 4;
  22989. var b2 = b & 15;
  22990. if (b1 == eof) {
  22991. break;
  22992. }
  22993. str += lookup[b1];
  22994. if (b2 == eof) {
  22995. break;
  22996. }
  22997. str += lookup[b2];
  22998. }
  22999. return parseFloat(str);
  23000. }
  23001. var operands = [];
  23002. var entries = [];
  23003. pos = 0;
  23004. var end = dict.length;
  23005. while (pos < end) {
  23006. var b = dict[pos];
  23007. if (b <= 21) {
  23008. if (b === 12) {
  23009. b = (b << 8) | dict[++pos];
  23010. }
  23011. entries.push([b, operands]);
  23012. operands = [];
  23013. ++pos;
  23014. } else {
  23015. operands.push(parseOperand());
  23016. }
  23017. }
  23018. return entries;
  23019. },
  23020. parseIndex: function CFFParser_parseIndex(pos) {
  23021. var cffIndex = new CFFIndex();
  23022. var bytes = this.bytes;
  23023. var count = (bytes[pos++] << 8) | bytes[pos++];
  23024. var offsets = [];
  23025. var end = pos;
  23026. var i, ii;
  23027. if (count !== 0) {
  23028. var offsetSize = bytes[pos++];
  23029. // add 1 for offset to determine size of last object
  23030. var startPos = pos + ((count + 1) * offsetSize) - 1;
  23031. for (i = 0, ii = count + 1; i < ii; ++i) {
  23032. var offset = 0;
  23033. for (var j = 0; j < offsetSize; ++j) {
  23034. offset <<= 8;
  23035. offset += bytes[pos++];
  23036. }
  23037. offsets.push(startPos + offset);
  23038. }
  23039. end = offsets[count];
  23040. }
  23041. for (i = 0, ii = offsets.length - 1; i < ii; ++i) {
  23042. var offsetStart = offsets[i];
  23043. var offsetEnd = offsets[i + 1];
  23044. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  23045. }
  23046. return {obj: cffIndex, endPos: end};
  23047. },
  23048. parseNameIndex: function CFFParser_parseNameIndex(index) {
  23049. var names = [];
  23050. for (var i = 0, ii = index.count; i < ii; ++i) {
  23051. var name = index.get(i);
  23052. // OTS doesn't allow names to be over 127 characters.
  23053. var length = Math.min(name.length, 127);
  23054. var data = [];
  23055. // OTS also only permits certain characters in the name.
  23056. for (var j = 0; j < length; ++j) {
  23057. var c = name[j];
  23058. if (j === 0 && c === 0) {
  23059. data[j] = c;
  23060. continue;
  23061. }
  23062. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  23063. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  23064. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  23065. c === 47 /* / */ || c === 37 /* % */ || c === 35 /* # */) {
  23066. data[j] = 95;
  23067. continue;
  23068. }
  23069. data[j] = c;
  23070. }
  23071. names.push(bytesToString(data));
  23072. }
  23073. return names;
  23074. },
  23075. parseStringIndex: function CFFParser_parseStringIndex(index) {
  23076. var strings = new CFFStrings();
  23077. for (var i = 0, ii = index.count; i < ii; ++i) {
  23078. var data = index.get(i);
  23079. strings.add(bytesToString(data));
  23080. }
  23081. return strings;
  23082. },
  23083. createDict: function CFFParser_createDict(Type, dict, strings) {
  23084. var cffDict = new Type(strings);
  23085. for (var i = 0, ii = dict.length; i < ii; ++i) {
  23086. var pair = dict[i];
  23087. var key = pair[0];
  23088. var value = pair[1];
  23089. cffDict.setByKey(key, value);
  23090. }
  23091. return cffDict;
  23092. },
  23093. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  23094. var charStrings = this.parseIndex(charStringOffset).obj;
  23095. var seacs = [];
  23096. var count = charStrings.count;
  23097. for (var i = 0; i < count; i++) {
  23098. var charstring = charStrings.get(i);
  23099. var stackSize = 0;
  23100. var stack = [];
  23101. var undefStack = true;
  23102. var hints = 0;
  23103. var valid = true;
  23104. var data = charstring;
  23105. var length = data.length;
  23106. for (var j = 0; j < length;) {
  23107. var value = data[j++];
  23108. var validationCommand = null;
  23109. if (value == 12) {
  23110. var q = data[j++];
  23111. if (q === 0) {
  23112. // The CFF specification state that the 'dotsection' command
  23113. // (12, 0) is deprecated and treated as a no-op, but all Type2
  23114. // charstrings processors should support them. Unfortunately
  23115. // the font sanitizer don't. As a workaround the sequence (12, 0)
  23116. // is replaced by a useless (0, hmoveto).
  23117. data[j - 2] = 139;
  23118. data[j - 1] = 22;
  23119. stackSize = 0;
  23120. } else {
  23121. validationCommand = CharstringValidationData12[q];
  23122. }
  23123. } else if (value === 28) { // number (16 bit)
  23124. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  23125. j += 2;
  23126. stackSize++;
  23127. } else if (value == 14) {
  23128. if (stackSize >= 4) {
  23129. stackSize -= 4;
  23130. if (SEAC_ANALYSIS_ENABLED) {
  23131. seacs[i] = stack.slice(stackSize, stackSize + 4);
  23132. valid = false;
  23133. }
  23134. }
  23135. } else if (value >= 32 && value <= 246) { // number
  23136. stack[stackSize] = value - 139;
  23137. stackSize++;
  23138. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  23139. stack[stackSize] = (value < 251 ?
  23140. ((value - 247) << 8) + data[j] + 108 :
  23141. -((value - 251) << 8) - data[j] - 108);
  23142. j++;
  23143. stackSize++;
  23144. } else if (value == 255) { // number (32 bit)
  23145. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  23146. (data[j + 2] << 8) | data[j + 3]) / 65536;
  23147. j += 4;
  23148. stackSize++;
  23149. } else if (value == 19 || value == 20) {
  23150. hints += stackSize >> 1;
  23151. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  23152. stackSize = 0;
  23153. } else {
  23154. validationCommand = CharstringValidationData[value];
  23155. }
  23156. if (validationCommand) {
  23157. if (validationCommand.stem) {
  23158. hints += stackSize >> 1;
  23159. }
  23160. if ('min' in validationCommand) {
  23161. if (!undefStack && stackSize < validationCommand.min) {
  23162. warn('Not enough parameters for ' + validationCommand.id +
  23163. '; actual: ' + stackSize +
  23164. ', expected: ' + validationCommand.min);
  23165. valid = false;
  23166. break;
  23167. }
  23168. }
  23169. if ('stackDelta' in validationCommand) {
  23170. if ('stackFn' in validationCommand) {
  23171. validationCommand.stackFn(stack, stackSize);
  23172. }
  23173. stackSize += validationCommand.stackDelta;
  23174. } else if (validationCommand.resetStack) {
  23175. stackSize = 0;
  23176. undefStack = false;
  23177. } else if (validationCommand.undefStack) {
  23178. stackSize = 0;
  23179. undefStack = true;
  23180. }
  23181. }
  23182. }
  23183. if (!valid) {
  23184. // resetting invalid charstring to single 'endchar'
  23185. charStrings.set(i, new Uint8Array([14]));
  23186. }
  23187. }
  23188. return { charStrings: charStrings, seacs: seacs };
  23189. },
  23190. emptyPrivateDictionary:
  23191. function CFFParser_emptyPrivateDictionary(parentDict) {
  23192. var privateDict = this.createDict(CFFPrivateDict, [],
  23193. parentDict.strings);
  23194. parentDict.setByKey(18, [0, 0]);
  23195. parentDict.privateDict = privateDict;
  23196. },
  23197. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  23198. // no private dict, do nothing
  23199. if (!parentDict.hasName('Private')) {
  23200. this.emptyPrivateDictionary(parentDict);
  23201. return;
  23202. }
  23203. var privateOffset = parentDict.getByName('Private');
  23204. // make sure the params are formatted correctly
  23205. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  23206. parentDict.removeByName('Private');
  23207. return;
  23208. }
  23209. var size = privateOffset[0];
  23210. var offset = privateOffset[1];
  23211. // remove empty dicts or ones that refer to invalid location
  23212. if (size === 0 || offset >= this.bytes.length) {
  23213. this.emptyPrivateDictionary(parentDict);
  23214. return;
  23215. }
  23216. var privateDictEnd = offset + size;
  23217. var dictData = this.bytes.subarray(offset, privateDictEnd);
  23218. var dict = this.parseDict(dictData);
  23219. var privateDict = this.createDict(CFFPrivateDict, dict,
  23220. parentDict.strings);
  23221. parentDict.privateDict = privateDict;
  23222. // Parse the Subrs index also since it's relative to the private dict.
  23223. if (!privateDict.getByName('Subrs')) {
  23224. return;
  23225. }
  23226. var subrsOffset = privateDict.getByName('Subrs');
  23227. var relativeOffset = offset + subrsOffset;
  23228. // Validate the offset.
  23229. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  23230. this.emptyPrivateDictionary(parentDict);
  23231. return;
  23232. }
  23233. var subrsIndex = this.parseIndex(relativeOffset);
  23234. privateDict.subrsIndex = subrsIndex.obj;
  23235. },
  23236. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  23237. if (pos === 0) {
  23238. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  23239. ISOAdobeCharset);
  23240. } else if (pos == 1) {
  23241. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  23242. ExpertCharset);
  23243. } else if (pos == 2) {
  23244. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  23245. ExpertSubsetCharset);
  23246. }
  23247. var bytes = this.bytes;
  23248. var start = pos;
  23249. var format = bytes[pos++];
  23250. var charset = ['.notdef'];
  23251. var id, count, i;
  23252. // subtract 1 for the .notdef glyph
  23253. length -= 1;
  23254. switch (format) {
  23255. case 0:
  23256. for (i = 0; i < length; i++) {
  23257. id = (bytes[pos++] << 8) | bytes[pos++];
  23258. charset.push(cid ? id : strings.get(id));
  23259. }
  23260. break;
  23261. case 1:
  23262. while (charset.length <= length) {
  23263. id = (bytes[pos++] << 8) | bytes[pos++];
  23264. count = bytes[pos++];
  23265. for (i = 0; i <= count; i++) {
  23266. charset.push(cid ? id++ : strings.get(id++));
  23267. }
  23268. }
  23269. break;
  23270. case 2:
  23271. while (charset.length <= length) {
  23272. id = (bytes[pos++] << 8) | bytes[pos++];
  23273. count = (bytes[pos++] << 8) | bytes[pos++];
  23274. for (i = 0; i <= count; i++) {
  23275. charset.push(cid ? id++ : strings.get(id++));
  23276. }
  23277. }
  23278. break;
  23279. default:
  23280. error('Unknown charset format');
  23281. }
  23282. // Raw won't be needed if we actually compile the charset.
  23283. var end = pos;
  23284. var raw = bytes.subarray(start, end);
  23285. return new CFFCharset(false, format, charset, raw);
  23286. },
  23287. parseEncoding: function CFFParser_parseEncoding(pos,
  23288. properties,
  23289. strings,
  23290. charset) {
  23291. var encoding = {};
  23292. var bytes = this.bytes;
  23293. var predefined = false;
  23294. var hasSupplement = false;
  23295. var format, i, ii;
  23296. var raw = null;
  23297. function readSupplement() {
  23298. var supplementsCount = bytes[pos++];
  23299. for (i = 0; i < supplementsCount; i++) {
  23300. var code = bytes[pos++];
  23301. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  23302. encoding[code] = charset.indexOf(strings.get(sid));
  23303. }
  23304. }
  23305. if (pos === 0 || pos == 1) {
  23306. predefined = true;
  23307. format = pos;
  23308. var baseEncoding = pos ? Encodings.ExpertEncoding :
  23309. Encodings.StandardEncoding;
  23310. for (i = 0, ii = charset.length; i < ii; i++) {
  23311. var index = baseEncoding.indexOf(charset[i]);
  23312. if (index != -1) {
  23313. encoding[index] = i;
  23314. }
  23315. }
  23316. } else {
  23317. var dataStart = pos;
  23318. format = bytes[pos++];
  23319. switch (format & 0x7f) {
  23320. case 0:
  23321. var glyphsCount = bytes[pos++];
  23322. for (i = 1; i <= glyphsCount; i++) {
  23323. encoding[bytes[pos++]] = i;
  23324. }
  23325. break;
  23326. case 1:
  23327. var rangesCount = bytes[pos++];
  23328. var gid = 1;
  23329. for (i = 0; i < rangesCount; i++) {
  23330. var start = bytes[pos++];
  23331. var left = bytes[pos++];
  23332. for (var j = start; j <= start + left; j++) {
  23333. encoding[j] = gid++;
  23334. }
  23335. }
  23336. break;
  23337. default:
  23338. error('Unknow encoding format: ' + format + ' in CFF');
  23339. break;
  23340. }
  23341. var dataEnd = pos;
  23342. if (format & 0x80) {
  23343. // The font sanitizer does not support CFF encoding with a
  23344. // supplement, since the encoding is not really used to map
  23345. // between gid to glyph, let's overwrite what is declared in
  23346. // the top dictionary to let the sanitizer think the font use
  23347. // StandardEncoding, that's a lie but that's ok.
  23348. bytes[dataStart] &= 0x7f;
  23349. readSupplement();
  23350. hasSupplement = true;
  23351. }
  23352. raw = bytes.subarray(dataStart, dataEnd);
  23353. }
  23354. format = format & 0x7f;
  23355. return new CFFEncoding(predefined, format, encoding, raw);
  23356. },
  23357. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  23358. var start = pos;
  23359. var bytes = this.bytes;
  23360. var format = bytes[pos++];
  23361. var fdSelect = [];
  23362. var i;
  23363. switch (format) {
  23364. case 0:
  23365. for (i = 0; i < length; ++i) {
  23366. var id = bytes[pos++];
  23367. fdSelect.push(id);
  23368. }
  23369. break;
  23370. case 3:
  23371. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  23372. for (i = 0; i < rangesCount; ++i) {
  23373. var first = (bytes[pos++] << 8) | bytes[pos++];
  23374. var fdIndex = bytes[pos++];
  23375. var next = (bytes[pos] << 8) | bytes[pos + 1];
  23376. for (var j = first; j < next; ++j) {
  23377. fdSelect.push(fdIndex);
  23378. }
  23379. }
  23380. // Advance past the sentinel(next).
  23381. pos += 2;
  23382. break;
  23383. default:
  23384. error('Unknown fdselect format ' + format);
  23385. break;
  23386. }
  23387. var end = pos;
  23388. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  23389. }
  23390. };
  23391. return CFFParser;
  23392. })();
  23393. // Compact Font Format
  23394. var CFF = (function CFFClosure() {
  23395. function CFF() {
  23396. this.header = null;
  23397. this.names = [];
  23398. this.topDict = null;
  23399. this.strings = new CFFStrings();
  23400. this.globalSubrIndex = null;
  23401. // The following could really be per font, but since we only have one font
  23402. // store them here.
  23403. this.encoding = null;
  23404. this.charset = null;
  23405. this.charStrings = null;
  23406. this.fdArray = [];
  23407. this.fdSelect = null;
  23408. this.isCIDFont = false;
  23409. }
  23410. return CFF;
  23411. })();
  23412. var CFFHeader = (function CFFHeaderClosure() {
  23413. function CFFHeader(major, minor, hdrSize, offSize) {
  23414. this.major = major;
  23415. this.minor = minor;
  23416. this.hdrSize = hdrSize;
  23417. this.offSize = offSize;
  23418. }
  23419. return CFFHeader;
  23420. })();
  23421. var CFFStrings = (function CFFStringsClosure() {
  23422. function CFFStrings() {
  23423. this.strings = [];
  23424. }
  23425. CFFStrings.prototype = {
  23426. get: function CFFStrings_get(index) {
  23427. if (index >= 0 && index <= 390) {
  23428. return CFFStandardStrings[index];
  23429. }
  23430. if (index - 391 <= this.strings.length) {
  23431. return this.strings[index - 391];
  23432. }
  23433. return CFFStandardStrings[0];
  23434. },
  23435. add: function CFFStrings_add(value) {
  23436. this.strings.push(value);
  23437. },
  23438. get count() {
  23439. return this.strings.length;
  23440. }
  23441. };
  23442. return CFFStrings;
  23443. })();
  23444. var CFFIndex = (function CFFIndexClosure() {
  23445. function CFFIndex() {
  23446. this.objects = [];
  23447. this.length = 0;
  23448. }
  23449. CFFIndex.prototype = {
  23450. add: function CFFIndex_add(data) {
  23451. this.length += data.length;
  23452. this.objects.push(data);
  23453. },
  23454. set: function CFFIndex_set(index, data) {
  23455. this.length += data.length - this.objects[index].length;
  23456. this.objects[index] = data;
  23457. },
  23458. get: function CFFIndex_get(index) {
  23459. return this.objects[index];
  23460. },
  23461. get count() {
  23462. return this.objects.length;
  23463. }
  23464. };
  23465. return CFFIndex;
  23466. })();
  23467. var CFFDict = (function CFFDictClosure() {
  23468. function CFFDict(tables, strings) {
  23469. this.keyToNameMap = tables.keyToNameMap;
  23470. this.nameToKeyMap = tables.nameToKeyMap;
  23471. this.defaults = tables.defaults;
  23472. this.types = tables.types;
  23473. this.opcodes = tables.opcodes;
  23474. this.order = tables.order;
  23475. this.strings = strings;
  23476. this.values = {};
  23477. }
  23478. CFFDict.prototype = {
  23479. // value should always be an array
  23480. setByKey: function CFFDict_setByKey(key, value) {
  23481. if (!(key in this.keyToNameMap)) {
  23482. return false;
  23483. }
  23484. // ignore empty values
  23485. if (value.length === 0) {
  23486. return true;
  23487. }
  23488. var type = this.types[key];
  23489. // remove the array wrapping these types of values
  23490. if (type === 'num' || type === 'sid' || type === 'offset') {
  23491. value = value[0];
  23492. }
  23493. this.values[key] = value;
  23494. return true;
  23495. },
  23496. setByName: function CFFDict_setByName(name, value) {
  23497. if (!(name in this.nameToKeyMap)) {
  23498. error('Invalid dictionary name "' + name + '"');
  23499. }
  23500. this.values[this.nameToKeyMap[name]] = value;
  23501. },
  23502. hasName: function CFFDict_hasName(name) {
  23503. return this.nameToKeyMap[name] in this.values;
  23504. },
  23505. getByName: function CFFDict_getByName(name) {
  23506. if (!(name in this.nameToKeyMap)) {
  23507. error('Invalid dictionary name "' + name + '"');
  23508. }
  23509. var key = this.nameToKeyMap[name];
  23510. if (!(key in this.values)) {
  23511. return this.defaults[key];
  23512. }
  23513. return this.values[key];
  23514. },
  23515. removeByName: function CFFDict_removeByName(name) {
  23516. delete this.values[this.nameToKeyMap[name]];
  23517. }
  23518. };
  23519. CFFDict.createTables = function CFFDict_createTables(layout) {
  23520. var tables = {
  23521. keyToNameMap: {},
  23522. nameToKeyMap: {},
  23523. defaults: {},
  23524. types: {},
  23525. opcodes: {},
  23526. order: []
  23527. };
  23528. for (var i = 0, ii = layout.length; i < ii; ++i) {
  23529. var entry = layout[i];
  23530. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  23531. tables.keyToNameMap[key] = entry[1];
  23532. tables.nameToKeyMap[entry[1]] = key;
  23533. tables.types[key] = entry[2];
  23534. tables.defaults[key] = entry[3];
  23535. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  23536. tables.order.push(key);
  23537. }
  23538. return tables;
  23539. };
  23540. return CFFDict;
  23541. })();
  23542. var CFFTopDict = (function CFFTopDictClosure() {
  23543. var layout = [
  23544. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  23545. [[12, 20], 'SyntheticBase', 'num', null],
  23546. [0, 'version', 'sid', null],
  23547. [1, 'Notice', 'sid', null],
  23548. [[12, 0], 'Copyright', 'sid', null],
  23549. [2, 'FullName', 'sid', null],
  23550. [3, 'FamilyName', 'sid', null],
  23551. [4, 'Weight', 'sid', null],
  23552. [[12, 1], 'isFixedPitch', 'num', 0],
  23553. [[12, 2], 'ItalicAngle', 'num', 0],
  23554. [[12, 3], 'UnderlinePosition', 'num', -100],
  23555. [[12, 4], 'UnderlineThickness', 'num', 50],
  23556. [[12, 5], 'PaintType', 'num', 0],
  23557. [[12, 6], 'CharstringType', 'num', 2],
  23558. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  23559. [0.001, 0, 0, 0.001, 0, 0]],
  23560. [13, 'UniqueID', 'num', null],
  23561. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  23562. [[12, 8], 'StrokeWidth', 'num', 0],
  23563. [14, 'XUID', 'array', null],
  23564. [15, 'charset', 'offset', 0],
  23565. [16, 'Encoding', 'offset', 0],
  23566. [17, 'CharStrings', 'offset', 0],
  23567. [18, 'Private', ['offset', 'offset'], null],
  23568. [[12, 21], 'PostScript', 'sid', null],
  23569. [[12, 22], 'BaseFontName', 'sid', null],
  23570. [[12, 23], 'BaseFontBlend', 'delta', null],
  23571. [[12, 31], 'CIDFontVersion', 'num', 0],
  23572. [[12, 32], 'CIDFontRevision', 'num', 0],
  23573. [[12, 33], 'CIDFontType', 'num', 0],
  23574. [[12, 34], 'CIDCount', 'num', 8720],
  23575. [[12, 35], 'UIDBase', 'num', null],
  23576. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  23577. // before FDArray.
  23578. [[12, 37], 'FDSelect', 'offset', null],
  23579. [[12, 36], 'FDArray', 'offset', null],
  23580. [[12, 38], 'FontName', 'sid', null]
  23581. ];
  23582. var tables = null;
  23583. function CFFTopDict(strings) {
  23584. if (tables === null) {
  23585. tables = CFFDict.createTables(layout);
  23586. }
  23587. CFFDict.call(this, tables, strings);
  23588. this.privateDict = null;
  23589. }
  23590. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  23591. return CFFTopDict;
  23592. })();
  23593. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  23594. var layout = [
  23595. [6, 'BlueValues', 'delta', null],
  23596. [7, 'OtherBlues', 'delta', null],
  23597. [8, 'FamilyBlues', 'delta', null],
  23598. [9, 'FamilyOtherBlues', 'delta', null],
  23599. [[12, 9], 'BlueScale', 'num', 0.039625],
  23600. [[12, 10], 'BlueShift', 'num', 7],
  23601. [[12, 11], 'BlueFuzz', 'num', 1],
  23602. [10, 'StdHW', 'num', null],
  23603. [11, 'StdVW', 'num', null],
  23604. [[12, 12], 'StemSnapH', 'delta', null],
  23605. [[12, 13], 'StemSnapV', 'delta', null],
  23606. [[12, 14], 'ForceBold', 'num', 0],
  23607. [[12, 17], 'LanguageGroup', 'num', 0],
  23608. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  23609. [[12, 19], 'initialRandomSeed', 'num', 0],
  23610. [20, 'defaultWidthX', 'num', 0],
  23611. [21, 'nominalWidthX', 'num', 0],
  23612. [19, 'Subrs', 'offset', null]
  23613. ];
  23614. var tables = null;
  23615. function CFFPrivateDict(strings) {
  23616. if (tables === null) {
  23617. tables = CFFDict.createTables(layout);
  23618. }
  23619. CFFDict.call(this, tables, strings);
  23620. this.subrsIndex = null;
  23621. }
  23622. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  23623. return CFFPrivateDict;
  23624. })();
  23625. var CFFCharsetPredefinedTypes = {
  23626. ISO_ADOBE: 0,
  23627. EXPERT: 1,
  23628. EXPERT_SUBSET: 2
  23629. };
  23630. var CFFCharset = (function CFFCharsetClosure() {
  23631. function CFFCharset(predefined, format, charset, raw) {
  23632. this.predefined = predefined;
  23633. this.format = format;
  23634. this.charset = charset;
  23635. this.raw = raw;
  23636. }
  23637. return CFFCharset;
  23638. })();
  23639. var CFFEncoding = (function CFFEncodingClosure() {
  23640. function CFFEncoding(predefined, format, encoding, raw) {
  23641. this.predefined = predefined;
  23642. this.format = format;
  23643. this.encoding = encoding;
  23644. this.raw = raw;
  23645. }
  23646. return CFFEncoding;
  23647. })();
  23648. var CFFFDSelect = (function CFFFDSelectClosure() {
  23649. function CFFFDSelect(fdSelect, raw) {
  23650. this.fdSelect = fdSelect;
  23651. this.raw = raw;
  23652. }
  23653. return CFFFDSelect;
  23654. })();
  23655. // Helper class to keep track of where an offset is within the data and helps
  23656. // filling in that offset once it's known.
  23657. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  23658. function CFFOffsetTracker() {
  23659. this.offsets = {};
  23660. }
  23661. CFFOffsetTracker.prototype = {
  23662. isTracking: function CFFOffsetTracker_isTracking(key) {
  23663. return key in this.offsets;
  23664. },
  23665. track: function CFFOffsetTracker_track(key, location) {
  23666. if (key in this.offsets) {
  23667. error('Already tracking location of ' + key);
  23668. }
  23669. this.offsets[key] = location;
  23670. },
  23671. offset: function CFFOffsetTracker_offset(value) {
  23672. for (var key in this.offsets) {
  23673. this.offsets[key] += value;
  23674. }
  23675. },
  23676. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  23677. values,
  23678. output) {
  23679. if (!(key in this.offsets)) {
  23680. error('Not tracking location of ' + key);
  23681. }
  23682. var data = output.data;
  23683. var dataOffset = this.offsets[key];
  23684. var size = 5;
  23685. for (var i = 0, ii = values.length; i < ii; ++i) {
  23686. var offset0 = i * size + dataOffset;
  23687. var offset1 = offset0 + 1;
  23688. var offset2 = offset0 + 2;
  23689. var offset3 = offset0 + 3;
  23690. var offset4 = offset0 + 4;
  23691. // It's easy to screw up offsets so perform this sanity check.
  23692. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  23693. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) {
  23694. error('writing to an offset that is not empty');
  23695. }
  23696. var value = values[i];
  23697. data[offset0] = 0x1d;
  23698. data[offset1] = (value >> 24) & 0xFF;
  23699. data[offset2] = (value >> 16) & 0xFF;
  23700. data[offset3] = (value >> 8) & 0xFF;
  23701. data[offset4] = value & 0xFF;
  23702. }
  23703. }
  23704. };
  23705. return CFFOffsetTracker;
  23706. })();
  23707. // Takes a CFF and converts it to the binary representation.
  23708. var CFFCompiler = (function CFFCompilerClosure() {
  23709. function CFFCompiler(cff) {
  23710. this.cff = cff;
  23711. }
  23712. CFFCompiler.prototype = {
  23713. compile: function CFFCompiler_compile() {
  23714. var cff = this.cff;
  23715. var output = {
  23716. data: [],
  23717. length: 0,
  23718. add: function CFFCompiler_add(data) {
  23719. this.data = this.data.concat(data);
  23720. this.length = this.data.length;
  23721. }
  23722. };
  23723. // Compile the five entries that must be in order.
  23724. var header = this.compileHeader(cff.header);
  23725. output.add(header);
  23726. var nameIndex = this.compileNameIndex(cff.names);
  23727. output.add(nameIndex);
  23728. if (cff.isCIDFont) {
  23729. // The spec is unclear on how font matrices should relate to each other
  23730. // when there is one in the main top dict and the sub top dicts.
  23731. // Windows handles this differently than linux and osx so we have to
  23732. // normalize to work on all.
  23733. // Rules based off of some mailing list discussions:
  23734. // - If main font has a matrix and subfont doesn't, use the main matrix.
  23735. // - If no main font matrix and there is a subfont matrix, use the
  23736. // subfont matrix.
  23737. // - If both have matrices, concat together.
  23738. // - If neither have matrices, use default.
  23739. // To make this work on all platforms we move the top matrix into each
  23740. // sub top dict and concat if necessary.
  23741. if (cff.topDict.hasName('FontMatrix')) {
  23742. var base = cff.topDict.getByName('FontMatrix');
  23743. cff.topDict.removeByName('FontMatrix');
  23744. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  23745. var subDict = cff.fdArray[i];
  23746. var matrix = base.slice(0);
  23747. if (subDict.hasName('FontMatrix')) {
  23748. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  23749. }
  23750. subDict.setByName('FontMatrix', matrix);
  23751. }
  23752. }
  23753. }
  23754. var compiled = this.compileTopDicts([cff.topDict],
  23755. output.length,
  23756. cff.isCIDFont);
  23757. output.add(compiled.output);
  23758. var topDictTracker = compiled.trackers[0];
  23759. var stringIndex = this.compileStringIndex(cff.strings.strings);
  23760. output.add(stringIndex);
  23761. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  23762. output.add(globalSubrIndex);
  23763. // Now start on the other entries that have no specfic order.
  23764. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  23765. if (cff.encoding.predefined) {
  23766. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  23767. output);
  23768. } else {
  23769. var encoding = this.compileEncoding(cff.encoding);
  23770. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  23771. output.add(encoding);
  23772. }
  23773. }
  23774. if (cff.charset && cff.topDict.hasName('charset')) {
  23775. if (cff.charset.predefined) {
  23776. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  23777. output);
  23778. } else {
  23779. var charset = this.compileCharset(cff.charset);
  23780. topDictTracker.setEntryLocation('charset', [output.length], output);
  23781. output.add(charset);
  23782. }
  23783. }
  23784. var charStrings = this.compileCharStrings(cff.charStrings);
  23785. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  23786. output.add(charStrings);
  23787. if (cff.isCIDFont) {
  23788. // For some reason FDSelect must be in front of FDArray on windows. OSX
  23789. // and linux don't seem to care.
  23790. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  23791. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  23792. output.add(fdSelect);
  23793. // It is unclear if the sub font dictionary can have CID related
  23794. // dictionary keys, but the sanitizer doesn't like them so remove them.
  23795. compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  23796. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  23797. output.add(compiled.output);
  23798. var fontDictTrackers = compiled.trackers;
  23799. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  23800. }
  23801. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  23802. // If the font data ends with INDEX whose object data is zero-length,
  23803. // the sanitizer will bail out. Add a dummy byte to avoid that.
  23804. output.add([0]);
  23805. return output.data;
  23806. },
  23807. encodeNumber: function CFFCompiler_encodeNumber(value) {
  23808. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) { // isInt
  23809. return this.encodeInteger(value);
  23810. } else {
  23811. return this.encodeFloat(value);
  23812. }
  23813. },
  23814. encodeFloat: function CFFCompiler_encodeFloat(num) {
  23815. var value = num.toString();
  23816. // rounding inaccurate doubles
  23817. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  23818. if (m) {
  23819. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  23820. value = (Math.round(num * epsilon) / epsilon).toString();
  23821. }
  23822. var nibbles = '';
  23823. var i, ii;
  23824. for (i = 0, ii = value.length; i < ii; ++i) {
  23825. var a = value[i];
  23826. if (a === 'e') {
  23827. nibbles += value[++i] === '-' ? 'c' : 'b';
  23828. } else if (a === '.') {
  23829. nibbles += 'a';
  23830. } else if (a === '-') {
  23831. nibbles += 'e';
  23832. } else {
  23833. nibbles += a;
  23834. }
  23835. }
  23836. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  23837. var out = [30];
  23838. for (i = 0, ii = nibbles.length; i < ii; i += 2) {
  23839. out.push(parseInt(nibbles.substr(i, 2), 16));
  23840. }
  23841. return out;
  23842. },
  23843. encodeInteger: function CFFCompiler_encodeInteger(value) {
  23844. var code;
  23845. if (value >= -107 && value <= 107) {
  23846. code = [value + 139];
  23847. } else if (value >= 108 && value <= 1131) {
  23848. value = [value - 108];
  23849. code = [(value >> 8) + 247, value & 0xFF];
  23850. } else if (value >= -1131 && value <= -108) {
  23851. value = -value - 108;
  23852. code = [(value >> 8) + 251, value & 0xFF];
  23853. } else if (value >= -32768 && value <= 32767) {
  23854. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  23855. } else {
  23856. code = [0x1d,
  23857. (value >> 24) & 0xFF,
  23858. (value >> 16) & 0xFF,
  23859. (value >> 8) & 0xFF,
  23860. value & 0xFF];
  23861. }
  23862. return code;
  23863. },
  23864. compileHeader: function CFFCompiler_compileHeader(header) {
  23865. return [
  23866. header.major,
  23867. header.minor,
  23868. header.hdrSize,
  23869. header.offSize
  23870. ];
  23871. },
  23872. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  23873. var nameIndex = new CFFIndex();
  23874. for (var i = 0, ii = names.length; i < ii; ++i) {
  23875. nameIndex.add(stringToArray(names[i]));
  23876. }
  23877. return this.compileIndex(nameIndex);
  23878. },
  23879. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  23880. length,
  23881. removeCidKeys) {
  23882. var fontDictTrackers = [];
  23883. var fdArrayIndex = new CFFIndex();
  23884. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  23885. var fontDict = dicts[i];
  23886. if (removeCidKeys) {
  23887. fontDict.removeByName('CIDFontVersion');
  23888. fontDict.removeByName('CIDFontRevision');
  23889. fontDict.removeByName('CIDFontType');
  23890. fontDict.removeByName('CIDCount');
  23891. fontDict.removeByName('UIDBase');
  23892. }
  23893. var fontDictTracker = new CFFOffsetTracker();
  23894. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  23895. fontDictTrackers.push(fontDictTracker);
  23896. fdArrayIndex.add(fontDictData);
  23897. fontDictTracker.offset(length);
  23898. }
  23899. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  23900. return {
  23901. trackers: fontDictTrackers,
  23902. output: fdArrayIndex
  23903. };
  23904. },
  23905. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  23906. trackers,
  23907. output) {
  23908. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  23909. var fontDict = dicts[i];
  23910. assert(fontDict.privateDict && fontDict.hasName('Private'),
  23911. 'There must be an private dictionary.');
  23912. var privateDict = fontDict.privateDict;
  23913. var privateDictTracker = new CFFOffsetTracker();
  23914. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  23915. var outputLength = output.length;
  23916. privateDictTracker.offset(outputLength);
  23917. if (!privateDictData.length) {
  23918. // The private dictionary was empty, set the output length to zero to
  23919. // ensure the offset length isn't out of bounds in the eyes of the
  23920. // sanitizer.
  23921. outputLength = 0;
  23922. }
  23923. trackers[i].setEntryLocation('Private',
  23924. [privateDictData.length, outputLength],
  23925. output);
  23926. output.add(privateDictData);
  23927. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  23928. var subrs = this.compileIndex(privateDict.subrsIndex);
  23929. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  23930. output);
  23931. output.add(subrs);
  23932. }
  23933. }
  23934. },
  23935. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  23936. var out = [];
  23937. // The dictionary keys must be in a certain order.
  23938. var order = dict.order;
  23939. for (var i = 0; i < order.length; ++i) {
  23940. var key = order[i];
  23941. if (!(key in dict.values)) {
  23942. continue;
  23943. }
  23944. var values = dict.values[key];
  23945. var types = dict.types[key];
  23946. if (!isArray(types)) {
  23947. types = [types];
  23948. }
  23949. if (!isArray(values)) {
  23950. values = [values];
  23951. }
  23952. // Remove any empty dict values.
  23953. if (values.length === 0) {
  23954. continue;
  23955. }
  23956. for (var j = 0, jj = types.length; j < jj; ++j) {
  23957. var type = types[j];
  23958. var value = values[j];
  23959. switch (type) {
  23960. case 'num':
  23961. case 'sid':
  23962. out = out.concat(this.encodeNumber(value));
  23963. break;
  23964. case 'offset':
  23965. // For offsets we just insert a 32bit integer so we don't have to
  23966. // deal with figuring out the length of the offset when it gets
  23967. // replaced later on by the compiler.
  23968. var name = dict.keyToNameMap[key];
  23969. // Some offsets have the offset and the length, so just record the
  23970. // position of the first one.
  23971. if (!offsetTracker.isTracking(name)) {
  23972. offsetTracker.track(name, out.length);
  23973. }
  23974. out = out.concat([0x1d, 0, 0, 0, 0]);
  23975. break;
  23976. case 'array':
  23977. case 'delta':
  23978. out = out.concat(this.encodeNumber(value));
  23979. for (var k = 1, kk = values.length; k < kk; ++k) {
  23980. out = out.concat(this.encodeNumber(values[k]));
  23981. }
  23982. break;
  23983. default:
  23984. error('Unknown data type of ' + type);
  23985. break;
  23986. }
  23987. }
  23988. out = out.concat(dict.opcodes[key]);
  23989. }
  23990. return out;
  23991. },
  23992. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  23993. var stringIndex = new CFFIndex();
  23994. for (var i = 0, ii = strings.length; i < ii; ++i) {
  23995. stringIndex.add(stringToArray(strings[i]));
  23996. }
  23997. return this.compileIndex(stringIndex);
  23998. },
  23999. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  24000. var globalSubrIndex = this.cff.globalSubrIndex;
  24001. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  24002. },
  24003. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  24004. return this.compileIndex(charStrings);
  24005. },
  24006. compileCharset: function CFFCompiler_compileCharset(charset) {
  24007. return this.compileTypedArray(charset.raw);
  24008. },
  24009. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  24010. return this.compileTypedArray(encoding.raw);
  24011. },
  24012. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  24013. return this.compileTypedArray(fdSelect);
  24014. },
  24015. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  24016. var out = [];
  24017. for (var i = 0, ii = data.length; i < ii; ++i) {
  24018. out[i] = data[i];
  24019. }
  24020. return out;
  24021. },
  24022. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  24023. trackers = trackers || [];
  24024. var objects = index.objects;
  24025. // First 2 bytes contains the number of objects contained into this index
  24026. var count = objects.length;
  24027. // If there is no object, just create an index. This technically
  24028. // should just be [0, 0] but OTS has an issue with that.
  24029. if (count === 0) {
  24030. return [0, 0, 0];
  24031. }
  24032. var data = [(count >> 8) & 0xFF, count & 0xff];
  24033. var lastOffset = 1, i;
  24034. for (i = 0; i < count; ++i) {
  24035. lastOffset += objects[i].length;
  24036. }
  24037. var offsetSize;
  24038. if (lastOffset < 0x100) {
  24039. offsetSize = 1;
  24040. } else if (lastOffset < 0x10000) {
  24041. offsetSize = 2;
  24042. } else if (lastOffset < 0x1000000) {
  24043. offsetSize = 3;
  24044. } else {
  24045. offsetSize = 4;
  24046. }
  24047. // Next byte contains the offset size use to reference object in the file
  24048. data.push(offsetSize);
  24049. // Add another offset after this one because we need a new offset
  24050. var relativeOffset = 1;
  24051. for (i = 0; i < count + 1; i++) {
  24052. if (offsetSize === 1) {
  24053. data.push(relativeOffset & 0xFF);
  24054. } else if (offsetSize === 2) {
  24055. data.push((relativeOffset >> 8) & 0xFF,
  24056. relativeOffset & 0xFF);
  24057. } else if (offsetSize === 3) {
  24058. data.push((relativeOffset >> 16) & 0xFF,
  24059. (relativeOffset >> 8) & 0xFF,
  24060. relativeOffset & 0xFF);
  24061. } else {
  24062. data.push((relativeOffset >>> 24) & 0xFF,
  24063. (relativeOffset >> 16) & 0xFF,
  24064. (relativeOffset >> 8) & 0xFF,
  24065. relativeOffset & 0xFF);
  24066. }
  24067. if (objects[i]) {
  24068. relativeOffset += objects[i].length;
  24069. }
  24070. }
  24071. for (i = 0; i < count; i++) {
  24072. // Notify the tracker where the object will be offset in the data.
  24073. if (trackers[i]) {
  24074. trackers[i].offset(data.length);
  24075. }
  24076. for (var j = 0, jj = objects[i].length; j < jj; j++) {
  24077. data.push(objects[i][j]);
  24078. }
  24079. }
  24080. return data;
  24081. }
  24082. };
  24083. return CFFCompiler;
  24084. })();
  24085. // Workaround for seac on Windows.
  24086. (function checkSeacSupport() {
  24087. if (/Windows/.test(navigator.userAgent)) {
  24088. SEAC_ANALYSIS_ENABLED = true;
  24089. }
  24090. })();
  24091. // Workaround for Private Use Area characters in Chrome on Windows
  24092. // http://code.google.com/p/chromium/issues/detail?id=122465
  24093. // https://github.com/mozilla/pdf.js/issues/1689
  24094. (function checkChromeWindows() {
  24095. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  24096. SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  24097. }
  24098. })();
  24099. var FontRendererFactory = (function FontRendererFactoryClosure() {
  24100. function getLong(data, offset) {
  24101. return (data[offset] << 24) | (data[offset + 1] << 16) |
  24102. (data[offset + 2] << 8) | data[offset + 3];
  24103. }
  24104. function getUshort(data, offset) {
  24105. return (data[offset] << 8) | data[offset + 1];
  24106. }
  24107. function parseCmap(data, start, end) {
  24108. var offset = (getUshort(data, start + 2) === 1 ?
  24109. getLong(data, start + 8) : getLong(data, start + 16));
  24110. var format = getUshort(data, start + offset);
  24111. var length, ranges, p, i;
  24112. if (format === 4) {
  24113. length = getUshort(data, start + offset + 2);
  24114. var segCount = getUshort(data, start + offset + 6) >> 1;
  24115. p = start + offset + 14;
  24116. ranges = [];
  24117. for (i = 0; i < segCount; i++, p += 2) {
  24118. ranges[i] = {end: getUshort(data, p)};
  24119. }
  24120. p += 2;
  24121. for (i = 0; i < segCount; i++, p += 2) {
  24122. ranges[i].start = getUshort(data, p);
  24123. }
  24124. for (i = 0; i < segCount; i++, p += 2) {
  24125. ranges[i].idDelta = getUshort(data, p);
  24126. }
  24127. for (i = 0; i < segCount; i++, p += 2) {
  24128. var idOffset = getUshort(data, p);
  24129. if (idOffset === 0) {
  24130. continue;
  24131. }
  24132. ranges[i].ids = [];
  24133. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  24134. ranges[i].ids[j] = getUshort(data, p + idOffset);
  24135. idOffset += 2;
  24136. }
  24137. }
  24138. return ranges;
  24139. } else if (format === 12) {
  24140. length = getLong(data, start + offset + 4);
  24141. var groups = getLong(data, start + offset + 12);
  24142. p = start + offset + 16;
  24143. ranges = [];
  24144. for (i = 0; i < groups; i++) {
  24145. ranges.push({
  24146. start: getLong(data, p),
  24147. end: getLong(data, p + 4),
  24148. idDelta: getLong(data, p + 8) - getLong(data, p)
  24149. });
  24150. p += 12;
  24151. }
  24152. return ranges;
  24153. }
  24154. error('not supported cmap: ' + format);
  24155. }
  24156. function parseCff(data, start, end) {
  24157. var properties = {};
  24158. var parser = new CFFParser(new Stream(data, start, end - start),
  24159. properties);
  24160. var cff = parser.parse();
  24161. return {
  24162. glyphs: cff.charStrings.objects,
  24163. subrs: (cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  24164. cff.topDict.privateDict.subrsIndex.objects),
  24165. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  24166. };
  24167. }
  24168. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  24169. var itemSize, itemDecode;
  24170. if (isGlyphLocationsLong) {
  24171. itemSize = 4;
  24172. itemDecode = function fontItemDecodeLong(data, offset) {
  24173. return (data[offset] << 24) | (data[offset + 1] << 16) |
  24174. (data[offset + 2] << 8) | data[offset + 3];
  24175. };
  24176. } else {
  24177. itemSize = 2;
  24178. itemDecode = function fontItemDecode(data, offset) {
  24179. return (data[offset] << 9) | (data[offset + 1] << 1);
  24180. };
  24181. }
  24182. var glyphs = [];
  24183. var startOffset = itemDecode(loca, 0);
  24184. for (var j = itemSize; j < loca.length; j += itemSize) {
  24185. var endOffset = itemDecode(loca, j);
  24186. glyphs.push(glyf.subarray(startOffset, endOffset));
  24187. startOffset = endOffset;
  24188. }
  24189. return glyphs;
  24190. }
  24191. function lookupCmap(ranges, unicode) {
  24192. var code = unicode.charCodeAt(0);
  24193. var l = 0, r = ranges.length - 1;
  24194. while (l < r) {
  24195. var c = (l + r + 1) >> 1;
  24196. if (code < ranges[c].start) {
  24197. r = c - 1;
  24198. } else {
  24199. l = c;
  24200. }
  24201. }
  24202. if (ranges[l].start <= code && code <= ranges[l].end) {
  24203. return (ranges[l].idDelta + (ranges[l].ids ?
  24204. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  24205. }
  24206. return 0;
  24207. }
  24208. function compileGlyf(code, js, font) {
  24209. function moveTo(x, y) {
  24210. js.push('c.moveTo(' + x + ',' + y + ');');
  24211. }
  24212. function lineTo(x, y) {
  24213. js.push('c.lineTo(' + x + ',' + y + ');');
  24214. }
  24215. function quadraticCurveTo(xa, ya, x, y) {
  24216. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  24217. x + ',' + y + ');');
  24218. }
  24219. var i = 0;
  24220. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24221. var flags;
  24222. var x = 0, y = 0;
  24223. i += 10;
  24224. if (numberOfContours < 0) {
  24225. // composite glyph
  24226. do {
  24227. flags = (code[i] << 8) | code[i + 1];
  24228. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  24229. i += 4;
  24230. var arg1, arg2;
  24231. if ((flags & 0x01)) {
  24232. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24233. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  24234. i += 4;
  24235. } else {
  24236. arg1 = code[i++]; arg2 = code[i++];
  24237. }
  24238. if ((flags & 0x02)) {
  24239. x = arg1;
  24240. y = arg2;
  24241. } else {
  24242. x = 0; y = 0; // TODO "they are points" ?
  24243. }
  24244. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  24245. if ((flags & 0x08)) {
  24246. scaleX =
  24247. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24248. i += 2;
  24249. } else if ((flags & 0x40)) {
  24250. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24251. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24252. i += 4;
  24253. } else if ((flags & 0x80)) {
  24254. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24255. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24256. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  24257. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  24258. i += 8;
  24259. }
  24260. var subglyph = font.glyphs[glyphIndex];
  24261. if (subglyph) {
  24262. js.push('c.save();');
  24263. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  24264. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  24265. compileGlyf(subglyph, js, font);
  24266. js.push('c.restore();');
  24267. }
  24268. } while ((flags & 0x20));
  24269. } else {
  24270. // simple glyph
  24271. var endPtsOfContours = [];
  24272. var j, jj;
  24273. for (j = 0; j < numberOfContours; j++) {
  24274. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  24275. i += 2;
  24276. }
  24277. var instructionLength = (code[i] << 8) | code[i + 1];
  24278. i += 2 + instructionLength; // skipping the instructions
  24279. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  24280. var points = [];
  24281. while (points.length < numberOfPoints) {
  24282. flags = code[i++];
  24283. var repeat = 1;
  24284. if ((flags & 0x08)) {
  24285. repeat += code[i++];
  24286. }
  24287. while (repeat-- > 0) {
  24288. points.push({flags: flags});
  24289. }
  24290. }
  24291. for (j = 0; j < numberOfPoints; j++) {
  24292. switch (points[j].flags & 0x12) {
  24293. case 0x00:
  24294. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24295. i += 2;
  24296. break;
  24297. case 0x02:
  24298. x -= code[i++];
  24299. break;
  24300. case 0x12:
  24301. x += code[i++];
  24302. break;
  24303. }
  24304. points[j].x = x;
  24305. }
  24306. for (j = 0; j < numberOfPoints; j++) {
  24307. switch (points[j].flags & 0x24) {
  24308. case 0x00:
  24309. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24310. i += 2;
  24311. break;
  24312. case 0x04:
  24313. y -= code[i++];
  24314. break;
  24315. case 0x24:
  24316. y += code[i++];
  24317. break;
  24318. }
  24319. points[j].y = y;
  24320. }
  24321. var startPoint = 0;
  24322. for (i = 0; i < numberOfContours; i++) {
  24323. var endPoint = endPtsOfContours[i];
  24324. // contours might have implicit points, which is located in the middle
  24325. // between two neighboring off-curve points
  24326. var contour = points.slice(startPoint, endPoint + 1);
  24327. if ((contour[0].flags & 1)) {
  24328. contour.push(contour[0]); // using start point at the contour end
  24329. } else if ((contour[contour.length - 1].flags & 1)) {
  24330. // first is off-curve point, trying to use one from the end
  24331. contour.unshift(contour[contour.length - 1]);
  24332. } else {
  24333. // start and end are off-curve points, creating implicit one
  24334. var p = {
  24335. flags: 1,
  24336. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  24337. y: (contour[0].y + contour[contour.length - 1].y) / 2
  24338. };
  24339. contour.unshift(p);
  24340. contour.push(p);
  24341. }
  24342. moveTo(contour[0].x, contour[0].y);
  24343. for (j = 1, jj = contour.length; j < jj; j++) {
  24344. if ((contour[j].flags & 1)) {
  24345. lineTo(contour[j].x, contour[j].y);
  24346. } else if ((contour[j + 1].flags & 1)){
  24347. quadraticCurveTo(contour[j].x, contour[j].y,
  24348. contour[j + 1].x, contour[j + 1].y);
  24349. j++;
  24350. } else {
  24351. quadraticCurveTo(contour[j].x, contour[j].y,
  24352. (contour[j].x + contour[j + 1].x) / 2,
  24353. (contour[j].y + contour[j + 1].y) / 2);
  24354. }
  24355. }
  24356. startPoint = endPoint + 1;
  24357. }
  24358. }
  24359. }
  24360. function compileCharString(code, js, font) {
  24361. var stack = [];
  24362. var x = 0, y = 0;
  24363. var stems = 0;
  24364. function moveTo(x, y) {
  24365. js.push('c.moveTo(' + x + ',' + y + ');');
  24366. }
  24367. function lineTo(x, y) {
  24368. js.push('c.lineTo(' + x + ',' + y + ');');
  24369. }
  24370. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  24371. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  24372. x + ',' + y + ');');
  24373. }
  24374. function parse(code) {
  24375. var i = 0;
  24376. while (i < code.length) {
  24377. var stackClean = false;
  24378. var v = code[i++];
  24379. var xa, xb, ya, yb, y1, y2, y3, n, subrCode;
  24380. switch (v) {
  24381. case 1: // hstem
  24382. stems += stack.length >> 1;
  24383. stackClean = true;
  24384. break;
  24385. case 3: // vstem
  24386. stems += stack.length >> 1;
  24387. stackClean = true;
  24388. break;
  24389. case 4: // vmoveto
  24390. y += stack.pop();
  24391. moveTo(x, y);
  24392. stackClean = true;
  24393. break;
  24394. case 5: // rlineto
  24395. while (stack.length > 0) {
  24396. x += stack.shift();
  24397. y += stack.shift();
  24398. lineTo(x, y);
  24399. }
  24400. break;
  24401. case 6: // hlineto
  24402. while (stack.length > 0) {
  24403. x += stack.shift();
  24404. lineTo(x, y);
  24405. if (stack.length === 0) {
  24406. break;
  24407. }
  24408. y += stack.shift();
  24409. lineTo(x, y);
  24410. }
  24411. break;
  24412. case 7: // vlineto
  24413. while (stack.length > 0) {
  24414. y += stack.shift();
  24415. lineTo(x, y);
  24416. if (stack.length === 0) {
  24417. break;
  24418. }
  24419. x += stack.shift();
  24420. lineTo(x, y);
  24421. }
  24422. break;
  24423. case 8: // rrcurveto
  24424. while (stack.length > 0) {
  24425. xa = x + stack.shift(); ya = y + stack.shift();
  24426. xb = xa + stack.shift(); yb = ya + stack.shift();
  24427. x = xb + stack.shift(); y = yb + stack.shift();
  24428. bezierCurveTo(xa, ya, xb, yb, x, y);
  24429. }
  24430. break;
  24431. case 10: // callsubr
  24432. n = stack.pop() + font.subrsBias;
  24433. subrCode = font.subrs[n];
  24434. if (subrCode) {
  24435. parse(subrCode);
  24436. }
  24437. break;
  24438. case 11: // return
  24439. return;
  24440. case 12:
  24441. v = code[i++];
  24442. switch (v) {
  24443. case 34: // flex
  24444. xa = x + stack.shift();
  24445. xb = xa + stack.shift(); y1 = y + stack.shift();
  24446. x = xb + stack.shift();
  24447. bezierCurveTo(xa, y, xb, y1, x, y1);
  24448. xa = x + stack.shift();
  24449. xb = xa + stack.shift();
  24450. x = xb + stack.shift();
  24451. bezierCurveTo(xa, y1, xb, y, x, y);
  24452. break;
  24453. case 35: // flex
  24454. xa = x + stack.shift(); ya = y + stack.shift();
  24455. xb = xa + stack.shift(); yb = ya + stack.shift();
  24456. x = xb + stack.shift(); y = yb + stack.shift();
  24457. bezierCurveTo(xa, ya, xb, yb, x, y);
  24458. xa = x + stack.shift(); ya = y + stack.shift();
  24459. xb = xa + stack.shift(); yb = ya + stack.shift();
  24460. x = xb + stack.shift(); y = yb + stack.shift();
  24461. bezierCurveTo(xa, ya, xb, yb, x, y);
  24462. stack.pop(); // fd
  24463. break;
  24464. case 36: // hflex1
  24465. xa = x + stack.shift(); y1 = y + stack.shift();
  24466. xb = xa + stack.shift(); y2 = y1 + stack.shift();
  24467. x = xb + stack.shift();
  24468. bezierCurveTo(xa, y1, xb, y2, x, y2);
  24469. xa = x + stack.shift();
  24470. xb = xa + stack.shift(); y3 = y2 + stack.shift();
  24471. x = xb + stack.shift();
  24472. bezierCurveTo(xa, y2, xb, y3, x, y);
  24473. break;
  24474. case 37: // flex1
  24475. var x0 = x, y0 = y;
  24476. xa = x + stack.shift(); ya = y + stack.shift();
  24477. xb = xa + stack.shift(); yb = ya + stack.shift();
  24478. x = xb + stack.shift(); y = yb + stack.shift();
  24479. bezierCurveTo(xa, ya, xb, yb, x, y);
  24480. xa = x + stack.shift(); ya = y + stack.shift();
  24481. xb = xa + stack.shift(); yb = ya + stack.shift();
  24482. x = xb; y = yb;
  24483. if (Math.abs(x - x0) > Math.abs(y - y0)) {
  24484. x += stack.shift();
  24485. } else {
  24486. y += stack.shift();
  24487. }
  24488. bezierCurveTo(xa, ya, xb, yb, x, y);
  24489. break;
  24490. default:
  24491. error('unknown operator: 12 ' + v);
  24492. }
  24493. break;
  24494. case 14: // endchar
  24495. if (stack.length >= 4) {
  24496. var achar = stack.pop();
  24497. var bchar = stack.pop();
  24498. y = stack.pop();
  24499. x = stack.pop();
  24500. js.push('c.save();');
  24501. js.push('c.translate('+ x + ',' + y + ');');
  24502. var gid = lookupCmap(font.cmap, String.fromCharCode(
  24503. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  24504. compileCharString(font.glyphs[gid], js, font);
  24505. js.push('c.restore();');
  24506. gid = lookupCmap(font.cmap, String.fromCharCode(
  24507. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  24508. compileCharString(font.glyphs[gid], js, font);
  24509. }
  24510. return;
  24511. case 18: // hstemhm
  24512. stems += stack.length >> 1;
  24513. stackClean = true;
  24514. break;
  24515. case 19: // hintmask
  24516. stems += stack.length >> 1;
  24517. i += (stems + 7) >> 3;
  24518. stackClean = true;
  24519. break;
  24520. case 20: // cntrmask
  24521. stems += stack.length >> 1;
  24522. i += (stems + 7) >> 3;
  24523. stackClean = true;
  24524. break;
  24525. case 21: // rmoveto
  24526. y += stack.pop();
  24527. x += stack.pop();
  24528. moveTo(x, y);
  24529. stackClean = true;
  24530. break;
  24531. case 22: // hmoveto
  24532. x += stack.pop();
  24533. moveTo(x, y);
  24534. stackClean = true;
  24535. break;
  24536. case 23: // vstemhm
  24537. stems += stack.length >> 1;
  24538. stackClean = true;
  24539. break;
  24540. case 24: // rcurveline
  24541. while (stack.length > 2) {
  24542. xa = x + stack.shift(); ya = y + stack.shift();
  24543. xb = xa + stack.shift(); yb = ya + stack.shift();
  24544. x = xb + stack.shift(); y = yb + stack.shift();
  24545. bezierCurveTo(xa, ya, xb, yb, x, y);
  24546. }
  24547. x += stack.shift();
  24548. y += stack.shift();
  24549. lineTo(x, y);
  24550. break;
  24551. case 25: // rlinecurve
  24552. while (stack.length > 6) {
  24553. x += stack.shift();
  24554. y += stack.shift();
  24555. lineTo(x, y);
  24556. }
  24557. xa = x + stack.shift(); ya = y + stack.shift();
  24558. xb = xa + stack.shift(); yb = ya + stack.shift();
  24559. x = xb + stack.shift(); y = yb + stack.shift();
  24560. bezierCurveTo(xa, ya, xb, yb, x, y);
  24561. break;
  24562. case 26: // vvcurveto
  24563. if (stack.length % 2) {
  24564. x += stack.shift();
  24565. }
  24566. while (stack.length > 0) {
  24567. xa = x; ya = y + stack.shift();
  24568. xb = xa + stack.shift(); yb = ya + stack.shift();
  24569. x = xb; y = yb + stack.shift();
  24570. bezierCurveTo(xa, ya, xb, yb, x, y);
  24571. }
  24572. break;
  24573. case 27: // hhcurveto
  24574. if (stack.length % 2) {
  24575. y += stack.shift();
  24576. }
  24577. while (stack.length > 0) {
  24578. xa = x + stack.shift(); ya = y;
  24579. xb = xa + stack.shift(); yb = ya + stack.shift();
  24580. x = xb + stack.shift(); y = yb;
  24581. bezierCurveTo(xa, ya, xb, yb, x, y);
  24582. }
  24583. break;
  24584. case 28:
  24585. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  24586. i += 2;
  24587. break;
  24588. case 29: // callgsubr
  24589. n = stack.pop() + font.gsubrsBias;
  24590. subrCode = font.gsubrs[n];
  24591. if (subrCode) {
  24592. parse(subrCode);
  24593. }
  24594. break;
  24595. case 30: // vhcurveto
  24596. while (stack.length > 0) {
  24597. xa = x; ya = y + stack.shift();
  24598. xb = xa + stack.shift(); yb = ya + stack.shift();
  24599. x = xb + stack.shift();
  24600. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24601. bezierCurveTo(xa, ya, xb, yb, x, y);
  24602. if (stack.length === 0) {
  24603. break;
  24604. }
  24605. xa = x + stack.shift(); ya = y;
  24606. xb = xa + stack.shift(); yb = ya + stack.shift();
  24607. y = yb + stack.shift();
  24608. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24609. bezierCurveTo(xa, ya, xb, yb, x, y);
  24610. }
  24611. break;
  24612. case 31: // hvcurveto
  24613. while (stack.length > 0) {
  24614. xa = x + stack.shift(); ya = y;
  24615. xb = xa + stack.shift(); yb = ya + stack.shift();
  24616. y = yb + stack.shift();
  24617. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24618. bezierCurveTo(xa, ya, xb, yb, x, y);
  24619. if (stack.length === 0) {
  24620. break;
  24621. }
  24622. xa = x; ya = y + stack.shift();
  24623. xb = xa + stack.shift(); yb = ya + stack.shift();
  24624. x = xb + stack.shift();
  24625. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24626. bezierCurveTo(xa, ya, xb, yb, x, y);
  24627. }
  24628. break;
  24629. default:
  24630. if (v < 32) {
  24631. error('unknown operator: ' + v);
  24632. }
  24633. if (v < 247) {
  24634. stack.push(v - 139);
  24635. } else if (v < 251) {
  24636. stack.push((v - 247) * 256 + code[i++] + 108);
  24637. } else if (v < 255) {
  24638. stack.push(-(v - 251) * 256 - code[i++] - 108);
  24639. } else {
  24640. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  24641. (code[i + 2] << 8) | code[i + 3]) / 65536);
  24642. i += 4;
  24643. }
  24644. break;
  24645. }
  24646. if (stackClean) {
  24647. stack.length = 0;
  24648. }
  24649. }
  24650. }
  24651. parse(code);
  24652. }
  24653. var noop = '';
  24654. function CompiledFont(fontMatrix) {
  24655. this.compiledGlyphs = {};
  24656. this.fontMatrix = fontMatrix;
  24657. }
  24658. CompiledFont.prototype = {
  24659. getPathJs: function (unicode) {
  24660. var gid = lookupCmap(this.cmap, unicode);
  24661. var fn = this.compiledGlyphs[gid];
  24662. if (!fn) {
  24663. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  24664. }
  24665. return fn;
  24666. },
  24667. compileGlyph: function (code) {
  24668. if (!code || code.length === 0 || code[0] === 14) {
  24669. return noop;
  24670. }
  24671. var js = [];
  24672. js.push('c.save();');
  24673. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  24674. js.push('c.scale(size, -size);');
  24675. this.compileGlyphImpl(code, js);
  24676. js.push('c.restore();');
  24677. return js.join('\n');
  24678. },
  24679. compileGlyphImpl: function () {
  24680. error('Children classes should implement this.');
  24681. },
  24682. hasBuiltPath: function (unicode) {
  24683. var gid = lookupCmap(this.cmap, unicode);
  24684. return gid in this.compiledGlyphs;
  24685. }
  24686. };
  24687. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  24688. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  24689. CompiledFont.call(this, fontMatrix);
  24690. this.glyphs = glyphs;
  24691. this.cmap = cmap;
  24692. this.compiledGlyphs = [];
  24693. }
  24694. Util.inherit(TrueTypeCompiled, CompiledFont, {
  24695. compileGlyphImpl: function (code, js) {
  24696. compileGlyf(code, js, this);
  24697. }
  24698. });
  24699. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  24700. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  24701. CompiledFont.call(this, fontMatrix);
  24702. this.glyphs = cffInfo.glyphs;
  24703. this.gsubrs = cffInfo.gsubrs || [];
  24704. this.subrs = cffInfo.subrs || [];
  24705. this.cmap = cmap;
  24706. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  24707. this.compiledGlyphs = [];
  24708. this.gsubrsBias = (this.gsubrs.length < 1240 ?
  24709. 107 : (this.gsubrs.length < 33900 ? 1131 : 32768));
  24710. this.subrsBias = (this.subrs.length < 1240 ?
  24711. 107 : (this.subrs.length < 33900 ? 1131 : 32768));
  24712. }
  24713. Util.inherit(Type2Compiled, CompiledFont, {
  24714. compileGlyphImpl: function (code, js) {
  24715. compileCharString(code, js, this);
  24716. }
  24717. });
  24718. return {
  24719. create: function FontRendererFactory_create(font) {
  24720. var data = new Uint8Array(font.data);
  24721. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  24722. var numTables = getUshort(data, 4);
  24723. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  24724. var tag = bytesToString(data.subarray(p, p + 4));
  24725. var offset = getLong(data, p + 8);
  24726. var length = getLong(data, p + 12);
  24727. switch (tag) {
  24728. case 'cmap':
  24729. cmap = parseCmap(data, offset, offset + length);
  24730. break;
  24731. case 'glyf':
  24732. glyf = data.subarray(offset, offset + length);
  24733. break;
  24734. case 'loca':
  24735. loca = data.subarray(offset, offset + length);
  24736. break;
  24737. case 'head':
  24738. unitsPerEm = getUshort(data, offset + 18);
  24739. indexToLocFormat = getUshort(data, offset + 50);
  24740. break;
  24741. case 'CFF ':
  24742. cff = parseCff(data, offset, offset + length);
  24743. break;
  24744. }
  24745. }
  24746. if (glyf) {
  24747. var fontMatrix = (!unitsPerEm ? font.fontMatrix :
  24748. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]);
  24749. return new TrueTypeCompiled(
  24750. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  24751. } else {
  24752. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  24753. }
  24754. }
  24755. };
  24756. })();
  24757. var GlyphsUnicode = {
  24758. A: 0x0041,
  24759. AE: 0x00C6,
  24760. AEacute: 0x01FC,
  24761. AEmacron: 0x01E2,
  24762. AEsmall: 0xF7E6,
  24763. Aacute: 0x00C1,
  24764. Aacutesmall: 0xF7E1,
  24765. Abreve: 0x0102,
  24766. Abreveacute: 0x1EAE,
  24767. Abrevecyrillic: 0x04D0,
  24768. Abrevedotbelow: 0x1EB6,
  24769. Abrevegrave: 0x1EB0,
  24770. Abrevehookabove: 0x1EB2,
  24771. Abrevetilde: 0x1EB4,
  24772. Acaron: 0x01CD,
  24773. Acircle: 0x24B6,
  24774. Acircumflex: 0x00C2,
  24775. Acircumflexacute: 0x1EA4,
  24776. Acircumflexdotbelow: 0x1EAC,
  24777. Acircumflexgrave: 0x1EA6,
  24778. Acircumflexhookabove: 0x1EA8,
  24779. Acircumflexsmall: 0xF7E2,
  24780. Acircumflextilde: 0x1EAA,
  24781. Acute: 0xF6C9,
  24782. Acutesmall: 0xF7B4,
  24783. Acyrillic: 0x0410,
  24784. Adblgrave: 0x0200,
  24785. Adieresis: 0x00C4,
  24786. Adieresiscyrillic: 0x04D2,
  24787. Adieresismacron: 0x01DE,
  24788. Adieresissmall: 0xF7E4,
  24789. Adotbelow: 0x1EA0,
  24790. Adotmacron: 0x01E0,
  24791. Agrave: 0x00C0,
  24792. Agravesmall: 0xF7E0,
  24793. Ahookabove: 0x1EA2,
  24794. Aiecyrillic: 0x04D4,
  24795. Ainvertedbreve: 0x0202,
  24796. Alpha: 0x0391,
  24797. Alphatonos: 0x0386,
  24798. Amacron: 0x0100,
  24799. Amonospace: 0xFF21,
  24800. Aogonek: 0x0104,
  24801. Aring: 0x00C5,
  24802. Aringacute: 0x01FA,
  24803. Aringbelow: 0x1E00,
  24804. Aringsmall: 0xF7E5,
  24805. Asmall: 0xF761,
  24806. Atilde: 0x00C3,
  24807. Atildesmall: 0xF7E3,
  24808. Aybarmenian: 0x0531,
  24809. B: 0x0042,
  24810. Bcircle: 0x24B7,
  24811. Bdotaccent: 0x1E02,
  24812. Bdotbelow: 0x1E04,
  24813. Becyrillic: 0x0411,
  24814. Benarmenian: 0x0532,
  24815. Beta: 0x0392,
  24816. Bhook: 0x0181,
  24817. Blinebelow: 0x1E06,
  24818. Bmonospace: 0xFF22,
  24819. Brevesmall: 0xF6F4,
  24820. Bsmall: 0xF762,
  24821. Btopbar: 0x0182,
  24822. C: 0x0043,
  24823. Caarmenian: 0x053E,
  24824. Cacute: 0x0106,
  24825. Caron: 0xF6CA,
  24826. Caronsmall: 0xF6F5,
  24827. Ccaron: 0x010C,
  24828. Ccedilla: 0x00C7,
  24829. Ccedillaacute: 0x1E08,
  24830. Ccedillasmall: 0xF7E7,
  24831. Ccircle: 0x24B8,
  24832. Ccircumflex: 0x0108,
  24833. Cdot: 0x010A,
  24834. Cdotaccent: 0x010A,
  24835. Cedillasmall: 0xF7B8,
  24836. Chaarmenian: 0x0549,
  24837. Cheabkhasiancyrillic: 0x04BC,
  24838. Checyrillic: 0x0427,
  24839. Chedescenderabkhasiancyrillic: 0x04BE,
  24840. Chedescendercyrillic: 0x04B6,
  24841. Chedieresiscyrillic: 0x04F4,
  24842. Cheharmenian: 0x0543,
  24843. Chekhakassiancyrillic: 0x04CB,
  24844. Cheverticalstrokecyrillic: 0x04B8,
  24845. Chi: 0x03A7,
  24846. Chook: 0x0187,
  24847. Circumflexsmall: 0xF6F6,
  24848. Cmonospace: 0xFF23,
  24849. Coarmenian: 0x0551,
  24850. Csmall: 0xF763,
  24851. D: 0x0044,
  24852. DZ: 0x01F1,
  24853. DZcaron: 0x01C4,
  24854. Daarmenian: 0x0534,
  24855. Dafrican: 0x0189,
  24856. Dcaron: 0x010E,
  24857. Dcedilla: 0x1E10,
  24858. Dcircle: 0x24B9,
  24859. Dcircumflexbelow: 0x1E12,
  24860. Dcroat: 0x0110,
  24861. Ddotaccent: 0x1E0A,
  24862. Ddotbelow: 0x1E0C,
  24863. Decyrillic: 0x0414,
  24864. Deicoptic: 0x03EE,
  24865. Delta: 0x2206,
  24866. Deltagreek: 0x0394,
  24867. Dhook: 0x018A,
  24868. Dieresis: 0xF6CB,
  24869. DieresisAcute: 0xF6CC,
  24870. DieresisGrave: 0xF6CD,
  24871. Dieresissmall: 0xF7A8,
  24872. Digammagreek: 0x03DC,
  24873. Djecyrillic: 0x0402,
  24874. Dlinebelow: 0x1E0E,
  24875. Dmonospace: 0xFF24,
  24876. Dotaccentsmall: 0xF6F7,
  24877. Dslash: 0x0110,
  24878. Dsmall: 0xF764,
  24879. Dtopbar: 0x018B,
  24880. Dz: 0x01F2,
  24881. Dzcaron: 0x01C5,
  24882. Dzeabkhasiancyrillic: 0x04E0,
  24883. Dzecyrillic: 0x0405,
  24884. Dzhecyrillic: 0x040F,
  24885. E: 0x0045,
  24886. Eacute: 0x00C9,
  24887. Eacutesmall: 0xF7E9,
  24888. Ebreve: 0x0114,
  24889. Ecaron: 0x011A,
  24890. Ecedillabreve: 0x1E1C,
  24891. Echarmenian: 0x0535,
  24892. Ecircle: 0x24BA,
  24893. Ecircumflex: 0x00CA,
  24894. Ecircumflexacute: 0x1EBE,
  24895. Ecircumflexbelow: 0x1E18,
  24896. Ecircumflexdotbelow: 0x1EC6,
  24897. Ecircumflexgrave: 0x1EC0,
  24898. Ecircumflexhookabove: 0x1EC2,
  24899. Ecircumflexsmall: 0xF7EA,
  24900. Ecircumflextilde: 0x1EC4,
  24901. Ecyrillic: 0x0404,
  24902. Edblgrave: 0x0204,
  24903. Edieresis: 0x00CB,
  24904. Edieresissmall: 0xF7EB,
  24905. Edot: 0x0116,
  24906. Edotaccent: 0x0116,
  24907. Edotbelow: 0x1EB8,
  24908. Efcyrillic: 0x0424,
  24909. Egrave: 0x00C8,
  24910. Egravesmall: 0xF7E8,
  24911. Eharmenian: 0x0537,
  24912. Ehookabove: 0x1EBA,
  24913. Eightroman: 0x2167,
  24914. Einvertedbreve: 0x0206,
  24915. Eiotifiedcyrillic: 0x0464,
  24916. Elcyrillic: 0x041B,
  24917. Elevenroman: 0x216A,
  24918. Emacron: 0x0112,
  24919. Emacronacute: 0x1E16,
  24920. Emacrongrave: 0x1E14,
  24921. Emcyrillic: 0x041C,
  24922. Emonospace: 0xFF25,
  24923. Encyrillic: 0x041D,
  24924. Endescendercyrillic: 0x04A2,
  24925. Eng: 0x014A,
  24926. Enghecyrillic: 0x04A4,
  24927. Enhookcyrillic: 0x04C7,
  24928. Eogonek: 0x0118,
  24929. Eopen: 0x0190,
  24930. Epsilon: 0x0395,
  24931. Epsilontonos: 0x0388,
  24932. Ercyrillic: 0x0420,
  24933. Ereversed: 0x018E,
  24934. Ereversedcyrillic: 0x042D,
  24935. Escyrillic: 0x0421,
  24936. Esdescendercyrillic: 0x04AA,
  24937. Esh: 0x01A9,
  24938. Esmall: 0xF765,
  24939. Eta: 0x0397,
  24940. Etarmenian: 0x0538,
  24941. Etatonos: 0x0389,
  24942. Eth: 0x00D0,
  24943. Ethsmall: 0xF7F0,
  24944. Etilde: 0x1EBC,
  24945. Etildebelow: 0x1E1A,
  24946. Euro: 0x20AC,
  24947. Ezh: 0x01B7,
  24948. Ezhcaron: 0x01EE,
  24949. Ezhreversed: 0x01B8,
  24950. F: 0x0046,
  24951. Fcircle: 0x24BB,
  24952. Fdotaccent: 0x1E1E,
  24953. Feharmenian: 0x0556,
  24954. Feicoptic: 0x03E4,
  24955. Fhook: 0x0191,
  24956. Fitacyrillic: 0x0472,
  24957. Fiveroman: 0x2164,
  24958. Fmonospace: 0xFF26,
  24959. Fourroman: 0x2163,
  24960. Fsmall: 0xF766,
  24961. G: 0x0047,
  24962. GBsquare: 0x3387,
  24963. Gacute: 0x01F4,
  24964. Gamma: 0x0393,
  24965. Gammaafrican: 0x0194,
  24966. Gangiacoptic: 0x03EA,
  24967. Gbreve: 0x011E,
  24968. Gcaron: 0x01E6,
  24969. Gcedilla: 0x0122,
  24970. Gcircle: 0x24BC,
  24971. Gcircumflex: 0x011C,
  24972. Gcommaaccent: 0x0122,
  24973. Gdot: 0x0120,
  24974. Gdotaccent: 0x0120,
  24975. Gecyrillic: 0x0413,
  24976. Ghadarmenian: 0x0542,
  24977. Ghemiddlehookcyrillic: 0x0494,
  24978. Ghestrokecyrillic: 0x0492,
  24979. Gheupturncyrillic: 0x0490,
  24980. Ghook: 0x0193,
  24981. Gimarmenian: 0x0533,
  24982. Gjecyrillic: 0x0403,
  24983. Gmacron: 0x1E20,
  24984. Gmonospace: 0xFF27,
  24985. Grave: 0xF6CE,
  24986. Gravesmall: 0xF760,
  24987. Gsmall: 0xF767,
  24988. Gsmallhook: 0x029B,
  24989. Gstroke: 0x01E4,
  24990. H: 0x0048,
  24991. H18533: 0x25CF,
  24992. H18543: 0x25AA,
  24993. H18551: 0x25AB,
  24994. H22073: 0x25A1,
  24995. HPsquare: 0x33CB,
  24996. Haabkhasiancyrillic: 0x04A8,
  24997. Hadescendercyrillic: 0x04B2,
  24998. Hardsigncyrillic: 0x042A,
  24999. Hbar: 0x0126,
  25000. Hbrevebelow: 0x1E2A,
  25001. Hcedilla: 0x1E28,
  25002. Hcircle: 0x24BD,
  25003. Hcircumflex: 0x0124,
  25004. Hdieresis: 0x1E26,
  25005. Hdotaccent: 0x1E22,
  25006. Hdotbelow: 0x1E24,
  25007. Hmonospace: 0xFF28,
  25008. Hoarmenian: 0x0540,
  25009. Horicoptic: 0x03E8,
  25010. Hsmall: 0xF768,
  25011. Hungarumlaut: 0xF6CF,
  25012. Hungarumlautsmall: 0xF6F8,
  25013. Hzsquare: 0x3390,
  25014. I: 0x0049,
  25015. IAcyrillic: 0x042F,
  25016. IJ: 0x0132,
  25017. IUcyrillic: 0x042E,
  25018. Iacute: 0x00CD,
  25019. Iacutesmall: 0xF7ED,
  25020. Ibreve: 0x012C,
  25021. Icaron: 0x01CF,
  25022. Icircle: 0x24BE,
  25023. Icircumflex: 0x00CE,
  25024. Icircumflexsmall: 0xF7EE,
  25025. Icyrillic: 0x0406,
  25026. Idblgrave: 0x0208,
  25027. Idieresis: 0x00CF,
  25028. Idieresisacute: 0x1E2E,
  25029. Idieresiscyrillic: 0x04E4,
  25030. Idieresissmall: 0xF7EF,
  25031. Idot: 0x0130,
  25032. Idotaccent: 0x0130,
  25033. Idotbelow: 0x1ECA,
  25034. Iebrevecyrillic: 0x04D6,
  25035. Iecyrillic: 0x0415,
  25036. Ifraktur: 0x2111,
  25037. Igrave: 0x00CC,
  25038. Igravesmall: 0xF7EC,
  25039. Ihookabove: 0x1EC8,
  25040. Iicyrillic: 0x0418,
  25041. Iinvertedbreve: 0x020A,
  25042. Iishortcyrillic: 0x0419,
  25043. Imacron: 0x012A,
  25044. Imacroncyrillic: 0x04E2,
  25045. Imonospace: 0xFF29,
  25046. Iniarmenian: 0x053B,
  25047. Iocyrillic: 0x0401,
  25048. Iogonek: 0x012E,
  25049. Iota: 0x0399,
  25050. Iotaafrican: 0x0196,
  25051. Iotadieresis: 0x03AA,
  25052. Iotatonos: 0x038A,
  25053. Ismall: 0xF769,
  25054. Istroke: 0x0197,
  25055. Itilde: 0x0128,
  25056. Itildebelow: 0x1E2C,
  25057. Izhitsacyrillic: 0x0474,
  25058. Izhitsadblgravecyrillic: 0x0476,
  25059. J: 0x004A,
  25060. Jaarmenian: 0x0541,
  25061. Jcircle: 0x24BF,
  25062. Jcircumflex: 0x0134,
  25063. Jecyrillic: 0x0408,
  25064. Jheharmenian: 0x054B,
  25065. Jmonospace: 0xFF2A,
  25066. Jsmall: 0xF76A,
  25067. K: 0x004B,
  25068. KBsquare: 0x3385,
  25069. KKsquare: 0x33CD,
  25070. Kabashkircyrillic: 0x04A0,
  25071. Kacute: 0x1E30,
  25072. Kacyrillic: 0x041A,
  25073. Kadescendercyrillic: 0x049A,
  25074. Kahookcyrillic: 0x04C3,
  25075. Kappa: 0x039A,
  25076. Kastrokecyrillic: 0x049E,
  25077. Kaverticalstrokecyrillic: 0x049C,
  25078. Kcaron: 0x01E8,
  25079. Kcedilla: 0x0136,
  25080. Kcircle: 0x24C0,
  25081. Kcommaaccent: 0x0136,
  25082. Kdotbelow: 0x1E32,
  25083. Keharmenian: 0x0554,
  25084. Kenarmenian: 0x053F,
  25085. Khacyrillic: 0x0425,
  25086. Kheicoptic: 0x03E6,
  25087. Khook: 0x0198,
  25088. Kjecyrillic: 0x040C,
  25089. Klinebelow: 0x1E34,
  25090. Kmonospace: 0xFF2B,
  25091. Koppacyrillic: 0x0480,
  25092. Koppagreek: 0x03DE,
  25093. Ksicyrillic: 0x046E,
  25094. Ksmall: 0xF76B,
  25095. L: 0x004C,
  25096. LJ: 0x01C7,
  25097. LL: 0xF6BF,
  25098. Lacute: 0x0139,
  25099. Lambda: 0x039B,
  25100. Lcaron: 0x013D,
  25101. Lcedilla: 0x013B,
  25102. Lcircle: 0x24C1,
  25103. Lcircumflexbelow: 0x1E3C,
  25104. Lcommaaccent: 0x013B,
  25105. Ldot: 0x013F,
  25106. Ldotaccent: 0x013F,
  25107. Ldotbelow: 0x1E36,
  25108. Ldotbelowmacron: 0x1E38,
  25109. Liwnarmenian: 0x053C,
  25110. Lj: 0x01C8,
  25111. Ljecyrillic: 0x0409,
  25112. Llinebelow: 0x1E3A,
  25113. Lmonospace: 0xFF2C,
  25114. Lslash: 0x0141,
  25115. Lslashsmall: 0xF6F9,
  25116. Lsmall: 0xF76C,
  25117. M: 0x004D,
  25118. MBsquare: 0x3386,
  25119. Macron: 0xF6D0,
  25120. Macronsmall: 0xF7AF,
  25121. Macute: 0x1E3E,
  25122. Mcircle: 0x24C2,
  25123. Mdotaccent: 0x1E40,
  25124. Mdotbelow: 0x1E42,
  25125. Menarmenian: 0x0544,
  25126. Mmonospace: 0xFF2D,
  25127. Msmall: 0xF76D,
  25128. Mturned: 0x019C,
  25129. Mu: 0x039C,
  25130. N: 0x004E,
  25131. NJ: 0x01CA,
  25132. Nacute: 0x0143,
  25133. Ncaron: 0x0147,
  25134. Ncedilla: 0x0145,
  25135. Ncircle: 0x24C3,
  25136. Ncircumflexbelow: 0x1E4A,
  25137. Ncommaaccent: 0x0145,
  25138. Ndotaccent: 0x1E44,
  25139. Ndotbelow: 0x1E46,
  25140. Nhookleft: 0x019D,
  25141. Nineroman: 0x2168,
  25142. Nj: 0x01CB,
  25143. Njecyrillic: 0x040A,
  25144. Nlinebelow: 0x1E48,
  25145. Nmonospace: 0xFF2E,
  25146. Nowarmenian: 0x0546,
  25147. Nsmall: 0xF76E,
  25148. Ntilde: 0x00D1,
  25149. Ntildesmall: 0xF7F1,
  25150. Nu: 0x039D,
  25151. O: 0x004F,
  25152. OE: 0x0152,
  25153. OEsmall: 0xF6FA,
  25154. Oacute: 0x00D3,
  25155. Oacutesmall: 0xF7F3,
  25156. Obarredcyrillic: 0x04E8,
  25157. Obarreddieresiscyrillic: 0x04EA,
  25158. Obreve: 0x014E,
  25159. Ocaron: 0x01D1,
  25160. Ocenteredtilde: 0x019F,
  25161. Ocircle: 0x24C4,
  25162. Ocircumflex: 0x00D4,
  25163. Ocircumflexacute: 0x1ED0,
  25164. Ocircumflexdotbelow: 0x1ED8,
  25165. Ocircumflexgrave: 0x1ED2,
  25166. Ocircumflexhookabove: 0x1ED4,
  25167. Ocircumflexsmall: 0xF7F4,
  25168. Ocircumflextilde: 0x1ED6,
  25169. Ocyrillic: 0x041E,
  25170. Odblacute: 0x0150,
  25171. Odblgrave: 0x020C,
  25172. Odieresis: 0x00D6,
  25173. Odieresiscyrillic: 0x04E6,
  25174. Odieresissmall: 0xF7F6,
  25175. Odotbelow: 0x1ECC,
  25176. Ogoneksmall: 0xF6FB,
  25177. Ograve: 0x00D2,
  25178. Ogravesmall: 0xF7F2,
  25179. Oharmenian: 0x0555,
  25180. Ohm: 0x2126,
  25181. Ohookabove: 0x1ECE,
  25182. Ohorn: 0x01A0,
  25183. Ohornacute: 0x1EDA,
  25184. Ohorndotbelow: 0x1EE2,
  25185. Ohorngrave: 0x1EDC,
  25186. Ohornhookabove: 0x1EDE,
  25187. Ohorntilde: 0x1EE0,
  25188. Ohungarumlaut: 0x0150,
  25189. Oi: 0x01A2,
  25190. Oinvertedbreve: 0x020E,
  25191. Omacron: 0x014C,
  25192. Omacronacute: 0x1E52,
  25193. Omacrongrave: 0x1E50,
  25194. Omega: 0x2126,
  25195. Omegacyrillic: 0x0460,
  25196. Omegagreek: 0x03A9,
  25197. Omegaroundcyrillic: 0x047A,
  25198. Omegatitlocyrillic: 0x047C,
  25199. Omegatonos: 0x038F,
  25200. Omicron: 0x039F,
  25201. Omicrontonos: 0x038C,
  25202. Omonospace: 0xFF2F,
  25203. Oneroman: 0x2160,
  25204. Oogonek: 0x01EA,
  25205. Oogonekmacron: 0x01EC,
  25206. Oopen: 0x0186,
  25207. Oslash: 0x00D8,
  25208. Oslashacute: 0x01FE,
  25209. Oslashsmall: 0xF7F8,
  25210. Osmall: 0xF76F,
  25211. Ostrokeacute: 0x01FE,
  25212. Otcyrillic: 0x047E,
  25213. Otilde: 0x00D5,
  25214. Otildeacute: 0x1E4C,
  25215. Otildedieresis: 0x1E4E,
  25216. Otildesmall: 0xF7F5,
  25217. P: 0x0050,
  25218. Pacute: 0x1E54,
  25219. Pcircle: 0x24C5,
  25220. Pdotaccent: 0x1E56,
  25221. Pecyrillic: 0x041F,
  25222. Peharmenian: 0x054A,
  25223. Pemiddlehookcyrillic: 0x04A6,
  25224. Phi: 0x03A6,
  25225. Phook: 0x01A4,
  25226. Pi: 0x03A0,
  25227. Piwrarmenian: 0x0553,
  25228. Pmonospace: 0xFF30,
  25229. Psi: 0x03A8,
  25230. Psicyrillic: 0x0470,
  25231. Psmall: 0xF770,
  25232. Q: 0x0051,
  25233. Qcircle: 0x24C6,
  25234. Qmonospace: 0xFF31,
  25235. Qsmall: 0xF771,
  25236. R: 0x0052,
  25237. Raarmenian: 0x054C,
  25238. Racute: 0x0154,
  25239. Rcaron: 0x0158,
  25240. Rcedilla: 0x0156,
  25241. Rcircle: 0x24C7,
  25242. Rcommaaccent: 0x0156,
  25243. Rdblgrave: 0x0210,
  25244. Rdotaccent: 0x1E58,
  25245. Rdotbelow: 0x1E5A,
  25246. Rdotbelowmacron: 0x1E5C,
  25247. Reharmenian: 0x0550,
  25248. Rfraktur: 0x211C,
  25249. Rho: 0x03A1,
  25250. Ringsmall: 0xF6FC,
  25251. Rinvertedbreve: 0x0212,
  25252. Rlinebelow: 0x1E5E,
  25253. Rmonospace: 0xFF32,
  25254. Rsmall: 0xF772,
  25255. Rsmallinverted: 0x0281,
  25256. Rsmallinvertedsuperior: 0x02B6,
  25257. S: 0x0053,
  25258. SF010000: 0x250C,
  25259. SF020000: 0x2514,
  25260. SF030000: 0x2510,
  25261. SF040000: 0x2518,
  25262. SF050000: 0x253C,
  25263. SF060000: 0x252C,
  25264. SF070000: 0x2534,
  25265. SF080000: 0x251C,
  25266. SF090000: 0x2524,
  25267. SF100000: 0x2500,
  25268. SF110000: 0x2502,
  25269. SF190000: 0x2561,
  25270. SF200000: 0x2562,
  25271. SF210000: 0x2556,
  25272. SF220000: 0x2555,
  25273. SF230000: 0x2563,
  25274. SF240000: 0x2551,
  25275. SF250000: 0x2557,
  25276. SF260000: 0x255D,
  25277. SF270000: 0x255C,
  25278. SF280000: 0x255B,
  25279. SF360000: 0x255E,
  25280. SF370000: 0x255F,
  25281. SF380000: 0x255A,
  25282. SF390000: 0x2554,
  25283. SF400000: 0x2569,
  25284. SF410000: 0x2566,
  25285. SF420000: 0x2560,
  25286. SF430000: 0x2550,
  25287. SF440000: 0x256C,
  25288. SF450000: 0x2567,
  25289. SF460000: 0x2568,
  25290. SF470000: 0x2564,
  25291. SF480000: 0x2565,
  25292. SF490000: 0x2559,
  25293. SF500000: 0x2558,
  25294. SF510000: 0x2552,
  25295. SF520000: 0x2553,
  25296. SF530000: 0x256B,
  25297. SF540000: 0x256A,
  25298. Sacute: 0x015A,
  25299. Sacutedotaccent: 0x1E64,
  25300. Sampigreek: 0x03E0,
  25301. Scaron: 0x0160,
  25302. Scarondotaccent: 0x1E66,
  25303. Scaronsmall: 0xF6FD,
  25304. Scedilla: 0x015E,
  25305. Schwa: 0x018F,
  25306. Schwacyrillic: 0x04D8,
  25307. Schwadieresiscyrillic: 0x04DA,
  25308. Scircle: 0x24C8,
  25309. Scircumflex: 0x015C,
  25310. Scommaaccent: 0x0218,
  25311. Sdotaccent: 0x1E60,
  25312. Sdotbelow: 0x1E62,
  25313. Sdotbelowdotaccent: 0x1E68,
  25314. Seharmenian: 0x054D,
  25315. Sevenroman: 0x2166,
  25316. Shaarmenian: 0x0547,
  25317. Shacyrillic: 0x0428,
  25318. Shchacyrillic: 0x0429,
  25319. Sheicoptic: 0x03E2,
  25320. Shhacyrillic: 0x04BA,
  25321. Shimacoptic: 0x03EC,
  25322. Sigma: 0x03A3,
  25323. Sixroman: 0x2165,
  25324. Smonospace: 0xFF33,
  25325. Softsigncyrillic: 0x042C,
  25326. Ssmall: 0xF773,
  25327. Stigmagreek: 0x03DA,
  25328. T: 0x0054,
  25329. Tau: 0x03A4,
  25330. Tbar: 0x0166,
  25331. Tcaron: 0x0164,
  25332. Tcedilla: 0x0162,
  25333. Tcircle: 0x24C9,
  25334. Tcircumflexbelow: 0x1E70,
  25335. Tcommaaccent: 0x0162,
  25336. Tdotaccent: 0x1E6A,
  25337. Tdotbelow: 0x1E6C,
  25338. Tecyrillic: 0x0422,
  25339. Tedescendercyrillic: 0x04AC,
  25340. Tenroman: 0x2169,
  25341. Tetsecyrillic: 0x04B4,
  25342. Theta: 0x0398,
  25343. Thook: 0x01AC,
  25344. Thorn: 0x00DE,
  25345. Thornsmall: 0xF7FE,
  25346. Threeroman: 0x2162,
  25347. Tildesmall: 0xF6FE,
  25348. Tiwnarmenian: 0x054F,
  25349. Tlinebelow: 0x1E6E,
  25350. Tmonospace: 0xFF34,
  25351. Toarmenian: 0x0539,
  25352. Tonefive: 0x01BC,
  25353. Tonesix: 0x0184,
  25354. Tonetwo: 0x01A7,
  25355. Tretroflexhook: 0x01AE,
  25356. Tsecyrillic: 0x0426,
  25357. Tshecyrillic: 0x040B,
  25358. Tsmall: 0xF774,
  25359. Twelveroman: 0x216B,
  25360. Tworoman: 0x2161,
  25361. U: 0x0055,
  25362. Uacute: 0x00DA,
  25363. Uacutesmall: 0xF7FA,
  25364. Ubreve: 0x016C,
  25365. Ucaron: 0x01D3,
  25366. Ucircle: 0x24CA,
  25367. Ucircumflex: 0x00DB,
  25368. Ucircumflexbelow: 0x1E76,
  25369. Ucircumflexsmall: 0xF7FB,
  25370. Ucyrillic: 0x0423,
  25371. Udblacute: 0x0170,
  25372. Udblgrave: 0x0214,
  25373. Udieresis: 0x00DC,
  25374. Udieresisacute: 0x01D7,
  25375. Udieresisbelow: 0x1E72,
  25376. Udieresiscaron: 0x01D9,
  25377. Udieresiscyrillic: 0x04F0,
  25378. Udieresisgrave: 0x01DB,
  25379. Udieresismacron: 0x01D5,
  25380. Udieresissmall: 0xF7FC,
  25381. Udotbelow: 0x1EE4,
  25382. Ugrave: 0x00D9,
  25383. Ugravesmall: 0xF7F9,
  25384. Uhookabove: 0x1EE6,
  25385. Uhorn: 0x01AF,
  25386. Uhornacute: 0x1EE8,
  25387. Uhorndotbelow: 0x1EF0,
  25388. Uhorngrave: 0x1EEA,
  25389. Uhornhookabove: 0x1EEC,
  25390. Uhorntilde: 0x1EEE,
  25391. Uhungarumlaut: 0x0170,
  25392. Uhungarumlautcyrillic: 0x04F2,
  25393. Uinvertedbreve: 0x0216,
  25394. Ukcyrillic: 0x0478,
  25395. Umacron: 0x016A,
  25396. Umacroncyrillic: 0x04EE,
  25397. Umacrondieresis: 0x1E7A,
  25398. Umonospace: 0xFF35,
  25399. Uogonek: 0x0172,
  25400. Upsilon: 0x03A5,
  25401. Upsilon1: 0x03D2,
  25402. Upsilonacutehooksymbolgreek: 0x03D3,
  25403. Upsilonafrican: 0x01B1,
  25404. Upsilondieresis: 0x03AB,
  25405. Upsilondieresishooksymbolgreek: 0x03D4,
  25406. Upsilonhooksymbol: 0x03D2,
  25407. Upsilontonos: 0x038E,
  25408. Uring: 0x016E,
  25409. Ushortcyrillic: 0x040E,
  25410. Usmall: 0xF775,
  25411. Ustraightcyrillic: 0x04AE,
  25412. Ustraightstrokecyrillic: 0x04B0,
  25413. Utilde: 0x0168,
  25414. Utildeacute: 0x1E78,
  25415. Utildebelow: 0x1E74,
  25416. V: 0x0056,
  25417. Vcircle: 0x24CB,
  25418. Vdotbelow: 0x1E7E,
  25419. Vecyrillic: 0x0412,
  25420. Vewarmenian: 0x054E,
  25421. Vhook: 0x01B2,
  25422. Vmonospace: 0xFF36,
  25423. Voarmenian: 0x0548,
  25424. Vsmall: 0xF776,
  25425. Vtilde: 0x1E7C,
  25426. W: 0x0057,
  25427. Wacute: 0x1E82,
  25428. Wcircle: 0x24CC,
  25429. Wcircumflex: 0x0174,
  25430. Wdieresis: 0x1E84,
  25431. Wdotaccent: 0x1E86,
  25432. Wdotbelow: 0x1E88,
  25433. Wgrave: 0x1E80,
  25434. Wmonospace: 0xFF37,
  25435. Wsmall: 0xF777,
  25436. X: 0x0058,
  25437. Xcircle: 0x24CD,
  25438. Xdieresis: 0x1E8C,
  25439. Xdotaccent: 0x1E8A,
  25440. Xeharmenian: 0x053D,
  25441. Xi: 0x039E,
  25442. Xmonospace: 0xFF38,
  25443. Xsmall: 0xF778,
  25444. Y: 0x0059,
  25445. Yacute: 0x00DD,
  25446. Yacutesmall: 0xF7FD,
  25447. Yatcyrillic: 0x0462,
  25448. Ycircle: 0x24CE,
  25449. Ycircumflex: 0x0176,
  25450. Ydieresis: 0x0178,
  25451. Ydieresissmall: 0xF7FF,
  25452. Ydotaccent: 0x1E8E,
  25453. Ydotbelow: 0x1EF4,
  25454. Yericyrillic: 0x042B,
  25455. Yerudieresiscyrillic: 0x04F8,
  25456. Ygrave: 0x1EF2,
  25457. Yhook: 0x01B3,
  25458. Yhookabove: 0x1EF6,
  25459. Yiarmenian: 0x0545,
  25460. Yicyrillic: 0x0407,
  25461. Yiwnarmenian: 0x0552,
  25462. Ymonospace: 0xFF39,
  25463. Ysmall: 0xF779,
  25464. Ytilde: 0x1EF8,
  25465. Yusbigcyrillic: 0x046A,
  25466. Yusbigiotifiedcyrillic: 0x046C,
  25467. Yuslittlecyrillic: 0x0466,
  25468. Yuslittleiotifiedcyrillic: 0x0468,
  25469. Z: 0x005A,
  25470. Zaarmenian: 0x0536,
  25471. Zacute: 0x0179,
  25472. Zcaron: 0x017D,
  25473. Zcaronsmall: 0xF6FF,
  25474. Zcircle: 0x24CF,
  25475. Zcircumflex: 0x1E90,
  25476. Zdot: 0x017B,
  25477. Zdotaccent: 0x017B,
  25478. Zdotbelow: 0x1E92,
  25479. Zecyrillic: 0x0417,
  25480. Zedescendercyrillic: 0x0498,
  25481. Zedieresiscyrillic: 0x04DE,
  25482. Zeta: 0x0396,
  25483. Zhearmenian: 0x053A,
  25484. Zhebrevecyrillic: 0x04C1,
  25485. Zhecyrillic: 0x0416,
  25486. Zhedescendercyrillic: 0x0496,
  25487. Zhedieresiscyrillic: 0x04DC,
  25488. Zlinebelow: 0x1E94,
  25489. Zmonospace: 0xFF3A,
  25490. Zsmall: 0xF77A,
  25491. Zstroke: 0x01B5,
  25492. a: 0x0061,
  25493. aabengali: 0x0986,
  25494. aacute: 0x00E1,
  25495. aadeva: 0x0906,
  25496. aagujarati: 0x0A86,
  25497. aagurmukhi: 0x0A06,
  25498. aamatragurmukhi: 0x0A3E,
  25499. aarusquare: 0x3303,
  25500. aavowelsignbengali: 0x09BE,
  25501. aavowelsigndeva: 0x093E,
  25502. aavowelsigngujarati: 0x0ABE,
  25503. abbreviationmarkarmenian: 0x055F,
  25504. abbreviationsigndeva: 0x0970,
  25505. abengali: 0x0985,
  25506. abopomofo: 0x311A,
  25507. abreve: 0x0103,
  25508. abreveacute: 0x1EAF,
  25509. abrevecyrillic: 0x04D1,
  25510. abrevedotbelow: 0x1EB7,
  25511. abrevegrave: 0x1EB1,
  25512. abrevehookabove: 0x1EB3,
  25513. abrevetilde: 0x1EB5,
  25514. acaron: 0x01CE,
  25515. acircle: 0x24D0,
  25516. acircumflex: 0x00E2,
  25517. acircumflexacute: 0x1EA5,
  25518. acircumflexdotbelow: 0x1EAD,
  25519. acircumflexgrave: 0x1EA7,
  25520. acircumflexhookabove: 0x1EA9,
  25521. acircumflextilde: 0x1EAB,
  25522. acute: 0x00B4,
  25523. acutebelowcmb: 0x0317,
  25524. acutecmb: 0x0301,
  25525. acutecomb: 0x0301,
  25526. acutedeva: 0x0954,
  25527. acutelowmod: 0x02CF,
  25528. acutetonecmb: 0x0341,
  25529. acyrillic: 0x0430,
  25530. adblgrave: 0x0201,
  25531. addakgurmukhi: 0x0A71,
  25532. adeva: 0x0905,
  25533. adieresis: 0x00E4,
  25534. adieresiscyrillic: 0x04D3,
  25535. adieresismacron: 0x01DF,
  25536. adotbelow: 0x1EA1,
  25537. adotmacron: 0x01E1,
  25538. ae: 0x00E6,
  25539. aeacute: 0x01FD,
  25540. aekorean: 0x3150,
  25541. aemacron: 0x01E3,
  25542. afii00208: 0x2015,
  25543. afii08941: 0x20A4,
  25544. afii10017: 0x0410,
  25545. afii10018: 0x0411,
  25546. afii10019: 0x0412,
  25547. afii10020: 0x0413,
  25548. afii10021: 0x0414,
  25549. afii10022: 0x0415,
  25550. afii10023: 0x0401,
  25551. afii10024: 0x0416,
  25552. afii10025: 0x0417,
  25553. afii10026: 0x0418,
  25554. afii10027: 0x0419,
  25555. afii10028: 0x041A,
  25556. afii10029: 0x041B,
  25557. afii10030: 0x041C,
  25558. afii10031: 0x041D,
  25559. afii10032: 0x041E,
  25560. afii10033: 0x041F,
  25561. afii10034: 0x0420,
  25562. afii10035: 0x0421,
  25563. afii10036: 0x0422,
  25564. afii10037: 0x0423,
  25565. afii10038: 0x0424,
  25566. afii10039: 0x0425,
  25567. afii10040: 0x0426,
  25568. afii10041: 0x0427,
  25569. afii10042: 0x0428,
  25570. afii10043: 0x0429,
  25571. afii10044: 0x042A,
  25572. afii10045: 0x042B,
  25573. afii10046: 0x042C,
  25574. afii10047: 0x042D,
  25575. afii10048: 0x042E,
  25576. afii10049: 0x042F,
  25577. afii10050: 0x0490,
  25578. afii10051: 0x0402,
  25579. afii10052: 0x0403,
  25580. afii10053: 0x0404,
  25581. afii10054: 0x0405,
  25582. afii10055: 0x0406,
  25583. afii10056: 0x0407,
  25584. afii10057: 0x0408,
  25585. afii10058: 0x0409,
  25586. afii10059: 0x040A,
  25587. afii10060: 0x040B,
  25588. afii10061: 0x040C,
  25589. afii10062: 0x040E,
  25590. afii10063: 0xF6C4,
  25591. afii10064: 0xF6C5,
  25592. afii10065: 0x0430,
  25593. afii10066: 0x0431,
  25594. afii10067: 0x0432,
  25595. afii10068: 0x0433,
  25596. afii10069: 0x0434,
  25597. afii10070: 0x0435,
  25598. afii10071: 0x0451,
  25599. afii10072: 0x0436,
  25600. afii10073: 0x0437,
  25601. afii10074: 0x0438,
  25602. afii10075: 0x0439,
  25603. afii10076: 0x043A,
  25604. afii10077: 0x043B,
  25605. afii10078: 0x043C,
  25606. afii10079: 0x043D,
  25607. afii10080: 0x043E,
  25608. afii10081: 0x043F,
  25609. afii10082: 0x0440,
  25610. afii10083: 0x0441,
  25611. afii10084: 0x0442,
  25612. afii10085: 0x0443,
  25613. afii10086: 0x0444,
  25614. afii10087: 0x0445,
  25615. afii10088: 0x0446,
  25616. afii10089: 0x0447,
  25617. afii10090: 0x0448,
  25618. afii10091: 0x0449,
  25619. afii10092: 0x044A,
  25620. afii10093: 0x044B,
  25621. afii10094: 0x044C,
  25622. afii10095: 0x044D,
  25623. afii10096: 0x044E,
  25624. afii10097: 0x044F,
  25625. afii10098: 0x0491,
  25626. afii10099: 0x0452,
  25627. afii10100: 0x0453,
  25628. afii10101: 0x0454,
  25629. afii10102: 0x0455,
  25630. afii10103: 0x0456,
  25631. afii10104: 0x0457,
  25632. afii10105: 0x0458,
  25633. afii10106: 0x0459,
  25634. afii10107: 0x045A,
  25635. afii10108: 0x045B,
  25636. afii10109: 0x045C,
  25637. afii10110: 0x045E,
  25638. afii10145: 0x040F,
  25639. afii10146: 0x0462,
  25640. afii10147: 0x0472,
  25641. afii10148: 0x0474,
  25642. afii10192: 0xF6C6,
  25643. afii10193: 0x045F,
  25644. afii10194: 0x0463,
  25645. afii10195: 0x0473,
  25646. afii10196: 0x0475,
  25647. afii10831: 0xF6C7,
  25648. afii10832: 0xF6C8,
  25649. afii10846: 0x04D9,
  25650. afii299: 0x200E,
  25651. afii300: 0x200F,
  25652. afii301: 0x200D,
  25653. afii57381: 0x066A,
  25654. afii57388: 0x060C,
  25655. afii57392: 0x0660,
  25656. afii57393: 0x0661,
  25657. afii57394: 0x0662,
  25658. afii57395: 0x0663,
  25659. afii57396: 0x0664,
  25660. afii57397: 0x0665,
  25661. afii57398: 0x0666,
  25662. afii57399: 0x0667,
  25663. afii57400: 0x0668,
  25664. afii57401: 0x0669,
  25665. afii57403: 0x061B,
  25666. afii57407: 0x061F,
  25667. afii57409: 0x0621,
  25668. afii57410: 0x0622,
  25669. afii57411: 0x0623,
  25670. afii57412: 0x0624,
  25671. afii57413: 0x0625,
  25672. afii57414: 0x0626,
  25673. afii57415: 0x0627,
  25674. afii57416: 0x0628,
  25675. afii57417: 0x0629,
  25676. afii57418: 0x062A,
  25677. afii57419: 0x062B,
  25678. afii57420: 0x062C,
  25679. afii57421: 0x062D,
  25680. afii57422: 0x062E,
  25681. afii57423: 0x062F,
  25682. afii57424: 0x0630,
  25683. afii57425: 0x0631,
  25684. afii57426: 0x0632,
  25685. afii57427: 0x0633,
  25686. afii57428: 0x0634,
  25687. afii57429: 0x0635,
  25688. afii57430: 0x0636,
  25689. afii57431: 0x0637,
  25690. afii57432: 0x0638,
  25691. afii57433: 0x0639,
  25692. afii57434: 0x063A,
  25693. afii57440: 0x0640,
  25694. afii57441: 0x0641,
  25695. afii57442: 0x0642,
  25696. afii57443: 0x0643,
  25697. afii57444: 0x0644,
  25698. afii57445: 0x0645,
  25699. afii57446: 0x0646,
  25700. afii57448: 0x0648,
  25701. afii57449: 0x0649,
  25702. afii57450: 0x064A,
  25703. afii57451: 0x064B,
  25704. afii57452: 0x064C,
  25705. afii57453: 0x064D,
  25706. afii57454: 0x064E,
  25707. afii57455: 0x064F,
  25708. afii57456: 0x0650,
  25709. afii57457: 0x0651,
  25710. afii57458: 0x0652,
  25711. afii57470: 0x0647,
  25712. afii57505: 0x06A4,
  25713. afii57506: 0x067E,
  25714. afii57507: 0x0686,
  25715. afii57508: 0x0698,
  25716. afii57509: 0x06AF,
  25717. afii57511: 0x0679,
  25718. afii57512: 0x0688,
  25719. afii57513: 0x0691,
  25720. afii57514: 0x06BA,
  25721. afii57519: 0x06D2,
  25722. afii57534: 0x06D5,
  25723. afii57636: 0x20AA,
  25724. afii57645: 0x05BE,
  25725. afii57658: 0x05C3,
  25726. afii57664: 0x05D0,
  25727. afii57665: 0x05D1,
  25728. afii57666: 0x05D2,
  25729. afii57667: 0x05D3,
  25730. afii57668: 0x05D4,
  25731. afii57669: 0x05D5,
  25732. afii57670: 0x05D6,
  25733. afii57671: 0x05D7,
  25734. afii57672: 0x05D8,
  25735. afii57673: 0x05D9,
  25736. afii57674: 0x05DA,
  25737. afii57675: 0x05DB,
  25738. afii57676: 0x05DC,
  25739. afii57677: 0x05DD,
  25740. afii57678: 0x05DE,
  25741. afii57679: 0x05DF,
  25742. afii57680: 0x05E0,
  25743. afii57681: 0x05E1,
  25744. afii57682: 0x05E2,
  25745. afii57683: 0x05E3,
  25746. afii57684: 0x05E4,
  25747. afii57685: 0x05E5,
  25748. afii57686: 0x05E6,
  25749. afii57687: 0x05E7,
  25750. afii57688: 0x05E8,
  25751. afii57689: 0x05E9,
  25752. afii57690: 0x05EA,
  25753. afii57694: 0xFB2A,
  25754. afii57695: 0xFB2B,
  25755. afii57700: 0xFB4B,
  25756. afii57705: 0xFB1F,
  25757. afii57716: 0x05F0,
  25758. afii57717: 0x05F1,
  25759. afii57718: 0x05F2,
  25760. afii57723: 0xFB35,
  25761. afii57793: 0x05B4,
  25762. afii57794: 0x05B5,
  25763. afii57795: 0x05B6,
  25764. afii57796: 0x05BB,
  25765. afii57797: 0x05B8,
  25766. afii57798: 0x05B7,
  25767. afii57799: 0x05B0,
  25768. afii57800: 0x05B2,
  25769. afii57801: 0x05B1,
  25770. afii57802: 0x05B3,
  25771. afii57803: 0x05C2,
  25772. afii57804: 0x05C1,
  25773. afii57806: 0x05B9,
  25774. afii57807: 0x05BC,
  25775. afii57839: 0x05BD,
  25776. afii57841: 0x05BF,
  25777. afii57842: 0x05C0,
  25778. afii57929: 0x02BC,
  25779. afii61248: 0x2105,
  25780. afii61289: 0x2113,
  25781. afii61352: 0x2116,
  25782. afii61573: 0x202C,
  25783. afii61574: 0x202D,
  25784. afii61575: 0x202E,
  25785. afii61664: 0x200C,
  25786. afii63167: 0x066D,
  25787. afii64937: 0x02BD,
  25788. agrave: 0x00E0,
  25789. agujarati: 0x0A85,
  25790. agurmukhi: 0x0A05,
  25791. ahiragana: 0x3042,
  25792. ahookabove: 0x1EA3,
  25793. aibengali: 0x0990,
  25794. aibopomofo: 0x311E,
  25795. aideva: 0x0910,
  25796. aiecyrillic: 0x04D5,
  25797. aigujarati: 0x0A90,
  25798. aigurmukhi: 0x0A10,
  25799. aimatragurmukhi: 0x0A48,
  25800. ainarabic: 0x0639,
  25801. ainfinalarabic: 0xFECA,
  25802. aininitialarabic: 0xFECB,
  25803. ainmedialarabic: 0xFECC,
  25804. ainvertedbreve: 0x0203,
  25805. aivowelsignbengali: 0x09C8,
  25806. aivowelsigndeva: 0x0948,
  25807. aivowelsigngujarati: 0x0AC8,
  25808. akatakana: 0x30A2,
  25809. akatakanahalfwidth: 0xFF71,
  25810. akorean: 0x314F,
  25811. alef: 0x05D0,
  25812. alefarabic: 0x0627,
  25813. alefdageshhebrew: 0xFB30,
  25814. aleffinalarabic: 0xFE8E,
  25815. alefhamzaabovearabic: 0x0623,
  25816. alefhamzaabovefinalarabic: 0xFE84,
  25817. alefhamzabelowarabic: 0x0625,
  25818. alefhamzabelowfinalarabic: 0xFE88,
  25819. alefhebrew: 0x05D0,
  25820. aleflamedhebrew: 0xFB4F,
  25821. alefmaddaabovearabic: 0x0622,
  25822. alefmaddaabovefinalarabic: 0xFE82,
  25823. alefmaksuraarabic: 0x0649,
  25824. alefmaksurafinalarabic: 0xFEF0,
  25825. alefmaksurainitialarabic: 0xFEF3,
  25826. alefmaksuramedialarabic: 0xFEF4,
  25827. alefpatahhebrew: 0xFB2E,
  25828. alefqamatshebrew: 0xFB2F,
  25829. aleph: 0x2135,
  25830. allequal: 0x224C,
  25831. alpha: 0x03B1,
  25832. alphatonos: 0x03AC,
  25833. amacron: 0x0101,
  25834. amonospace: 0xFF41,
  25835. ampersand: 0x0026,
  25836. ampersandmonospace: 0xFF06,
  25837. ampersandsmall: 0xF726,
  25838. amsquare: 0x33C2,
  25839. anbopomofo: 0x3122,
  25840. angbopomofo: 0x3124,
  25841. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  25842. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  25843. angkhankhuthai: 0x0E5A,
  25844. angle: 0x2220,
  25845. anglebracketleft: 0x3008,
  25846. anglebracketleftvertical: 0xFE3F,
  25847. anglebracketright: 0x3009,
  25848. anglebracketrightvertical: 0xFE40,
  25849. angleleft: 0x2329,
  25850. angleright: 0x232A,
  25851. angstrom: 0x212B,
  25852. anoteleia: 0x0387,
  25853. anudattadeva: 0x0952,
  25854. anusvarabengali: 0x0982,
  25855. anusvaradeva: 0x0902,
  25856. anusvaragujarati: 0x0A82,
  25857. aogonek: 0x0105,
  25858. apaatosquare: 0x3300,
  25859. aparen: 0x249C,
  25860. apostrophearmenian: 0x055A,
  25861. apostrophemod: 0x02BC,
  25862. apple: 0xF8FF,
  25863. approaches: 0x2250,
  25864. approxequal: 0x2248,
  25865. approxequalorimage: 0x2252,
  25866. approximatelyequal: 0x2245,
  25867. araeaekorean: 0x318E,
  25868. araeakorean: 0x318D,
  25869. arc: 0x2312,
  25870. arighthalfring: 0x1E9A,
  25871. aring: 0x00E5,
  25872. aringacute: 0x01FB,
  25873. aringbelow: 0x1E01,
  25874. arrowboth: 0x2194,
  25875. arrowdashdown: 0x21E3,
  25876. arrowdashleft: 0x21E0,
  25877. arrowdashright: 0x21E2,
  25878. arrowdashup: 0x21E1,
  25879. arrowdblboth: 0x21D4,
  25880. arrowdbldown: 0x21D3,
  25881. arrowdblleft: 0x21D0,
  25882. arrowdblright: 0x21D2,
  25883. arrowdblup: 0x21D1,
  25884. arrowdown: 0x2193,
  25885. arrowdownleft: 0x2199,
  25886. arrowdownright: 0x2198,
  25887. arrowdownwhite: 0x21E9,
  25888. arrowheaddownmod: 0x02C5,
  25889. arrowheadleftmod: 0x02C2,
  25890. arrowheadrightmod: 0x02C3,
  25891. arrowheadupmod: 0x02C4,
  25892. arrowhorizex: 0xF8E7,
  25893. arrowleft: 0x2190,
  25894. arrowleftdbl: 0x21D0,
  25895. arrowleftdblstroke: 0x21CD,
  25896. arrowleftoverright: 0x21C6,
  25897. arrowleftwhite: 0x21E6,
  25898. arrowright: 0x2192,
  25899. arrowrightdblstroke: 0x21CF,
  25900. arrowrightheavy: 0x279E,
  25901. arrowrightoverleft: 0x21C4,
  25902. arrowrightwhite: 0x21E8,
  25903. arrowtableft: 0x21E4,
  25904. arrowtabright: 0x21E5,
  25905. arrowup: 0x2191,
  25906. arrowupdn: 0x2195,
  25907. arrowupdnbse: 0x21A8,
  25908. arrowupdownbase: 0x21A8,
  25909. arrowupleft: 0x2196,
  25910. arrowupleftofdown: 0x21C5,
  25911. arrowupright: 0x2197,
  25912. arrowupwhite: 0x21E7,
  25913. arrowvertex: 0xF8E6,
  25914. asciicircum: 0x005E,
  25915. asciicircummonospace: 0xFF3E,
  25916. asciitilde: 0x007E,
  25917. asciitildemonospace: 0xFF5E,
  25918. ascript: 0x0251,
  25919. ascriptturned: 0x0252,
  25920. asmallhiragana: 0x3041,
  25921. asmallkatakana: 0x30A1,
  25922. asmallkatakanahalfwidth: 0xFF67,
  25923. asterisk: 0x002A,
  25924. asteriskaltonearabic: 0x066D,
  25925. asteriskarabic: 0x066D,
  25926. asteriskmath: 0x2217,
  25927. asteriskmonospace: 0xFF0A,
  25928. asterisksmall: 0xFE61,
  25929. asterism: 0x2042,
  25930. asuperior: 0xF6E9,
  25931. asymptoticallyequal: 0x2243,
  25932. at: 0x0040,
  25933. atilde: 0x00E3,
  25934. atmonospace: 0xFF20,
  25935. atsmall: 0xFE6B,
  25936. aturned: 0x0250,
  25937. aubengali: 0x0994,
  25938. aubopomofo: 0x3120,
  25939. audeva: 0x0914,
  25940. augujarati: 0x0A94,
  25941. augurmukhi: 0x0A14,
  25942. aulengthmarkbengali: 0x09D7,
  25943. aumatragurmukhi: 0x0A4C,
  25944. auvowelsignbengali: 0x09CC,
  25945. auvowelsigndeva: 0x094C,
  25946. auvowelsigngujarati: 0x0ACC,
  25947. avagrahadeva: 0x093D,
  25948. aybarmenian: 0x0561,
  25949. ayin: 0x05E2,
  25950. ayinaltonehebrew: 0xFB20,
  25951. ayinhebrew: 0x05E2,
  25952. b: 0x0062,
  25953. babengali: 0x09AC,
  25954. backslash: 0x005C,
  25955. backslashmonospace: 0xFF3C,
  25956. badeva: 0x092C,
  25957. bagujarati: 0x0AAC,
  25958. bagurmukhi: 0x0A2C,
  25959. bahiragana: 0x3070,
  25960. bahtthai: 0x0E3F,
  25961. bakatakana: 0x30D0,
  25962. bar: 0x007C,
  25963. barmonospace: 0xFF5C,
  25964. bbopomofo: 0x3105,
  25965. bcircle: 0x24D1,
  25966. bdotaccent: 0x1E03,
  25967. bdotbelow: 0x1E05,
  25968. beamedsixteenthnotes: 0x266C,
  25969. because: 0x2235,
  25970. becyrillic: 0x0431,
  25971. beharabic: 0x0628,
  25972. behfinalarabic: 0xFE90,
  25973. behinitialarabic: 0xFE91,
  25974. behiragana: 0x3079,
  25975. behmedialarabic: 0xFE92,
  25976. behmeeminitialarabic: 0xFC9F,
  25977. behmeemisolatedarabic: 0xFC08,
  25978. behnoonfinalarabic: 0xFC6D,
  25979. bekatakana: 0x30D9,
  25980. benarmenian: 0x0562,
  25981. bet: 0x05D1,
  25982. beta: 0x03B2,
  25983. betasymbolgreek: 0x03D0,
  25984. betdagesh: 0xFB31,
  25985. betdageshhebrew: 0xFB31,
  25986. bethebrew: 0x05D1,
  25987. betrafehebrew: 0xFB4C,
  25988. bhabengali: 0x09AD,
  25989. bhadeva: 0x092D,
  25990. bhagujarati: 0x0AAD,
  25991. bhagurmukhi: 0x0A2D,
  25992. bhook: 0x0253,
  25993. bihiragana: 0x3073,
  25994. bikatakana: 0x30D3,
  25995. bilabialclick: 0x0298,
  25996. bindigurmukhi: 0x0A02,
  25997. birusquare: 0x3331,
  25998. blackcircle: 0x25CF,
  25999. blackdiamond: 0x25C6,
  26000. blackdownpointingtriangle: 0x25BC,
  26001. blackleftpointingpointer: 0x25C4,
  26002. blackleftpointingtriangle: 0x25C0,
  26003. blacklenticularbracketleft: 0x3010,
  26004. blacklenticularbracketleftvertical: 0xFE3B,
  26005. blacklenticularbracketright: 0x3011,
  26006. blacklenticularbracketrightvertical: 0xFE3C,
  26007. blacklowerlefttriangle: 0x25E3,
  26008. blacklowerrighttriangle: 0x25E2,
  26009. blackrectangle: 0x25AC,
  26010. blackrightpointingpointer: 0x25BA,
  26011. blackrightpointingtriangle: 0x25B6,
  26012. blacksmallsquare: 0x25AA,
  26013. blacksmilingface: 0x263B,
  26014. blacksquare: 0x25A0,
  26015. blackstar: 0x2605,
  26016. blackupperlefttriangle: 0x25E4,
  26017. blackupperrighttriangle: 0x25E5,
  26018. blackuppointingsmalltriangle: 0x25B4,
  26019. blackuppointingtriangle: 0x25B2,
  26020. blank: 0x2423,
  26021. blinebelow: 0x1E07,
  26022. block: 0x2588,
  26023. bmonospace: 0xFF42,
  26024. bobaimaithai: 0x0E1A,
  26025. bohiragana: 0x307C,
  26026. bokatakana: 0x30DC,
  26027. bparen: 0x249D,
  26028. bqsquare: 0x33C3,
  26029. braceex: 0xF8F4,
  26030. braceleft: 0x007B,
  26031. braceleftbt: 0xF8F3,
  26032. braceleftmid: 0xF8F2,
  26033. braceleftmonospace: 0xFF5B,
  26034. braceleftsmall: 0xFE5B,
  26035. bracelefttp: 0xF8F1,
  26036. braceleftvertical: 0xFE37,
  26037. braceright: 0x007D,
  26038. bracerightbt: 0xF8FE,
  26039. bracerightmid: 0xF8FD,
  26040. bracerightmonospace: 0xFF5D,
  26041. bracerightsmall: 0xFE5C,
  26042. bracerighttp: 0xF8FC,
  26043. bracerightvertical: 0xFE38,
  26044. bracketleft: 0x005B,
  26045. bracketleftbt: 0xF8F0,
  26046. bracketleftex: 0xF8EF,
  26047. bracketleftmonospace: 0xFF3B,
  26048. bracketlefttp: 0xF8EE,
  26049. bracketright: 0x005D,
  26050. bracketrightbt: 0xF8FB,
  26051. bracketrightex: 0xF8FA,
  26052. bracketrightmonospace: 0xFF3D,
  26053. bracketrighttp: 0xF8F9,
  26054. breve: 0x02D8,
  26055. brevebelowcmb: 0x032E,
  26056. brevecmb: 0x0306,
  26057. breveinvertedbelowcmb: 0x032F,
  26058. breveinvertedcmb: 0x0311,
  26059. breveinverteddoublecmb: 0x0361,
  26060. bridgebelowcmb: 0x032A,
  26061. bridgeinvertedbelowcmb: 0x033A,
  26062. brokenbar: 0x00A6,
  26063. bstroke: 0x0180,
  26064. bsuperior: 0xF6EA,
  26065. btopbar: 0x0183,
  26066. buhiragana: 0x3076,
  26067. bukatakana: 0x30D6,
  26068. bullet: 0x2022,
  26069. bulletinverse: 0x25D8,
  26070. bulletoperator: 0x2219,
  26071. bullseye: 0x25CE,
  26072. c: 0x0063,
  26073. caarmenian: 0x056E,
  26074. cabengali: 0x099A,
  26075. cacute: 0x0107,
  26076. cadeva: 0x091A,
  26077. cagujarati: 0x0A9A,
  26078. cagurmukhi: 0x0A1A,
  26079. calsquare: 0x3388,
  26080. candrabindubengali: 0x0981,
  26081. candrabinducmb: 0x0310,
  26082. candrabindudeva: 0x0901,
  26083. candrabindugujarati: 0x0A81,
  26084. capslock: 0x21EA,
  26085. careof: 0x2105,
  26086. caron: 0x02C7,
  26087. caronbelowcmb: 0x032C,
  26088. caroncmb: 0x030C,
  26089. carriagereturn: 0x21B5,
  26090. cbopomofo: 0x3118,
  26091. ccaron: 0x010D,
  26092. ccedilla: 0x00E7,
  26093. ccedillaacute: 0x1E09,
  26094. ccircle: 0x24D2,
  26095. ccircumflex: 0x0109,
  26096. ccurl: 0x0255,
  26097. cdot: 0x010B,
  26098. cdotaccent: 0x010B,
  26099. cdsquare: 0x33C5,
  26100. cedilla: 0x00B8,
  26101. cedillacmb: 0x0327,
  26102. cent: 0x00A2,
  26103. centigrade: 0x2103,
  26104. centinferior: 0xF6DF,
  26105. centmonospace: 0xFFE0,
  26106. centoldstyle: 0xF7A2,
  26107. centsuperior: 0xF6E0,
  26108. chaarmenian: 0x0579,
  26109. chabengali: 0x099B,
  26110. chadeva: 0x091B,
  26111. chagujarati: 0x0A9B,
  26112. chagurmukhi: 0x0A1B,
  26113. chbopomofo: 0x3114,
  26114. cheabkhasiancyrillic: 0x04BD,
  26115. checkmark: 0x2713,
  26116. checyrillic: 0x0447,
  26117. chedescenderabkhasiancyrillic: 0x04BF,
  26118. chedescendercyrillic: 0x04B7,
  26119. chedieresiscyrillic: 0x04F5,
  26120. cheharmenian: 0x0573,
  26121. chekhakassiancyrillic: 0x04CC,
  26122. cheverticalstrokecyrillic: 0x04B9,
  26123. chi: 0x03C7,
  26124. chieuchacirclekorean: 0x3277,
  26125. chieuchaparenkorean: 0x3217,
  26126. chieuchcirclekorean: 0x3269,
  26127. chieuchkorean: 0x314A,
  26128. chieuchparenkorean: 0x3209,
  26129. chochangthai: 0x0E0A,
  26130. chochanthai: 0x0E08,
  26131. chochingthai: 0x0E09,
  26132. chochoethai: 0x0E0C,
  26133. chook: 0x0188,
  26134. cieucacirclekorean: 0x3276,
  26135. cieucaparenkorean: 0x3216,
  26136. cieuccirclekorean: 0x3268,
  26137. cieuckorean: 0x3148,
  26138. cieucparenkorean: 0x3208,
  26139. cieucuparenkorean: 0x321C,
  26140. circle: 0x25CB,
  26141. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  26142. circlemultiply: 0x2297,
  26143. circleot: 0x2299,
  26144. circleplus: 0x2295,
  26145. circlepostalmark: 0x3036,
  26146. circlewithlefthalfblack: 0x25D0,
  26147. circlewithrighthalfblack: 0x25D1,
  26148. circumflex: 0x02C6,
  26149. circumflexbelowcmb: 0x032D,
  26150. circumflexcmb: 0x0302,
  26151. clear: 0x2327,
  26152. clickalveolar: 0x01C2,
  26153. clickdental: 0x01C0,
  26154. clicklateral: 0x01C1,
  26155. clickretroflex: 0x01C3,
  26156. club: 0x2663,
  26157. clubsuitblack: 0x2663,
  26158. clubsuitwhite: 0x2667,
  26159. cmcubedsquare: 0x33A4,
  26160. cmonospace: 0xFF43,
  26161. cmsquaredsquare: 0x33A0,
  26162. coarmenian: 0x0581,
  26163. colon: 0x003A,
  26164. colonmonetary: 0x20A1,
  26165. colonmonospace: 0xFF1A,
  26166. colonsign: 0x20A1,
  26167. colonsmall: 0xFE55,
  26168. colontriangularhalfmod: 0x02D1,
  26169. colontriangularmod: 0x02D0,
  26170. comma: 0x002C,
  26171. commaabovecmb: 0x0313,
  26172. commaaboverightcmb: 0x0315,
  26173. commaaccent: 0xF6C3,
  26174. commaarabic: 0x060C,
  26175. commaarmenian: 0x055D,
  26176. commainferior: 0xF6E1,
  26177. commamonospace: 0xFF0C,
  26178. commareversedabovecmb: 0x0314,
  26179. commareversedmod: 0x02BD,
  26180. commasmall: 0xFE50,
  26181. commasuperior: 0xF6E2,
  26182. commaturnedabovecmb: 0x0312,
  26183. commaturnedmod: 0x02BB,
  26184. compass: 0x263C,
  26185. congruent: 0x2245,
  26186. contourintegral: 0x222E,
  26187. control: 0x2303,
  26188. controlACK: 0x0006,
  26189. controlBEL: 0x0007,
  26190. controlBS: 0x0008,
  26191. controlCAN: 0x0018,
  26192. controlCR: 0x000D,
  26193. controlDC1: 0x0011,
  26194. controlDC2: 0x0012,
  26195. controlDC3: 0x0013,
  26196. controlDC4: 0x0014,
  26197. controlDEL: 0x007F,
  26198. controlDLE: 0x0010,
  26199. controlEM: 0x0019,
  26200. controlENQ: 0x0005,
  26201. controlEOT: 0x0004,
  26202. controlESC: 0x001B,
  26203. controlETB: 0x0017,
  26204. controlETX: 0x0003,
  26205. controlFF: 0x000C,
  26206. controlFS: 0x001C,
  26207. controlGS: 0x001D,
  26208. controlHT: 0x0009,
  26209. controlLF: 0x000A,
  26210. controlNAK: 0x0015,
  26211. controlRS: 0x001E,
  26212. controlSI: 0x000F,
  26213. controlSO: 0x000E,
  26214. controlSOT: 0x0002,
  26215. controlSTX: 0x0001,
  26216. controlSUB: 0x001A,
  26217. controlSYN: 0x0016,
  26218. controlUS: 0x001F,
  26219. controlVT: 0x000B,
  26220. copyright: 0x00A9,
  26221. copyrightsans: 0xF8E9,
  26222. copyrightserif: 0xF6D9,
  26223. cornerbracketleft: 0x300C,
  26224. cornerbracketlefthalfwidth: 0xFF62,
  26225. cornerbracketleftvertical: 0xFE41,
  26226. cornerbracketright: 0x300D,
  26227. cornerbracketrighthalfwidth: 0xFF63,
  26228. cornerbracketrightvertical: 0xFE42,
  26229. corporationsquare: 0x337F,
  26230. cosquare: 0x33C7,
  26231. coverkgsquare: 0x33C6,
  26232. cparen: 0x249E,
  26233. cruzeiro: 0x20A2,
  26234. cstretched: 0x0297,
  26235. curlyand: 0x22CF,
  26236. curlyor: 0x22CE,
  26237. currency: 0x00A4,
  26238. cyrBreve: 0xF6D1,
  26239. cyrFlex: 0xF6D2,
  26240. cyrbreve: 0xF6D4,
  26241. cyrflex: 0xF6D5,
  26242. d: 0x0064,
  26243. daarmenian: 0x0564,
  26244. dabengali: 0x09A6,
  26245. dadarabic: 0x0636,
  26246. dadeva: 0x0926,
  26247. dadfinalarabic: 0xFEBE,
  26248. dadinitialarabic: 0xFEBF,
  26249. dadmedialarabic: 0xFEC0,
  26250. dagesh: 0x05BC,
  26251. dageshhebrew: 0x05BC,
  26252. dagger: 0x2020,
  26253. daggerdbl: 0x2021,
  26254. dagujarati: 0x0AA6,
  26255. dagurmukhi: 0x0A26,
  26256. dahiragana: 0x3060,
  26257. dakatakana: 0x30C0,
  26258. dalarabic: 0x062F,
  26259. dalet: 0x05D3,
  26260. daletdagesh: 0xFB33,
  26261. daletdageshhebrew: 0xFB33,
  26262. dalethebrew: 0x05D3,
  26263. dalfinalarabic: 0xFEAA,
  26264. dammaarabic: 0x064F,
  26265. dammalowarabic: 0x064F,
  26266. dammatanaltonearabic: 0x064C,
  26267. dammatanarabic: 0x064C,
  26268. danda: 0x0964,
  26269. dargahebrew: 0x05A7,
  26270. dargalefthebrew: 0x05A7,
  26271. dasiapneumatacyrilliccmb: 0x0485,
  26272. dblGrave: 0xF6D3,
  26273. dblanglebracketleft: 0x300A,
  26274. dblanglebracketleftvertical: 0xFE3D,
  26275. dblanglebracketright: 0x300B,
  26276. dblanglebracketrightvertical: 0xFE3E,
  26277. dblarchinvertedbelowcmb: 0x032B,
  26278. dblarrowleft: 0x21D4,
  26279. dblarrowright: 0x21D2,
  26280. dbldanda: 0x0965,
  26281. dblgrave: 0xF6D6,
  26282. dblgravecmb: 0x030F,
  26283. dblintegral: 0x222C,
  26284. dbllowline: 0x2017,
  26285. dbllowlinecmb: 0x0333,
  26286. dbloverlinecmb: 0x033F,
  26287. dblprimemod: 0x02BA,
  26288. dblverticalbar: 0x2016,
  26289. dblverticallineabovecmb: 0x030E,
  26290. dbopomofo: 0x3109,
  26291. dbsquare: 0x33C8,
  26292. dcaron: 0x010F,
  26293. dcedilla: 0x1E11,
  26294. dcircle: 0x24D3,
  26295. dcircumflexbelow: 0x1E13,
  26296. dcroat: 0x0111,
  26297. ddabengali: 0x09A1,
  26298. ddadeva: 0x0921,
  26299. ddagujarati: 0x0AA1,
  26300. ddagurmukhi: 0x0A21,
  26301. ddalarabic: 0x0688,
  26302. ddalfinalarabic: 0xFB89,
  26303. dddhadeva: 0x095C,
  26304. ddhabengali: 0x09A2,
  26305. ddhadeva: 0x0922,
  26306. ddhagujarati: 0x0AA2,
  26307. ddhagurmukhi: 0x0A22,
  26308. ddotaccent: 0x1E0B,
  26309. ddotbelow: 0x1E0D,
  26310. decimalseparatorarabic: 0x066B,
  26311. decimalseparatorpersian: 0x066B,
  26312. decyrillic: 0x0434,
  26313. degree: 0x00B0,
  26314. dehihebrew: 0x05AD,
  26315. dehiragana: 0x3067,
  26316. deicoptic: 0x03EF,
  26317. dekatakana: 0x30C7,
  26318. deleteleft: 0x232B,
  26319. deleteright: 0x2326,
  26320. delta: 0x03B4,
  26321. deltaturned: 0x018D,
  26322. denominatorminusonenumeratorbengali: 0x09F8,
  26323. dezh: 0x02A4,
  26324. dhabengali: 0x09A7,
  26325. dhadeva: 0x0927,
  26326. dhagujarati: 0x0AA7,
  26327. dhagurmukhi: 0x0A27,
  26328. dhook: 0x0257,
  26329. dialytikatonos: 0x0385,
  26330. dialytikatonoscmb: 0x0344,
  26331. diamond: 0x2666,
  26332. diamondsuitwhite: 0x2662,
  26333. dieresis: 0x00A8,
  26334. dieresisacute: 0xF6D7,
  26335. dieresisbelowcmb: 0x0324,
  26336. dieresiscmb: 0x0308,
  26337. dieresisgrave: 0xF6D8,
  26338. dieresistonos: 0x0385,
  26339. dihiragana: 0x3062,
  26340. dikatakana: 0x30C2,
  26341. dittomark: 0x3003,
  26342. divide: 0x00F7,
  26343. divides: 0x2223,
  26344. divisionslash: 0x2215,
  26345. djecyrillic: 0x0452,
  26346. dkshade: 0x2593,
  26347. dlinebelow: 0x1E0F,
  26348. dlsquare: 0x3397,
  26349. dmacron: 0x0111,
  26350. dmonospace: 0xFF44,
  26351. dnblock: 0x2584,
  26352. dochadathai: 0x0E0E,
  26353. dodekthai: 0x0E14,
  26354. dohiragana: 0x3069,
  26355. dokatakana: 0x30C9,
  26356. dollar: 0x0024,
  26357. dollarinferior: 0xF6E3,
  26358. dollarmonospace: 0xFF04,
  26359. dollaroldstyle: 0xF724,
  26360. dollarsmall: 0xFE69,
  26361. dollarsuperior: 0xF6E4,
  26362. dong: 0x20AB,
  26363. dorusquare: 0x3326,
  26364. dotaccent: 0x02D9,
  26365. dotaccentcmb: 0x0307,
  26366. dotbelowcmb: 0x0323,
  26367. dotbelowcomb: 0x0323,
  26368. dotkatakana: 0x30FB,
  26369. dotlessi: 0x0131,
  26370. dotlessj: 0xF6BE,
  26371. dotlessjstrokehook: 0x0284,
  26372. dotmath: 0x22C5,
  26373. dottedcircle: 0x25CC,
  26374. doubleyodpatah: 0xFB1F,
  26375. doubleyodpatahhebrew: 0xFB1F,
  26376. downtackbelowcmb: 0x031E,
  26377. downtackmod: 0x02D5,
  26378. dparen: 0x249F,
  26379. dsuperior: 0xF6EB,
  26380. dtail: 0x0256,
  26381. dtopbar: 0x018C,
  26382. duhiragana: 0x3065,
  26383. dukatakana: 0x30C5,
  26384. dz: 0x01F3,
  26385. dzaltone: 0x02A3,
  26386. dzcaron: 0x01C6,
  26387. dzcurl: 0x02A5,
  26388. dzeabkhasiancyrillic: 0x04E1,
  26389. dzecyrillic: 0x0455,
  26390. dzhecyrillic: 0x045F,
  26391. e: 0x0065,
  26392. eacute: 0x00E9,
  26393. earth: 0x2641,
  26394. ebengali: 0x098F,
  26395. ebopomofo: 0x311C,
  26396. ebreve: 0x0115,
  26397. ecandradeva: 0x090D,
  26398. ecandragujarati: 0x0A8D,
  26399. ecandravowelsigndeva: 0x0945,
  26400. ecandravowelsigngujarati: 0x0AC5,
  26401. ecaron: 0x011B,
  26402. ecedillabreve: 0x1E1D,
  26403. echarmenian: 0x0565,
  26404. echyiwnarmenian: 0x0587,
  26405. ecircle: 0x24D4,
  26406. ecircumflex: 0x00EA,
  26407. ecircumflexacute: 0x1EBF,
  26408. ecircumflexbelow: 0x1E19,
  26409. ecircumflexdotbelow: 0x1EC7,
  26410. ecircumflexgrave: 0x1EC1,
  26411. ecircumflexhookabove: 0x1EC3,
  26412. ecircumflextilde: 0x1EC5,
  26413. ecyrillic: 0x0454,
  26414. edblgrave: 0x0205,
  26415. edeva: 0x090F,
  26416. edieresis: 0x00EB,
  26417. edot: 0x0117,
  26418. edotaccent: 0x0117,
  26419. edotbelow: 0x1EB9,
  26420. eegurmukhi: 0x0A0F,
  26421. eematragurmukhi: 0x0A47,
  26422. efcyrillic: 0x0444,
  26423. egrave: 0x00E8,
  26424. egujarati: 0x0A8F,
  26425. eharmenian: 0x0567,
  26426. ehbopomofo: 0x311D,
  26427. ehiragana: 0x3048,
  26428. ehookabove: 0x1EBB,
  26429. eibopomofo: 0x311F,
  26430. eight: 0x0038,
  26431. eightarabic: 0x0668,
  26432. eightbengali: 0x09EE,
  26433. eightcircle: 0x2467,
  26434. eightcircleinversesansserif: 0x2791,
  26435. eightdeva: 0x096E,
  26436. eighteencircle: 0x2471,
  26437. eighteenparen: 0x2485,
  26438. eighteenperiod: 0x2499,
  26439. eightgujarati: 0x0AEE,
  26440. eightgurmukhi: 0x0A6E,
  26441. eighthackarabic: 0x0668,
  26442. eighthangzhou: 0x3028,
  26443. eighthnotebeamed: 0x266B,
  26444. eightideographicparen: 0x3227,
  26445. eightinferior: 0x2088,
  26446. eightmonospace: 0xFF18,
  26447. eightoldstyle: 0xF738,
  26448. eightparen: 0x247B,
  26449. eightperiod: 0x248F,
  26450. eightpersian: 0x06F8,
  26451. eightroman: 0x2177,
  26452. eightsuperior: 0x2078,
  26453. eightthai: 0x0E58,
  26454. einvertedbreve: 0x0207,
  26455. eiotifiedcyrillic: 0x0465,
  26456. ekatakana: 0x30A8,
  26457. ekatakanahalfwidth: 0xFF74,
  26458. ekonkargurmukhi: 0x0A74,
  26459. ekorean: 0x3154,
  26460. elcyrillic: 0x043B,
  26461. element: 0x2208,
  26462. elevencircle: 0x246A,
  26463. elevenparen: 0x247E,
  26464. elevenperiod: 0x2492,
  26465. elevenroman: 0x217A,
  26466. ellipsis: 0x2026,
  26467. ellipsisvertical: 0x22EE,
  26468. emacron: 0x0113,
  26469. emacronacute: 0x1E17,
  26470. emacrongrave: 0x1E15,
  26471. emcyrillic: 0x043C,
  26472. emdash: 0x2014,
  26473. emdashvertical: 0xFE31,
  26474. emonospace: 0xFF45,
  26475. emphasismarkarmenian: 0x055B,
  26476. emptyset: 0x2205,
  26477. enbopomofo: 0x3123,
  26478. encyrillic: 0x043D,
  26479. endash: 0x2013,
  26480. endashvertical: 0xFE32,
  26481. endescendercyrillic: 0x04A3,
  26482. eng: 0x014B,
  26483. engbopomofo: 0x3125,
  26484. enghecyrillic: 0x04A5,
  26485. enhookcyrillic: 0x04C8,
  26486. enspace: 0x2002,
  26487. eogonek: 0x0119,
  26488. eokorean: 0x3153,
  26489. eopen: 0x025B,
  26490. eopenclosed: 0x029A,
  26491. eopenreversed: 0x025C,
  26492. eopenreversedclosed: 0x025E,
  26493. eopenreversedhook: 0x025D,
  26494. eparen: 0x24A0,
  26495. epsilon: 0x03B5,
  26496. epsilontonos: 0x03AD,
  26497. equal: 0x003D,
  26498. equalmonospace: 0xFF1D,
  26499. equalsmall: 0xFE66,
  26500. equalsuperior: 0x207C,
  26501. equivalence: 0x2261,
  26502. erbopomofo: 0x3126,
  26503. ercyrillic: 0x0440,
  26504. ereversed: 0x0258,
  26505. ereversedcyrillic: 0x044D,
  26506. escyrillic: 0x0441,
  26507. esdescendercyrillic: 0x04AB,
  26508. esh: 0x0283,
  26509. eshcurl: 0x0286,
  26510. eshortdeva: 0x090E,
  26511. eshortvowelsigndeva: 0x0946,
  26512. eshreversedloop: 0x01AA,
  26513. eshsquatreversed: 0x0285,
  26514. esmallhiragana: 0x3047,
  26515. esmallkatakana: 0x30A7,
  26516. esmallkatakanahalfwidth: 0xFF6A,
  26517. estimated: 0x212E,
  26518. esuperior: 0xF6EC,
  26519. eta: 0x03B7,
  26520. etarmenian: 0x0568,
  26521. etatonos: 0x03AE,
  26522. eth: 0x00F0,
  26523. etilde: 0x1EBD,
  26524. etildebelow: 0x1E1B,
  26525. etnahtafoukhhebrew: 0x0591,
  26526. etnahtafoukhlefthebrew: 0x0591,
  26527. etnahtahebrew: 0x0591,
  26528. etnahtalefthebrew: 0x0591,
  26529. eturned: 0x01DD,
  26530. eukorean: 0x3161,
  26531. euro: 0x20AC,
  26532. evowelsignbengali: 0x09C7,
  26533. evowelsigndeva: 0x0947,
  26534. evowelsigngujarati: 0x0AC7,
  26535. exclam: 0x0021,
  26536. exclamarmenian: 0x055C,
  26537. exclamdbl: 0x203C,
  26538. exclamdown: 0x00A1,
  26539. exclamdownsmall: 0xF7A1,
  26540. exclammonospace: 0xFF01,
  26541. exclamsmall: 0xF721,
  26542. existential: 0x2203,
  26543. ezh: 0x0292,
  26544. ezhcaron: 0x01EF,
  26545. ezhcurl: 0x0293,
  26546. ezhreversed: 0x01B9,
  26547. ezhtail: 0x01BA,
  26548. f: 0x0066,
  26549. fadeva: 0x095E,
  26550. fagurmukhi: 0x0A5E,
  26551. fahrenheit: 0x2109,
  26552. fathaarabic: 0x064E,
  26553. fathalowarabic: 0x064E,
  26554. fathatanarabic: 0x064B,
  26555. fbopomofo: 0x3108,
  26556. fcircle: 0x24D5,
  26557. fdotaccent: 0x1E1F,
  26558. feharabic: 0x0641,
  26559. feharmenian: 0x0586,
  26560. fehfinalarabic: 0xFED2,
  26561. fehinitialarabic: 0xFED3,
  26562. fehmedialarabic: 0xFED4,
  26563. feicoptic: 0x03E5,
  26564. female: 0x2640,
  26565. ff: 0xFB00,
  26566. ffi: 0xFB03,
  26567. ffl: 0xFB04,
  26568. fi: 0xFB01,
  26569. fifteencircle: 0x246E,
  26570. fifteenparen: 0x2482,
  26571. fifteenperiod: 0x2496,
  26572. figuredash: 0x2012,
  26573. filledbox: 0x25A0,
  26574. filledrect: 0x25AC,
  26575. finalkaf: 0x05DA,
  26576. finalkafdagesh: 0xFB3A,
  26577. finalkafdageshhebrew: 0xFB3A,
  26578. finalkafhebrew: 0x05DA,
  26579. finalmem: 0x05DD,
  26580. finalmemhebrew: 0x05DD,
  26581. finalnun: 0x05DF,
  26582. finalnunhebrew: 0x05DF,
  26583. finalpe: 0x05E3,
  26584. finalpehebrew: 0x05E3,
  26585. finaltsadi: 0x05E5,
  26586. finaltsadihebrew: 0x05E5,
  26587. firsttonechinese: 0x02C9,
  26588. fisheye: 0x25C9,
  26589. fitacyrillic: 0x0473,
  26590. five: 0x0035,
  26591. fivearabic: 0x0665,
  26592. fivebengali: 0x09EB,
  26593. fivecircle: 0x2464,
  26594. fivecircleinversesansserif: 0x278E,
  26595. fivedeva: 0x096B,
  26596. fiveeighths: 0x215D,
  26597. fivegujarati: 0x0AEB,
  26598. fivegurmukhi: 0x0A6B,
  26599. fivehackarabic: 0x0665,
  26600. fivehangzhou: 0x3025,
  26601. fiveideographicparen: 0x3224,
  26602. fiveinferior: 0x2085,
  26603. fivemonospace: 0xFF15,
  26604. fiveoldstyle: 0xF735,
  26605. fiveparen: 0x2478,
  26606. fiveperiod: 0x248C,
  26607. fivepersian: 0x06F5,
  26608. fiveroman: 0x2174,
  26609. fivesuperior: 0x2075,
  26610. fivethai: 0x0E55,
  26611. fl: 0xFB02,
  26612. florin: 0x0192,
  26613. fmonospace: 0xFF46,
  26614. fmsquare: 0x3399,
  26615. fofanthai: 0x0E1F,
  26616. fofathai: 0x0E1D,
  26617. fongmanthai: 0x0E4F,
  26618. forall: 0x2200,
  26619. four: 0x0034,
  26620. fourarabic: 0x0664,
  26621. fourbengali: 0x09EA,
  26622. fourcircle: 0x2463,
  26623. fourcircleinversesansserif: 0x278D,
  26624. fourdeva: 0x096A,
  26625. fourgujarati: 0x0AEA,
  26626. fourgurmukhi: 0x0A6A,
  26627. fourhackarabic: 0x0664,
  26628. fourhangzhou: 0x3024,
  26629. fourideographicparen: 0x3223,
  26630. fourinferior: 0x2084,
  26631. fourmonospace: 0xFF14,
  26632. fournumeratorbengali: 0x09F7,
  26633. fouroldstyle: 0xF734,
  26634. fourparen: 0x2477,
  26635. fourperiod: 0x248B,
  26636. fourpersian: 0x06F4,
  26637. fourroman: 0x2173,
  26638. foursuperior: 0x2074,
  26639. fourteencircle: 0x246D,
  26640. fourteenparen: 0x2481,
  26641. fourteenperiod: 0x2495,
  26642. fourthai: 0x0E54,
  26643. fourthtonechinese: 0x02CB,
  26644. fparen: 0x24A1,
  26645. fraction: 0x2044,
  26646. franc: 0x20A3,
  26647. g: 0x0067,
  26648. gabengali: 0x0997,
  26649. gacute: 0x01F5,
  26650. gadeva: 0x0917,
  26651. gafarabic: 0x06AF,
  26652. gaffinalarabic: 0xFB93,
  26653. gafinitialarabic: 0xFB94,
  26654. gafmedialarabic: 0xFB95,
  26655. gagujarati: 0x0A97,
  26656. gagurmukhi: 0x0A17,
  26657. gahiragana: 0x304C,
  26658. gakatakana: 0x30AC,
  26659. gamma: 0x03B3,
  26660. gammalatinsmall: 0x0263,
  26661. gammasuperior: 0x02E0,
  26662. gangiacoptic: 0x03EB,
  26663. gbopomofo: 0x310D,
  26664. gbreve: 0x011F,
  26665. gcaron: 0x01E7,
  26666. gcedilla: 0x0123,
  26667. gcircle: 0x24D6,
  26668. gcircumflex: 0x011D,
  26669. gcommaaccent: 0x0123,
  26670. gdot: 0x0121,
  26671. gdotaccent: 0x0121,
  26672. gecyrillic: 0x0433,
  26673. gehiragana: 0x3052,
  26674. gekatakana: 0x30B2,
  26675. geometricallyequal: 0x2251,
  26676. gereshaccenthebrew: 0x059C,
  26677. gereshhebrew: 0x05F3,
  26678. gereshmuqdamhebrew: 0x059D,
  26679. germandbls: 0x00DF,
  26680. gershayimaccenthebrew: 0x059E,
  26681. gershayimhebrew: 0x05F4,
  26682. getamark: 0x3013,
  26683. ghabengali: 0x0998,
  26684. ghadarmenian: 0x0572,
  26685. ghadeva: 0x0918,
  26686. ghagujarati: 0x0A98,
  26687. ghagurmukhi: 0x0A18,
  26688. ghainarabic: 0x063A,
  26689. ghainfinalarabic: 0xFECE,
  26690. ghaininitialarabic: 0xFECF,
  26691. ghainmedialarabic: 0xFED0,
  26692. ghemiddlehookcyrillic: 0x0495,
  26693. ghestrokecyrillic: 0x0493,
  26694. gheupturncyrillic: 0x0491,
  26695. ghhadeva: 0x095A,
  26696. ghhagurmukhi: 0x0A5A,
  26697. ghook: 0x0260,
  26698. ghzsquare: 0x3393,
  26699. gihiragana: 0x304E,
  26700. gikatakana: 0x30AE,
  26701. gimarmenian: 0x0563,
  26702. gimel: 0x05D2,
  26703. gimeldagesh: 0xFB32,
  26704. gimeldageshhebrew: 0xFB32,
  26705. gimelhebrew: 0x05D2,
  26706. gjecyrillic: 0x0453,
  26707. glottalinvertedstroke: 0x01BE,
  26708. glottalstop: 0x0294,
  26709. glottalstopinverted: 0x0296,
  26710. glottalstopmod: 0x02C0,
  26711. glottalstopreversed: 0x0295,
  26712. glottalstopreversedmod: 0x02C1,
  26713. glottalstopreversedsuperior: 0x02E4,
  26714. glottalstopstroke: 0x02A1,
  26715. glottalstopstrokereversed: 0x02A2,
  26716. gmacron: 0x1E21,
  26717. gmonospace: 0xFF47,
  26718. gohiragana: 0x3054,
  26719. gokatakana: 0x30B4,
  26720. gparen: 0x24A2,
  26721. gpasquare: 0x33AC,
  26722. gradient: 0x2207,
  26723. grave: 0x0060,
  26724. gravebelowcmb: 0x0316,
  26725. gravecmb: 0x0300,
  26726. gravecomb: 0x0300,
  26727. gravedeva: 0x0953,
  26728. gravelowmod: 0x02CE,
  26729. gravemonospace: 0xFF40,
  26730. gravetonecmb: 0x0340,
  26731. greater: 0x003E,
  26732. greaterequal: 0x2265,
  26733. greaterequalorless: 0x22DB,
  26734. greatermonospace: 0xFF1E,
  26735. greaterorequivalent: 0x2273,
  26736. greaterorless: 0x2277,
  26737. greateroverequal: 0x2267,
  26738. greatersmall: 0xFE65,
  26739. gscript: 0x0261,
  26740. gstroke: 0x01E5,
  26741. guhiragana: 0x3050,
  26742. guillemotleft: 0x00AB,
  26743. guillemotright: 0x00BB,
  26744. guilsinglleft: 0x2039,
  26745. guilsinglright: 0x203A,
  26746. gukatakana: 0x30B0,
  26747. guramusquare: 0x3318,
  26748. gysquare: 0x33C9,
  26749. h: 0x0068,
  26750. haabkhasiancyrillic: 0x04A9,
  26751. haaltonearabic: 0x06C1,
  26752. habengali: 0x09B9,
  26753. hadescendercyrillic: 0x04B3,
  26754. hadeva: 0x0939,
  26755. hagujarati: 0x0AB9,
  26756. hagurmukhi: 0x0A39,
  26757. haharabic: 0x062D,
  26758. hahfinalarabic: 0xFEA2,
  26759. hahinitialarabic: 0xFEA3,
  26760. hahiragana: 0x306F,
  26761. hahmedialarabic: 0xFEA4,
  26762. haitusquare: 0x332A,
  26763. hakatakana: 0x30CF,
  26764. hakatakanahalfwidth: 0xFF8A,
  26765. halantgurmukhi: 0x0A4D,
  26766. hamzaarabic: 0x0621,
  26767. hamzalowarabic: 0x0621,
  26768. hangulfiller: 0x3164,
  26769. hardsigncyrillic: 0x044A,
  26770. harpoonleftbarbup: 0x21BC,
  26771. harpoonrightbarbup: 0x21C0,
  26772. hasquare: 0x33CA,
  26773. hatafpatah: 0x05B2,
  26774. hatafpatah16: 0x05B2,
  26775. hatafpatah23: 0x05B2,
  26776. hatafpatah2f: 0x05B2,
  26777. hatafpatahhebrew: 0x05B2,
  26778. hatafpatahnarrowhebrew: 0x05B2,
  26779. hatafpatahquarterhebrew: 0x05B2,
  26780. hatafpatahwidehebrew: 0x05B2,
  26781. hatafqamats: 0x05B3,
  26782. hatafqamats1b: 0x05B3,
  26783. hatafqamats28: 0x05B3,
  26784. hatafqamats34: 0x05B3,
  26785. hatafqamatshebrew: 0x05B3,
  26786. hatafqamatsnarrowhebrew: 0x05B3,
  26787. hatafqamatsquarterhebrew: 0x05B3,
  26788. hatafqamatswidehebrew: 0x05B3,
  26789. hatafsegol: 0x05B1,
  26790. hatafsegol17: 0x05B1,
  26791. hatafsegol24: 0x05B1,
  26792. hatafsegol30: 0x05B1,
  26793. hatafsegolhebrew: 0x05B1,
  26794. hatafsegolnarrowhebrew: 0x05B1,
  26795. hatafsegolquarterhebrew: 0x05B1,
  26796. hatafsegolwidehebrew: 0x05B1,
  26797. hbar: 0x0127,
  26798. hbopomofo: 0x310F,
  26799. hbrevebelow: 0x1E2B,
  26800. hcedilla: 0x1E29,
  26801. hcircle: 0x24D7,
  26802. hcircumflex: 0x0125,
  26803. hdieresis: 0x1E27,
  26804. hdotaccent: 0x1E23,
  26805. hdotbelow: 0x1E25,
  26806. he: 0x05D4,
  26807. heart: 0x2665,
  26808. heartsuitblack: 0x2665,
  26809. heartsuitwhite: 0x2661,
  26810. hedagesh: 0xFB34,
  26811. hedageshhebrew: 0xFB34,
  26812. hehaltonearabic: 0x06C1,
  26813. heharabic: 0x0647,
  26814. hehebrew: 0x05D4,
  26815. hehfinalaltonearabic: 0xFBA7,
  26816. hehfinalalttwoarabic: 0xFEEA,
  26817. hehfinalarabic: 0xFEEA,
  26818. hehhamzaabovefinalarabic: 0xFBA5,
  26819. hehhamzaaboveisolatedarabic: 0xFBA4,
  26820. hehinitialaltonearabic: 0xFBA8,
  26821. hehinitialarabic: 0xFEEB,
  26822. hehiragana: 0x3078,
  26823. hehmedialaltonearabic: 0xFBA9,
  26824. hehmedialarabic: 0xFEEC,
  26825. heiseierasquare: 0x337B,
  26826. hekatakana: 0x30D8,
  26827. hekatakanahalfwidth: 0xFF8D,
  26828. hekutaarusquare: 0x3336,
  26829. henghook: 0x0267,
  26830. herutusquare: 0x3339,
  26831. het: 0x05D7,
  26832. hethebrew: 0x05D7,
  26833. hhook: 0x0266,
  26834. hhooksuperior: 0x02B1,
  26835. hieuhacirclekorean: 0x327B,
  26836. hieuhaparenkorean: 0x321B,
  26837. hieuhcirclekorean: 0x326D,
  26838. hieuhkorean: 0x314E,
  26839. hieuhparenkorean: 0x320D,
  26840. hihiragana: 0x3072,
  26841. hikatakana: 0x30D2,
  26842. hikatakanahalfwidth: 0xFF8B,
  26843. hiriq: 0x05B4,
  26844. hiriq14: 0x05B4,
  26845. hiriq21: 0x05B4,
  26846. hiriq2d: 0x05B4,
  26847. hiriqhebrew: 0x05B4,
  26848. hiriqnarrowhebrew: 0x05B4,
  26849. hiriqquarterhebrew: 0x05B4,
  26850. hiriqwidehebrew: 0x05B4,
  26851. hlinebelow: 0x1E96,
  26852. hmonospace: 0xFF48,
  26853. hoarmenian: 0x0570,
  26854. hohipthai: 0x0E2B,
  26855. hohiragana: 0x307B,
  26856. hokatakana: 0x30DB,
  26857. hokatakanahalfwidth: 0xFF8E,
  26858. holam: 0x05B9,
  26859. holam19: 0x05B9,
  26860. holam26: 0x05B9,
  26861. holam32: 0x05B9,
  26862. holamhebrew: 0x05B9,
  26863. holamnarrowhebrew: 0x05B9,
  26864. holamquarterhebrew: 0x05B9,
  26865. holamwidehebrew: 0x05B9,
  26866. honokhukthai: 0x0E2E,
  26867. hookabovecomb: 0x0309,
  26868. hookcmb: 0x0309,
  26869. hookpalatalizedbelowcmb: 0x0321,
  26870. hookretroflexbelowcmb: 0x0322,
  26871. hoonsquare: 0x3342,
  26872. horicoptic: 0x03E9,
  26873. horizontalbar: 0x2015,
  26874. horncmb: 0x031B,
  26875. hotsprings: 0x2668,
  26876. house: 0x2302,
  26877. hparen: 0x24A3,
  26878. hsuperior: 0x02B0,
  26879. hturned: 0x0265,
  26880. huhiragana: 0x3075,
  26881. huiitosquare: 0x3333,
  26882. hukatakana: 0x30D5,
  26883. hukatakanahalfwidth: 0xFF8C,
  26884. hungarumlaut: 0x02DD,
  26885. hungarumlautcmb: 0x030B,
  26886. hv: 0x0195,
  26887. hyphen: 0x002D,
  26888. hypheninferior: 0xF6E5,
  26889. hyphenmonospace: 0xFF0D,
  26890. hyphensmall: 0xFE63,
  26891. hyphensuperior: 0xF6E6,
  26892. hyphentwo: 0x2010,
  26893. i: 0x0069,
  26894. iacute: 0x00ED,
  26895. iacyrillic: 0x044F,
  26896. ibengali: 0x0987,
  26897. ibopomofo: 0x3127,
  26898. ibreve: 0x012D,
  26899. icaron: 0x01D0,
  26900. icircle: 0x24D8,
  26901. icircumflex: 0x00EE,
  26902. icyrillic: 0x0456,
  26903. idblgrave: 0x0209,
  26904. ideographearthcircle: 0x328F,
  26905. ideographfirecircle: 0x328B,
  26906. ideographicallianceparen: 0x323F,
  26907. ideographiccallparen: 0x323A,
  26908. ideographiccentrecircle: 0x32A5,
  26909. ideographicclose: 0x3006,
  26910. ideographiccomma: 0x3001,
  26911. ideographiccommaleft: 0xFF64,
  26912. ideographiccongratulationparen: 0x3237,
  26913. ideographiccorrectcircle: 0x32A3,
  26914. ideographicearthparen: 0x322F,
  26915. ideographicenterpriseparen: 0x323D,
  26916. ideographicexcellentcircle: 0x329D,
  26917. ideographicfestivalparen: 0x3240,
  26918. ideographicfinancialcircle: 0x3296,
  26919. ideographicfinancialparen: 0x3236,
  26920. ideographicfireparen: 0x322B,
  26921. ideographichaveparen: 0x3232,
  26922. ideographichighcircle: 0x32A4,
  26923. ideographiciterationmark: 0x3005,
  26924. ideographiclaborcircle: 0x3298,
  26925. ideographiclaborparen: 0x3238,
  26926. ideographicleftcircle: 0x32A7,
  26927. ideographiclowcircle: 0x32A6,
  26928. ideographicmedicinecircle: 0x32A9,
  26929. ideographicmetalparen: 0x322E,
  26930. ideographicmoonparen: 0x322A,
  26931. ideographicnameparen: 0x3234,
  26932. ideographicperiod: 0x3002,
  26933. ideographicprintcircle: 0x329E,
  26934. ideographicreachparen: 0x3243,
  26935. ideographicrepresentparen: 0x3239,
  26936. ideographicresourceparen: 0x323E,
  26937. ideographicrightcircle: 0x32A8,
  26938. ideographicsecretcircle: 0x3299,
  26939. ideographicselfparen: 0x3242,
  26940. ideographicsocietyparen: 0x3233,
  26941. ideographicspace: 0x3000,
  26942. ideographicspecialparen: 0x3235,
  26943. ideographicstockparen: 0x3231,
  26944. ideographicstudyparen: 0x323B,
  26945. ideographicsunparen: 0x3230,
  26946. ideographicsuperviseparen: 0x323C,
  26947. ideographicwaterparen: 0x322C,
  26948. ideographicwoodparen: 0x322D,
  26949. ideographiczero: 0x3007,
  26950. ideographmetalcircle: 0x328E,
  26951. ideographmooncircle: 0x328A,
  26952. ideographnamecircle: 0x3294,
  26953. ideographsuncircle: 0x3290,
  26954. ideographwatercircle: 0x328C,
  26955. ideographwoodcircle: 0x328D,
  26956. ideva: 0x0907,
  26957. idieresis: 0x00EF,
  26958. idieresisacute: 0x1E2F,
  26959. idieresiscyrillic: 0x04E5,
  26960. idotbelow: 0x1ECB,
  26961. iebrevecyrillic: 0x04D7,
  26962. iecyrillic: 0x0435,
  26963. ieungacirclekorean: 0x3275,
  26964. ieungaparenkorean: 0x3215,
  26965. ieungcirclekorean: 0x3267,
  26966. ieungkorean: 0x3147,
  26967. ieungparenkorean: 0x3207,
  26968. igrave: 0x00EC,
  26969. igujarati: 0x0A87,
  26970. igurmukhi: 0x0A07,
  26971. ihiragana: 0x3044,
  26972. ihookabove: 0x1EC9,
  26973. iibengali: 0x0988,
  26974. iicyrillic: 0x0438,
  26975. iideva: 0x0908,
  26976. iigujarati: 0x0A88,
  26977. iigurmukhi: 0x0A08,
  26978. iimatragurmukhi: 0x0A40,
  26979. iinvertedbreve: 0x020B,
  26980. iishortcyrillic: 0x0439,
  26981. iivowelsignbengali: 0x09C0,
  26982. iivowelsigndeva: 0x0940,
  26983. iivowelsigngujarati: 0x0AC0,
  26984. ij: 0x0133,
  26985. ikatakana: 0x30A4,
  26986. ikatakanahalfwidth: 0xFF72,
  26987. ikorean: 0x3163,
  26988. ilde: 0x02DC,
  26989. iluyhebrew: 0x05AC,
  26990. imacron: 0x012B,
  26991. imacroncyrillic: 0x04E3,
  26992. imageorapproximatelyequal: 0x2253,
  26993. imatragurmukhi: 0x0A3F,
  26994. imonospace: 0xFF49,
  26995. increment: 0x2206,
  26996. infinity: 0x221E,
  26997. iniarmenian: 0x056B,
  26998. integral: 0x222B,
  26999. integralbottom: 0x2321,
  27000. integralbt: 0x2321,
  27001. integralex: 0xF8F5,
  27002. integraltop: 0x2320,
  27003. integraltp: 0x2320,
  27004. intersection: 0x2229,
  27005. intisquare: 0x3305,
  27006. invbullet: 0x25D8,
  27007. invcircle: 0x25D9,
  27008. invsmileface: 0x263B,
  27009. iocyrillic: 0x0451,
  27010. iogonek: 0x012F,
  27011. iota: 0x03B9,
  27012. iotadieresis: 0x03CA,
  27013. iotadieresistonos: 0x0390,
  27014. iotalatin: 0x0269,
  27015. iotatonos: 0x03AF,
  27016. iparen: 0x24A4,
  27017. irigurmukhi: 0x0A72,
  27018. ismallhiragana: 0x3043,
  27019. ismallkatakana: 0x30A3,
  27020. ismallkatakanahalfwidth: 0xFF68,
  27021. issharbengali: 0x09FA,
  27022. istroke: 0x0268,
  27023. isuperior: 0xF6ED,
  27024. iterationhiragana: 0x309D,
  27025. iterationkatakana: 0x30FD,
  27026. itilde: 0x0129,
  27027. itildebelow: 0x1E2D,
  27028. iubopomofo: 0x3129,
  27029. iucyrillic: 0x044E,
  27030. ivowelsignbengali: 0x09BF,
  27031. ivowelsigndeva: 0x093F,
  27032. ivowelsigngujarati: 0x0ABF,
  27033. izhitsacyrillic: 0x0475,
  27034. izhitsadblgravecyrillic: 0x0477,
  27035. j: 0x006A,
  27036. jaarmenian: 0x0571,
  27037. jabengali: 0x099C,
  27038. jadeva: 0x091C,
  27039. jagujarati: 0x0A9C,
  27040. jagurmukhi: 0x0A1C,
  27041. jbopomofo: 0x3110,
  27042. jcaron: 0x01F0,
  27043. jcircle: 0x24D9,
  27044. jcircumflex: 0x0135,
  27045. jcrossedtail: 0x029D,
  27046. jdotlessstroke: 0x025F,
  27047. jecyrillic: 0x0458,
  27048. jeemarabic: 0x062C,
  27049. jeemfinalarabic: 0xFE9E,
  27050. jeeminitialarabic: 0xFE9F,
  27051. jeemmedialarabic: 0xFEA0,
  27052. jeharabic: 0x0698,
  27053. jehfinalarabic: 0xFB8B,
  27054. jhabengali: 0x099D,
  27055. jhadeva: 0x091D,
  27056. jhagujarati: 0x0A9D,
  27057. jhagurmukhi: 0x0A1D,
  27058. jheharmenian: 0x057B,
  27059. jis: 0x3004,
  27060. jmonospace: 0xFF4A,
  27061. jparen: 0x24A5,
  27062. jsuperior: 0x02B2,
  27063. k: 0x006B,
  27064. kabashkircyrillic: 0x04A1,
  27065. kabengali: 0x0995,
  27066. kacute: 0x1E31,
  27067. kacyrillic: 0x043A,
  27068. kadescendercyrillic: 0x049B,
  27069. kadeva: 0x0915,
  27070. kaf: 0x05DB,
  27071. kafarabic: 0x0643,
  27072. kafdagesh: 0xFB3B,
  27073. kafdageshhebrew: 0xFB3B,
  27074. kaffinalarabic: 0xFEDA,
  27075. kafhebrew: 0x05DB,
  27076. kafinitialarabic: 0xFEDB,
  27077. kafmedialarabic: 0xFEDC,
  27078. kafrafehebrew: 0xFB4D,
  27079. kagujarati: 0x0A95,
  27080. kagurmukhi: 0x0A15,
  27081. kahiragana: 0x304B,
  27082. kahookcyrillic: 0x04C4,
  27083. kakatakana: 0x30AB,
  27084. kakatakanahalfwidth: 0xFF76,
  27085. kappa: 0x03BA,
  27086. kappasymbolgreek: 0x03F0,
  27087. kapyeounmieumkorean: 0x3171,
  27088. kapyeounphieuphkorean: 0x3184,
  27089. kapyeounpieupkorean: 0x3178,
  27090. kapyeounssangpieupkorean: 0x3179,
  27091. karoriisquare: 0x330D,
  27092. kashidaautoarabic: 0x0640,
  27093. kashidaautonosidebearingarabic: 0x0640,
  27094. kasmallkatakana: 0x30F5,
  27095. kasquare: 0x3384,
  27096. kasraarabic: 0x0650,
  27097. kasratanarabic: 0x064D,
  27098. kastrokecyrillic: 0x049F,
  27099. katahiraprolongmarkhalfwidth: 0xFF70,
  27100. kaverticalstrokecyrillic: 0x049D,
  27101. kbopomofo: 0x310E,
  27102. kcalsquare: 0x3389,
  27103. kcaron: 0x01E9,
  27104. kcedilla: 0x0137,
  27105. kcircle: 0x24DA,
  27106. kcommaaccent: 0x0137,
  27107. kdotbelow: 0x1E33,
  27108. keharmenian: 0x0584,
  27109. kehiragana: 0x3051,
  27110. kekatakana: 0x30B1,
  27111. kekatakanahalfwidth: 0xFF79,
  27112. kenarmenian: 0x056F,
  27113. kesmallkatakana: 0x30F6,
  27114. kgreenlandic: 0x0138,
  27115. khabengali: 0x0996,
  27116. khacyrillic: 0x0445,
  27117. khadeva: 0x0916,
  27118. khagujarati: 0x0A96,
  27119. khagurmukhi: 0x0A16,
  27120. khaharabic: 0x062E,
  27121. khahfinalarabic: 0xFEA6,
  27122. khahinitialarabic: 0xFEA7,
  27123. khahmedialarabic: 0xFEA8,
  27124. kheicoptic: 0x03E7,
  27125. khhadeva: 0x0959,
  27126. khhagurmukhi: 0x0A59,
  27127. khieukhacirclekorean: 0x3278,
  27128. khieukhaparenkorean: 0x3218,
  27129. khieukhcirclekorean: 0x326A,
  27130. khieukhkorean: 0x314B,
  27131. khieukhparenkorean: 0x320A,
  27132. khokhaithai: 0x0E02,
  27133. khokhonthai: 0x0E05,
  27134. khokhuatthai: 0x0E03,
  27135. khokhwaithai: 0x0E04,
  27136. khomutthai: 0x0E5B,
  27137. khook: 0x0199,
  27138. khorakhangthai: 0x0E06,
  27139. khzsquare: 0x3391,
  27140. kihiragana: 0x304D,
  27141. kikatakana: 0x30AD,
  27142. kikatakanahalfwidth: 0xFF77,
  27143. kiroguramusquare: 0x3315,
  27144. kiromeetorusquare: 0x3316,
  27145. kirosquare: 0x3314,
  27146. kiyeokacirclekorean: 0x326E,
  27147. kiyeokaparenkorean: 0x320E,
  27148. kiyeokcirclekorean: 0x3260,
  27149. kiyeokkorean: 0x3131,
  27150. kiyeokparenkorean: 0x3200,
  27151. kiyeoksioskorean: 0x3133,
  27152. kjecyrillic: 0x045C,
  27153. klinebelow: 0x1E35,
  27154. klsquare: 0x3398,
  27155. kmcubedsquare: 0x33A6,
  27156. kmonospace: 0xFF4B,
  27157. kmsquaredsquare: 0x33A2,
  27158. kohiragana: 0x3053,
  27159. kohmsquare: 0x33C0,
  27160. kokaithai: 0x0E01,
  27161. kokatakana: 0x30B3,
  27162. kokatakanahalfwidth: 0xFF7A,
  27163. kooposquare: 0x331E,
  27164. koppacyrillic: 0x0481,
  27165. koreanstandardsymbol: 0x327F,
  27166. koroniscmb: 0x0343,
  27167. kparen: 0x24A6,
  27168. kpasquare: 0x33AA,
  27169. ksicyrillic: 0x046F,
  27170. ktsquare: 0x33CF,
  27171. kturned: 0x029E,
  27172. kuhiragana: 0x304F,
  27173. kukatakana: 0x30AF,
  27174. kukatakanahalfwidth: 0xFF78,
  27175. kvsquare: 0x33B8,
  27176. kwsquare: 0x33BE,
  27177. l: 0x006C,
  27178. labengali: 0x09B2,
  27179. lacute: 0x013A,
  27180. ladeva: 0x0932,
  27181. lagujarati: 0x0AB2,
  27182. lagurmukhi: 0x0A32,
  27183. lakkhangyaothai: 0x0E45,
  27184. lamaleffinalarabic: 0xFEFC,
  27185. lamalefhamzaabovefinalarabic: 0xFEF8,
  27186. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  27187. lamalefhamzabelowfinalarabic: 0xFEFA,
  27188. lamalefhamzabelowisolatedarabic: 0xFEF9,
  27189. lamalefisolatedarabic: 0xFEFB,
  27190. lamalefmaddaabovefinalarabic: 0xFEF6,
  27191. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  27192. lamarabic: 0x0644,
  27193. lambda: 0x03BB,
  27194. lambdastroke: 0x019B,
  27195. lamed: 0x05DC,
  27196. lameddagesh: 0xFB3C,
  27197. lameddageshhebrew: 0xFB3C,
  27198. lamedhebrew: 0x05DC,
  27199. lamfinalarabic: 0xFEDE,
  27200. lamhahinitialarabic: 0xFCCA,
  27201. laminitialarabic: 0xFEDF,
  27202. lamjeeminitialarabic: 0xFCC9,
  27203. lamkhahinitialarabic: 0xFCCB,
  27204. lamlamhehisolatedarabic: 0xFDF2,
  27205. lammedialarabic: 0xFEE0,
  27206. lammeemhahinitialarabic: 0xFD88,
  27207. lammeeminitialarabic: 0xFCCC,
  27208. largecircle: 0x25EF,
  27209. lbar: 0x019A,
  27210. lbelt: 0x026C,
  27211. lbopomofo: 0x310C,
  27212. lcaron: 0x013E,
  27213. lcedilla: 0x013C,
  27214. lcircle: 0x24DB,
  27215. lcircumflexbelow: 0x1E3D,
  27216. lcommaaccent: 0x013C,
  27217. ldot: 0x0140,
  27218. ldotaccent: 0x0140,
  27219. ldotbelow: 0x1E37,
  27220. ldotbelowmacron: 0x1E39,
  27221. leftangleabovecmb: 0x031A,
  27222. lefttackbelowcmb: 0x0318,
  27223. less: 0x003C,
  27224. lessequal: 0x2264,
  27225. lessequalorgreater: 0x22DA,
  27226. lessmonospace: 0xFF1C,
  27227. lessorequivalent: 0x2272,
  27228. lessorgreater: 0x2276,
  27229. lessoverequal: 0x2266,
  27230. lesssmall: 0xFE64,
  27231. lezh: 0x026E,
  27232. lfblock: 0x258C,
  27233. lhookretroflex: 0x026D,
  27234. lira: 0x20A4,
  27235. liwnarmenian: 0x056C,
  27236. lj: 0x01C9,
  27237. ljecyrillic: 0x0459,
  27238. ll: 0xF6C0,
  27239. lladeva: 0x0933,
  27240. llagujarati: 0x0AB3,
  27241. llinebelow: 0x1E3B,
  27242. llladeva: 0x0934,
  27243. llvocalicbengali: 0x09E1,
  27244. llvocalicdeva: 0x0961,
  27245. llvocalicvowelsignbengali: 0x09E3,
  27246. llvocalicvowelsigndeva: 0x0963,
  27247. lmiddletilde: 0x026B,
  27248. lmonospace: 0xFF4C,
  27249. lmsquare: 0x33D0,
  27250. lochulathai: 0x0E2C,
  27251. logicaland: 0x2227,
  27252. logicalnot: 0x00AC,
  27253. logicalnotreversed: 0x2310,
  27254. logicalor: 0x2228,
  27255. lolingthai: 0x0E25,
  27256. longs: 0x017F,
  27257. lowlinecenterline: 0xFE4E,
  27258. lowlinecmb: 0x0332,
  27259. lowlinedashed: 0xFE4D,
  27260. lozenge: 0x25CA,
  27261. lparen: 0x24A7,
  27262. lslash: 0x0142,
  27263. lsquare: 0x2113,
  27264. lsuperior: 0xF6EE,
  27265. ltshade: 0x2591,
  27266. luthai: 0x0E26,
  27267. lvocalicbengali: 0x098C,
  27268. lvocalicdeva: 0x090C,
  27269. lvocalicvowelsignbengali: 0x09E2,
  27270. lvocalicvowelsigndeva: 0x0962,
  27271. lxsquare: 0x33D3,
  27272. m: 0x006D,
  27273. mabengali: 0x09AE,
  27274. macron: 0x00AF,
  27275. macronbelowcmb: 0x0331,
  27276. macroncmb: 0x0304,
  27277. macronlowmod: 0x02CD,
  27278. macronmonospace: 0xFFE3,
  27279. macute: 0x1E3F,
  27280. madeva: 0x092E,
  27281. magujarati: 0x0AAE,
  27282. magurmukhi: 0x0A2E,
  27283. mahapakhhebrew: 0x05A4,
  27284. mahapakhlefthebrew: 0x05A4,
  27285. mahiragana: 0x307E,
  27286. maichattawalowleftthai: 0xF895,
  27287. maichattawalowrightthai: 0xF894,
  27288. maichattawathai: 0x0E4B,
  27289. maichattawaupperleftthai: 0xF893,
  27290. maieklowleftthai: 0xF88C,
  27291. maieklowrightthai: 0xF88B,
  27292. maiekthai: 0x0E48,
  27293. maiekupperleftthai: 0xF88A,
  27294. maihanakatleftthai: 0xF884,
  27295. maihanakatthai: 0x0E31,
  27296. maitaikhuleftthai: 0xF889,
  27297. maitaikhuthai: 0x0E47,
  27298. maitholowleftthai: 0xF88F,
  27299. maitholowrightthai: 0xF88E,
  27300. maithothai: 0x0E49,
  27301. maithoupperleftthai: 0xF88D,
  27302. maitrilowleftthai: 0xF892,
  27303. maitrilowrightthai: 0xF891,
  27304. maitrithai: 0x0E4A,
  27305. maitriupperleftthai: 0xF890,
  27306. maiyamokthai: 0x0E46,
  27307. makatakana: 0x30DE,
  27308. makatakanahalfwidth: 0xFF8F,
  27309. male: 0x2642,
  27310. mansyonsquare: 0x3347,
  27311. maqafhebrew: 0x05BE,
  27312. mars: 0x2642,
  27313. masoracirclehebrew: 0x05AF,
  27314. masquare: 0x3383,
  27315. mbopomofo: 0x3107,
  27316. mbsquare: 0x33D4,
  27317. mcircle: 0x24DC,
  27318. mcubedsquare: 0x33A5,
  27319. mdotaccent: 0x1E41,
  27320. mdotbelow: 0x1E43,
  27321. meemarabic: 0x0645,
  27322. meemfinalarabic: 0xFEE2,
  27323. meeminitialarabic: 0xFEE3,
  27324. meemmedialarabic: 0xFEE4,
  27325. meemmeeminitialarabic: 0xFCD1,
  27326. meemmeemisolatedarabic: 0xFC48,
  27327. meetorusquare: 0x334D,
  27328. mehiragana: 0x3081,
  27329. meizierasquare: 0x337E,
  27330. mekatakana: 0x30E1,
  27331. mekatakanahalfwidth: 0xFF92,
  27332. mem: 0x05DE,
  27333. memdagesh: 0xFB3E,
  27334. memdageshhebrew: 0xFB3E,
  27335. memhebrew: 0x05DE,
  27336. menarmenian: 0x0574,
  27337. merkhahebrew: 0x05A5,
  27338. merkhakefulahebrew: 0x05A6,
  27339. merkhakefulalefthebrew: 0x05A6,
  27340. merkhalefthebrew: 0x05A5,
  27341. mhook: 0x0271,
  27342. mhzsquare: 0x3392,
  27343. middledotkatakanahalfwidth: 0xFF65,
  27344. middot: 0x00B7,
  27345. mieumacirclekorean: 0x3272,
  27346. mieumaparenkorean: 0x3212,
  27347. mieumcirclekorean: 0x3264,
  27348. mieumkorean: 0x3141,
  27349. mieumpansioskorean: 0x3170,
  27350. mieumparenkorean: 0x3204,
  27351. mieumpieupkorean: 0x316E,
  27352. mieumsioskorean: 0x316F,
  27353. mihiragana: 0x307F,
  27354. mikatakana: 0x30DF,
  27355. mikatakanahalfwidth: 0xFF90,
  27356. minus: 0x2212,
  27357. minusbelowcmb: 0x0320,
  27358. minuscircle: 0x2296,
  27359. minusmod: 0x02D7,
  27360. minusplus: 0x2213,
  27361. minute: 0x2032,
  27362. miribaarusquare: 0x334A,
  27363. mirisquare: 0x3349,
  27364. mlonglegturned: 0x0270,
  27365. mlsquare: 0x3396,
  27366. mmcubedsquare: 0x33A3,
  27367. mmonospace: 0xFF4D,
  27368. mmsquaredsquare: 0x339F,
  27369. mohiragana: 0x3082,
  27370. mohmsquare: 0x33C1,
  27371. mokatakana: 0x30E2,
  27372. mokatakanahalfwidth: 0xFF93,
  27373. molsquare: 0x33D6,
  27374. momathai: 0x0E21,
  27375. moverssquare: 0x33A7,
  27376. moverssquaredsquare: 0x33A8,
  27377. mparen: 0x24A8,
  27378. mpasquare: 0x33AB,
  27379. mssquare: 0x33B3,
  27380. msuperior: 0xF6EF,
  27381. mturned: 0x026F,
  27382. mu: 0x00B5,
  27383. mu1: 0x00B5,
  27384. muasquare: 0x3382,
  27385. muchgreater: 0x226B,
  27386. muchless: 0x226A,
  27387. mufsquare: 0x338C,
  27388. mugreek: 0x03BC,
  27389. mugsquare: 0x338D,
  27390. muhiragana: 0x3080,
  27391. mukatakana: 0x30E0,
  27392. mukatakanahalfwidth: 0xFF91,
  27393. mulsquare: 0x3395,
  27394. multiply: 0x00D7,
  27395. mumsquare: 0x339B,
  27396. munahhebrew: 0x05A3,
  27397. munahlefthebrew: 0x05A3,
  27398. musicalnote: 0x266A,
  27399. musicalnotedbl: 0x266B,
  27400. musicflatsign: 0x266D,
  27401. musicsharpsign: 0x266F,
  27402. mussquare: 0x33B2,
  27403. muvsquare: 0x33B6,
  27404. muwsquare: 0x33BC,
  27405. mvmegasquare: 0x33B9,
  27406. mvsquare: 0x33B7,
  27407. mwmegasquare: 0x33BF,
  27408. mwsquare: 0x33BD,
  27409. n: 0x006E,
  27410. nabengali: 0x09A8,
  27411. nabla: 0x2207,
  27412. nacute: 0x0144,
  27413. nadeva: 0x0928,
  27414. nagujarati: 0x0AA8,
  27415. nagurmukhi: 0x0A28,
  27416. nahiragana: 0x306A,
  27417. nakatakana: 0x30CA,
  27418. nakatakanahalfwidth: 0xFF85,
  27419. napostrophe: 0x0149,
  27420. nasquare: 0x3381,
  27421. nbopomofo: 0x310B,
  27422. nbspace: 0x00A0,
  27423. ncaron: 0x0148,
  27424. ncedilla: 0x0146,
  27425. ncircle: 0x24DD,
  27426. ncircumflexbelow: 0x1E4B,
  27427. ncommaaccent: 0x0146,
  27428. ndotaccent: 0x1E45,
  27429. ndotbelow: 0x1E47,
  27430. nehiragana: 0x306D,
  27431. nekatakana: 0x30CD,
  27432. nekatakanahalfwidth: 0xFF88,
  27433. newsheqelsign: 0x20AA,
  27434. nfsquare: 0x338B,
  27435. ngabengali: 0x0999,
  27436. ngadeva: 0x0919,
  27437. ngagujarati: 0x0A99,
  27438. ngagurmukhi: 0x0A19,
  27439. ngonguthai: 0x0E07,
  27440. nhiragana: 0x3093,
  27441. nhookleft: 0x0272,
  27442. nhookretroflex: 0x0273,
  27443. nieunacirclekorean: 0x326F,
  27444. nieunaparenkorean: 0x320F,
  27445. nieuncieuckorean: 0x3135,
  27446. nieuncirclekorean: 0x3261,
  27447. nieunhieuhkorean: 0x3136,
  27448. nieunkorean: 0x3134,
  27449. nieunpansioskorean: 0x3168,
  27450. nieunparenkorean: 0x3201,
  27451. nieunsioskorean: 0x3167,
  27452. nieuntikeutkorean: 0x3166,
  27453. nihiragana: 0x306B,
  27454. nikatakana: 0x30CB,
  27455. nikatakanahalfwidth: 0xFF86,
  27456. nikhahitleftthai: 0xF899,
  27457. nikhahitthai: 0x0E4D,
  27458. nine: 0x0039,
  27459. ninearabic: 0x0669,
  27460. ninebengali: 0x09EF,
  27461. ninecircle: 0x2468,
  27462. ninecircleinversesansserif: 0x2792,
  27463. ninedeva: 0x096F,
  27464. ninegujarati: 0x0AEF,
  27465. ninegurmukhi: 0x0A6F,
  27466. ninehackarabic: 0x0669,
  27467. ninehangzhou: 0x3029,
  27468. nineideographicparen: 0x3228,
  27469. nineinferior: 0x2089,
  27470. ninemonospace: 0xFF19,
  27471. nineoldstyle: 0xF739,
  27472. nineparen: 0x247C,
  27473. nineperiod: 0x2490,
  27474. ninepersian: 0x06F9,
  27475. nineroman: 0x2178,
  27476. ninesuperior: 0x2079,
  27477. nineteencircle: 0x2472,
  27478. nineteenparen: 0x2486,
  27479. nineteenperiod: 0x249A,
  27480. ninethai: 0x0E59,
  27481. nj: 0x01CC,
  27482. njecyrillic: 0x045A,
  27483. nkatakana: 0x30F3,
  27484. nkatakanahalfwidth: 0xFF9D,
  27485. nlegrightlong: 0x019E,
  27486. nlinebelow: 0x1E49,
  27487. nmonospace: 0xFF4E,
  27488. nmsquare: 0x339A,
  27489. nnabengali: 0x09A3,
  27490. nnadeva: 0x0923,
  27491. nnagujarati: 0x0AA3,
  27492. nnagurmukhi: 0x0A23,
  27493. nnnadeva: 0x0929,
  27494. nohiragana: 0x306E,
  27495. nokatakana: 0x30CE,
  27496. nokatakanahalfwidth: 0xFF89,
  27497. nonbreakingspace: 0x00A0,
  27498. nonenthai: 0x0E13,
  27499. nonuthai: 0x0E19,
  27500. noonarabic: 0x0646,
  27501. noonfinalarabic: 0xFEE6,
  27502. noonghunnaarabic: 0x06BA,
  27503. noonghunnafinalarabic: 0xFB9F,
  27504. nooninitialarabic: 0xFEE7,
  27505. noonjeeminitialarabic: 0xFCD2,
  27506. noonjeemisolatedarabic: 0xFC4B,
  27507. noonmedialarabic: 0xFEE8,
  27508. noonmeeminitialarabic: 0xFCD5,
  27509. noonmeemisolatedarabic: 0xFC4E,
  27510. noonnoonfinalarabic: 0xFC8D,
  27511. notcontains: 0x220C,
  27512. notelement: 0x2209,
  27513. notelementof: 0x2209,
  27514. notequal: 0x2260,
  27515. notgreater: 0x226F,
  27516. notgreaternorequal: 0x2271,
  27517. notgreaternorless: 0x2279,
  27518. notidentical: 0x2262,
  27519. notless: 0x226E,
  27520. notlessnorequal: 0x2270,
  27521. notparallel: 0x2226,
  27522. notprecedes: 0x2280,
  27523. notsubset: 0x2284,
  27524. notsucceeds: 0x2281,
  27525. notsuperset: 0x2285,
  27526. nowarmenian: 0x0576,
  27527. nparen: 0x24A9,
  27528. nssquare: 0x33B1,
  27529. nsuperior: 0x207F,
  27530. ntilde: 0x00F1,
  27531. nu: 0x03BD,
  27532. nuhiragana: 0x306C,
  27533. nukatakana: 0x30CC,
  27534. nukatakanahalfwidth: 0xFF87,
  27535. nuktabengali: 0x09BC,
  27536. nuktadeva: 0x093C,
  27537. nuktagujarati: 0x0ABC,
  27538. nuktagurmukhi: 0x0A3C,
  27539. numbersign: 0x0023,
  27540. numbersignmonospace: 0xFF03,
  27541. numbersignsmall: 0xFE5F,
  27542. numeralsigngreek: 0x0374,
  27543. numeralsignlowergreek: 0x0375,
  27544. numero: 0x2116,
  27545. nun: 0x05E0,
  27546. nundagesh: 0xFB40,
  27547. nundageshhebrew: 0xFB40,
  27548. nunhebrew: 0x05E0,
  27549. nvsquare: 0x33B5,
  27550. nwsquare: 0x33BB,
  27551. nyabengali: 0x099E,
  27552. nyadeva: 0x091E,
  27553. nyagujarati: 0x0A9E,
  27554. nyagurmukhi: 0x0A1E,
  27555. o: 0x006F,
  27556. oacute: 0x00F3,
  27557. oangthai: 0x0E2D,
  27558. obarred: 0x0275,
  27559. obarredcyrillic: 0x04E9,
  27560. obarreddieresiscyrillic: 0x04EB,
  27561. obengali: 0x0993,
  27562. obopomofo: 0x311B,
  27563. obreve: 0x014F,
  27564. ocandradeva: 0x0911,
  27565. ocandragujarati: 0x0A91,
  27566. ocandravowelsigndeva: 0x0949,
  27567. ocandravowelsigngujarati: 0x0AC9,
  27568. ocaron: 0x01D2,
  27569. ocircle: 0x24DE,
  27570. ocircumflex: 0x00F4,
  27571. ocircumflexacute: 0x1ED1,
  27572. ocircumflexdotbelow: 0x1ED9,
  27573. ocircumflexgrave: 0x1ED3,
  27574. ocircumflexhookabove: 0x1ED5,
  27575. ocircumflextilde: 0x1ED7,
  27576. ocyrillic: 0x043E,
  27577. odblacute: 0x0151,
  27578. odblgrave: 0x020D,
  27579. odeva: 0x0913,
  27580. odieresis: 0x00F6,
  27581. odieresiscyrillic: 0x04E7,
  27582. odotbelow: 0x1ECD,
  27583. oe: 0x0153,
  27584. oekorean: 0x315A,
  27585. ogonek: 0x02DB,
  27586. ogonekcmb: 0x0328,
  27587. ograve: 0x00F2,
  27588. ogujarati: 0x0A93,
  27589. oharmenian: 0x0585,
  27590. ohiragana: 0x304A,
  27591. ohookabove: 0x1ECF,
  27592. ohorn: 0x01A1,
  27593. ohornacute: 0x1EDB,
  27594. ohorndotbelow: 0x1EE3,
  27595. ohorngrave: 0x1EDD,
  27596. ohornhookabove: 0x1EDF,
  27597. ohorntilde: 0x1EE1,
  27598. ohungarumlaut: 0x0151,
  27599. oi: 0x01A3,
  27600. oinvertedbreve: 0x020F,
  27601. okatakana: 0x30AA,
  27602. okatakanahalfwidth: 0xFF75,
  27603. okorean: 0x3157,
  27604. olehebrew: 0x05AB,
  27605. omacron: 0x014D,
  27606. omacronacute: 0x1E53,
  27607. omacrongrave: 0x1E51,
  27608. omdeva: 0x0950,
  27609. omega: 0x03C9,
  27610. omega1: 0x03D6,
  27611. omegacyrillic: 0x0461,
  27612. omegalatinclosed: 0x0277,
  27613. omegaroundcyrillic: 0x047B,
  27614. omegatitlocyrillic: 0x047D,
  27615. omegatonos: 0x03CE,
  27616. omgujarati: 0x0AD0,
  27617. omicron: 0x03BF,
  27618. omicrontonos: 0x03CC,
  27619. omonospace: 0xFF4F,
  27620. one: 0x0031,
  27621. onearabic: 0x0661,
  27622. onebengali: 0x09E7,
  27623. onecircle: 0x2460,
  27624. onecircleinversesansserif: 0x278A,
  27625. onedeva: 0x0967,
  27626. onedotenleader: 0x2024,
  27627. oneeighth: 0x215B,
  27628. onefitted: 0xF6DC,
  27629. onegujarati: 0x0AE7,
  27630. onegurmukhi: 0x0A67,
  27631. onehackarabic: 0x0661,
  27632. onehalf: 0x00BD,
  27633. onehangzhou: 0x3021,
  27634. oneideographicparen: 0x3220,
  27635. oneinferior: 0x2081,
  27636. onemonospace: 0xFF11,
  27637. onenumeratorbengali: 0x09F4,
  27638. oneoldstyle: 0xF731,
  27639. oneparen: 0x2474,
  27640. oneperiod: 0x2488,
  27641. onepersian: 0x06F1,
  27642. onequarter: 0x00BC,
  27643. oneroman: 0x2170,
  27644. onesuperior: 0x00B9,
  27645. onethai: 0x0E51,
  27646. onethird: 0x2153,
  27647. oogonek: 0x01EB,
  27648. oogonekmacron: 0x01ED,
  27649. oogurmukhi: 0x0A13,
  27650. oomatragurmukhi: 0x0A4B,
  27651. oopen: 0x0254,
  27652. oparen: 0x24AA,
  27653. openbullet: 0x25E6,
  27654. option: 0x2325,
  27655. ordfeminine: 0x00AA,
  27656. ordmasculine: 0x00BA,
  27657. orthogonal: 0x221F,
  27658. oshortdeva: 0x0912,
  27659. oshortvowelsigndeva: 0x094A,
  27660. oslash: 0x00F8,
  27661. oslashacute: 0x01FF,
  27662. osmallhiragana: 0x3049,
  27663. osmallkatakana: 0x30A9,
  27664. osmallkatakanahalfwidth: 0xFF6B,
  27665. ostrokeacute: 0x01FF,
  27666. osuperior: 0xF6F0,
  27667. otcyrillic: 0x047F,
  27668. otilde: 0x00F5,
  27669. otildeacute: 0x1E4D,
  27670. otildedieresis: 0x1E4F,
  27671. oubopomofo: 0x3121,
  27672. overline: 0x203E,
  27673. overlinecenterline: 0xFE4A,
  27674. overlinecmb: 0x0305,
  27675. overlinedashed: 0xFE49,
  27676. overlinedblwavy: 0xFE4C,
  27677. overlinewavy: 0xFE4B,
  27678. overscore: 0x00AF,
  27679. ovowelsignbengali: 0x09CB,
  27680. ovowelsigndeva: 0x094B,
  27681. ovowelsigngujarati: 0x0ACB,
  27682. p: 0x0070,
  27683. paampssquare: 0x3380,
  27684. paasentosquare: 0x332B,
  27685. pabengali: 0x09AA,
  27686. pacute: 0x1E55,
  27687. padeva: 0x092A,
  27688. pagedown: 0x21DF,
  27689. pageup: 0x21DE,
  27690. pagujarati: 0x0AAA,
  27691. pagurmukhi: 0x0A2A,
  27692. pahiragana: 0x3071,
  27693. paiyannoithai: 0x0E2F,
  27694. pakatakana: 0x30D1,
  27695. palatalizationcyrilliccmb: 0x0484,
  27696. palochkacyrillic: 0x04C0,
  27697. pansioskorean: 0x317F,
  27698. paragraph: 0x00B6,
  27699. parallel: 0x2225,
  27700. parenleft: 0x0028,
  27701. parenleftaltonearabic: 0xFD3E,
  27702. parenleftbt: 0xF8ED,
  27703. parenleftex: 0xF8EC,
  27704. parenleftinferior: 0x208D,
  27705. parenleftmonospace: 0xFF08,
  27706. parenleftsmall: 0xFE59,
  27707. parenleftsuperior: 0x207D,
  27708. parenlefttp: 0xF8EB,
  27709. parenleftvertical: 0xFE35,
  27710. parenright: 0x0029,
  27711. parenrightaltonearabic: 0xFD3F,
  27712. parenrightbt: 0xF8F8,
  27713. parenrightex: 0xF8F7,
  27714. parenrightinferior: 0x208E,
  27715. parenrightmonospace: 0xFF09,
  27716. parenrightsmall: 0xFE5A,
  27717. parenrightsuperior: 0x207E,
  27718. parenrighttp: 0xF8F6,
  27719. parenrightvertical: 0xFE36,
  27720. partialdiff: 0x2202,
  27721. paseqhebrew: 0x05C0,
  27722. pashtahebrew: 0x0599,
  27723. pasquare: 0x33A9,
  27724. patah: 0x05B7,
  27725. patah11: 0x05B7,
  27726. patah1d: 0x05B7,
  27727. patah2a: 0x05B7,
  27728. patahhebrew: 0x05B7,
  27729. patahnarrowhebrew: 0x05B7,
  27730. patahquarterhebrew: 0x05B7,
  27731. patahwidehebrew: 0x05B7,
  27732. pazerhebrew: 0x05A1,
  27733. pbopomofo: 0x3106,
  27734. pcircle: 0x24DF,
  27735. pdotaccent: 0x1E57,
  27736. pe: 0x05E4,
  27737. pecyrillic: 0x043F,
  27738. pedagesh: 0xFB44,
  27739. pedageshhebrew: 0xFB44,
  27740. peezisquare: 0x333B,
  27741. pefinaldageshhebrew: 0xFB43,
  27742. peharabic: 0x067E,
  27743. peharmenian: 0x057A,
  27744. pehebrew: 0x05E4,
  27745. pehfinalarabic: 0xFB57,
  27746. pehinitialarabic: 0xFB58,
  27747. pehiragana: 0x307A,
  27748. pehmedialarabic: 0xFB59,
  27749. pekatakana: 0x30DA,
  27750. pemiddlehookcyrillic: 0x04A7,
  27751. perafehebrew: 0xFB4E,
  27752. percent: 0x0025,
  27753. percentarabic: 0x066A,
  27754. percentmonospace: 0xFF05,
  27755. percentsmall: 0xFE6A,
  27756. period: 0x002E,
  27757. periodarmenian: 0x0589,
  27758. periodcentered: 0x00B7,
  27759. periodhalfwidth: 0xFF61,
  27760. periodinferior: 0xF6E7,
  27761. periodmonospace: 0xFF0E,
  27762. periodsmall: 0xFE52,
  27763. periodsuperior: 0xF6E8,
  27764. perispomenigreekcmb: 0x0342,
  27765. perpendicular: 0x22A5,
  27766. perthousand: 0x2030,
  27767. peseta: 0x20A7,
  27768. pfsquare: 0x338A,
  27769. phabengali: 0x09AB,
  27770. phadeva: 0x092B,
  27771. phagujarati: 0x0AAB,
  27772. phagurmukhi: 0x0A2B,
  27773. phi: 0x03C6,
  27774. phi1: 0x03D5,
  27775. phieuphacirclekorean: 0x327A,
  27776. phieuphaparenkorean: 0x321A,
  27777. phieuphcirclekorean: 0x326C,
  27778. phieuphkorean: 0x314D,
  27779. phieuphparenkorean: 0x320C,
  27780. philatin: 0x0278,
  27781. phinthuthai: 0x0E3A,
  27782. phisymbolgreek: 0x03D5,
  27783. phook: 0x01A5,
  27784. phophanthai: 0x0E1E,
  27785. phophungthai: 0x0E1C,
  27786. phosamphaothai: 0x0E20,
  27787. pi: 0x03C0,
  27788. pieupacirclekorean: 0x3273,
  27789. pieupaparenkorean: 0x3213,
  27790. pieupcieuckorean: 0x3176,
  27791. pieupcirclekorean: 0x3265,
  27792. pieupkiyeokkorean: 0x3172,
  27793. pieupkorean: 0x3142,
  27794. pieupparenkorean: 0x3205,
  27795. pieupsioskiyeokkorean: 0x3174,
  27796. pieupsioskorean: 0x3144,
  27797. pieupsiostikeutkorean: 0x3175,
  27798. pieupthieuthkorean: 0x3177,
  27799. pieuptikeutkorean: 0x3173,
  27800. pihiragana: 0x3074,
  27801. pikatakana: 0x30D4,
  27802. pisymbolgreek: 0x03D6,
  27803. piwrarmenian: 0x0583,
  27804. plus: 0x002B,
  27805. plusbelowcmb: 0x031F,
  27806. pluscircle: 0x2295,
  27807. plusminus: 0x00B1,
  27808. plusmod: 0x02D6,
  27809. plusmonospace: 0xFF0B,
  27810. plussmall: 0xFE62,
  27811. plussuperior: 0x207A,
  27812. pmonospace: 0xFF50,
  27813. pmsquare: 0x33D8,
  27814. pohiragana: 0x307D,
  27815. pointingindexdownwhite: 0x261F,
  27816. pointingindexleftwhite: 0x261C,
  27817. pointingindexrightwhite: 0x261E,
  27818. pointingindexupwhite: 0x261D,
  27819. pokatakana: 0x30DD,
  27820. poplathai: 0x0E1B,
  27821. postalmark: 0x3012,
  27822. postalmarkface: 0x3020,
  27823. pparen: 0x24AB,
  27824. precedes: 0x227A,
  27825. prescription: 0x211E,
  27826. primemod: 0x02B9,
  27827. primereversed: 0x2035,
  27828. product: 0x220F,
  27829. projective: 0x2305,
  27830. prolongedkana: 0x30FC,
  27831. propellor: 0x2318,
  27832. propersubset: 0x2282,
  27833. propersuperset: 0x2283,
  27834. proportion: 0x2237,
  27835. proportional: 0x221D,
  27836. psi: 0x03C8,
  27837. psicyrillic: 0x0471,
  27838. psilipneumatacyrilliccmb: 0x0486,
  27839. pssquare: 0x33B0,
  27840. puhiragana: 0x3077,
  27841. pukatakana: 0x30D7,
  27842. pvsquare: 0x33B4,
  27843. pwsquare: 0x33BA,
  27844. q: 0x0071,
  27845. qadeva: 0x0958,
  27846. qadmahebrew: 0x05A8,
  27847. qafarabic: 0x0642,
  27848. qaffinalarabic: 0xFED6,
  27849. qafinitialarabic: 0xFED7,
  27850. qafmedialarabic: 0xFED8,
  27851. qamats: 0x05B8,
  27852. qamats10: 0x05B8,
  27853. qamats1a: 0x05B8,
  27854. qamats1c: 0x05B8,
  27855. qamats27: 0x05B8,
  27856. qamats29: 0x05B8,
  27857. qamats33: 0x05B8,
  27858. qamatsde: 0x05B8,
  27859. qamatshebrew: 0x05B8,
  27860. qamatsnarrowhebrew: 0x05B8,
  27861. qamatsqatanhebrew: 0x05B8,
  27862. qamatsqatannarrowhebrew: 0x05B8,
  27863. qamatsqatanquarterhebrew: 0x05B8,
  27864. qamatsqatanwidehebrew: 0x05B8,
  27865. qamatsquarterhebrew: 0x05B8,
  27866. qamatswidehebrew: 0x05B8,
  27867. qarneyparahebrew: 0x059F,
  27868. qbopomofo: 0x3111,
  27869. qcircle: 0x24E0,
  27870. qhook: 0x02A0,
  27871. qmonospace: 0xFF51,
  27872. qof: 0x05E7,
  27873. qofdagesh: 0xFB47,
  27874. qofdageshhebrew: 0xFB47,
  27875. qofhebrew: 0x05E7,
  27876. qparen: 0x24AC,
  27877. quarternote: 0x2669,
  27878. qubuts: 0x05BB,
  27879. qubuts18: 0x05BB,
  27880. qubuts25: 0x05BB,
  27881. qubuts31: 0x05BB,
  27882. qubutshebrew: 0x05BB,
  27883. qubutsnarrowhebrew: 0x05BB,
  27884. qubutsquarterhebrew: 0x05BB,
  27885. qubutswidehebrew: 0x05BB,
  27886. question: 0x003F,
  27887. questionarabic: 0x061F,
  27888. questionarmenian: 0x055E,
  27889. questiondown: 0x00BF,
  27890. questiondownsmall: 0xF7BF,
  27891. questiongreek: 0x037E,
  27892. questionmonospace: 0xFF1F,
  27893. questionsmall: 0xF73F,
  27894. quotedbl: 0x0022,
  27895. quotedblbase: 0x201E,
  27896. quotedblleft: 0x201C,
  27897. quotedblmonospace: 0xFF02,
  27898. quotedblprime: 0x301E,
  27899. quotedblprimereversed: 0x301D,
  27900. quotedblright: 0x201D,
  27901. quoteleft: 0x2018,
  27902. quoteleftreversed: 0x201B,
  27903. quotereversed: 0x201B,
  27904. quoteright: 0x2019,
  27905. quoterightn: 0x0149,
  27906. quotesinglbase: 0x201A,
  27907. quotesingle: 0x0027,
  27908. quotesinglemonospace: 0xFF07,
  27909. r: 0x0072,
  27910. raarmenian: 0x057C,
  27911. rabengali: 0x09B0,
  27912. racute: 0x0155,
  27913. radeva: 0x0930,
  27914. radical: 0x221A,
  27915. radicalex: 0xF8E5,
  27916. radoverssquare: 0x33AE,
  27917. radoverssquaredsquare: 0x33AF,
  27918. radsquare: 0x33AD,
  27919. rafe: 0x05BF,
  27920. rafehebrew: 0x05BF,
  27921. ragujarati: 0x0AB0,
  27922. ragurmukhi: 0x0A30,
  27923. rahiragana: 0x3089,
  27924. rakatakana: 0x30E9,
  27925. rakatakanahalfwidth: 0xFF97,
  27926. ralowerdiagonalbengali: 0x09F1,
  27927. ramiddlediagonalbengali: 0x09F0,
  27928. ramshorn: 0x0264,
  27929. ratio: 0x2236,
  27930. rbopomofo: 0x3116,
  27931. rcaron: 0x0159,
  27932. rcedilla: 0x0157,
  27933. rcircle: 0x24E1,
  27934. rcommaaccent: 0x0157,
  27935. rdblgrave: 0x0211,
  27936. rdotaccent: 0x1E59,
  27937. rdotbelow: 0x1E5B,
  27938. rdotbelowmacron: 0x1E5D,
  27939. referencemark: 0x203B,
  27940. reflexsubset: 0x2286,
  27941. reflexsuperset: 0x2287,
  27942. registered: 0x00AE,
  27943. registersans: 0xF8E8,
  27944. registerserif: 0xF6DA,
  27945. reharabic: 0x0631,
  27946. reharmenian: 0x0580,
  27947. rehfinalarabic: 0xFEAE,
  27948. rehiragana: 0x308C,
  27949. rekatakana: 0x30EC,
  27950. rekatakanahalfwidth: 0xFF9A,
  27951. resh: 0x05E8,
  27952. reshdageshhebrew: 0xFB48,
  27953. reshhebrew: 0x05E8,
  27954. reversedtilde: 0x223D,
  27955. reviahebrew: 0x0597,
  27956. reviamugrashhebrew: 0x0597,
  27957. revlogicalnot: 0x2310,
  27958. rfishhook: 0x027E,
  27959. rfishhookreversed: 0x027F,
  27960. rhabengali: 0x09DD,
  27961. rhadeva: 0x095D,
  27962. rho: 0x03C1,
  27963. rhook: 0x027D,
  27964. rhookturned: 0x027B,
  27965. rhookturnedsuperior: 0x02B5,
  27966. rhosymbolgreek: 0x03F1,
  27967. rhotichookmod: 0x02DE,
  27968. rieulacirclekorean: 0x3271,
  27969. rieulaparenkorean: 0x3211,
  27970. rieulcirclekorean: 0x3263,
  27971. rieulhieuhkorean: 0x3140,
  27972. rieulkiyeokkorean: 0x313A,
  27973. rieulkiyeoksioskorean: 0x3169,
  27974. rieulkorean: 0x3139,
  27975. rieulmieumkorean: 0x313B,
  27976. rieulpansioskorean: 0x316C,
  27977. rieulparenkorean: 0x3203,
  27978. rieulphieuphkorean: 0x313F,
  27979. rieulpieupkorean: 0x313C,
  27980. rieulpieupsioskorean: 0x316B,
  27981. rieulsioskorean: 0x313D,
  27982. rieulthieuthkorean: 0x313E,
  27983. rieultikeutkorean: 0x316A,
  27984. rieulyeorinhieuhkorean: 0x316D,
  27985. rightangle: 0x221F,
  27986. righttackbelowcmb: 0x0319,
  27987. righttriangle: 0x22BF,
  27988. rihiragana: 0x308A,
  27989. rikatakana: 0x30EA,
  27990. rikatakanahalfwidth: 0xFF98,
  27991. ring: 0x02DA,
  27992. ringbelowcmb: 0x0325,
  27993. ringcmb: 0x030A,
  27994. ringhalfleft: 0x02BF,
  27995. ringhalfleftarmenian: 0x0559,
  27996. ringhalfleftbelowcmb: 0x031C,
  27997. ringhalfleftcentered: 0x02D3,
  27998. ringhalfright: 0x02BE,
  27999. ringhalfrightbelowcmb: 0x0339,
  28000. ringhalfrightcentered: 0x02D2,
  28001. rinvertedbreve: 0x0213,
  28002. rittorusquare: 0x3351,
  28003. rlinebelow: 0x1E5F,
  28004. rlongleg: 0x027C,
  28005. rlonglegturned: 0x027A,
  28006. rmonospace: 0xFF52,
  28007. rohiragana: 0x308D,
  28008. rokatakana: 0x30ED,
  28009. rokatakanahalfwidth: 0xFF9B,
  28010. roruathai: 0x0E23,
  28011. rparen: 0x24AD,
  28012. rrabengali: 0x09DC,
  28013. rradeva: 0x0931,
  28014. rragurmukhi: 0x0A5C,
  28015. rreharabic: 0x0691,
  28016. rrehfinalarabic: 0xFB8D,
  28017. rrvocalicbengali: 0x09E0,
  28018. rrvocalicdeva: 0x0960,
  28019. rrvocalicgujarati: 0x0AE0,
  28020. rrvocalicvowelsignbengali: 0x09C4,
  28021. rrvocalicvowelsigndeva: 0x0944,
  28022. rrvocalicvowelsigngujarati: 0x0AC4,
  28023. rsuperior: 0xF6F1,
  28024. rtblock: 0x2590,
  28025. rturned: 0x0279,
  28026. rturnedsuperior: 0x02B4,
  28027. ruhiragana: 0x308B,
  28028. rukatakana: 0x30EB,
  28029. rukatakanahalfwidth: 0xFF99,
  28030. rupeemarkbengali: 0x09F2,
  28031. rupeesignbengali: 0x09F3,
  28032. rupiah: 0xF6DD,
  28033. ruthai: 0x0E24,
  28034. rvocalicbengali: 0x098B,
  28035. rvocalicdeva: 0x090B,
  28036. rvocalicgujarati: 0x0A8B,
  28037. rvocalicvowelsignbengali: 0x09C3,
  28038. rvocalicvowelsigndeva: 0x0943,
  28039. rvocalicvowelsigngujarati: 0x0AC3,
  28040. s: 0x0073,
  28041. sabengali: 0x09B8,
  28042. sacute: 0x015B,
  28043. sacutedotaccent: 0x1E65,
  28044. sadarabic: 0x0635,
  28045. sadeva: 0x0938,
  28046. sadfinalarabic: 0xFEBA,
  28047. sadinitialarabic: 0xFEBB,
  28048. sadmedialarabic: 0xFEBC,
  28049. sagujarati: 0x0AB8,
  28050. sagurmukhi: 0x0A38,
  28051. sahiragana: 0x3055,
  28052. sakatakana: 0x30B5,
  28053. sakatakanahalfwidth: 0xFF7B,
  28054. sallallahoualayhewasallamarabic: 0xFDFA,
  28055. samekh: 0x05E1,
  28056. samekhdagesh: 0xFB41,
  28057. samekhdageshhebrew: 0xFB41,
  28058. samekhhebrew: 0x05E1,
  28059. saraaathai: 0x0E32,
  28060. saraaethai: 0x0E41,
  28061. saraaimaimalaithai: 0x0E44,
  28062. saraaimaimuanthai: 0x0E43,
  28063. saraamthai: 0x0E33,
  28064. saraathai: 0x0E30,
  28065. saraethai: 0x0E40,
  28066. saraiileftthai: 0xF886,
  28067. saraiithai: 0x0E35,
  28068. saraileftthai: 0xF885,
  28069. saraithai: 0x0E34,
  28070. saraothai: 0x0E42,
  28071. saraueeleftthai: 0xF888,
  28072. saraueethai: 0x0E37,
  28073. saraueleftthai: 0xF887,
  28074. sarauethai: 0x0E36,
  28075. sarauthai: 0x0E38,
  28076. sarauuthai: 0x0E39,
  28077. sbopomofo: 0x3119,
  28078. scaron: 0x0161,
  28079. scarondotaccent: 0x1E67,
  28080. scedilla: 0x015F,
  28081. schwa: 0x0259,
  28082. schwacyrillic: 0x04D9,
  28083. schwadieresiscyrillic: 0x04DB,
  28084. schwahook: 0x025A,
  28085. scircle: 0x24E2,
  28086. scircumflex: 0x015D,
  28087. scommaaccent: 0x0219,
  28088. sdotaccent: 0x1E61,
  28089. sdotbelow: 0x1E63,
  28090. sdotbelowdotaccent: 0x1E69,
  28091. seagullbelowcmb: 0x033C,
  28092. second: 0x2033,
  28093. secondtonechinese: 0x02CA,
  28094. section: 0x00A7,
  28095. seenarabic: 0x0633,
  28096. seenfinalarabic: 0xFEB2,
  28097. seeninitialarabic: 0xFEB3,
  28098. seenmedialarabic: 0xFEB4,
  28099. segol: 0x05B6,
  28100. segol13: 0x05B6,
  28101. segol1f: 0x05B6,
  28102. segol2c: 0x05B6,
  28103. segolhebrew: 0x05B6,
  28104. segolnarrowhebrew: 0x05B6,
  28105. segolquarterhebrew: 0x05B6,
  28106. segoltahebrew: 0x0592,
  28107. segolwidehebrew: 0x05B6,
  28108. seharmenian: 0x057D,
  28109. sehiragana: 0x305B,
  28110. sekatakana: 0x30BB,
  28111. sekatakanahalfwidth: 0xFF7E,
  28112. semicolon: 0x003B,
  28113. semicolonarabic: 0x061B,
  28114. semicolonmonospace: 0xFF1B,
  28115. semicolonsmall: 0xFE54,
  28116. semivoicedmarkkana: 0x309C,
  28117. semivoicedmarkkanahalfwidth: 0xFF9F,
  28118. sentisquare: 0x3322,
  28119. sentosquare: 0x3323,
  28120. seven: 0x0037,
  28121. sevenarabic: 0x0667,
  28122. sevenbengali: 0x09ED,
  28123. sevencircle: 0x2466,
  28124. sevencircleinversesansserif: 0x2790,
  28125. sevendeva: 0x096D,
  28126. seveneighths: 0x215E,
  28127. sevengujarati: 0x0AED,
  28128. sevengurmukhi: 0x0A6D,
  28129. sevenhackarabic: 0x0667,
  28130. sevenhangzhou: 0x3027,
  28131. sevenideographicparen: 0x3226,
  28132. seveninferior: 0x2087,
  28133. sevenmonospace: 0xFF17,
  28134. sevenoldstyle: 0xF737,
  28135. sevenparen: 0x247A,
  28136. sevenperiod: 0x248E,
  28137. sevenpersian: 0x06F7,
  28138. sevenroman: 0x2176,
  28139. sevensuperior: 0x2077,
  28140. seventeencircle: 0x2470,
  28141. seventeenparen: 0x2484,
  28142. seventeenperiod: 0x2498,
  28143. seventhai: 0x0E57,
  28144. sfthyphen: 0x00AD,
  28145. shaarmenian: 0x0577,
  28146. shabengali: 0x09B6,
  28147. shacyrillic: 0x0448,
  28148. shaddaarabic: 0x0651,
  28149. shaddadammaarabic: 0xFC61,
  28150. shaddadammatanarabic: 0xFC5E,
  28151. shaddafathaarabic: 0xFC60,
  28152. shaddakasraarabic: 0xFC62,
  28153. shaddakasratanarabic: 0xFC5F,
  28154. shade: 0x2592,
  28155. shadedark: 0x2593,
  28156. shadelight: 0x2591,
  28157. shademedium: 0x2592,
  28158. shadeva: 0x0936,
  28159. shagujarati: 0x0AB6,
  28160. shagurmukhi: 0x0A36,
  28161. shalshelethebrew: 0x0593,
  28162. shbopomofo: 0x3115,
  28163. shchacyrillic: 0x0449,
  28164. sheenarabic: 0x0634,
  28165. sheenfinalarabic: 0xFEB6,
  28166. sheeninitialarabic: 0xFEB7,
  28167. sheenmedialarabic: 0xFEB8,
  28168. sheicoptic: 0x03E3,
  28169. sheqel: 0x20AA,
  28170. sheqelhebrew: 0x20AA,
  28171. sheva: 0x05B0,
  28172. sheva115: 0x05B0,
  28173. sheva15: 0x05B0,
  28174. sheva22: 0x05B0,
  28175. sheva2e: 0x05B0,
  28176. shevahebrew: 0x05B0,
  28177. shevanarrowhebrew: 0x05B0,
  28178. shevaquarterhebrew: 0x05B0,
  28179. shevawidehebrew: 0x05B0,
  28180. shhacyrillic: 0x04BB,
  28181. shimacoptic: 0x03ED,
  28182. shin: 0x05E9,
  28183. shindagesh: 0xFB49,
  28184. shindageshhebrew: 0xFB49,
  28185. shindageshshindot: 0xFB2C,
  28186. shindageshshindothebrew: 0xFB2C,
  28187. shindageshsindot: 0xFB2D,
  28188. shindageshsindothebrew: 0xFB2D,
  28189. shindothebrew: 0x05C1,
  28190. shinhebrew: 0x05E9,
  28191. shinshindot: 0xFB2A,
  28192. shinshindothebrew: 0xFB2A,
  28193. shinsindot: 0xFB2B,
  28194. shinsindothebrew: 0xFB2B,
  28195. shook: 0x0282,
  28196. sigma: 0x03C3,
  28197. sigma1: 0x03C2,
  28198. sigmafinal: 0x03C2,
  28199. sigmalunatesymbolgreek: 0x03F2,
  28200. sihiragana: 0x3057,
  28201. sikatakana: 0x30B7,
  28202. sikatakanahalfwidth: 0xFF7C,
  28203. siluqhebrew: 0x05BD,
  28204. siluqlefthebrew: 0x05BD,
  28205. similar: 0x223C,
  28206. sindothebrew: 0x05C2,
  28207. siosacirclekorean: 0x3274,
  28208. siosaparenkorean: 0x3214,
  28209. sioscieuckorean: 0x317E,
  28210. sioscirclekorean: 0x3266,
  28211. sioskiyeokkorean: 0x317A,
  28212. sioskorean: 0x3145,
  28213. siosnieunkorean: 0x317B,
  28214. siosparenkorean: 0x3206,
  28215. siospieupkorean: 0x317D,
  28216. siostikeutkorean: 0x317C,
  28217. six: 0x0036,
  28218. sixarabic: 0x0666,
  28219. sixbengali: 0x09EC,
  28220. sixcircle: 0x2465,
  28221. sixcircleinversesansserif: 0x278F,
  28222. sixdeva: 0x096C,
  28223. sixgujarati: 0x0AEC,
  28224. sixgurmukhi: 0x0A6C,
  28225. sixhackarabic: 0x0666,
  28226. sixhangzhou: 0x3026,
  28227. sixideographicparen: 0x3225,
  28228. sixinferior: 0x2086,
  28229. sixmonospace: 0xFF16,
  28230. sixoldstyle: 0xF736,
  28231. sixparen: 0x2479,
  28232. sixperiod: 0x248D,
  28233. sixpersian: 0x06F6,
  28234. sixroman: 0x2175,
  28235. sixsuperior: 0x2076,
  28236. sixteencircle: 0x246F,
  28237. sixteencurrencydenominatorbengali: 0x09F9,
  28238. sixteenparen: 0x2483,
  28239. sixteenperiod: 0x2497,
  28240. sixthai: 0x0E56,
  28241. slash: 0x002F,
  28242. slashmonospace: 0xFF0F,
  28243. slong: 0x017F,
  28244. slongdotaccent: 0x1E9B,
  28245. smileface: 0x263A,
  28246. smonospace: 0xFF53,
  28247. sofpasuqhebrew: 0x05C3,
  28248. softhyphen: 0x00AD,
  28249. softsigncyrillic: 0x044C,
  28250. sohiragana: 0x305D,
  28251. sokatakana: 0x30BD,
  28252. sokatakanahalfwidth: 0xFF7F,
  28253. soliduslongoverlaycmb: 0x0338,
  28254. solidusshortoverlaycmb: 0x0337,
  28255. sorusithai: 0x0E29,
  28256. sosalathai: 0x0E28,
  28257. sosothai: 0x0E0B,
  28258. sosuathai: 0x0E2A,
  28259. space: 0x0020,
  28260. spacehackarabic: 0x0020,
  28261. spade: 0x2660,
  28262. spadesuitblack: 0x2660,
  28263. spadesuitwhite: 0x2664,
  28264. sparen: 0x24AE,
  28265. squarebelowcmb: 0x033B,
  28266. squarecc: 0x33C4,
  28267. squarecm: 0x339D,
  28268. squarediagonalcrosshatchfill: 0x25A9,
  28269. squarehorizontalfill: 0x25A4,
  28270. squarekg: 0x338F,
  28271. squarekm: 0x339E,
  28272. squarekmcapital: 0x33CE,
  28273. squareln: 0x33D1,
  28274. squarelog: 0x33D2,
  28275. squaremg: 0x338E,
  28276. squaremil: 0x33D5,
  28277. squaremm: 0x339C,
  28278. squaremsquared: 0x33A1,
  28279. squareorthogonalcrosshatchfill: 0x25A6,
  28280. squareupperlefttolowerrightfill: 0x25A7,
  28281. squareupperrighttolowerleftfill: 0x25A8,
  28282. squareverticalfill: 0x25A5,
  28283. squarewhitewithsmallblack: 0x25A3,
  28284. srsquare: 0x33DB,
  28285. ssabengali: 0x09B7,
  28286. ssadeva: 0x0937,
  28287. ssagujarati: 0x0AB7,
  28288. ssangcieuckorean: 0x3149,
  28289. ssanghieuhkorean: 0x3185,
  28290. ssangieungkorean: 0x3180,
  28291. ssangkiyeokkorean: 0x3132,
  28292. ssangnieunkorean: 0x3165,
  28293. ssangpieupkorean: 0x3143,
  28294. ssangsioskorean: 0x3146,
  28295. ssangtikeutkorean: 0x3138,
  28296. ssuperior: 0xF6F2,
  28297. sterling: 0x00A3,
  28298. sterlingmonospace: 0xFFE1,
  28299. strokelongoverlaycmb: 0x0336,
  28300. strokeshortoverlaycmb: 0x0335,
  28301. subset: 0x2282,
  28302. subsetnotequal: 0x228A,
  28303. subsetorequal: 0x2286,
  28304. succeeds: 0x227B,
  28305. suchthat: 0x220B,
  28306. suhiragana: 0x3059,
  28307. sukatakana: 0x30B9,
  28308. sukatakanahalfwidth: 0xFF7D,
  28309. sukunarabic: 0x0652,
  28310. summation: 0x2211,
  28311. sun: 0x263C,
  28312. superset: 0x2283,
  28313. supersetnotequal: 0x228B,
  28314. supersetorequal: 0x2287,
  28315. svsquare: 0x33DC,
  28316. syouwaerasquare: 0x337C,
  28317. t: 0x0074,
  28318. tabengali: 0x09A4,
  28319. tackdown: 0x22A4,
  28320. tackleft: 0x22A3,
  28321. tadeva: 0x0924,
  28322. tagujarati: 0x0AA4,
  28323. tagurmukhi: 0x0A24,
  28324. taharabic: 0x0637,
  28325. tahfinalarabic: 0xFEC2,
  28326. tahinitialarabic: 0xFEC3,
  28327. tahiragana: 0x305F,
  28328. tahmedialarabic: 0xFEC4,
  28329. taisyouerasquare: 0x337D,
  28330. takatakana: 0x30BF,
  28331. takatakanahalfwidth: 0xFF80,
  28332. tatweelarabic: 0x0640,
  28333. tau: 0x03C4,
  28334. tav: 0x05EA,
  28335. tavdages: 0xFB4A,
  28336. tavdagesh: 0xFB4A,
  28337. tavdageshhebrew: 0xFB4A,
  28338. tavhebrew: 0x05EA,
  28339. tbar: 0x0167,
  28340. tbopomofo: 0x310A,
  28341. tcaron: 0x0165,
  28342. tccurl: 0x02A8,
  28343. tcedilla: 0x0163,
  28344. tcheharabic: 0x0686,
  28345. tchehfinalarabic: 0xFB7B,
  28346. tchehinitialarabic: 0xFB7C,
  28347. tchehmedialarabic: 0xFB7D,
  28348. tcircle: 0x24E3,
  28349. tcircumflexbelow: 0x1E71,
  28350. tcommaaccent: 0x0163,
  28351. tdieresis: 0x1E97,
  28352. tdotaccent: 0x1E6B,
  28353. tdotbelow: 0x1E6D,
  28354. tecyrillic: 0x0442,
  28355. tedescendercyrillic: 0x04AD,
  28356. teharabic: 0x062A,
  28357. tehfinalarabic: 0xFE96,
  28358. tehhahinitialarabic: 0xFCA2,
  28359. tehhahisolatedarabic: 0xFC0C,
  28360. tehinitialarabic: 0xFE97,
  28361. tehiragana: 0x3066,
  28362. tehjeeminitialarabic: 0xFCA1,
  28363. tehjeemisolatedarabic: 0xFC0B,
  28364. tehmarbutaarabic: 0x0629,
  28365. tehmarbutafinalarabic: 0xFE94,
  28366. tehmedialarabic: 0xFE98,
  28367. tehmeeminitialarabic: 0xFCA4,
  28368. tehmeemisolatedarabic: 0xFC0E,
  28369. tehnoonfinalarabic: 0xFC73,
  28370. tekatakana: 0x30C6,
  28371. tekatakanahalfwidth: 0xFF83,
  28372. telephone: 0x2121,
  28373. telephoneblack: 0x260E,
  28374. telishagedolahebrew: 0x05A0,
  28375. telishaqetanahebrew: 0x05A9,
  28376. tencircle: 0x2469,
  28377. tenideographicparen: 0x3229,
  28378. tenparen: 0x247D,
  28379. tenperiod: 0x2491,
  28380. tenroman: 0x2179,
  28381. tesh: 0x02A7,
  28382. tet: 0x05D8,
  28383. tetdagesh: 0xFB38,
  28384. tetdageshhebrew: 0xFB38,
  28385. tethebrew: 0x05D8,
  28386. tetsecyrillic: 0x04B5,
  28387. tevirhebrew: 0x059B,
  28388. tevirlefthebrew: 0x059B,
  28389. thabengali: 0x09A5,
  28390. thadeva: 0x0925,
  28391. thagujarati: 0x0AA5,
  28392. thagurmukhi: 0x0A25,
  28393. thalarabic: 0x0630,
  28394. thalfinalarabic: 0xFEAC,
  28395. thanthakhatlowleftthai: 0xF898,
  28396. thanthakhatlowrightthai: 0xF897,
  28397. thanthakhatthai: 0x0E4C,
  28398. thanthakhatupperleftthai: 0xF896,
  28399. theharabic: 0x062B,
  28400. thehfinalarabic: 0xFE9A,
  28401. thehinitialarabic: 0xFE9B,
  28402. thehmedialarabic: 0xFE9C,
  28403. thereexists: 0x2203,
  28404. therefore: 0x2234,
  28405. theta: 0x03B8,
  28406. theta1: 0x03D1,
  28407. thetasymbolgreek: 0x03D1,
  28408. thieuthacirclekorean: 0x3279,
  28409. thieuthaparenkorean: 0x3219,
  28410. thieuthcirclekorean: 0x326B,
  28411. thieuthkorean: 0x314C,
  28412. thieuthparenkorean: 0x320B,
  28413. thirteencircle: 0x246C,
  28414. thirteenparen: 0x2480,
  28415. thirteenperiod: 0x2494,
  28416. thonangmonthothai: 0x0E11,
  28417. thook: 0x01AD,
  28418. thophuthaothai: 0x0E12,
  28419. thorn: 0x00FE,
  28420. thothahanthai: 0x0E17,
  28421. thothanthai: 0x0E10,
  28422. thothongthai: 0x0E18,
  28423. thothungthai: 0x0E16,
  28424. thousandcyrillic: 0x0482,
  28425. thousandsseparatorarabic: 0x066C,
  28426. thousandsseparatorpersian: 0x066C,
  28427. three: 0x0033,
  28428. threearabic: 0x0663,
  28429. threebengali: 0x09E9,
  28430. threecircle: 0x2462,
  28431. threecircleinversesansserif: 0x278C,
  28432. threedeva: 0x0969,
  28433. threeeighths: 0x215C,
  28434. threegujarati: 0x0AE9,
  28435. threegurmukhi: 0x0A69,
  28436. threehackarabic: 0x0663,
  28437. threehangzhou: 0x3023,
  28438. threeideographicparen: 0x3222,
  28439. threeinferior: 0x2083,
  28440. threemonospace: 0xFF13,
  28441. threenumeratorbengali: 0x09F6,
  28442. threeoldstyle: 0xF733,
  28443. threeparen: 0x2476,
  28444. threeperiod: 0x248A,
  28445. threepersian: 0x06F3,
  28446. threequarters: 0x00BE,
  28447. threequartersemdash: 0xF6DE,
  28448. threeroman: 0x2172,
  28449. threesuperior: 0x00B3,
  28450. threethai: 0x0E53,
  28451. thzsquare: 0x3394,
  28452. tihiragana: 0x3061,
  28453. tikatakana: 0x30C1,
  28454. tikatakanahalfwidth: 0xFF81,
  28455. tikeutacirclekorean: 0x3270,
  28456. tikeutaparenkorean: 0x3210,
  28457. tikeutcirclekorean: 0x3262,
  28458. tikeutkorean: 0x3137,
  28459. tikeutparenkorean: 0x3202,
  28460. tilde: 0x02DC,
  28461. tildebelowcmb: 0x0330,
  28462. tildecmb: 0x0303,
  28463. tildecomb: 0x0303,
  28464. tildedoublecmb: 0x0360,
  28465. tildeoperator: 0x223C,
  28466. tildeoverlaycmb: 0x0334,
  28467. tildeverticalcmb: 0x033E,
  28468. timescircle: 0x2297,
  28469. tipehahebrew: 0x0596,
  28470. tipehalefthebrew: 0x0596,
  28471. tippigurmukhi: 0x0A70,
  28472. titlocyrilliccmb: 0x0483,
  28473. tiwnarmenian: 0x057F,
  28474. tlinebelow: 0x1E6F,
  28475. tmonospace: 0xFF54,
  28476. toarmenian: 0x0569,
  28477. tohiragana: 0x3068,
  28478. tokatakana: 0x30C8,
  28479. tokatakanahalfwidth: 0xFF84,
  28480. tonebarextrahighmod: 0x02E5,
  28481. tonebarextralowmod: 0x02E9,
  28482. tonebarhighmod: 0x02E6,
  28483. tonebarlowmod: 0x02E8,
  28484. tonebarmidmod: 0x02E7,
  28485. tonefive: 0x01BD,
  28486. tonesix: 0x0185,
  28487. tonetwo: 0x01A8,
  28488. tonos: 0x0384,
  28489. tonsquare: 0x3327,
  28490. topatakthai: 0x0E0F,
  28491. tortoiseshellbracketleft: 0x3014,
  28492. tortoiseshellbracketleftsmall: 0xFE5D,
  28493. tortoiseshellbracketleftvertical: 0xFE39,
  28494. tortoiseshellbracketright: 0x3015,
  28495. tortoiseshellbracketrightsmall: 0xFE5E,
  28496. tortoiseshellbracketrightvertical: 0xFE3A,
  28497. totaothai: 0x0E15,
  28498. tpalatalhook: 0x01AB,
  28499. tparen: 0x24AF,
  28500. trademark: 0x2122,
  28501. trademarksans: 0xF8EA,
  28502. trademarkserif: 0xF6DB,
  28503. tretroflexhook: 0x0288,
  28504. triagdn: 0x25BC,
  28505. triaglf: 0x25C4,
  28506. triagrt: 0x25BA,
  28507. triagup: 0x25B2,
  28508. ts: 0x02A6,
  28509. tsadi: 0x05E6,
  28510. tsadidagesh: 0xFB46,
  28511. tsadidageshhebrew: 0xFB46,
  28512. tsadihebrew: 0x05E6,
  28513. tsecyrillic: 0x0446,
  28514. tsere: 0x05B5,
  28515. tsere12: 0x05B5,
  28516. tsere1e: 0x05B5,
  28517. tsere2b: 0x05B5,
  28518. tserehebrew: 0x05B5,
  28519. tserenarrowhebrew: 0x05B5,
  28520. tserequarterhebrew: 0x05B5,
  28521. tserewidehebrew: 0x05B5,
  28522. tshecyrillic: 0x045B,
  28523. tsuperior: 0xF6F3,
  28524. ttabengali: 0x099F,
  28525. ttadeva: 0x091F,
  28526. ttagujarati: 0x0A9F,
  28527. ttagurmukhi: 0x0A1F,
  28528. tteharabic: 0x0679,
  28529. ttehfinalarabic: 0xFB67,
  28530. ttehinitialarabic: 0xFB68,
  28531. ttehmedialarabic: 0xFB69,
  28532. tthabengali: 0x09A0,
  28533. tthadeva: 0x0920,
  28534. tthagujarati: 0x0AA0,
  28535. tthagurmukhi: 0x0A20,
  28536. tturned: 0x0287,
  28537. tuhiragana: 0x3064,
  28538. tukatakana: 0x30C4,
  28539. tukatakanahalfwidth: 0xFF82,
  28540. tusmallhiragana: 0x3063,
  28541. tusmallkatakana: 0x30C3,
  28542. tusmallkatakanahalfwidth: 0xFF6F,
  28543. twelvecircle: 0x246B,
  28544. twelveparen: 0x247F,
  28545. twelveperiod: 0x2493,
  28546. twelveroman: 0x217B,
  28547. twentycircle: 0x2473,
  28548. twentyhangzhou: 0x5344,
  28549. twentyparen: 0x2487,
  28550. twentyperiod: 0x249B,
  28551. two: 0x0032,
  28552. twoarabic: 0x0662,
  28553. twobengali: 0x09E8,
  28554. twocircle: 0x2461,
  28555. twocircleinversesansserif: 0x278B,
  28556. twodeva: 0x0968,
  28557. twodotenleader: 0x2025,
  28558. twodotleader: 0x2025,
  28559. twodotleadervertical: 0xFE30,
  28560. twogujarati: 0x0AE8,
  28561. twogurmukhi: 0x0A68,
  28562. twohackarabic: 0x0662,
  28563. twohangzhou: 0x3022,
  28564. twoideographicparen: 0x3221,
  28565. twoinferior: 0x2082,
  28566. twomonospace: 0xFF12,
  28567. twonumeratorbengali: 0x09F5,
  28568. twooldstyle: 0xF732,
  28569. twoparen: 0x2475,
  28570. twoperiod: 0x2489,
  28571. twopersian: 0x06F2,
  28572. tworoman: 0x2171,
  28573. twostroke: 0x01BB,
  28574. twosuperior: 0x00B2,
  28575. twothai: 0x0E52,
  28576. twothirds: 0x2154,
  28577. u: 0x0075,
  28578. uacute: 0x00FA,
  28579. ubar: 0x0289,
  28580. ubengali: 0x0989,
  28581. ubopomofo: 0x3128,
  28582. ubreve: 0x016D,
  28583. ucaron: 0x01D4,
  28584. ucircle: 0x24E4,
  28585. ucircumflex: 0x00FB,
  28586. ucircumflexbelow: 0x1E77,
  28587. ucyrillic: 0x0443,
  28588. udattadeva: 0x0951,
  28589. udblacute: 0x0171,
  28590. udblgrave: 0x0215,
  28591. udeva: 0x0909,
  28592. udieresis: 0x00FC,
  28593. udieresisacute: 0x01D8,
  28594. udieresisbelow: 0x1E73,
  28595. udieresiscaron: 0x01DA,
  28596. udieresiscyrillic: 0x04F1,
  28597. udieresisgrave: 0x01DC,
  28598. udieresismacron: 0x01D6,
  28599. udotbelow: 0x1EE5,
  28600. ugrave: 0x00F9,
  28601. ugujarati: 0x0A89,
  28602. ugurmukhi: 0x0A09,
  28603. uhiragana: 0x3046,
  28604. uhookabove: 0x1EE7,
  28605. uhorn: 0x01B0,
  28606. uhornacute: 0x1EE9,
  28607. uhorndotbelow: 0x1EF1,
  28608. uhorngrave: 0x1EEB,
  28609. uhornhookabove: 0x1EED,
  28610. uhorntilde: 0x1EEF,
  28611. uhungarumlaut: 0x0171,
  28612. uhungarumlautcyrillic: 0x04F3,
  28613. uinvertedbreve: 0x0217,
  28614. ukatakana: 0x30A6,
  28615. ukatakanahalfwidth: 0xFF73,
  28616. ukcyrillic: 0x0479,
  28617. ukorean: 0x315C,
  28618. umacron: 0x016B,
  28619. umacroncyrillic: 0x04EF,
  28620. umacrondieresis: 0x1E7B,
  28621. umatragurmukhi: 0x0A41,
  28622. umonospace: 0xFF55,
  28623. underscore: 0x005F,
  28624. underscoredbl: 0x2017,
  28625. underscoremonospace: 0xFF3F,
  28626. underscorevertical: 0xFE33,
  28627. underscorewavy: 0xFE4F,
  28628. union: 0x222A,
  28629. universal: 0x2200,
  28630. uogonek: 0x0173,
  28631. uparen: 0x24B0,
  28632. upblock: 0x2580,
  28633. upperdothebrew: 0x05C4,
  28634. upsilon: 0x03C5,
  28635. upsilondieresis: 0x03CB,
  28636. upsilondieresistonos: 0x03B0,
  28637. upsilonlatin: 0x028A,
  28638. upsilontonos: 0x03CD,
  28639. uptackbelowcmb: 0x031D,
  28640. uptackmod: 0x02D4,
  28641. uragurmukhi: 0x0A73,
  28642. uring: 0x016F,
  28643. ushortcyrillic: 0x045E,
  28644. usmallhiragana: 0x3045,
  28645. usmallkatakana: 0x30A5,
  28646. usmallkatakanahalfwidth: 0xFF69,
  28647. ustraightcyrillic: 0x04AF,
  28648. ustraightstrokecyrillic: 0x04B1,
  28649. utilde: 0x0169,
  28650. utildeacute: 0x1E79,
  28651. utildebelow: 0x1E75,
  28652. uubengali: 0x098A,
  28653. uudeva: 0x090A,
  28654. uugujarati: 0x0A8A,
  28655. uugurmukhi: 0x0A0A,
  28656. uumatragurmukhi: 0x0A42,
  28657. uuvowelsignbengali: 0x09C2,
  28658. uuvowelsigndeva: 0x0942,
  28659. uuvowelsigngujarati: 0x0AC2,
  28660. uvowelsignbengali: 0x09C1,
  28661. uvowelsigndeva: 0x0941,
  28662. uvowelsigngujarati: 0x0AC1,
  28663. v: 0x0076,
  28664. vadeva: 0x0935,
  28665. vagujarati: 0x0AB5,
  28666. vagurmukhi: 0x0A35,
  28667. vakatakana: 0x30F7,
  28668. vav: 0x05D5,
  28669. vavdagesh: 0xFB35,
  28670. vavdagesh65: 0xFB35,
  28671. vavdageshhebrew: 0xFB35,
  28672. vavhebrew: 0x05D5,
  28673. vavholam: 0xFB4B,
  28674. vavholamhebrew: 0xFB4B,
  28675. vavvavhebrew: 0x05F0,
  28676. vavyodhebrew: 0x05F1,
  28677. vcircle: 0x24E5,
  28678. vdotbelow: 0x1E7F,
  28679. vecyrillic: 0x0432,
  28680. veharabic: 0x06A4,
  28681. vehfinalarabic: 0xFB6B,
  28682. vehinitialarabic: 0xFB6C,
  28683. vehmedialarabic: 0xFB6D,
  28684. vekatakana: 0x30F9,
  28685. venus: 0x2640,
  28686. verticalbar: 0x007C,
  28687. verticallineabovecmb: 0x030D,
  28688. verticallinebelowcmb: 0x0329,
  28689. verticallinelowmod: 0x02CC,
  28690. verticallinemod: 0x02C8,
  28691. vewarmenian: 0x057E,
  28692. vhook: 0x028B,
  28693. vikatakana: 0x30F8,
  28694. viramabengali: 0x09CD,
  28695. viramadeva: 0x094D,
  28696. viramagujarati: 0x0ACD,
  28697. visargabengali: 0x0983,
  28698. visargadeva: 0x0903,
  28699. visargagujarati: 0x0A83,
  28700. vmonospace: 0xFF56,
  28701. voarmenian: 0x0578,
  28702. voicediterationhiragana: 0x309E,
  28703. voicediterationkatakana: 0x30FE,
  28704. voicedmarkkana: 0x309B,
  28705. voicedmarkkanahalfwidth: 0xFF9E,
  28706. vokatakana: 0x30FA,
  28707. vparen: 0x24B1,
  28708. vtilde: 0x1E7D,
  28709. vturned: 0x028C,
  28710. vuhiragana: 0x3094,
  28711. vukatakana: 0x30F4,
  28712. w: 0x0077,
  28713. wacute: 0x1E83,
  28714. waekorean: 0x3159,
  28715. wahiragana: 0x308F,
  28716. wakatakana: 0x30EF,
  28717. wakatakanahalfwidth: 0xFF9C,
  28718. wakorean: 0x3158,
  28719. wasmallhiragana: 0x308E,
  28720. wasmallkatakana: 0x30EE,
  28721. wattosquare: 0x3357,
  28722. wavedash: 0x301C,
  28723. wavyunderscorevertical: 0xFE34,
  28724. wawarabic: 0x0648,
  28725. wawfinalarabic: 0xFEEE,
  28726. wawhamzaabovearabic: 0x0624,
  28727. wawhamzaabovefinalarabic: 0xFE86,
  28728. wbsquare: 0x33DD,
  28729. wcircle: 0x24E6,
  28730. wcircumflex: 0x0175,
  28731. wdieresis: 0x1E85,
  28732. wdotaccent: 0x1E87,
  28733. wdotbelow: 0x1E89,
  28734. wehiragana: 0x3091,
  28735. weierstrass: 0x2118,
  28736. wekatakana: 0x30F1,
  28737. wekorean: 0x315E,
  28738. weokorean: 0x315D,
  28739. wgrave: 0x1E81,
  28740. whitebullet: 0x25E6,
  28741. whitecircle: 0x25CB,
  28742. whitecircleinverse: 0x25D9,
  28743. whitecornerbracketleft: 0x300E,
  28744. whitecornerbracketleftvertical: 0xFE43,
  28745. whitecornerbracketright: 0x300F,
  28746. whitecornerbracketrightvertical: 0xFE44,
  28747. whitediamond: 0x25C7,
  28748. whitediamondcontainingblacksmalldiamond: 0x25C8,
  28749. whitedownpointingsmalltriangle: 0x25BF,
  28750. whitedownpointingtriangle: 0x25BD,
  28751. whiteleftpointingsmalltriangle: 0x25C3,
  28752. whiteleftpointingtriangle: 0x25C1,
  28753. whitelenticularbracketleft: 0x3016,
  28754. whitelenticularbracketright: 0x3017,
  28755. whiterightpointingsmalltriangle: 0x25B9,
  28756. whiterightpointingtriangle: 0x25B7,
  28757. whitesmallsquare: 0x25AB,
  28758. whitesmilingface: 0x263A,
  28759. whitesquare: 0x25A1,
  28760. whitestar: 0x2606,
  28761. whitetelephone: 0x260F,
  28762. whitetortoiseshellbracketleft: 0x3018,
  28763. whitetortoiseshellbracketright: 0x3019,
  28764. whiteuppointingsmalltriangle: 0x25B5,
  28765. whiteuppointingtriangle: 0x25B3,
  28766. wihiragana: 0x3090,
  28767. wikatakana: 0x30F0,
  28768. wikorean: 0x315F,
  28769. wmonospace: 0xFF57,
  28770. wohiragana: 0x3092,
  28771. wokatakana: 0x30F2,
  28772. wokatakanahalfwidth: 0xFF66,
  28773. won: 0x20A9,
  28774. wonmonospace: 0xFFE6,
  28775. wowaenthai: 0x0E27,
  28776. wparen: 0x24B2,
  28777. wring: 0x1E98,
  28778. wsuperior: 0x02B7,
  28779. wturned: 0x028D,
  28780. wynn: 0x01BF,
  28781. x: 0x0078,
  28782. xabovecmb: 0x033D,
  28783. xbopomofo: 0x3112,
  28784. xcircle: 0x24E7,
  28785. xdieresis: 0x1E8D,
  28786. xdotaccent: 0x1E8B,
  28787. xeharmenian: 0x056D,
  28788. xi: 0x03BE,
  28789. xmonospace: 0xFF58,
  28790. xparen: 0x24B3,
  28791. xsuperior: 0x02E3,
  28792. y: 0x0079,
  28793. yaadosquare: 0x334E,
  28794. yabengali: 0x09AF,
  28795. yacute: 0x00FD,
  28796. yadeva: 0x092F,
  28797. yaekorean: 0x3152,
  28798. yagujarati: 0x0AAF,
  28799. yagurmukhi: 0x0A2F,
  28800. yahiragana: 0x3084,
  28801. yakatakana: 0x30E4,
  28802. yakatakanahalfwidth: 0xFF94,
  28803. yakorean: 0x3151,
  28804. yamakkanthai: 0x0E4E,
  28805. yasmallhiragana: 0x3083,
  28806. yasmallkatakana: 0x30E3,
  28807. yasmallkatakanahalfwidth: 0xFF6C,
  28808. yatcyrillic: 0x0463,
  28809. ycircle: 0x24E8,
  28810. ycircumflex: 0x0177,
  28811. ydieresis: 0x00FF,
  28812. ydotaccent: 0x1E8F,
  28813. ydotbelow: 0x1EF5,
  28814. yeharabic: 0x064A,
  28815. yehbarreearabic: 0x06D2,
  28816. yehbarreefinalarabic: 0xFBAF,
  28817. yehfinalarabic: 0xFEF2,
  28818. yehhamzaabovearabic: 0x0626,
  28819. yehhamzaabovefinalarabic: 0xFE8A,
  28820. yehhamzaaboveinitialarabic: 0xFE8B,
  28821. yehhamzaabovemedialarabic: 0xFE8C,
  28822. yehinitialarabic: 0xFEF3,
  28823. yehmedialarabic: 0xFEF4,
  28824. yehmeeminitialarabic: 0xFCDD,
  28825. yehmeemisolatedarabic: 0xFC58,
  28826. yehnoonfinalarabic: 0xFC94,
  28827. yehthreedotsbelowarabic: 0x06D1,
  28828. yekorean: 0x3156,
  28829. yen: 0x00A5,
  28830. yenmonospace: 0xFFE5,
  28831. yeokorean: 0x3155,
  28832. yeorinhieuhkorean: 0x3186,
  28833. yerahbenyomohebrew: 0x05AA,
  28834. yerahbenyomolefthebrew: 0x05AA,
  28835. yericyrillic: 0x044B,
  28836. yerudieresiscyrillic: 0x04F9,
  28837. yesieungkorean: 0x3181,
  28838. yesieungpansioskorean: 0x3183,
  28839. yesieungsioskorean: 0x3182,
  28840. yetivhebrew: 0x059A,
  28841. ygrave: 0x1EF3,
  28842. yhook: 0x01B4,
  28843. yhookabove: 0x1EF7,
  28844. yiarmenian: 0x0575,
  28845. yicyrillic: 0x0457,
  28846. yikorean: 0x3162,
  28847. yinyang: 0x262F,
  28848. yiwnarmenian: 0x0582,
  28849. ymonospace: 0xFF59,
  28850. yod: 0x05D9,
  28851. yoddagesh: 0xFB39,
  28852. yoddageshhebrew: 0xFB39,
  28853. yodhebrew: 0x05D9,
  28854. yodyodhebrew: 0x05F2,
  28855. yodyodpatahhebrew: 0xFB1F,
  28856. yohiragana: 0x3088,
  28857. yoikorean: 0x3189,
  28858. yokatakana: 0x30E8,
  28859. yokatakanahalfwidth: 0xFF96,
  28860. yokorean: 0x315B,
  28861. yosmallhiragana: 0x3087,
  28862. yosmallkatakana: 0x30E7,
  28863. yosmallkatakanahalfwidth: 0xFF6E,
  28864. yotgreek: 0x03F3,
  28865. yoyaekorean: 0x3188,
  28866. yoyakorean: 0x3187,
  28867. yoyakthai: 0x0E22,
  28868. yoyingthai: 0x0E0D,
  28869. yparen: 0x24B4,
  28870. ypogegrammeni: 0x037A,
  28871. ypogegrammenigreekcmb: 0x0345,
  28872. yr: 0x01A6,
  28873. yring: 0x1E99,
  28874. ysuperior: 0x02B8,
  28875. ytilde: 0x1EF9,
  28876. yturned: 0x028E,
  28877. yuhiragana: 0x3086,
  28878. yuikorean: 0x318C,
  28879. yukatakana: 0x30E6,
  28880. yukatakanahalfwidth: 0xFF95,
  28881. yukorean: 0x3160,
  28882. yusbigcyrillic: 0x046B,
  28883. yusbigiotifiedcyrillic: 0x046D,
  28884. yuslittlecyrillic: 0x0467,
  28885. yuslittleiotifiedcyrillic: 0x0469,
  28886. yusmallhiragana: 0x3085,
  28887. yusmallkatakana: 0x30E5,
  28888. yusmallkatakanahalfwidth: 0xFF6D,
  28889. yuyekorean: 0x318B,
  28890. yuyeokorean: 0x318A,
  28891. yyabengali: 0x09DF,
  28892. yyadeva: 0x095F,
  28893. z: 0x007A,
  28894. zaarmenian: 0x0566,
  28895. zacute: 0x017A,
  28896. zadeva: 0x095B,
  28897. zagurmukhi: 0x0A5B,
  28898. zaharabic: 0x0638,
  28899. zahfinalarabic: 0xFEC6,
  28900. zahinitialarabic: 0xFEC7,
  28901. zahiragana: 0x3056,
  28902. zahmedialarabic: 0xFEC8,
  28903. zainarabic: 0x0632,
  28904. zainfinalarabic: 0xFEB0,
  28905. zakatakana: 0x30B6,
  28906. zaqefgadolhebrew: 0x0595,
  28907. zaqefqatanhebrew: 0x0594,
  28908. zarqahebrew: 0x0598,
  28909. zayin: 0x05D6,
  28910. zayindagesh: 0xFB36,
  28911. zayindageshhebrew: 0xFB36,
  28912. zayinhebrew: 0x05D6,
  28913. zbopomofo: 0x3117,
  28914. zcaron: 0x017E,
  28915. zcircle: 0x24E9,
  28916. zcircumflex: 0x1E91,
  28917. zcurl: 0x0291,
  28918. zdot: 0x017C,
  28919. zdotaccent: 0x017C,
  28920. zdotbelow: 0x1E93,
  28921. zecyrillic: 0x0437,
  28922. zedescendercyrillic: 0x0499,
  28923. zedieresiscyrillic: 0x04DF,
  28924. zehiragana: 0x305C,
  28925. zekatakana: 0x30BC,
  28926. zero: 0x0030,
  28927. zeroarabic: 0x0660,
  28928. zerobengali: 0x09E6,
  28929. zerodeva: 0x0966,
  28930. zerogujarati: 0x0AE6,
  28931. zerogurmukhi: 0x0A66,
  28932. zerohackarabic: 0x0660,
  28933. zeroinferior: 0x2080,
  28934. zeromonospace: 0xFF10,
  28935. zerooldstyle: 0xF730,
  28936. zeropersian: 0x06F0,
  28937. zerosuperior: 0x2070,
  28938. zerothai: 0x0E50,
  28939. zerowidthjoiner: 0xFEFF,
  28940. zerowidthnonjoiner: 0x200C,
  28941. zerowidthspace: 0x200B,
  28942. zeta: 0x03B6,
  28943. zhbopomofo: 0x3113,
  28944. zhearmenian: 0x056A,
  28945. zhebrevecyrillic: 0x04C2,
  28946. zhecyrillic: 0x0436,
  28947. zhedescendercyrillic: 0x0497,
  28948. zhedieresiscyrillic: 0x04DD,
  28949. zihiragana: 0x3058,
  28950. zikatakana: 0x30B8,
  28951. zinorhebrew: 0x05AE,
  28952. zlinebelow: 0x1E95,
  28953. zmonospace: 0xFF5A,
  28954. zohiragana: 0x305E,
  28955. zokatakana: 0x30BE,
  28956. zparen: 0x24B5,
  28957. zretroflexhook: 0x0290,
  28958. zstroke: 0x01B6,
  28959. zuhiragana: 0x305A,
  28960. zukatakana: 0x30BA,
  28961. '.notdef': 0x0000
  28962. };
  28963. var PDFImage = (function PDFImageClosure() {
  28964. /**
  28965. * Decode the image in the main thread if it supported. Resovles the promise
  28966. * when the image data is ready.
  28967. */
  28968. function handleImageData(handler, xref, res, image) {
  28969. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  28970. // For natively supported jpegs send them to the main thread for decoding.
  28971. var dict = image.dict;
  28972. var colorSpace = dict.get('ColorSpace', 'CS');
  28973. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  28974. var numComps = colorSpace.numComps;
  28975. var decodePromise = handler.sendWithPromise('JpegDecode',
  28976. [image.getIR(), numComps]);
  28977. return decodePromise.then(function (message) {
  28978. var data = message.data;
  28979. return new Stream(data, 0, data.length, image.dict);
  28980. });
  28981. } else {
  28982. return Promise.resolve(image);
  28983. }
  28984. }
  28985. /**
  28986. * Decode and clamp a value. The formula is different from the spec because we
  28987. * don't decode to float range [0,1], we decode it in the [0,max] range.
  28988. */
  28989. function decodeAndClamp(value, addend, coefficient, max) {
  28990. value = addend + value * coefficient;
  28991. // Clamp the value to the range
  28992. return (value < 0 ? 0 : (value > max ? max : value));
  28993. }
  28994. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  28995. this.image = image;
  28996. var dict = image.dict;
  28997. if (dict.has('Filter')) {
  28998. var filter = dict.get('Filter').name;
  28999. if (filter === 'JPXDecode') {
  29000. var jpxImage = new JpxImage();
  29001. jpxImage.parseImageProperties(image.stream);
  29002. image.stream.reset();
  29003. image.bitsPerComponent = jpxImage.bitsPerComponent;
  29004. image.numComps = jpxImage.componentsCount;
  29005. } else if (filter === 'JBIG2Decode') {
  29006. image.bitsPerComponent = 1;
  29007. image.numComps = 1;
  29008. }
  29009. }
  29010. // TODO cache rendered images?
  29011. this.width = dict.get('Width', 'W');
  29012. this.height = dict.get('Height', 'H');
  29013. if (this.width < 1 || this.height < 1) {
  29014. error('Invalid image width: ' + this.width + ' or height: ' +
  29015. this.height);
  29016. }
  29017. this.interpolate = dict.get('Interpolate', 'I') || false;
  29018. this.imageMask = dict.get('ImageMask', 'IM') || false;
  29019. this.matte = dict.get('Matte') || false;
  29020. var bitsPerComponent = image.bitsPerComponent;
  29021. if (!bitsPerComponent) {
  29022. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  29023. if (!bitsPerComponent) {
  29024. if (this.imageMask) {
  29025. bitsPerComponent = 1;
  29026. } else {
  29027. error('Bits per component missing in image: ' + this.imageMask);
  29028. }
  29029. }
  29030. }
  29031. this.bpc = bitsPerComponent;
  29032. if (!this.imageMask) {
  29033. var colorSpace = dict.get('ColorSpace', 'CS');
  29034. if (!colorSpace) {
  29035. info('JPX images (which do not require color spaces)');
  29036. switch (image.numComps) {
  29037. case 1:
  29038. colorSpace = Name.get('DeviceGray');
  29039. break;
  29040. case 3:
  29041. colorSpace = Name.get('DeviceRGB');
  29042. break;
  29043. case 4:
  29044. colorSpace = Name.get('DeviceCMYK');
  29045. break;
  29046. default:
  29047. error('JPX images with ' + this.numComps +
  29048. ' color components not supported.');
  29049. }
  29050. }
  29051. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  29052. this.numComps = this.colorSpace.numComps;
  29053. }
  29054. this.decode = dict.get('Decode', 'D');
  29055. this.needsDecode = false;
  29056. if (this.decode &&
  29057. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  29058. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  29059. this.needsDecode = true;
  29060. // Do some preprocessing to avoid more math.
  29061. var max = (1 << bitsPerComponent) - 1;
  29062. this.decodeCoefficients = [];
  29063. this.decodeAddends = [];
  29064. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  29065. var dmin = this.decode[i];
  29066. var dmax = this.decode[i + 1];
  29067. this.decodeCoefficients[j] = dmax - dmin;
  29068. this.decodeAddends[j] = max * dmin;
  29069. }
  29070. }
  29071. if (smask) {
  29072. this.smask = new PDFImage(xref, res, smask, false);
  29073. } else if (mask) {
  29074. if (isStream(mask)) {
  29075. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  29076. } else {
  29077. // Color key mask (just an array).
  29078. this.mask = mask;
  29079. }
  29080. }
  29081. }
  29082. /**
  29083. * Handles processing of image data and returns the Promise that is resolved
  29084. * with a PDFImage when the image is ready to be used.
  29085. */
  29086. PDFImage.buildImage = function PDFImage_buildImage(handler, xref,
  29087. res, image, inline) {
  29088. var imagePromise = handleImageData(handler, xref, res, image);
  29089. var smaskPromise;
  29090. var maskPromise;
  29091. var smask = image.dict.get('SMask');
  29092. var mask = image.dict.get('Mask');
  29093. if (smask) {
  29094. smaskPromise = handleImageData(handler, xref, res, smask);
  29095. maskPromise = Promise.resolve(null);
  29096. } else {
  29097. smaskPromise = Promise.resolve(null);
  29098. if (mask) {
  29099. if (isStream(mask)) {
  29100. maskPromise = handleImageData(handler, xref, res, mask);
  29101. } else if (isArray(mask)) {
  29102. maskPromise = Promise.resolve(mask);
  29103. } else {
  29104. warn('Unsupported mask format.');
  29105. maskPromise = Promise.resolve(null);
  29106. }
  29107. } else {
  29108. maskPromise = Promise.resolve(null);
  29109. }
  29110. }
  29111. return Promise.all([imagePromise, smaskPromise, maskPromise]).then(
  29112. function(results) {
  29113. var imageData = results[0];
  29114. var smaskData = results[1];
  29115. var maskData = results[2];
  29116. return new PDFImage(xref, res, imageData, inline, smaskData, maskData);
  29117. });
  29118. };
  29119. /**
  29120. * Resize an image using the nearest neighbor algorithm. Currently only
  29121. * supports one and three component images.
  29122. * @param {TypedArray} pixels The original image with one component.
  29123. * @param {Number} bpc Number of bits per component.
  29124. * @param {Number} components Number of color components, 1 or 3 is supported.
  29125. * @param {Number} w1 Original width.
  29126. * @param {Number} h1 Original height.
  29127. * @param {Number} w2 New width.
  29128. * @param {Number} h2 New height.
  29129. * @param {TypedArray} dest (Optional) The destination buffer.
  29130. * @param {Number} alpha01 (Optional) Size reserved for the alpha channel.
  29131. * @return {TypedArray} Resized image data.
  29132. */
  29133. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  29134. w1, h1, w2, h2, dest, alpha01) {
  29135. if (components !== 1 && components !== 3) {
  29136. error('Unsupported component count for resizing.');
  29137. }
  29138. var length = w2 * h2 * components;
  29139. var temp = dest ? dest : (bpc <= 8 ? new Uint8Array(length) :
  29140. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  29141. var xRatio = w1 / w2;
  29142. var yRatio = h1 / h2;
  29143. var i, j, py, newIndex = 0, oldIndex;
  29144. var xScaled = new Uint16Array(w2);
  29145. var w1Scanline = w1 * components;
  29146. if (alpha01 !== 1) {
  29147. alpha01 = 0;
  29148. }
  29149. for (j = 0; j < w2; j++) {
  29150. xScaled[j] = Math.floor(j * xRatio) * components;
  29151. }
  29152. if (components === 1) {
  29153. for (i = 0; i < h2; i++) {
  29154. py = Math.floor(i * yRatio) * w1Scanline;
  29155. for (j = 0; j < w2; j++) {
  29156. oldIndex = py + xScaled[j];
  29157. temp[newIndex++] = pixels[oldIndex];
  29158. }
  29159. }
  29160. } else if (components === 3) {
  29161. for (i = 0; i < h2; i++) {
  29162. py = Math.floor(i * yRatio) * w1Scanline;
  29163. for (j = 0; j < w2; j++) {
  29164. oldIndex = py + xScaled[j];
  29165. temp[newIndex++] = pixels[oldIndex++];
  29166. temp[newIndex++] = pixels[oldIndex++];
  29167. temp[newIndex++] = pixels[oldIndex++];
  29168. newIndex += alpha01;
  29169. }
  29170. }
  29171. }
  29172. return temp;
  29173. };
  29174. PDFImage.createMask =
  29175. function PDFImage_createMask(imgArray, width, height, canTransfer,
  29176. inverseDecode) {
  29177. // If imgArray came from a DecodeStream, we're safe to transfer it.
  29178. // Otherwise, copy it.
  29179. var actualLength = imgArray.byteLength;
  29180. var data;
  29181. if (canTransfer) {
  29182. data = imgArray;
  29183. } else {
  29184. data = new Uint8Array(actualLength);
  29185. data.set(imgArray);
  29186. }
  29187. // Invert if necessary. It's safe to modify the array -- whether it's the
  29188. // original or a copy, we're about to transfer it anyway, so nothing else
  29189. // in this thread can be relying on its contents.
  29190. if (inverseDecode) {
  29191. for (var i = 0; i < actualLength; i++) {
  29192. data[i] = ~data[i];
  29193. }
  29194. }
  29195. return {data: data, width: width, height: height};
  29196. };
  29197. PDFImage.prototype = {
  29198. get drawWidth() {
  29199. return Math.max(this.width,
  29200. this.smask && this.smask.width || 0,
  29201. this.mask && this.mask.width || 0);
  29202. },
  29203. get drawHeight() {
  29204. return Math.max(this.height,
  29205. this.smask && this.smask.height || 0,
  29206. this.mask && this.mask.height || 0);
  29207. },
  29208. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  29209. var bpc = this.bpc;
  29210. var numComps = this.numComps;
  29211. var decodeAddends = this.decodeAddends;
  29212. var decodeCoefficients = this.decodeCoefficients;
  29213. var max = (1 << bpc) - 1;
  29214. var i, ii;
  29215. if (bpc === 1) {
  29216. // If the buffer needed decode that means it just needs to be inverted.
  29217. for (i = 0, ii = buffer.length; i < ii; i++) {
  29218. buffer[i] = +!(buffer[i]);
  29219. }
  29220. return;
  29221. }
  29222. var index = 0;
  29223. for (i = 0, ii = this.width * this.height; i < ii; i++) {
  29224. for (var j = 0; j < numComps; j++) {
  29225. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  29226. decodeCoefficients[j], max);
  29227. index++;
  29228. }
  29229. }
  29230. },
  29231. getComponents: function PDFImage_getComponents(buffer) {
  29232. var bpc = this.bpc;
  29233. // This image doesn't require any extra work.
  29234. if (bpc === 8) {
  29235. return buffer;
  29236. }
  29237. var width = this.width;
  29238. var height = this.height;
  29239. var numComps = this.numComps;
  29240. var length = width * height * numComps;
  29241. var bufferPos = 0;
  29242. var output = (bpc <= 8 ? new Uint8Array(length) :
  29243. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  29244. var rowComps = width * numComps;
  29245. var max = (1 << bpc) - 1;
  29246. var i = 0, ii, buf;
  29247. if (bpc === 1) {
  29248. // Optimization for reading 1 bpc images.
  29249. var mask, loop1End, loop2End;
  29250. for (var j = 0; j < height; j++) {
  29251. loop1End = i + (rowComps & ~7);
  29252. loop2End = i + rowComps;
  29253. // unroll loop for all full bytes
  29254. while (i < loop1End) {
  29255. buf = buffer[bufferPos++];
  29256. output[i] = (buf >> 7) & 1;
  29257. output[i + 1] = (buf >> 6) & 1;
  29258. output[i + 2] = (buf >> 5) & 1;
  29259. output[i + 3] = (buf >> 4) & 1;
  29260. output[i + 4] = (buf >> 3) & 1;
  29261. output[i + 5] = (buf >> 2) & 1;
  29262. output[i + 6] = (buf >> 1) & 1;
  29263. output[i + 7] = buf & 1;
  29264. i += 8;
  29265. }
  29266. // handle remaing bits
  29267. if (i < loop2End) {
  29268. buf = buffer[bufferPos++];
  29269. mask = 128;
  29270. while (i < loop2End) {
  29271. output[i++] = +!!(buf & mask);
  29272. mask >>= 1;
  29273. }
  29274. }
  29275. }
  29276. } else {
  29277. // The general case that handles all other bpc values.
  29278. var bits = 0;
  29279. buf = 0;
  29280. for (i = 0, ii = length; i < ii; ++i) {
  29281. if (i % rowComps === 0) {
  29282. buf = 0;
  29283. bits = 0;
  29284. }
  29285. while (bits < bpc) {
  29286. buf = (buf << 8) | buffer[bufferPos++];
  29287. bits += 8;
  29288. }
  29289. var remainingBits = bits - bpc;
  29290. var value = buf >> remainingBits;
  29291. output[i] = (value < 0 ? 0 : (value > max ? max : value));
  29292. buf = buf & ((1 << remainingBits) - 1);
  29293. bits = remainingBits;
  29294. }
  29295. }
  29296. return output;
  29297. },
  29298. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  29299. actualHeight, image) {
  29300. var smask = this.smask;
  29301. var mask = this.mask;
  29302. var alphaBuf, sw, sh, i, ii, j;
  29303. if (smask) {
  29304. sw = smask.width;
  29305. sh = smask.height;
  29306. alphaBuf = new Uint8Array(sw * sh);
  29307. smask.fillGrayBuffer(alphaBuf);
  29308. if (sw != width || sh != height) {
  29309. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  29310. height);
  29311. }
  29312. } else if (mask) {
  29313. if (mask instanceof PDFImage) {
  29314. sw = mask.width;
  29315. sh = mask.height;
  29316. alphaBuf = new Uint8Array(sw * sh);
  29317. mask.numComps = 1;
  29318. mask.fillGrayBuffer(alphaBuf);
  29319. // Need to invert values in rgbaBuf
  29320. for (i = 0, ii = sw * sh; i < ii; ++i) {
  29321. alphaBuf[i] = 255 - alphaBuf[i];
  29322. }
  29323. if (sw != width || sh != height) {
  29324. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  29325. height);
  29326. }
  29327. } else if (isArray(mask)) {
  29328. // Color key mask: if any of the compontents are outside the range
  29329. // then they should be painted.
  29330. alphaBuf = new Uint8Array(width * height);
  29331. var numComps = this.numComps;
  29332. for (i = 0, ii = width * height; i < ii; ++i) {
  29333. var opacity = 0;
  29334. var imageOffset = i * numComps;
  29335. for (j = 0; j < numComps; ++j) {
  29336. var color = image[imageOffset + j];
  29337. var maskOffset = j * 2;
  29338. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  29339. opacity = 255;
  29340. break;
  29341. }
  29342. }
  29343. alphaBuf[i] = opacity;
  29344. }
  29345. } else {
  29346. error('Unknown mask format.');
  29347. }
  29348. }
  29349. if (alphaBuf) {
  29350. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29351. rgbaBuf[j] = alphaBuf[i];
  29352. }
  29353. } else {
  29354. // No mask.
  29355. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29356. rgbaBuf[j] = 255;
  29357. }
  29358. }
  29359. },
  29360. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  29361. var matte = this.smask && this.smask.matte;
  29362. if (!matte) {
  29363. return;
  29364. }
  29365. var matteRgb = this.colorSpace.getRgb(matte, 0);
  29366. var matteR = matteRgb[0];
  29367. var matteG = matteRgb[1];
  29368. var matteB = matteRgb[2];
  29369. var length = width * height * 4;
  29370. var r, g, b;
  29371. for (var i = 0; i < length; i += 4) {
  29372. var alpha = buffer[i + 3];
  29373. if (alpha === 0) {
  29374. // according formula we have to get Infinity in all components
  29375. // making it white (typical paper color) should be okay
  29376. buffer[i] = 255;
  29377. buffer[i + 1] = 255;
  29378. buffer[i + 2] = 255;
  29379. continue;
  29380. }
  29381. var k = 255 / alpha;
  29382. r = (buffer[i] - matteR) * k + matteR;
  29383. g = (buffer[i + 1] - matteG) * k + matteG;
  29384. b = (buffer[i + 2] - matteB) * k + matteB;
  29385. buffer[i] = r <= 0 ? 0 : r >= 255 ? 255 : r | 0;
  29386. buffer[i + 1] = g <= 0 ? 0 : g >= 255 ? 255 : g | 0;
  29387. buffer[i + 2] = b <= 0 ? 0 : b >= 255 ? 255 : b | 0;
  29388. }
  29389. },
  29390. createImageData: function PDFImage_createImageData(forceRGBA) {
  29391. var drawWidth = this.drawWidth;
  29392. var drawHeight = this.drawHeight;
  29393. var imgData = { // other fields are filled in below
  29394. width: drawWidth,
  29395. height: drawHeight
  29396. };
  29397. var numComps = this.numComps;
  29398. var originalWidth = this.width;
  29399. var originalHeight = this.height;
  29400. var bpc = this.bpc;
  29401. // Rows start at byte boundary.
  29402. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  29403. var imgArray;
  29404. if (!forceRGBA) {
  29405. // If it is a 1-bit-per-pixel grayscale (i.e. black-and-white) image
  29406. // without any complications, we pass a same-sized copy to the main
  29407. // thread rather than expanding by 32x to RGBA form. This saves *lots*
  29408. // of memory for many scanned documents. It's also much faster.
  29409. //
  29410. // Similarly, if it is a 24-bit-per pixel RGB image without any
  29411. // complications, we avoid expanding by 1.333x to RGBA form.
  29412. var kind;
  29413. if (this.colorSpace.name === 'DeviceGray' && bpc === 1) {
  29414. kind = ImageKind.GRAYSCALE_1BPP;
  29415. } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8) {
  29416. kind = ImageKind.RGB_24BPP;
  29417. }
  29418. if (kind && !this.smask && !this.mask && !this.needsDecode &&
  29419. drawWidth === originalWidth && drawHeight === originalHeight) {
  29420. imgData.kind = kind;
  29421. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29422. // If imgArray came from a DecodeStream, we're safe to transfer it
  29423. // (and thus neuter it) because it will constitute the entire
  29424. // DecodeStream's data. But if it came from a Stream, we need to
  29425. // copy it because it'll only be a portion of the Stream's data, and
  29426. // the rest will be read later on.
  29427. if (this.image instanceof DecodeStream) {
  29428. imgData.data = imgArray;
  29429. } else {
  29430. var newArray = new Uint8Array(imgArray.length);
  29431. newArray.set(imgArray);
  29432. imgData.data = newArray;
  29433. }
  29434. return imgData;
  29435. }
  29436. }
  29437. if (this.image instanceof JpegStream) {
  29438. imgData.kind = ImageKind.RGB_24BPP;
  29439. imgData.data = this.getImageBytes(originalHeight * rowBytes,
  29440. drawWidth, drawHeight);
  29441. return imgData;
  29442. }
  29443. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29444. // imgArray can be incomplete (e.g. after CCITT fax encoding).
  29445. var actualHeight = 0 | (imgArray.length / rowBytes *
  29446. drawHeight / originalHeight);
  29447. var comps = this.getComponents(imgArray);
  29448. // If opacity data is present, use RGBA_32BPP form. Otherwise, use the
  29449. // more compact RGB_24BPP form if allowable.
  29450. var alpha01, maybeUndoPreblend;
  29451. if (!forceRGBA && !this.smask && !this.mask) {
  29452. imgData.kind = ImageKind.RGB_24BPP;
  29453. imgData.data = new Uint8Array(drawWidth * drawHeight * 3);
  29454. alpha01 = 0;
  29455. maybeUndoPreblend = false;
  29456. } else {
  29457. imgData.kind = ImageKind.RGBA_32BPP;
  29458. imgData.data = new Uint8Array(drawWidth * drawHeight * 4);
  29459. alpha01 = 1;
  29460. maybeUndoPreblend = true;
  29461. // Color key masking (opacity) must be performed before decoding.
  29462. this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight,
  29463. comps);
  29464. }
  29465. if (this.needsDecode) {
  29466. this.decodeBuffer(comps);
  29467. }
  29468. this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight,
  29469. drawWidth, drawHeight, actualHeight, bpc, comps,
  29470. alpha01);
  29471. if (maybeUndoPreblend) {
  29472. this.undoPreblend(imgData.data, drawWidth, actualHeight);
  29473. }
  29474. return imgData;
  29475. },
  29476. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  29477. var numComps = this.numComps;
  29478. if (numComps != 1) {
  29479. error('Reading gray scale from a color image: ' + numComps);
  29480. }
  29481. var width = this.width;
  29482. var height = this.height;
  29483. var bpc = this.bpc;
  29484. // rows start at byte boundary
  29485. var rowBytes = (width * numComps * bpc + 7) >> 3;
  29486. var imgArray = this.getImageBytes(height * rowBytes);
  29487. var comps = this.getComponents(imgArray);
  29488. var i, length;
  29489. if (bpc === 1) {
  29490. // inline decoding (= inversion) for 1 bpc images
  29491. length = width * height;
  29492. if (this.needsDecode) {
  29493. // invert and scale to {0, 255}
  29494. for (i = 0; i < length; ++i) {
  29495. buffer[i] = (comps[i] - 1) & 255;
  29496. }
  29497. } else {
  29498. // scale to {0, 255}
  29499. for (i = 0; i < length; ++i) {
  29500. buffer[i] = (-comps[i]) & 255;
  29501. }
  29502. }
  29503. return;
  29504. }
  29505. if (this.needsDecode) {
  29506. this.decodeBuffer(comps);
  29507. }
  29508. length = width * height;
  29509. // we aren't using a colorspace so we need to scale the value
  29510. var scale = 255 / ((1 << bpc) - 1);
  29511. for (i = 0; i < length; ++i) {
  29512. buffer[i] = (scale * comps[i]) | 0;
  29513. }
  29514. },
  29515. getImageBytes: function PDFImage_getImageBytes(length,
  29516. drawWidth, drawHeight) {
  29517. this.image.reset();
  29518. this.image.drawWidth = drawWidth;
  29519. this.image.drawHeight = drawHeight;
  29520. return this.image.getBytes(length);
  29521. }
  29522. };
  29523. return PDFImage;
  29524. })();
  29525. // The Metrics object contains glyph widths (in glyph space units).
  29526. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  29527. // space unit corresponds to 1/1000th of text space unit.
  29528. var Metrics = {
  29529. 'Courier': 600,
  29530. 'Courier-Bold': 600,
  29531. 'Courier-BoldOblique': 600,
  29532. 'Courier-Oblique': 600,
  29533. 'Helvetica' : {
  29534. 'space': 278,
  29535. 'exclam': 278,
  29536. 'quotedbl': 355,
  29537. 'numbersign': 556,
  29538. 'dollar': 556,
  29539. 'percent': 889,
  29540. 'ampersand': 667,
  29541. 'quoteright': 222,
  29542. 'parenleft': 333,
  29543. 'parenright': 333,
  29544. 'asterisk': 389,
  29545. 'plus': 584,
  29546. 'comma': 278,
  29547. 'hyphen': 333,
  29548. 'period': 278,
  29549. 'slash': 278,
  29550. 'zero': 556,
  29551. 'one': 556,
  29552. 'two': 556,
  29553. 'three': 556,
  29554. 'four': 556,
  29555. 'five': 556,
  29556. 'six': 556,
  29557. 'seven': 556,
  29558. 'eight': 556,
  29559. 'nine': 556,
  29560. 'colon': 278,
  29561. 'semicolon': 278,
  29562. 'less': 584,
  29563. 'equal': 584,
  29564. 'greater': 584,
  29565. 'question': 556,
  29566. 'at': 1015,
  29567. 'A': 667,
  29568. 'B': 667,
  29569. 'C': 722,
  29570. 'D': 722,
  29571. 'E': 667,
  29572. 'F': 611,
  29573. 'G': 778,
  29574. 'H': 722,
  29575. 'I': 278,
  29576. 'J': 500,
  29577. 'K': 667,
  29578. 'L': 556,
  29579. 'M': 833,
  29580. 'N': 722,
  29581. 'O': 778,
  29582. 'P': 667,
  29583. 'Q': 778,
  29584. 'R': 722,
  29585. 'S': 667,
  29586. 'T': 611,
  29587. 'U': 722,
  29588. 'V': 667,
  29589. 'W': 944,
  29590. 'X': 667,
  29591. 'Y': 667,
  29592. 'Z': 611,
  29593. 'bracketleft': 278,
  29594. 'backslash': 278,
  29595. 'bracketright': 278,
  29596. 'asciicircum': 469,
  29597. 'underscore': 556,
  29598. 'quoteleft': 222,
  29599. 'a': 556,
  29600. 'b': 556,
  29601. 'c': 500,
  29602. 'd': 556,
  29603. 'e': 556,
  29604. 'f': 278,
  29605. 'g': 556,
  29606. 'h': 556,
  29607. 'i': 222,
  29608. 'j': 222,
  29609. 'k': 500,
  29610. 'l': 222,
  29611. 'm': 833,
  29612. 'n': 556,
  29613. 'o': 556,
  29614. 'p': 556,
  29615. 'q': 556,
  29616. 'r': 333,
  29617. 's': 500,
  29618. 't': 278,
  29619. 'u': 556,
  29620. 'v': 500,
  29621. 'w': 722,
  29622. 'x': 500,
  29623. 'y': 500,
  29624. 'z': 500,
  29625. 'braceleft': 334,
  29626. 'bar': 260,
  29627. 'braceright': 334,
  29628. 'asciitilde': 584,
  29629. 'exclamdown': 333,
  29630. 'cent': 556,
  29631. 'sterling': 556,
  29632. 'fraction': 167,
  29633. 'yen': 556,
  29634. 'florin': 556,
  29635. 'section': 556,
  29636. 'currency': 556,
  29637. 'quotesingle': 191,
  29638. 'quotedblleft': 333,
  29639. 'guillemotleft': 556,
  29640. 'guilsinglleft': 333,
  29641. 'guilsinglright': 333,
  29642. 'fi': 500,
  29643. 'fl': 500,
  29644. 'endash': 556,
  29645. 'dagger': 556,
  29646. 'daggerdbl': 556,
  29647. 'periodcentered': 278,
  29648. 'paragraph': 537,
  29649. 'bullet': 350,
  29650. 'quotesinglbase': 222,
  29651. 'quotedblbase': 333,
  29652. 'quotedblright': 333,
  29653. 'guillemotright': 556,
  29654. 'ellipsis': 1000,
  29655. 'perthousand': 1000,
  29656. 'questiondown': 611,
  29657. 'grave': 333,
  29658. 'acute': 333,
  29659. 'circumflex': 333,
  29660. 'tilde': 333,
  29661. 'macron': 333,
  29662. 'breve': 333,
  29663. 'dotaccent': 333,
  29664. 'dieresis': 333,
  29665. 'ring': 333,
  29666. 'cedilla': 333,
  29667. 'hungarumlaut': 333,
  29668. 'ogonek': 333,
  29669. 'caron': 333,
  29670. 'emdash': 1000,
  29671. 'AE': 1000,
  29672. 'ordfeminine': 370,
  29673. 'Lslash': 556,
  29674. 'Oslash': 778,
  29675. 'OE': 1000,
  29676. 'ordmasculine': 365,
  29677. 'ae': 889,
  29678. 'dotlessi': 278,
  29679. 'lslash': 222,
  29680. 'oslash': 611,
  29681. 'oe': 944,
  29682. 'germandbls': 611,
  29683. 'Idieresis': 278,
  29684. 'eacute': 556,
  29685. 'abreve': 556,
  29686. 'uhungarumlaut': 556,
  29687. 'ecaron': 556,
  29688. 'Ydieresis': 667,
  29689. 'divide': 584,
  29690. 'Yacute': 667,
  29691. 'Acircumflex': 667,
  29692. 'aacute': 556,
  29693. 'Ucircumflex': 722,
  29694. 'yacute': 500,
  29695. 'scommaaccent': 500,
  29696. 'ecircumflex': 556,
  29697. 'Uring': 722,
  29698. 'Udieresis': 722,
  29699. 'aogonek': 556,
  29700. 'Uacute': 722,
  29701. 'uogonek': 556,
  29702. 'Edieresis': 667,
  29703. 'Dcroat': 722,
  29704. 'commaaccent': 250,
  29705. 'copyright': 737,
  29706. 'Emacron': 667,
  29707. 'ccaron': 500,
  29708. 'aring': 556,
  29709. 'Ncommaaccent': 722,
  29710. 'lacute': 222,
  29711. 'agrave': 556,
  29712. 'Tcommaaccent': 611,
  29713. 'Cacute': 722,
  29714. 'atilde': 556,
  29715. 'Edotaccent': 667,
  29716. 'scaron': 500,
  29717. 'scedilla': 500,
  29718. 'iacute': 278,
  29719. 'lozenge': 471,
  29720. 'Rcaron': 722,
  29721. 'Gcommaaccent': 778,
  29722. 'ucircumflex': 556,
  29723. 'acircumflex': 556,
  29724. 'Amacron': 667,
  29725. 'rcaron': 333,
  29726. 'ccedilla': 500,
  29727. 'Zdotaccent': 611,
  29728. 'Thorn': 667,
  29729. 'Omacron': 778,
  29730. 'Racute': 722,
  29731. 'Sacute': 667,
  29732. 'dcaron': 643,
  29733. 'Umacron': 722,
  29734. 'uring': 556,
  29735. 'threesuperior': 333,
  29736. 'Ograve': 778,
  29737. 'Agrave': 667,
  29738. 'Abreve': 667,
  29739. 'multiply': 584,
  29740. 'uacute': 556,
  29741. 'Tcaron': 611,
  29742. 'partialdiff': 476,
  29743. 'ydieresis': 500,
  29744. 'Nacute': 722,
  29745. 'icircumflex': 278,
  29746. 'Ecircumflex': 667,
  29747. 'adieresis': 556,
  29748. 'edieresis': 556,
  29749. 'cacute': 500,
  29750. 'nacute': 556,
  29751. 'umacron': 556,
  29752. 'Ncaron': 722,
  29753. 'Iacute': 278,
  29754. 'plusminus': 584,
  29755. 'brokenbar': 260,
  29756. 'registered': 737,
  29757. 'Gbreve': 778,
  29758. 'Idotaccent': 278,
  29759. 'summation': 600,
  29760. 'Egrave': 667,
  29761. 'racute': 333,
  29762. 'omacron': 556,
  29763. 'Zacute': 611,
  29764. 'Zcaron': 611,
  29765. 'greaterequal': 549,
  29766. 'Eth': 722,
  29767. 'Ccedilla': 722,
  29768. 'lcommaaccent': 222,
  29769. 'tcaron': 317,
  29770. 'eogonek': 556,
  29771. 'Uogonek': 722,
  29772. 'Aacute': 667,
  29773. 'Adieresis': 667,
  29774. 'egrave': 556,
  29775. 'zacute': 500,
  29776. 'iogonek': 222,
  29777. 'Oacute': 778,
  29778. 'oacute': 556,
  29779. 'amacron': 556,
  29780. 'sacute': 500,
  29781. 'idieresis': 278,
  29782. 'Ocircumflex': 778,
  29783. 'Ugrave': 722,
  29784. 'Delta': 612,
  29785. 'thorn': 556,
  29786. 'twosuperior': 333,
  29787. 'Odieresis': 778,
  29788. 'mu': 556,
  29789. 'igrave': 278,
  29790. 'ohungarumlaut': 556,
  29791. 'Eogonek': 667,
  29792. 'dcroat': 556,
  29793. 'threequarters': 834,
  29794. 'Scedilla': 667,
  29795. 'lcaron': 299,
  29796. 'Kcommaaccent': 667,
  29797. 'Lacute': 556,
  29798. 'trademark': 1000,
  29799. 'edotaccent': 556,
  29800. 'Igrave': 278,
  29801. 'Imacron': 278,
  29802. 'Lcaron': 556,
  29803. 'onehalf': 834,
  29804. 'lessequal': 549,
  29805. 'ocircumflex': 556,
  29806. 'ntilde': 556,
  29807. 'Uhungarumlaut': 722,
  29808. 'Eacute': 667,
  29809. 'emacron': 556,
  29810. 'gbreve': 556,
  29811. 'onequarter': 834,
  29812. 'Scaron': 667,
  29813. 'Scommaaccent': 667,
  29814. 'Ohungarumlaut': 778,
  29815. 'degree': 400,
  29816. 'ograve': 556,
  29817. 'Ccaron': 722,
  29818. 'ugrave': 556,
  29819. 'radical': 453,
  29820. 'Dcaron': 722,
  29821. 'rcommaaccent': 333,
  29822. 'Ntilde': 722,
  29823. 'otilde': 556,
  29824. 'Rcommaaccent': 722,
  29825. 'Lcommaaccent': 556,
  29826. 'Atilde': 667,
  29827. 'Aogonek': 667,
  29828. 'Aring': 667,
  29829. 'Otilde': 778,
  29830. 'zdotaccent': 500,
  29831. 'Ecaron': 667,
  29832. 'Iogonek': 278,
  29833. 'kcommaaccent': 500,
  29834. 'minus': 584,
  29835. 'Icircumflex': 278,
  29836. 'ncaron': 556,
  29837. 'tcommaaccent': 278,
  29838. 'logicalnot': 584,
  29839. 'odieresis': 556,
  29840. 'udieresis': 556,
  29841. 'notequal': 549,
  29842. 'gcommaaccent': 556,
  29843. 'eth': 556,
  29844. 'zcaron': 500,
  29845. 'ncommaaccent': 556,
  29846. 'onesuperior': 333,
  29847. 'imacron': 278,
  29848. 'Euro': 556
  29849. },
  29850. 'Helvetica-Bold': {
  29851. 'space': 278,
  29852. 'exclam': 333,
  29853. 'quotedbl': 474,
  29854. 'numbersign': 556,
  29855. 'dollar': 556,
  29856. 'percent': 889,
  29857. 'ampersand': 722,
  29858. 'quoteright': 278,
  29859. 'parenleft': 333,
  29860. 'parenright': 333,
  29861. 'asterisk': 389,
  29862. 'plus': 584,
  29863. 'comma': 278,
  29864. 'hyphen': 333,
  29865. 'period': 278,
  29866. 'slash': 278,
  29867. 'zero': 556,
  29868. 'one': 556,
  29869. 'two': 556,
  29870. 'three': 556,
  29871. 'four': 556,
  29872. 'five': 556,
  29873. 'six': 556,
  29874. 'seven': 556,
  29875. 'eight': 556,
  29876. 'nine': 556,
  29877. 'colon': 333,
  29878. 'semicolon': 333,
  29879. 'less': 584,
  29880. 'equal': 584,
  29881. 'greater': 584,
  29882. 'question': 611,
  29883. 'at': 975,
  29884. 'A': 722,
  29885. 'B': 722,
  29886. 'C': 722,
  29887. 'D': 722,
  29888. 'E': 667,
  29889. 'F': 611,
  29890. 'G': 778,
  29891. 'H': 722,
  29892. 'I': 278,
  29893. 'J': 556,
  29894. 'K': 722,
  29895. 'L': 611,
  29896. 'M': 833,
  29897. 'N': 722,
  29898. 'O': 778,
  29899. 'P': 667,
  29900. 'Q': 778,
  29901. 'R': 722,
  29902. 'S': 667,
  29903. 'T': 611,
  29904. 'U': 722,
  29905. 'V': 667,
  29906. 'W': 944,
  29907. 'X': 667,
  29908. 'Y': 667,
  29909. 'Z': 611,
  29910. 'bracketleft': 333,
  29911. 'backslash': 278,
  29912. 'bracketright': 333,
  29913. 'asciicircum': 584,
  29914. 'underscore': 556,
  29915. 'quoteleft': 278,
  29916. 'a': 556,
  29917. 'b': 611,
  29918. 'c': 556,
  29919. 'd': 611,
  29920. 'e': 556,
  29921. 'f': 333,
  29922. 'g': 611,
  29923. 'h': 611,
  29924. 'i': 278,
  29925. 'j': 278,
  29926. 'k': 556,
  29927. 'l': 278,
  29928. 'm': 889,
  29929. 'n': 611,
  29930. 'o': 611,
  29931. 'p': 611,
  29932. 'q': 611,
  29933. 'r': 389,
  29934. 's': 556,
  29935. 't': 333,
  29936. 'u': 611,
  29937. 'v': 556,
  29938. 'w': 778,
  29939. 'x': 556,
  29940. 'y': 556,
  29941. 'z': 500,
  29942. 'braceleft': 389,
  29943. 'bar': 280,
  29944. 'braceright': 389,
  29945. 'asciitilde': 584,
  29946. 'exclamdown': 333,
  29947. 'cent': 556,
  29948. 'sterling': 556,
  29949. 'fraction': 167,
  29950. 'yen': 556,
  29951. 'florin': 556,
  29952. 'section': 556,
  29953. 'currency': 556,
  29954. 'quotesingle': 238,
  29955. 'quotedblleft': 500,
  29956. 'guillemotleft': 556,
  29957. 'guilsinglleft': 333,
  29958. 'guilsinglright': 333,
  29959. 'fi': 611,
  29960. 'fl': 611,
  29961. 'endash': 556,
  29962. 'dagger': 556,
  29963. 'daggerdbl': 556,
  29964. 'periodcentered': 278,
  29965. 'paragraph': 556,
  29966. 'bullet': 350,
  29967. 'quotesinglbase': 278,
  29968. 'quotedblbase': 500,
  29969. 'quotedblright': 500,
  29970. 'guillemotright': 556,
  29971. 'ellipsis': 1000,
  29972. 'perthousand': 1000,
  29973. 'questiondown': 611,
  29974. 'grave': 333,
  29975. 'acute': 333,
  29976. 'circumflex': 333,
  29977. 'tilde': 333,
  29978. 'macron': 333,
  29979. 'breve': 333,
  29980. 'dotaccent': 333,
  29981. 'dieresis': 333,
  29982. 'ring': 333,
  29983. 'cedilla': 333,
  29984. 'hungarumlaut': 333,
  29985. 'ogonek': 333,
  29986. 'caron': 333,
  29987. 'emdash': 1000,
  29988. 'AE': 1000,
  29989. 'ordfeminine': 370,
  29990. 'Lslash': 611,
  29991. 'Oslash': 778,
  29992. 'OE': 1000,
  29993. 'ordmasculine': 365,
  29994. 'ae': 889,
  29995. 'dotlessi': 278,
  29996. 'lslash': 278,
  29997. 'oslash': 611,
  29998. 'oe': 944,
  29999. 'germandbls': 611,
  30000. 'Idieresis': 278,
  30001. 'eacute': 556,
  30002. 'abreve': 556,
  30003. 'uhungarumlaut': 611,
  30004. 'ecaron': 556,
  30005. 'Ydieresis': 667,
  30006. 'divide': 584,
  30007. 'Yacute': 667,
  30008. 'Acircumflex': 722,
  30009. 'aacute': 556,
  30010. 'Ucircumflex': 722,
  30011. 'yacute': 556,
  30012. 'scommaaccent': 556,
  30013. 'ecircumflex': 556,
  30014. 'Uring': 722,
  30015. 'Udieresis': 722,
  30016. 'aogonek': 556,
  30017. 'Uacute': 722,
  30018. 'uogonek': 611,
  30019. 'Edieresis': 667,
  30020. 'Dcroat': 722,
  30021. 'commaaccent': 250,
  30022. 'copyright': 737,
  30023. 'Emacron': 667,
  30024. 'ccaron': 556,
  30025. 'aring': 556,
  30026. 'Ncommaaccent': 722,
  30027. 'lacute': 278,
  30028. 'agrave': 556,
  30029. 'Tcommaaccent': 611,
  30030. 'Cacute': 722,
  30031. 'atilde': 556,
  30032. 'Edotaccent': 667,
  30033. 'scaron': 556,
  30034. 'scedilla': 556,
  30035. 'iacute': 278,
  30036. 'lozenge': 494,
  30037. 'Rcaron': 722,
  30038. 'Gcommaaccent': 778,
  30039. 'ucircumflex': 611,
  30040. 'acircumflex': 556,
  30041. 'Amacron': 722,
  30042. 'rcaron': 389,
  30043. 'ccedilla': 556,
  30044. 'Zdotaccent': 611,
  30045. 'Thorn': 667,
  30046. 'Omacron': 778,
  30047. 'Racute': 722,
  30048. 'Sacute': 667,
  30049. 'dcaron': 743,
  30050. 'Umacron': 722,
  30051. 'uring': 611,
  30052. 'threesuperior': 333,
  30053. 'Ograve': 778,
  30054. 'Agrave': 722,
  30055. 'Abreve': 722,
  30056. 'multiply': 584,
  30057. 'uacute': 611,
  30058. 'Tcaron': 611,
  30059. 'partialdiff': 494,
  30060. 'ydieresis': 556,
  30061. 'Nacute': 722,
  30062. 'icircumflex': 278,
  30063. 'Ecircumflex': 667,
  30064. 'adieresis': 556,
  30065. 'edieresis': 556,
  30066. 'cacute': 556,
  30067. 'nacute': 611,
  30068. 'umacron': 611,
  30069. 'Ncaron': 722,
  30070. 'Iacute': 278,
  30071. 'plusminus': 584,
  30072. 'brokenbar': 280,
  30073. 'registered': 737,
  30074. 'Gbreve': 778,
  30075. 'Idotaccent': 278,
  30076. 'summation': 600,
  30077. 'Egrave': 667,
  30078. 'racute': 389,
  30079. 'omacron': 611,
  30080. 'Zacute': 611,
  30081. 'Zcaron': 611,
  30082. 'greaterequal': 549,
  30083. 'Eth': 722,
  30084. 'Ccedilla': 722,
  30085. 'lcommaaccent': 278,
  30086. 'tcaron': 389,
  30087. 'eogonek': 556,
  30088. 'Uogonek': 722,
  30089. 'Aacute': 722,
  30090. 'Adieresis': 722,
  30091. 'egrave': 556,
  30092. 'zacute': 500,
  30093. 'iogonek': 278,
  30094. 'Oacute': 778,
  30095. 'oacute': 611,
  30096. 'amacron': 556,
  30097. 'sacute': 556,
  30098. 'idieresis': 278,
  30099. 'Ocircumflex': 778,
  30100. 'Ugrave': 722,
  30101. 'Delta': 612,
  30102. 'thorn': 611,
  30103. 'twosuperior': 333,
  30104. 'Odieresis': 778,
  30105. 'mu': 611,
  30106. 'igrave': 278,
  30107. 'ohungarumlaut': 611,
  30108. 'Eogonek': 667,
  30109. 'dcroat': 611,
  30110. 'threequarters': 834,
  30111. 'Scedilla': 667,
  30112. 'lcaron': 400,
  30113. 'Kcommaaccent': 722,
  30114. 'Lacute': 611,
  30115. 'trademark': 1000,
  30116. 'edotaccent': 556,
  30117. 'Igrave': 278,
  30118. 'Imacron': 278,
  30119. 'Lcaron': 611,
  30120. 'onehalf': 834,
  30121. 'lessequal': 549,
  30122. 'ocircumflex': 611,
  30123. 'ntilde': 611,
  30124. 'Uhungarumlaut': 722,
  30125. 'Eacute': 667,
  30126. 'emacron': 556,
  30127. 'gbreve': 611,
  30128. 'onequarter': 834,
  30129. 'Scaron': 667,
  30130. 'Scommaaccent': 667,
  30131. 'Ohungarumlaut': 778,
  30132. 'degree': 400,
  30133. 'ograve': 611,
  30134. 'Ccaron': 722,
  30135. 'ugrave': 611,
  30136. 'radical': 549,
  30137. 'Dcaron': 722,
  30138. 'rcommaaccent': 389,
  30139. 'Ntilde': 722,
  30140. 'otilde': 611,
  30141. 'Rcommaaccent': 722,
  30142. 'Lcommaaccent': 611,
  30143. 'Atilde': 722,
  30144. 'Aogonek': 722,
  30145. 'Aring': 722,
  30146. 'Otilde': 778,
  30147. 'zdotaccent': 500,
  30148. 'Ecaron': 667,
  30149. 'Iogonek': 278,
  30150. 'kcommaaccent': 556,
  30151. 'minus': 584,
  30152. 'Icircumflex': 278,
  30153. 'ncaron': 611,
  30154. 'tcommaaccent': 333,
  30155. 'logicalnot': 584,
  30156. 'odieresis': 611,
  30157. 'udieresis': 611,
  30158. 'notequal': 549,
  30159. 'gcommaaccent': 611,
  30160. 'eth': 611,
  30161. 'zcaron': 500,
  30162. 'ncommaaccent': 611,
  30163. 'onesuperior': 333,
  30164. 'imacron': 278,
  30165. 'Euro': 556
  30166. },
  30167. 'Helvetica-BoldOblique': {
  30168. 'space': 278,
  30169. 'exclam': 333,
  30170. 'quotedbl': 474,
  30171. 'numbersign': 556,
  30172. 'dollar': 556,
  30173. 'percent': 889,
  30174. 'ampersand': 722,
  30175. 'quoteright': 278,
  30176. 'parenleft': 333,
  30177. 'parenright': 333,
  30178. 'asterisk': 389,
  30179. 'plus': 584,
  30180. 'comma': 278,
  30181. 'hyphen': 333,
  30182. 'period': 278,
  30183. 'slash': 278,
  30184. 'zero': 556,
  30185. 'one': 556,
  30186. 'two': 556,
  30187. 'three': 556,
  30188. 'four': 556,
  30189. 'five': 556,
  30190. 'six': 556,
  30191. 'seven': 556,
  30192. 'eight': 556,
  30193. 'nine': 556,
  30194. 'colon': 333,
  30195. 'semicolon': 333,
  30196. 'less': 584,
  30197. 'equal': 584,
  30198. 'greater': 584,
  30199. 'question': 611,
  30200. 'at': 975,
  30201. 'A': 722,
  30202. 'B': 722,
  30203. 'C': 722,
  30204. 'D': 722,
  30205. 'E': 667,
  30206. 'F': 611,
  30207. 'G': 778,
  30208. 'H': 722,
  30209. 'I': 278,
  30210. 'J': 556,
  30211. 'K': 722,
  30212. 'L': 611,
  30213. 'M': 833,
  30214. 'N': 722,
  30215. 'O': 778,
  30216. 'P': 667,
  30217. 'Q': 778,
  30218. 'R': 722,
  30219. 'S': 667,
  30220. 'T': 611,
  30221. 'U': 722,
  30222. 'V': 667,
  30223. 'W': 944,
  30224. 'X': 667,
  30225. 'Y': 667,
  30226. 'Z': 611,
  30227. 'bracketleft': 333,
  30228. 'backslash': 278,
  30229. 'bracketright': 333,
  30230. 'asciicircum': 584,
  30231. 'underscore': 556,
  30232. 'quoteleft': 278,
  30233. 'a': 556,
  30234. 'b': 611,
  30235. 'c': 556,
  30236. 'd': 611,
  30237. 'e': 556,
  30238. 'f': 333,
  30239. 'g': 611,
  30240. 'h': 611,
  30241. 'i': 278,
  30242. 'j': 278,
  30243. 'k': 556,
  30244. 'l': 278,
  30245. 'm': 889,
  30246. 'n': 611,
  30247. 'o': 611,
  30248. 'p': 611,
  30249. 'q': 611,
  30250. 'r': 389,
  30251. 's': 556,
  30252. 't': 333,
  30253. 'u': 611,
  30254. 'v': 556,
  30255. 'w': 778,
  30256. 'x': 556,
  30257. 'y': 556,
  30258. 'z': 500,
  30259. 'braceleft': 389,
  30260. 'bar': 280,
  30261. 'braceright': 389,
  30262. 'asciitilde': 584,
  30263. 'exclamdown': 333,
  30264. 'cent': 556,
  30265. 'sterling': 556,
  30266. 'fraction': 167,
  30267. 'yen': 556,
  30268. 'florin': 556,
  30269. 'section': 556,
  30270. 'currency': 556,
  30271. 'quotesingle': 238,
  30272. 'quotedblleft': 500,
  30273. 'guillemotleft': 556,
  30274. 'guilsinglleft': 333,
  30275. 'guilsinglright': 333,
  30276. 'fi': 611,
  30277. 'fl': 611,
  30278. 'endash': 556,
  30279. 'dagger': 556,
  30280. 'daggerdbl': 556,
  30281. 'periodcentered': 278,
  30282. 'paragraph': 556,
  30283. 'bullet': 350,
  30284. 'quotesinglbase': 278,
  30285. 'quotedblbase': 500,
  30286. 'quotedblright': 500,
  30287. 'guillemotright': 556,
  30288. 'ellipsis': 1000,
  30289. 'perthousand': 1000,
  30290. 'questiondown': 611,
  30291. 'grave': 333,
  30292. 'acute': 333,
  30293. 'circumflex': 333,
  30294. 'tilde': 333,
  30295. 'macron': 333,
  30296. 'breve': 333,
  30297. 'dotaccent': 333,
  30298. 'dieresis': 333,
  30299. 'ring': 333,
  30300. 'cedilla': 333,
  30301. 'hungarumlaut': 333,
  30302. 'ogonek': 333,
  30303. 'caron': 333,
  30304. 'emdash': 1000,
  30305. 'AE': 1000,
  30306. 'ordfeminine': 370,
  30307. 'Lslash': 611,
  30308. 'Oslash': 778,
  30309. 'OE': 1000,
  30310. 'ordmasculine': 365,
  30311. 'ae': 889,
  30312. 'dotlessi': 278,
  30313. 'lslash': 278,
  30314. 'oslash': 611,
  30315. 'oe': 944,
  30316. 'germandbls': 611,
  30317. 'Idieresis': 278,
  30318. 'eacute': 556,
  30319. 'abreve': 556,
  30320. 'uhungarumlaut': 611,
  30321. 'ecaron': 556,
  30322. 'Ydieresis': 667,
  30323. 'divide': 584,
  30324. 'Yacute': 667,
  30325. 'Acircumflex': 722,
  30326. 'aacute': 556,
  30327. 'Ucircumflex': 722,
  30328. 'yacute': 556,
  30329. 'scommaaccent': 556,
  30330. 'ecircumflex': 556,
  30331. 'Uring': 722,
  30332. 'Udieresis': 722,
  30333. 'aogonek': 556,
  30334. 'Uacute': 722,
  30335. 'uogonek': 611,
  30336. 'Edieresis': 667,
  30337. 'Dcroat': 722,
  30338. 'commaaccent': 250,
  30339. 'copyright': 737,
  30340. 'Emacron': 667,
  30341. 'ccaron': 556,
  30342. 'aring': 556,
  30343. 'Ncommaaccent': 722,
  30344. 'lacute': 278,
  30345. 'agrave': 556,
  30346. 'Tcommaaccent': 611,
  30347. 'Cacute': 722,
  30348. 'atilde': 556,
  30349. 'Edotaccent': 667,
  30350. 'scaron': 556,
  30351. 'scedilla': 556,
  30352. 'iacute': 278,
  30353. 'lozenge': 494,
  30354. 'Rcaron': 722,
  30355. 'Gcommaaccent': 778,
  30356. 'ucircumflex': 611,
  30357. 'acircumflex': 556,
  30358. 'Amacron': 722,
  30359. 'rcaron': 389,
  30360. 'ccedilla': 556,
  30361. 'Zdotaccent': 611,
  30362. 'Thorn': 667,
  30363. 'Omacron': 778,
  30364. 'Racute': 722,
  30365. 'Sacute': 667,
  30366. 'dcaron': 743,
  30367. 'Umacron': 722,
  30368. 'uring': 611,
  30369. 'threesuperior': 333,
  30370. 'Ograve': 778,
  30371. 'Agrave': 722,
  30372. 'Abreve': 722,
  30373. 'multiply': 584,
  30374. 'uacute': 611,
  30375. 'Tcaron': 611,
  30376. 'partialdiff': 494,
  30377. 'ydieresis': 556,
  30378. 'Nacute': 722,
  30379. 'icircumflex': 278,
  30380. 'Ecircumflex': 667,
  30381. 'adieresis': 556,
  30382. 'edieresis': 556,
  30383. 'cacute': 556,
  30384. 'nacute': 611,
  30385. 'umacron': 611,
  30386. 'Ncaron': 722,
  30387. 'Iacute': 278,
  30388. 'plusminus': 584,
  30389. 'brokenbar': 280,
  30390. 'registered': 737,
  30391. 'Gbreve': 778,
  30392. 'Idotaccent': 278,
  30393. 'summation': 600,
  30394. 'Egrave': 667,
  30395. 'racute': 389,
  30396. 'omacron': 611,
  30397. 'Zacute': 611,
  30398. 'Zcaron': 611,
  30399. 'greaterequal': 549,
  30400. 'Eth': 722,
  30401. 'Ccedilla': 722,
  30402. 'lcommaaccent': 278,
  30403. 'tcaron': 389,
  30404. 'eogonek': 556,
  30405. 'Uogonek': 722,
  30406. 'Aacute': 722,
  30407. 'Adieresis': 722,
  30408. 'egrave': 556,
  30409. 'zacute': 500,
  30410. 'iogonek': 278,
  30411. 'Oacute': 778,
  30412. 'oacute': 611,
  30413. 'amacron': 556,
  30414. 'sacute': 556,
  30415. 'idieresis': 278,
  30416. 'Ocircumflex': 778,
  30417. 'Ugrave': 722,
  30418. 'Delta': 612,
  30419. 'thorn': 611,
  30420. 'twosuperior': 333,
  30421. 'Odieresis': 778,
  30422. 'mu': 611,
  30423. 'igrave': 278,
  30424. 'ohungarumlaut': 611,
  30425. 'Eogonek': 667,
  30426. 'dcroat': 611,
  30427. 'threequarters': 834,
  30428. 'Scedilla': 667,
  30429. 'lcaron': 400,
  30430. 'Kcommaaccent': 722,
  30431. 'Lacute': 611,
  30432. 'trademark': 1000,
  30433. 'edotaccent': 556,
  30434. 'Igrave': 278,
  30435. 'Imacron': 278,
  30436. 'Lcaron': 611,
  30437. 'onehalf': 834,
  30438. 'lessequal': 549,
  30439. 'ocircumflex': 611,
  30440. 'ntilde': 611,
  30441. 'Uhungarumlaut': 722,
  30442. 'Eacute': 667,
  30443. 'emacron': 556,
  30444. 'gbreve': 611,
  30445. 'onequarter': 834,
  30446. 'Scaron': 667,
  30447. 'Scommaaccent': 667,
  30448. 'Ohungarumlaut': 778,
  30449. 'degree': 400,
  30450. 'ograve': 611,
  30451. 'Ccaron': 722,
  30452. 'ugrave': 611,
  30453. 'radical': 549,
  30454. 'Dcaron': 722,
  30455. 'rcommaaccent': 389,
  30456. 'Ntilde': 722,
  30457. 'otilde': 611,
  30458. 'Rcommaaccent': 722,
  30459. 'Lcommaaccent': 611,
  30460. 'Atilde': 722,
  30461. 'Aogonek': 722,
  30462. 'Aring': 722,
  30463. 'Otilde': 778,
  30464. 'zdotaccent': 500,
  30465. 'Ecaron': 667,
  30466. 'Iogonek': 278,
  30467. 'kcommaaccent': 556,
  30468. 'minus': 584,
  30469. 'Icircumflex': 278,
  30470. 'ncaron': 611,
  30471. 'tcommaaccent': 333,
  30472. 'logicalnot': 584,
  30473. 'odieresis': 611,
  30474. 'udieresis': 611,
  30475. 'notequal': 549,
  30476. 'gcommaaccent': 611,
  30477. 'eth': 611,
  30478. 'zcaron': 500,
  30479. 'ncommaaccent': 611,
  30480. 'onesuperior': 333,
  30481. 'imacron': 278,
  30482. 'Euro': 556
  30483. },
  30484. 'Helvetica-Oblique' : {
  30485. 'space': 278,
  30486. 'exclam': 278,
  30487. 'quotedbl': 355,
  30488. 'numbersign': 556,
  30489. 'dollar': 556,
  30490. 'percent': 889,
  30491. 'ampersand': 667,
  30492. 'quoteright': 222,
  30493. 'parenleft': 333,
  30494. 'parenright': 333,
  30495. 'asterisk': 389,
  30496. 'plus': 584,
  30497. 'comma': 278,
  30498. 'hyphen': 333,
  30499. 'period': 278,
  30500. 'slash': 278,
  30501. 'zero': 556,
  30502. 'one': 556,
  30503. 'two': 556,
  30504. 'three': 556,
  30505. 'four': 556,
  30506. 'five': 556,
  30507. 'six': 556,
  30508. 'seven': 556,
  30509. 'eight': 556,
  30510. 'nine': 556,
  30511. 'colon': 278,
  30512. 'semicolon': 278,
  30513. 'less': 584,
  30514. 'equal': 584,
  30515. 'greater': 584,
  30516. 'question': 556,
  30517. 'at': 1015,
  30518. 'A': 667,
  30519. 'B': 667,
  30520. 'C': 722,
  30521. 'D': 722,
  30522. 'E': 667,
  30523. 'F': 611,
  30524. 'G': 778,
  30525. 'H': 722,
  30526. 'I': 278,
  30527. 'J': 500,
  30528. 'K': 667,
  30529. 'L': 556,
  30530. 'M': 833,
  30531. 'N': 722,
  30532. 'O': 778,
  30533. 'P': 667,
  30534. 'Q': 778,
  30535. 'R': 722,
  30536. 'S': 667,
  30537. 'T': 611,
  30538. 'U': 722,
  30539. 'V': 667,
  30540. 'W': 944,
  30541. 'X': 667,
  30542. 'Y': 667,
  30543. 'Z': 611,
  30544. 'bracketleft': 278,
  30545. 'backslash': 278,
  30546. 'bracketright': 278,
  30547. 'asciicircum': 469,
  30548. 'underscore': 556,
  30549. 'quoteleft': 222,
  30550. 'a': 556,
  30551. 'b': 556,
  30552. 'c': 500,
  30553. 'd': 556,
  30554. 'e': 556,
  30555. 'f': 278,
  30556. 'g': 556,
  30557. 'h': 556,
  30558. 'i': 222,
  30559. 'j': 222,
  30560. 'k': 500,
  30561. 'l': 222,
  30562. 'm': 833,
  30563. 'n': 556,
  30564. 'o': 556,
  30565. 'p': 556,
  30566. 'q': 556,
  30567. 'r': 333,
  30568. 's': 500,
  30569. 't': 278,
  30570. 'u': 556,
  30571. 'v': 500,
  30572. 'w': 722,
  30573. 'x': 500,
  30574. 'y': 500,
  30575. 'z': 500,
  30576. 'braceleft': 334,
  30577. 'bar': 260,
  30578. 'braceright': 334,
  30579. 'asciitilde': 584,
  30580. 'exclamdown': 333,
  30581. 'cent': 556,
  30582. 'sterling': 556,
  30583. 'fraction': 167,
  30584. 'yen': 556,
  30585. 'florin': 556,
  30586. 'section': 556,
  30587. 'currency': 556,
  30588. 'quotesingle': 191,
  30589. 'quotedblleft': 333,
  30590. 'guillemotleft': 556,
  30591. 'guilsinglleft': 333,
  30592. 'guilsinglright': 333,
  30593. 'fi': 500,
  30594. 'fl': 500,
  30595. 'endash': 556,
  30596. 'dagger': 556,
  30597. 'daggerdbl': 556,
  30598. 'periodcentered': 278,
  30599. 'paragraph': 537,
  30600. 'bullet': 350,
  30601. 'quotesinglbase': 222,
  30602. 'quotedblbase': 333,
  30603. 'quotedblright': 333,
  30604. 'guillemotright': 556,
  30605. 'ellipsis': 1000,
  30606. 'perthousand': 1000,
  30607. 'questiondown': 611,
  30608. 'grave': 333,
  30609. 'acute': 333,
  30610. 'circumflex': 333,
  30611. 'tilde': 333,
  30612. 'macron': 333,
  30613. 'breve': 333,
  30614. 'dotaccent': 333,
  30615. 'dieresis': 333,
  30616. 'ring': 333,
  30617. 'cedilla': 333,
  30618. 'hungarumlaut': 333,
  30619. 'ogonek': 333,
  30620. 'caron': 333,
  30621. 'emdash': 1000,
  30622. 'AE': 1000,
  30623. 'ordfeminine': 370,
  30624. 'Lslash': 556,
  30625. 'Oslash': 778,
  30626. 'OE': 1000,
  30627. 'ordmasculine': 365,
  30628. 'ae': 889,
  30629. 'dotlessi': 278,
  30630. 'lslash': 222,
  30631. 'oslash': 611,
  30632. 'oe': 944,
  30633. 'germandbls': 611,
  30634. 'Idieresis': 278,
  30635. 'eacute': 556,
  30636. 'abreve': 556,
  30637. 'uhungarumlaut': 556,
  30638. 'ecaron': 556,
  30639. 'Ydieresis': 667,
  30640. 'divide': 584,
  30641. 'Yacute': 667,
  30642. 'Acircumflex': 667,
  30643. 'aacute': 556,
  30644. 'Ucircumflex': 722,
  30645. 'yacute': 500,
  30646. 'scommaaccent': 500,
  30647. 'ecircumflex': 556,
  30648. 'Uring': 722,
  30649. 'Udieresis': 722,
  30650. 'aogonek': 556,
  30651. 'Uacute': 722,
  30652. 'uogonek': 556,
  30653. 'Edieresis': 667,
  30654. 'Dcroat': 722,
  30655. 'commaaccent': 250,
  30656. 'copyright': 737,
  30657. 'Emacron': 667,
  30658. 'ccaron': 500,
  30659. 'aring': 556,
  30660. 'Ncommaaccent': 722,
  30661. 'lacute': 222,
  30662. 'agrave': 556,
  30663. 'Tcommaaccent': 611,
  30664. 'Cacute': 722,
  30665. 'atilde': 556,
  30666. 'Edotaccent': 667,
  30667. 'scaron': 500,
  30668. 'scedilla': 500,
  30669. 'iacute': 278,
  30670. 'lozenge': 471,
  30671. 'Rcaron': 722,
  30672. 'Gcommaaccent': 778,
  30673. 'ucircumflex': 556,
  30674. 'acircumflex': 556,
  30675. 'Amacron': 667,
  30676. 'rcaron': 333,
  30677. 'ccedilla': 500,
  30678. 'Zdotaccent': 611,
  30679. 'Thorn': 667,
  30680. 'Omacron': 778,
  30681. 'Racute': 722,
  30682. 'Sacute': 667,
  30683. 'dcaron': 643,
  30684. 'Umacron': 722,
  30685. 'uring': 556,
  30686. 'threesuperior': 333,
  30687. 'Ograve': 778,
  30688. 'Agrave': 667,
  30689. 'Abreve': 667,
  30690. 'multiply': 584,
  30691. 'uacute': 556,
  30692. 'Tcaron': 611,
  30693. 'partialdiff': 476,
  30694. 'ydieresis': 500,
  30695. 'Nacute': 722,
  30696. 'icircumflex': 278,
  30697. 'Ecircumflex': 667,
  30698. 'adieresis': 556,
  30699. 'edieresis': 556,
  30700. 'cacute': 500,
  30701. 'nacute': 556,
  30702. 'umacron': 556,
  30703. 'Ncaron': 722,
  30704. 'Iacute': 278,
  30705. 'plusminus': 584,
  30706. 'brokenbar': 260,
  30707. 'registered': 737,
  30708. 'Gbreve': 778,
  30709. 'Idotaccent': 278,
  30710. 'summation': 600,
  30711. 'Egrave': 667,
  30712. 'racute': 333,
  30713. 'omacron': 556,
  30714. 'Zacute': 611,
  30715. 'Zcaron': 611,
  30716. 'greaterequal': 549,
  30717. 'Eth': 722,
  30718. 'Ccedilla': 722,
  30719. 'lcommaaccent': 222,
  30720. 'tcaron': 317,
  30721. 'eogonek': 556,
  30722. 'Uogonek': 722,
  30723. 'Aacute': 667,
  30724. 'Adieresis': 667,
  30725. 'egrave': 556,
  30726. 'zacute': 500,
  30727. 'iogonek': 222,
  30728. 'Oacute': 778,
  30729. 'oacute': 556,
  30730. 'amacron': 556,
  30731. 'sacute': 500,
  30732. 'idieresis': 278,
  30733. 'Ocircumflex': 778,
  30734. 'Ugrave': 722,
  30735. 'Delta': 612,
  30736. 'thorn': 556,
  30737. 'twosuperior': 333,
  30738. 'Odieresis': 778,
  30739. 'mu': 556,
  30740. 'igrave': 278,
  30741. 'ohungarumlaut': 556,
  30742. 'Eogonek': 667,
  30743. 'dcroat': 556,
  30744. 'threequarters': 834,
  30745. 'Scedilla': 667,
  30746. 'lcaron': 299,
  30747. 'Kcommaaccent': 667,
  30748. 'Lacute': 556,
  30749. 'trademark': 1000,
  30750. 'edotaccent': 556,
  30751. 'Igrave': 278,
  30752. 'Imacron': 278,
  30753. 'Lcaron': 556,
  30754. 'onehalf': 834,
  30755. 'lessequal': 549,
  30756. 'ocircumflex': 556,
  30757. 'ntilde': 556,
  30758. 'Uhungarumlaut': 722,
  30759. 'Eacute': 667,
  30760. 'emacron': 556,
  30761. 'gbreve': 556,
  30762. 'onequarter': 834,
  30763. 'Scaron': 667,
  30764. 'Scommaaccent': 667,
  30765. 'Ohungarumlaut': 778,
  30766. 'degree': 400,
  30767. 'ograve': 556,
  30768. 'Ccaron': 722,
  30769. 'ugrave': 556,
  30770. 'radical': 453,
  30771. 'Dcaron': 722,
  30772. 'rcommaaccent': 333,
  30773. 'Ntilde': 722,
  30774. 'otilde': 556,
  30775. 'Rcommaaccent': 722,
  30776. 'Lcommaaccent': 556,
  30777. 'Atilde': 667,
  30778. 'Aogonek': 667,
  30779. 'Aring': 667,
  30780. 'Otilde': 778,
  30781. 'zdotaccent': 500,
  30782. 'Ecaron': 667,
  30783. 'Iogonek': 278,
  30784. 'kcommaaccent': 500,
  30785. 'minus': 584,
  30786. 'Icircumflex': 278,
  30787. 'ncaron': 556,
  30788. 'tcommaaccent': 278,
  30789. 'logicalnot': 584,
  30790. 'odieresis': 556,
  30791. 'udieresis': 556,
  30792. 'notequal': 549,
  30793. 'gcommaaccent': 556,
  30794. 'eth': 556,
  30795. 'zcaron': 500,
  30796. 'ncommaaccent': 556,
  30797. 'onesuperior': 333,
  30798. 'imacron': 278,
  30799. 'Euro': 556
  30800. },
  30801. 'Symbol': {
  30802. 'space': 250,
  30803. 'exclam': 333,
  30804. 'universal': 713,
  30805. 'numbersign': 500,
  30806. 'existential': 549,
  30807. 'percent': 833,
  30808. 'ampersand': 778,
  30809. 'suchthat': 439,
  30810. 'parenleft': 333,
  30811. 'parenright': 333,
  30812. 'asteriskmath': 500,
  30813. 'plus': 549,
  30814. 'comma': 250,
  30815. 'minus': 549,
  30816. 'period': 250,
  30817. 'slash': 278,
  30818. 'zero': 500,
  30819. 'one': 500,
  30820. 'two': 500,
  30821. 'three': 500,
  30822. 'four': 500,
  30823. 'five': 500,
  30824. 'six': 500,
  30825. 'seven': 500,
  30826. 'eight': 500,
  30827. 'nine': 500,
  30828. 'colon': 278,
  30829. 'semicolon': 278,
  30830. 'less': 549,
  30831. 'equal': 549,
  30832. 'greater': 549,
  30833. 'question': 444,
  30834. 'congruent': 549,
  30835. 'Alpha': 722,
  30836. 'Beta': 667,
  30837. 'Chi': 722,
  30838. 'Delta': 612,
  30839. 'Epsilon': 611,
  30840. 'Phi': 763,
  30841. 'Gamma': 603,
  30842. 'Eta': 722,
  30843. 'Iota': 333,
  30844. 'theta1': 631,
  30845. 'Kappa': 722,
  30846. 'Lambda': 686,
  30847. 'Mu': 889,
  30848. 'Nu': 722,
  30849. 'Omicron': 722,
  30850. 'Pi': 768,
  30851. 'Theta': 741,
  30852. 'Rho': 556,
  30853. 'Sigma': 592,
  30854. 'Tau': 611,
  30855. 'Upsilon': 690,
  30856. 'sigma1': 439,
  30857. 'Omega': 768,
  30858. 'Xi': 645,
  30859. 'Psi': 795,
  30860. 'Zeta': 611,
  30861. 'bracketleft': 333,
  30862. 'therefore': 863,
  30863. 'bracketright': 333,
  30864. 'perpendicular': 658,
  30865. 'underscore': 500,
  30866. 'radicalex': 500,
  30867. 'alpha': 631,
  30868. 'beta': 549,
  30869. 'chi': 549,
  30870. 'delta': 494,
  30871. 'epsilon': 439,
  30872. 'phi': 521,
  30873. 'gamma': 411,
  30874. 'eta': 603,
  30875. 'iota': 329,
  30876. 'phi1': 603,
  30877. 'kappa': 549,
  30878. 'lambda': 549,
  30879. 'mu': 576,
  30880. 'nu': 521,
  30881. 'omicron': 549,
  30882. 'pi': 549,
  30883. 'theta': 521,
  30884. 'rho': 549,
  30885. 'sigma': 603,
  30886. 'tau': 439,
  30887. 'upsilon': 576,
  30888. 'omega1': 713,
  30889. 'omega': 686,
  30890. 'xi': 493,
  30891. 'psi': 686,
  30892. 'zeta': 494,
  30893. 'braceleft': 480,
  30894. 'bar': 200,
  30895. 'braceright': 480,
  30896. 'similar': 549,
  30897. 'Euro': 750,
  30898. 'Upsilon1': 620,
  30899. 'minute': 247,
  30900. 'lessequal': 549,
  30901. 'fraction': 167,
  30902. 'infinity': 713,
  30903. 'florin': 500,
  30904. 'club': 753,
  30905. 'diamond': 753,
  30906. 'heart': 753,
  30907. 'spade': 753,
  30908. 'arrowboth': 1042,
  30909. 'arrowleft': 987,
  30910. 'arrowup': 603,
  30911. 'arrowright': 987,
  30912. 'arrowdown': 603,
  30913. 'degree': 400,
  30914. 'plusminus': 549,
  30915. 'second': 411,
  30916. 'greaterequal': 549,
  30917. 'multiply': 549,
  30918. 'proportional': 713,
  30919. 'partialdiff': 494,
  30920. 'bullet': 460,
  30921. 'divide': 549,
  30922. 'notequal': 549,
  30923. 'equivalence': 549,
  30924. 'approxequal': 549,
  30925. 'ellipsis': 1000,
  30926. 'arrowvertex': 603,
  30927. 'arrowhorizex': 1000,
  30928. 'carriagereturn': 658,
  30929. 'aleph': 823,
  30930. 'Ifraktur': 686,
  30931. 'Rfraktur': 795,
  30932. 'weierstrass': 987,
  30933. 'circlemultiply': 768,
  30934. 'circleplus': 768,
  30935. 'emptyset': 823,
  30936. 'intersection': 768,
  30937. 'union': 768,
  30938. 'propersuperset': 713,
  30939. 'reflexsuperset': 713,
  30940. 'notsubset': 713,
  30941. 'propersubset': 713,
  30942. 'reflexsubset': 713,
  30943. 'element': 713,
  30944. 'notelement': 713,
  30945. 'angle': 768,
  30946. 'gradient': 713,
  30947. 'registerserif': 790,
  30948. 'copyrightserif': 790,
  30949. 'trademarkserif': 890,
  30950. 'product': 823,
  30951. 'radical': 549,
  30952. 'dotmath': 250,
  30953. 'logicalnot': 713,
  30954. 'logicaland': 603,
  30955. 'logicalor': 603,
  30956. 'arrowdblboth': 1042,
  30957. 'arrowdblleft': 987,
  30958. 'arrowdblup': 603,
  30959. 'arrowdblright': 987,
  30960. 'arrowdbldown': 603,
  30961. 'lozenge': 494,
  30962. 'angleleft': 329,
  30963. 'registersans': 790,
  30964. 'copyrightsans': 790,
  30965. 'trademarksans': 786,
  30966. 'summation': 713,
  30967. 'parenlefttp': 384,
  30968. 'parenleftex': 384,
  30969. 'parenleftbt': 384,
  30970. 'bracketlefttp': 384,
  30971. 'bracketleftex': 384,
  30972. 'bracketleftbt': 384,
  30973. 'bracelefttp': 494,
  30974. 'braceleftmid': 494,
  30975. 'braceleftbt': 494,
  30976. 'braceex': 494,
  30977. 'angleright': 329,
  30978. 'integral': 274,
  30979. 'integraltp': 686,
  30980. 'integralex': 686,
  30981. 'integralbt': 686,
  30982. 'parenrighttp': 384,
  30983. 'parenrightex': 384,
  30984. 'parenrightbt': 384,
  30985. 'bracketrighttp': 384,
  30986. 'bracketrightex': 384,
  30987. 'bracketrightbt': 384,
  30988. 'bracerighttp': 494,
  30989. 'bracerightmid': 494,
  30990. 'bracerightbt': 494,
  30991. 'apple': 790
  30992. },
  30993. 'Times-Roman': {
  30994. 'space': 250,
  30995. 'exclam': 333,
  30996. 'quotedbl': 408,
  30997. 'numbersign': 500,
  30998. 'dollar': 500,
  30999. 'percent': 833,
  31000. 'ampersand': 778,
  31001. 'quoteright': 333,
  31002. 'parenleft': 333,
  31003. 'parenright': 333,
  31004. 'asterisk': 500,
  31005. 'plus': 564,
  31006. 'comma': 250,
  31007. 'hyphen': 333,
  31008. 'period': 250,
  31009. 'slash': 278,
  31010. 'zero': 500,
  31011. 'one': 500,
  31012. 'two': 500,
  31013. 'three': 500,
  31014. 'four': 500,
  31015. 'five': 500,
  31016. 'six': 500,
  31017. 'seven': 500,
  31018. 'eight': 500,
  31019. 'nine': 500,
  31020. 'colon': 278,
  31021. 'semicolon': 278,
  31022. 'less': 564,
  31023. 'equal': 564,
  31024. 'greater': 564,
  31025. 'question': 444,
  31026. 'at': 921,
  31027. 'A': 722,
  31028. 'B': 667,
  31029. 'C': 667,
  31030. 'D': 722,
  31031. 'E': 611,
  31032. 'F': 556,
  31033. 'G': 722,
  31034. 'H': 722,
  31035. 'I': 333,
  31036. 'J': 389,
  31037. 'K': 722,
  31038. 'L': 611,
  31039. 'M': 889,
  31040. 'N': 722,
  31041. 'O': 722,
  31042. 'P': 556,
  31043. 'Q': 722,
  31044. 'R': 667,
  31045. 'S': 556,
  31046. 'T': 611,
  31047. 'U': 722,
  31048. 'V': 722,
  31049. 'W': 944,
  31050. 'X': 722,
  31051. 'Y': 722,
  31052. 'Z': 611,
  31053. 'bracketleft': 333,
  31054. 'backslash': 278,
  31055. 'bracketright': 333,
  31056. 'asciicircum': 469,
  31057. 'underscore': 500,
  31058. 'quoteleft': 333,
  31059. 'a': 444,
  31060. 'b': 500,
  31061. 'c': 444,
  31062. 'd': 500,
  31063. 'e': 444,
  31064. 'f': 333,
  31065. 'g': 500,
  31066. 'h': 500,
  31067. 'i': 278,
  31068. 'j': 278,
  31069. 'k': 500,
  31070. 'l': 278,
  31071. 'm': 778,
  31072. 'n': 500,
  31073. 'o': 500,
  31074. 'p': 500,
  31075. 'q': 500,
  31076. 'r': 333,
  31077. 's': 389,
  31078. 't': 278,
  31079. 'u': 500,
  31080. 'v': 500,
  31081. 'w': 722,
  31082. 'x': 500,
  31083. 'y': 500,
  31084. 'z': 444,
  31085. 'braceleft': 480,
  31086. 'bar': 200,
  31087. 'braceright': 480,
  31088. 'asciitilde': 541,
  31089. 'exclamdown': 333,
  31090. 'cent': 500,
  31091. 'sterling': 500,
  31092. 'fraction': 167,
  31093. 'yen': 500,
  31094. 'florin': 500,
  31095. 'section': 500,
  31096. 'currency': 500,
  31097. 'quotesingle': 180,
  31098. 'quotedblleft': 444,
  31099. 'guillemotleft': 500,
  31100. 'guilsinglleft': 333,
  31101. 'guilsinglright': 333,
  31102. 'fi': 556,
  31103. 'fl': 556,
  31104. 'endash': 500,
  31105. 'dagger': 500,
  31106. 'daggerdbl': 500,
  31107. 'periodcentered': 250,
  31108. 'paragraph': 453,
  31109. 'bullet': 350,
  31110. 'quotesinglbase': 333,
  31111. 'quotedblbase': 444,
  31112. 'quotedblright': 444,
  31113. 'guillemotright': 500,
  31114. 'ellipsis': 1000,
  31115. 'perthousand': 1000,
  31116. 'questiondown': 444,
  31117. 'grave': 333,
  31118. 'acute': 333,
  31119. 'circumflex': 333,
  31120. 'tilde': 333,
  31121. 'macron': 333,
  31122. 'breve': 333,
  31123. 'dotaccent': 333,
  31124. 'dieresis': 333,
  31125. 'ring': 333,
  31126. 'cedilla': 333,
  31127. 'hungarumlaut': 333,
  31128. 'ogonek': 333,
  31129. 'caron': 333,
  31130. 'emdash': 1000,
  31131. 'AE': 889,
  31132. 'ordfeminine': 276,
  31133. 'Lslash': 611,
  31134. 'Oslash': 722,
  31135. 'OE': 889,
  31136. 'ordmasculine': 310,
  31137. 'ae': 667,
  31138. 'dotlessi': 278,
  31139. 'lslash': 278,
  31140. 'oslash': 500,
  31141. 'oe': 722,
  31142. 'germandbls': 500,
  31143. 'Idieresis': 333,
  31144. 'eacute': 444,
  31145. 'abreve': 444,
  31146. 'uhungarumlaut': 500,
  31147. 'ecaron': 444,
  31148. 'Ydieresis': 722,
  31149. 'divide': 564,
  31150. 'Yacute': 722,
  31151. 'Acircumflex': 722,
  31152. 'aacute': 444,
  31153. 'Ucircumflex': 722,
  31154. 'yacute': 500,
  31155. 'scommaaccent': 389,
  31156. 'ecircumflex': 444,
  31157. 'Uring': 722,
  31158. 'Udieresis': 722,
  31159. 'aogonek': 444,
  31160. 'Uacute': 722,
  31161. 'uogonek': 500,
  31162. 'Edieresis': 611,
  31163. 'Dcroat': 722,
  31164. 'commaaccent': 250,
  31165. 'copyright': 760,
  31166. 'Emacron': 611,
  31167. 'ccaron': 444,
  31168. 'aring': 444,
  31169. 'Ncommaaccent': 722,
  31170. 'lacute': 278,
  31171. 'agrave': 444,
  31172. 'Tcommaaccent': 611,
  31173. 'Cacute': 667,
  31174. 'atilde': 444,
  31175. 'Edotaccent': 611,
  31176. 'scaron': 389,
  31177. 'scedilla': 389,
  31178. 'iacute': 278,
  31179. 'lozenge': 471,
  31180. 'Rcaron': 667,
  31181. 'Gcommaaccent': 722,
  31182. 'ucircumflex': 500,
  31183. 'acircumflex': 444,
  31184. 'Amacron': 722,
  31185. 'rcaron': 333,
  31186. 'ccedilla': 444,
  31187. 'Zdotaccent': 611,
  31188. 'Thorn': 556,
  31189. 'Omacron': 722,
  31190. 'Racute': 667,
  31191. 'Sacute': 556,
  31192. 'dcaron': 588,
  31193. 'Umacron': 722,
  31194. 'uring': 500,
  31195. 'threesuperior': 300,
  31196. 'Ograve': 722,
  31197. 'Agrave': 722,
  31198. 'Abreve': 722,
  31199. 'multiply': 564,
  31200. 'uacute': 500,
  31201. 'Tcaron': 611,
  31202. 'partialdiff': 476,
  31203. 'ydieresis': 500,
  31204. 'Nacute': 722,
  31205. 'icircumflex': 278,
  31206. 'Ecircumflex': 611,
  31207. 'adieresis': 444,
  31208. 'edieresis': 444,
  31209. 'cacute': 444,
  31210. 'nacute': 500,
  31211. 'umacron': 500,
  31212. 'Ncaron': 722,
  31213. 'Iacute': 333,
  31214. 'plusminus': 564,
  31215. 'brokenbar': 200,
  31216. 'registered': 760,
  31217. 'Gbreve': 722,
  31218. 'Idotaccent': 333,
  31219. 'summation': 600,
  31220. 'Egrave': 611,
  31221. 'racute': 333,
  31222. 'omacron': 500,
  31223. 'Zacute': 611,
  31224. 'Zcaron': 611,
  31225. 'greaterequal': 549,
  31226. 'Eth': 722,
  31227. 'Ccedilla': 667,
  31228. 'lcommaaccent': 278,
  31229. 'tcaron': 326,
  31230. 'eogonek': 444,
  31231. 'Uogonek': 722,
  31232. 'Aacute': 722,
  31233. 'Adieresis': 722,
  31234. 'egrave': 444,
  31235. 'zacute': 444,
  31236. 'iogonek': 278,
  31237. 'Oacute': 722,
  31238. 'oacute': 500,
  31239. 'amacron': 444,
  31240. 'sacute': 389,
  31241. 'idieresis': 278,
  31242. 'Ocircumflex': 722,
  31243. 'Ugrave': 722,
  31244. 'Delta': 612,
  31245. 'thorn': 500,
  31246. 'twosuperior': 300,
  31247. 'Odieresis': 722,
  31248. 'mu': 500,
  31249. 'igrave': 278,
  31250. 'ohungarumlaut': 500,
  31251. 'Eogonek': 611,
  31252. 'dcroat': 500,
  31253. 'threequarters': 750,
  31254. 'Scedilla': 556,
  31255. 'lcaron': 344,
  31256. 'Kcommaaccent': 722,
  31257. 'Lacute': 611,
  31258. 'trademark': 980,
  31259. 'edotaccent': 444,
  31260. 'Igrave': 333,
  31261. 'Imacron': 333,
  31262. 'Lcaron': 611,
  31263. 'onehalf': 750,
  31264. 'lessequal': 549,
  31265. 'ocircumflex': 500,
  31266. 'ntilde': 500,
  31267. 'Uhungarumlaut': 722,
  31268. 'Eacute': 611,
  31269. 'emacron': 444,
  31270. 'gbreve': 500,
  31271. 'onequarter': 750,
  31272. 'Scaron': 556,
  31273. 'Scommaaccent': 556,
  31274. 'Ohungarumlaut': 722,
  31275. 'degree': 400,
  31276. 'ograve': 500,
  31277. 'Ccaron': 667,
  31278. 'ugrave': 500,
  31279. 'radical': 453,
  31280. 'Dcaron': 722,
  31281. 'rcommaaccent': 333,
  31282. 'Ntilde': 722,
  31283. 'otilde': 500,
  31284. 'Rcommaaccent': 667,
  31285. 'Lcommaaccent': 611,
  31286. 'Atilde': 722,
  31287. 'Aogonek': 722,
  31288. 'Aring': 722,
  31289. 'Otilde': 722,
  31290. 'zdotaccent': 444,
  31291. 'Ecaron': 611,
  31292. 'Iogonek': 333,
  31293. 'kcommaaccent': 500,
  31294. 'minus': 564,
  31295. 'Icircumflex': 333,
  31296. 'ncaron': 500,
  31297. 'tcommaaccent': 278,
  31298. 'logicalnot': 564,
  31299. 'odieresis': 500,
  31300. 'udieresis': 500,
  31301. 'notequal': 549,
  31302. 'gcommaaccent': 500,
  31303. 'eth': 500,
  31304. 'zcaron': 444,
  31305. 'ncommaaccent': 500,
  31306. 'onesuperior': 300,
  31307. 'imacron': 278,
  31308. 'Euro': 500
  31309. },
  31310. 'Times-Bold': {
  31311. 'space': 250,
  31312. 'exclam': 333,
  31313. 'quotedbl': 555,
  31314. 'numbersign': 500,
  31315. 'dollar': 500,
  31316. 'percent': 1000,
  31317. 'ampersand': 833,
  31318. 'quoteright': 333,
  31319. 'parenleft': 333,
  31320. 'parenright': 333,
  31321. 'asterisk': 500,
  31322. 'plus': 570,
  31323. 'comma': 250,
  31324. 'hyphen': 333,
  31325. 'period': 250,
  31326. 'slash': 278,
  31327. 'zero': 500,
  31328. 'one': 500,
  31329. 'two': 500,
  31330. 'three': 500,
  31331. 'four': 500,
  31332. 'five': 500,
  31333. 'six': 500,
  31334. 'seven': 500,
  31335. 'eight': 500,
  31336. 'nine': 500,
  31337. 'colon': 333,
  31338. 'semicolon': 333,
  31339. 'less': 570,
  31340. 'equal': 570,
  31341. 'greater': 570,
  31342. 'question': 500,
  31343. 'at': 930,
  31344. 'A': 722,
  31345. 'B': 667,
  31346. 'C': 722,
  31347. 'D': 722,
  31348. 'E': 667,
  31349. 'F': 611,
  31350. 'G': 778,
  31351. 'H': 778,
  31352. 'I': 389,
  31353. 'J': 500,
  31354. 'K': 778,
  31355. 'L': 667,
  31356. 'M': 944,
  31357. 'N': 722,
  31358. 'O': 778,
  31359. 'P': 611,
  31360. 'Q': 778,
  31361. 'R': 722,
  31362. 'S': 556,
  31363. 'T': 667,
  31364. 'U': 722,
  31365. 'V': 722,
  31366. 'W': 1000,
  31367. 'X': 722,
  31368. 'Y': 722,
  31369. 'Z': 667,
  31370. 'bracketleft': 333,
  31371. 'backslash': 278,
  31372. 'bracketright': 333,
  31373. 'asciicircum': 581,
  31374. 'underscore': 500,
  31375. 'quoteleft': 333,
  31376. 'a': 500,
  31377. 'b': 556,
  31378. 'c': 444,
  31379. 'd': 556,
  31380. 'e': 444,
  31381. 'f': 333,
  31382. 'g': 500,
  31383. 'h': 556,
  31384. 'i': 278,
  31385. 'j': 333,
  31386. 'k': 556,
  31387. 'l': 278,
  31388. 'm': 833,
  31389. 'n': 556,
  31390. 'o': 500,
  31391. 'p': 556,
  31392. 'q': 556,
  31393. 'r': 444,
  31394. 's': 389,
  31395. 't': 333,
  31396. 'u': 556,
  31397. 'v': 500,
  31398. 'w': 722,
  31399. 'x': 500,
  31400. 'y': 500,
  31401. 'z': 444,
  31402. 'braceleft': 394,
  31403. 'bar': 220,
  31404. 'braceright': 394,
  31405. 'asciitilde': 520,
  31406. 'exclamdown': 333,
  31407. 'cent': 500,
  31408. 'sterling': 500,
  31409. 'fraction': 167,
  31410. 'yen': 500,
  31411. 'florin': 500,
  31412. 'section': 500,
  31413. 'currency': 500,
  31414. 'quotesingle': 278,
  31415. 'quotedblleft': 500,
  31416. 'guillemotleft': 500,
  31417. 'guilsinglleft': 333,
  31418. 'guilsinglright': 333,
  31419. 'fi': 556,
  31420. 'fl': 556,
  31421. 'endash': 500,
  31422. 'dagger': 500,
  31423. 'daggerdbl': 500,
  31424. 'periodcentered': 250,
  31425. 'paragraph': 540,
  31426. 'bullet': 350,
  31427. 'quotesinglbase': 333,
  31428. 'quotedblbase': 500,
  31429. 'quotedblright': 500,
  31430. 'guillemotright': 500,
  31431. 'ellipsis': 1000,
  31432. 'perthousand': 1000,
  31433. 'questiondown': 500,
  31434. 'grave': 333,
  31435. 'acute': 333,
  31436. 'circumflex': 333,
  31437. 'tilde': 333,
  31438. 'macron': 333,
  31439. 'breve': 333,
  31440. 'dotaccent': 333,
  31441. 'dieresis': 333,
  31442. 'ring': 333,
  31443. 'cedilla': 333,
  31444. 'hungarumlaut': 333,
  31445. 'ogonek': 333,
  31446. 'caron': 333,
  31447. 'emdash': 1000,
  31448. 'AE': 1000,
  31449. 'ordfeminine': 300,
  31450. 'Lslash': 667,
  31451. 'Oslash': 778,
  31452. 'OE': 1000,
  31453. 'ordmasculine': 330,
  31454. 'ae': 722,
  31455. 'dotlessi': 278,
  31456. 'lslash': 278,
  31457. 'oslash': 500,
  31458. 'oe': 722,
  31459. 'germandbls': 556,
  31460. 'Idieresis': 389,
  31461. 'eacute': 444,
  31462. 'abreve': 500,
  31463. 'uhungarumlaut': 556,
  31464. 'ecaron': 444,
  31465. 'Ydieresis': 722,
  31466. 'divide': 570,
  31467. 'Yacute': 722,
  31468. 'Acircumflex': 722,
  31469. 'aacute': 500,
  31470. 'Ucircumflex': 722,
  31471. 'yacute': 500,
  31472. 'scommaaccent': 389,
  31473. 'ecircumflex': 444,
  31474. 'Uring': 722,
  31475. 'Udieresis': 722,
  31476. 'aogonek': 500,
  31477. 'Uacute': 722,
  31478. 'uogonek': 556,
  31479. 'Edieresis': 667,
  31480. 'Dcroat': 722,
  31481. 'commaaccent': 250,
  31482. 'copyright': 747,
  31483. 'Emacron': 667,
  31484. 'ccaron': 444,
  31485. 'aring': 500,
  31486. 'Ncommaaccent': 722,
  31487. 'lacute': 278,
  31488. 'agrave': 500,
  31489. 'Tcommaaccent': 667,
  31490. 'Cacute': 722,
  31491. 'atilde': 500,
  31492. 'Edotaccent': 667,
  31493. 'scaron': 389,
  31494. 'scedilla': 389,
  31495. 'iacute': 278,
  31496. 'lozenge': 494,
  31497. 'Rcaron': 722,
  31498. 'Gcommaaccent': 778,
  31499. 'ucircumflex': 556,
  31500. 'acircumflex': 500,
  31501. 'Amacron': 722,
  31502. 'rcaron': 444,
  31503. 'ccedilla': 444,
  31504. 'Zdotaccent': 667,
  31505. 'Thorn': 611,
  31506. 'Omacron': 778,
  31507. 'Racute': 722,
  31508. 'Sacute': 556,
  31509. 'dcaron': 672,
  31510. 'Umacron': 722,
  31511. 'uring': 556,
  31512. 'threesuperior': 300,
  31513. 'Ograve': 778,
  31514. 'Agrave': 722,
  31515. 'Abreve': 722,
  31516. 'multiply': 570,
  31517. 'uacute': 556,
  31518. 'Tcaron': 667,
  31519. 'partialdiff': 494,
  31520. 'ydieresis': 500,
  31521. 'Nacute': 722,
  31522. 'icircumflex': 278,
  31523. 'Ecircumflex': 667,
  31524. 'adieresis': 500,
  31525. 'edieresis': 444,
  31526. 'cacute': 444,
  31527. 'nacute': 556,
  31528. 'umacron': 556,
  31529. 'Ncaron': 722,
  31530. 'Iacute': 389,
  31531. 'plusminus': 570,
  31532. 'brokenbar': 220,
  31533. 'registered': 747,
  31534. 'Gbreve': 778,
  31535. 'Idotaccent': 389,
  31536. 'summation': 600,
  31537. 'Egrave': 667,
  31538. 'racute': 444,
  31539. 'omacron': 500,
  31540. 'Zacute': 667,
  31541. 'Zcaron': 667,
  31542. 'greaterequal': 549,
  31543. 'Eth': 722,
  31544. 'Ccedilla': 722,
  31545. 'lcommaaccent': 278,
  31546. 'tcaron': 416,
  31547. 'eogonek': 444,
  31548. 'Uogonek': 722,
  31549. 'Aacute': 722,
  31550. 'Adieresis': 722,
  31551. 'egrave': 444,
  31552. 'zacute': 444,
  31553. 'iogonek': 278,
  31554. 'Oacute': 778,
  31555. 'oacute': 500,
  31556. 'amacron': 500,
  31557. 'sacute': 389,
  31558. 'idieresis': 278,
  31559. 'Ocircumflex': 778,
  31560. 'Ugrave': 722,
  31561. 'Delta': 612,
  31562. 'thorn': 556,
  31563. 'twosuperior': 300,
  31564. 'Odieresis': 778,
  31565. 'mu': 556,
  31566. 'igrave': 278,
  31567. 'ohungarumlaut': 500,
  31568. 'Eogonek': 667,
  31569. 'dcroat': 556,
  31570. 'threequarters': 750,
  31571. 'Scedilla': 556,
  31572. 'lcaron': 394,
  31573. 'Kcommaaccent': 778,
  31574. 'Lacute': 667,
  31575. 'trademark': 1000,
  31576. 'edotaccent': 444,
  31577. 'Igrave': 389,
  31578. 'Imacron': 389,
  31579. 'Lcaron': 667,
  31580. 'onehalf': 750,
  31581. 'lessequal': 549,
  31582. 'ocircumflex': 500,
  31583. 'ntilde': 556,
  31584. 'Uhungarumlaut': 722,
  31585. 'Eacute': 667,
  31586. 'emacron': 444,
  31587. 'gbreve': 500,
  31588. 'onequarter': 750,
  31589. 'Scaron': 556,
  31590. 'Scommaaccent': 556,
  31591. 'Ohungarumlaut': 778,
  31592. 'degree': 400,
  31593. 'ograve': 500,
  31594. 'Ccaron': 722,
  31595. 'ugrave': 556,
  31596. 'radical': 549,
  31597. 'Dcaron': 722,
  31598. 'rcommaaccent': 444,
  31599. 'Ntilde': 722,
  31600. 'otilde': 500,
  31601. 'Rcommaaccent': 722,
  31602. 'Lcommaaccent': 667,
  31603. 'Atilde': 722,
  31604. 'Aogonek': 722,
  31605. 'Aring': 722,
  31606. 'Otilde': 778,
  31607. 'zdotaccent': 444,
  31608. 'Ecaron': 667,
  31609. 'Iogonek': 389,
  31610. 'kcommaaccent': 556,
  31611. 'minus': 570,
  31612. 'Icircumflex': 389,
  31613. 'ncaron': 556,
  31614. 'tcommaaccent': 333,
  31615. 'logicalnot': 570,
  31616. 'odieresis': 500,
  31617. 'udieresis': 556,
  31618. 'notequal': 549,
  31619. 'gcommaaccent': 500,
  31620. 'eth': 500,
  31621. 'zcaron': 444,
  31622. 'ncommaaccent': 556,
  31623. 'onesuperior': 300,
  31624. 'imacron': 278,
  31625. 'Euro': 500
  31626. },
  31627. 'Times-BoldItalic': {
  31628. 'space': 250,
  31629. 'exclam': 389,
  31630. 'quotedbl': 555,
  31631. 'numbersign': 500,
  31632. 'dollar': 500,
  31633. 'percent': 833,
  31634. 'ampersand': 778,
  31635. 'quoteright': 333,
  31636. 'parenleft': 333,
  31637. 'parenright': 333,
  31638. 'asterisk': 500,
  31639. 'plus': 570,
  31640. 'comma': 250,
  31641. 'hyphen': 333,
  31642. 'period': 250,
  31643. 'slash': 278,
  31644. 'zero': 500,
  31645. 'one': 500,
  31646. 'two': 500,
  31647. 'three': 500,
  31648. 'four': 500,
  31649. 'five': 500,
  31650. 'six': 500,
  31651. 'seven': 500,
  31652. 'eight': 500,
  31653. 'nine': 500,
  31654. 'colon': 333,
  31655. 'semicolon': 333,
  31656. 'less': 570,
  31657. 'equal': 570,
  31658. 'greater': 570,
  31659. 'question': 500,
  31660. 'at': 832,
  31661. 'A': 667,
  31662. 'B': 667,
  31663. 'C': 667,
  31664. 'D': 722,
  31665. 'E': 667,
  31666. 'F': 667,
  31667. 'G': 722,
  31668. 'H': 778,
  31669. 'I': 389,
  31670. 'J': 500,
  31671. 'K': 667,
  31672. 'L': 611,
  31673. 'M': 889,
  31674. 'N': 722,
  31675. 'O': 722,
  31676. 'P': 611,
  31677. 'Q': 722,
  31678. 'R': 667,
  31679. 'S': 556,
  31680. 'T': 611,
  31681. 'U': 722,
  31682. 'V': 667,
  31683. 'W': 889,
  31684. 'X': 667,
  31685. 'Y': 611,
  31686. 'Z': 611,
  31687. 'bracketleft': 333,
  31688. 'backslash': 278,
  31689. 'bracketright': 333,
  31690. 'asciicircum': 570,
  31691. 'underscore': 500,
  31692. 'quoteleft': 333,
  31693. 'a': 500,
  31694. 'b': 500,
  31695. 'c': 444,
  31696. 'd': 500,
  31697. 'e': 444,
  31698. 'f': 333,
  31699. 'g': 500,
  31700. 'h': 556,
  31701. 'i': 278,
  31702. 'j': 278,
  31703. 'k': 500,
  31704. 'l': 278,
  31705. 'm': 778,
  31706. 'n': 556,
  31707. 'o': 500,
  31708. 'p': 500,
  31709. 'q': 500,
  31710. 'r': 389,
  31711. 's': 389,
  31712. 't': 278,
  31713. 'u': 556,
  31714. 'v': 444,
  31715. 'w': 667,
  31716. 'x': 500,
  31717. 'y': 444,
  31718. 'z': 389,
  31719. 'braceleft': 348,
  31720. 'bar': 220,
  31721. 'braceright': 348,
  31722. 'asciitilde': 570,
  31723. 'exclamdown': 389,
  31724. 'cent': 500,
  31725. 'sterling': 500,
  31726. 'fraction': 167,
  31727. 'yen': 500,
  31728. 'florin': 500,
  31729. 'section': 500,
  31730. 'currency': 500,
  31731. 'quotesingle': 278,
  31732. 'quotedblleft': 500,
  31733. 'guillemotleft': 500,
  31734. 'guilsinglleft': 333,
  31735. 'guilsinglright': 333,
  31736. 'fi': 556,
  31737. 'fl': 556,
  31738. 'endash': 500,
  31739. 'dagger': 500,
  31740. 'daggerdbl': 500,
  31741. 'periodcentered': 250,
  31742. 'paragraph': 500,
  31743. 'bullet': 350,
  31744. 'quotesinglbase': 333,
  31745. 'quotedblbase': 500,
  31746. 'quotedblright': 500,
  31747. 'guillemotright': 500,
  31748. 'ellipsis': 1000,
  31749. 'perthousand': 1000,
  31750. 'questiondown': 500,
  31751. 'grave': 333,
  31752. 'acute': 333,
  31753. 'circumflex': 333,
  31754. 'tilde': 333,
  31755. 'macron': 333,
  31756. 'breve': 333,
  31757. 'dotaccent': 333,
  31758. 'dieresis': 333,
  31759. 'ring': 333,
  31760. 'cedilla': 333,
  31761. 'hungarumlaut': 333,
  31762. 'ogonek': 333,
  31763. 'caron': 333,
  31764. 'emdash': 1000,
  31765. 'AE': 944,
  31766. 'ordfeminine': 266,
  31767. 'Lslash': 611,
  31768. 'Oslash': 722,
  31769. 'OE': 944,
  31770. 'ordmasculine': 300,
  31771. 'ae': 722,
  31772. 'dotlessi': 278,
  31773. 'lslash': 278,
  31774. 'oslash': 500,
  31775. 'oe': 722,
  31776. 'germandbls': 500,
  31777. 'Idieresis': 389,
  31778. 'eacute': 444,
  31779. 'abreve': 500,
  31780. 'uhungarumlaut': 556,
  31781. 'ecaron': 444,
  31782. 'Ydieresis': 611,
  31783. 'divide': 570,
  31784. 'Yacute': 611,
  31785. 'Acircumflex': 667,
  31786. 'aacute': 500,
  31787. 'Ucircumflex': 722,
  31788. 'yacute': 444,
  31789. 'scommaaccent': 389,
  31790. 'ecircumflex': 444,
  31791. 'Uring': 722,
  31792. 'Udieresis': 722,
  31793. 'aogonek': 500,
  31794. 'Uacute': 722,
  31795. 'uogonek': 556,
  31796. 'Edieresis': 667,
  31797. 'Dcroat': 722,
  31798. 'commaaccent': 250,
  31799. 'copyright': 747,
  31800. 'Emacron': 667,
  31801. 'ccaron': 444,
  31802. 'aring': 500,
  31803. 'Ncommaaccent': 722,
  31804. 'lacute': 278,
  31805. 'agrave': 500,
  31806. 'Tcommaaccent': 611,
  31807. 'Cacute': 667,
  31808. 'atilde': 500,
  31809. 'Edotaccent': 667,
  31810. 'scaron': 389,
  31811. 'scedilla': 389,
  31812. 'iacute': 278,
  31813. 'lozenge': 494,
  31814. 'Rcaron': 667,
  31815. 'Gcommaaccent': 722,
  31816. 'ucircumflex': 556,
  31817. 'acircumflex': 500,
  31818. 'Amacron': 667,
  31819. 'rcaron': 389,
  31820. 'ccedilla': 444,
  31821. 'Zdotaccent': 611,
  31822. 'Thorn': 611,
  31823. 'Omacron': 722,
  31824. 'Racute': 667,
  31825. 'Sacute': 556,
  31826. 'dcaron': 608,
  31827. 'Umacron': 722,
  31828. 'uring': 556,
  31829. 'threesuperior': 300,
  31830. 'Ograve': 722,
  31831. 'Agrave': 667,
  31832. 'Abreve': 667,
  31833. 'multiply': 570,
  31834. 'uacute': 556,
  31835. 'Tcaron': 611,
  31836. 'partialdiff': 494,
  31837. 'ydieresis': 444,
  31838. 'Nacute': 722,
  31839. 'icircumflex': 278,
  31840. 'Ecircumflex': 667,
  31841. 'adieresis': 500,
  31842. 'edieresis': 444,
  31843. 'cacute': 444,
  31844. 'nacute': 556,
  31845. 'umacron': 556,
  31846. 'Ncaron': 722,
  31847. 'Iacute': 389,
  31848. 'plusminus': 570,
  31849. 'brokenbar': 220,
  31850. 'registered': 747,
  31851. 'Gbreve': 722,
  31852. 'Idotaccent': 389,
  31853. 'summation': 600,
  31854. 'Egrave': 667,
  31855. 'racute': 389,
  31856. 'omacron': 500,
  31857. 'Zacute': 611,
  31858. 'Zcaron': 611,
  31859. 'greaterequal': 549,
  31860. 'Eth': 722,
  31861. 'Ccedilla': 667,
  31862. 'lcommaaccent': 278,
  31863. 'tcaron': 366,
  31864. 'eogonek': 444,
  31865. 'Uogonek': 722,
  31866. 'Aacute': 667,
  31867. 'Adieresis': 667,
  31868. 'egrave': 444,
  31869. 'zacute': 389,
  31870. 'iogonek': 278,
  31871. 'Oacute': 722,
  31872. 'oacute': 500,
  31873. 'amacron': 500,
  31874. 'sacute': 389,
  31875. 'idieresis': 278,
  31876. 'Ocircumflex': 722,
  31877. 'Ugrave': 722,
  31878. 'Delta': 612,
  31879. 'thorn': 500,
  31880. 'twosuperior': 300,
  31881. 'Odieresis': 722,
  31882. 'mu': 576,
  31883. 'igrave': 278,
  31884. 'ohungarumlaut': 500,
  31885. 'Eogonek': 667,
  31886. 'dcroat': 500,
  31887. 'threequarters': 750,
  31888. 'Scedilla': 556,
  31889. 'lcaron': 382,
  31890. 'Kcommaaccent': 667,
  31891. 'Lacute': 611,
  31892. 'trademark': 1000,
  31893. 'edotaccent': 444,
  31894. 'Igrave': 389,
  31895. 'Imacron': 389,
  31896. 'Lcaron': 611,
  31897. 'onehalf': 750,
  31898. 'lessequal': 549,
  31899. 'ocircumflex': 500,
  31900. 'ntilde': 556,
  31901. 'Uhungarumlaut': 722,
  31902. 'Eacute': 667,
  31903. 'emacron': 444,
  31904. 'gbreve': 500,
  31905. 'onequarter': 750,
  31906. 'Scaron': 556,
  31907. 'Scommaaccent': 556,
  31908. 'Ohungarumlaut': 722,
  31909. 'degree': 400,
  31910. 'ograve': 500,
  31911. 'Ccaron': 667,
  31912. 'ugrave': 556,
  31913. 'radical': 549,
  31914. 'Dcaron': 722,
  31915. 'rcommaaccent': 389,
  31916. 'Ntilde': 722,
  31917. 'otilde': 500,
  31918. 'Rcommaaccent': 667,
  31919. 'Lcommaaccent': 611,
  31920. 'Atilde': 667,
  31921. 'Aogonek': 667,
  31922. 'Aring': 667,
  31923. 'Otilde': 722,
  31924. 'zdotaccent': 389,
  31925. 'Ecaron': 667,
  31926. 'Iogonek': 389,
  31927. 'kcommaaccent': 500,
  31928. 'minus': 606,
  31929. 'Icircumflex': 389,
  31930. 'ncaron': 556,
  31931. 'tcommaaccent': 278,
  31932. 'logicalnot': 606,
  31933. 'odieresis': 500,
  31934. 'udieresis': 556,
  31935. 'notequal': 549,
  31936. 'gcommaaccent': 500,
  31937. 'eth': 500,
  31938. 'zcaron': 389,
  31939. 'ncommaaccent': 556,
  31940. 'onesuperior': 300,
  31941. 'imacron': 278,
  31942. 'Euro': 500
  31943. },
  31944. 'Times-Italic': {
  31945. 'space': 250,
  31946. 'exclam': 333,
  31947. 'quotedbl': 420,
  31948. 'numbersign': 500,
  31949. 'dollar': 500,
  31950. 'percent': 833,
  31951. 'ampersand': 778,
  31952. 'quoteright': 333,
  31953. 'parenleft': 333,
  31954. 'parenright': 333,
  31955. 'asterisk': 500,
  31956. 'plus': 675,
  31957. 'comma': 250,
  31958. 'hyphen': 333,
  31959. 'period': 250,
  31960. 'slash': 278,
  31961. 'zero': 500,
  31962. 'one': 500,
  31963. 'two': 500,
  31964. 'three': 500,
  31965. 'four': 500,
  31966. 'five': 500,
  31967. 'six': 500,
  31968. 'seven': 500,
  31969. 'eight': 500,
  31970. 'nine': 500,
  31971. 'colon': 333,
  31972. 'semicolon': 333,
  31973. 'less': 675,
  31974. 'equal': 675,
  31975. 'greater': 675,
  31976. 'question': 500,
  31977. 'at': 920,
  31978. 'A': 611,
  31979. 'B': 611,
  31980. 'C': 667,
  31981. 'D': 722,
  31982. 'E': 611,
  31983. 'F': 611,
  31984. 'G': 722,
  31985. 'H': 722,
  31986. 'I': 333,
  31987. 'J': 444,
  31988. 'K': 667,
  31989. 'L': 556,
  31990. 'M': 833,
  31991. 'N': 667,
  31992. 'O': 722,
  31993. 'P': 611,
  31994. 'Q': 722,
  31995. 'R': 611,
  31996. 'S': 500,
  31997. 'T': 556,
  31998. 'U': 722,
  31999. 'V': 611,
  32000. 'W': 833,
  32001. 'X': 611,
  32002. 'Y': 556,
  32003. 'Z': 556,
  32004. 'bracketleft': 389,
  32005. 'backslash': 278,
  32006. 'bracketright': 389,
  32007. 'asciicircum': 422,
  32008. 'underscore': 500,
  32009. 'quoteleft': 333,
  32010. 'a': 500,
  32011. 'b': 500,
  32012. 'c': 444,
  32013. 'd': 500,
  32014. 'e': 444,
  32015. 'f': 278,
  32016. 'g': 500,
  32017. 'h': 500,
  32018. 'i': 278,
  32019. 'j': 278,
  32020. 'k': 444,
  32021. 'l': 278,
  32022. 'm': 722,
  32023. 'n': 500,
  32024. 'o': 500,
  32025. 'p': 500,
  32026. 'q': 500,
  32027. 'r': 389,
  32028. 's': 389,
  32029. 't': 278,
  32030. 'u': 500,
  32031. 'v': 444,
  32032. 'w': 667,
  32033. 'x': 444,
  32034. 'y': 444,
  32035. 'z': 389,
  32036. 'braceleft': 400,
  32037. 'bar': 275,
  32038. 'braceright': 400,
  32039. 'asciitilde': 541,
  32040. 'exclamdown': 389,
  32041. 'cent': 500,
  32042. 'sterling': 500,
  32043. 'fraction': 167,
  32044. 'yen': 500,
  32045. 'florin': 500,
  32046. 'section': 500,
  32047. 'currency': 500,
  32048. 'quotesingle': 214,
  32049. 'quotedblleft': 556,
  32050. 'guillemotleft': 500,
  32051. 'guilsinglleft': 333,
  32052. 'guilsinglright': 333,
  32053. 'fi': 500,
  32054. 'fl': 500,
  32055. 'endash': 500,
  32056. 'dagger': 500,
  32057. 'daggerdbl': 500,
  32058. 'periodcentered': 250,
  32059. 'paragraph': 523,
  32060. 'bullet': 350,
  32061. 'quotesinglbase': 333,
  32062. 'quotedblbase': 556,
  32063. 'quotedblright': 556,
  32064. 'guillemotright': 500,
  32065. 'ellipsis': 889,
  32066. 'perthousand': 1000,
  32067. 'questiondown': 500,
  32068. 'grave': 333,
  32069. 'acute': 333,
  32070. 'circumflex': 333,
  32071. 'tilde': 333,
  32072. 'macron': 333,
  32073. 'breve': 333,
  32074. 'dotaccent': 333,
  32075. 'dieresis': 333,
  32076. 'ring': 333,
  32077. 'cedilla': 333,
  32078. 'hungarumlaut': 333,
  32079. 'ogonek': 333,
  32080. 'caron': 333,
  32081. 'emdash': 889,
  32082. 'AE': 889,
  32083. 'ordfeminine': 276,
  32084. 'Lslash': 556,
  32085. 'Oslash': 722,
  32086. 'OE': 944,
  32087. 'ordmasculine': 310,
  32088. 'ae': 667,
  32089. 'dotlessi': 278,
  32090. 'lslash': 278,
  32091. 'oslash': 500,
  32092. 'oe': 667,
  32093. 'germandbls': 500,
  32094. 'Idieresis': 333,
  32095. 'eacute': 444,
  32096. 'abreve': 500,
  32097. 'uhungarumlaut': 500,
  32098. 'ecaron': 444,
  32099. 'Ydieresis': 556,
  32100. 'divide': 675,
  32101. 'Yacute': 556,
  32102. 'Acircumflex': 611,
  32103. 'aacute': 500,
  32104. 'Ucircumflex': 722,
  32105. 'yacute': 444,
  32106. 'scommaaccent': 389,
  32107. 'ecircumflex': 444,
  32108. 'Uring': 722,
  32109. 'Udieresis': 722,
  32110. 'aogonek': 500,
  32111. 'Uacute': 722,
  32112. 'uogonek': 500,
  32113. 'Edieresis': 611,
  32114. 'Dcroat': 722,
  32115. 'commaaccent': 250,
  32116. 'copyright': 760,
  32117. 'Emacron': 611,
  32118. 'ccaron': 444,
  32119. 'aring': 500,
  32120. 'Ncommaaccent': 667,
  32121. 'lacute': 278,
  32122. 'agrave': 500,
  32123. 'Tcommaaccent': 556,
  32124. 'Cacute': 667,
  32125. 'atilde': 500,
  32126. 'Edotaccent': 611,
  32127. 'scaron': 389,
  32128. 'scedilla': 389,
  32129. 'iacute': 278,
  32130. 'lozenge': 471,
  32131. 'Rcaron': 611,
  32132. 'Gcommaaccent': 722,
  32133. 'ucircumflex': 500,
  32134. 'acircumflex': 500,
  32135. 'Amacron': 611,
  32136. 'rcaron': 389,
  32137. 'ccedilla': 444,
  32138. 'Zdotaccent': 556,
  32139. 'Thorn': 611,
  32140. 'Omacron': 722,
  32141. 'Racute': 611,
  32142. 'Sacute': 500,
  32143. 'dcaron': 544,
  32144. 'Umacron': 722,
  32145. 'uring': 500,
  32146. 'threesuperior': 300,
  32147. 'Ograve': 722,
  32148. 'Agrave': 611,
  32149. 'Abreve': 611,
  32150. 'multiply': 675,
  32151. 'uacute': 500,
  32152. 'Tcaron': 556,
  32153. 'partialdiff': 476,
  32154. 'ydieresis': 444,
  32155. 'Nacute': 667,
  32156. 'icircumflex': 278,
  32157. 'Ecircumflex': 611,
  32158. 'adieresis': 500,
  32159. 'edieresis': 444,
  32160. 'cacute': 444,
  32161. 'nacute': 500,
  32162. 'umacron': 500,
  32163. 'Ncaron': 667,
  32164. 'Iacute': 333,
  32165. 'plusminus': 675,
  32166. 'brokenbar': 275,
  32167. 'registered': 760,
  32168. 'Gbreve': 722,
  32169. 'Idotaccent': 333,
  32170. 'summation': 600,
  32171. 'Egrave': 611,
  32172. 'racute': 389,
  32173. 'omacron': 500,
  32174. 'Zacute': 556,
  32175. 'Zcaron': 556,
  32176. 'greaterequal': 549,
  32177. 'Eth': 722,
  32178. 'Ccedilla': 667,
  32179. 'lcommaaccent': 278,
  32180. 'tcaron': 300,
  32181. 'eogonek': 444,
  32182. 'Uogonek': 722,
  32183. 'Aacute': 611,
  32184. 'Adieresis': 611,
  32185. 'egrave': 444,
  32186. 'zacute': 389,
  32187. 'iogonek': 278,
  32188. 'Oacute': 722,
  32189. 'oacute': 500,
  32190. 'amacron': 500,
  32191. 'sacute': 389,
  32192. 'idieresis': 278,
  32193. 'Ocircumflex': 722,
  32194. 'Ugrave': 722,
  32195. 'Delta': 612,
  32196. 'thorn': 500,
  32197. 'twosuperior': 300,
  32198. 'Odieresis': 722,
  32199. 'mu': 500,
  32200. 'igrave': 278,
  32201. 'ohungarumlaut': 500,
  32202. 'Eogonek': 611,
  32203. 'dcroat': 500,
  32204. 'threequarters': 750,
  32205. 'Scedilla': 500,
  32206. 'lcaron': 300,
  32207. 'Kcommaaccent': 667,
  32208. 'Lacute': 556,
  32209. 'trademark': 980,
  32210. 'edotaccent': 444,
  32211. 'Igrave': 333,
  32212. 'Imacron': 333,
  32213. 'Lcaron': 611,
  32214. 'onehalf': 750,
  32215. 'lessequal': 549,
  32216. 'ocircumflex': 500,
  32217. 'ntilde': 500,
  32218. 'Uhungarumlaut': 722,
  32219. 'Eacute': 611,
  32220. 'emacron': 444,
  32221. 'gbreve': 500,
  32222. 'onequarter': 750,
  32223. 'Scaron': 500,
  32224. 'Scommaaccent': 500,
  32225. 'Ohungarumlaut': 722,
  32226. 'degree': 400,
  32227. 'ograve': 500,
  32228. 'Ccaron': 667,
  32229. 'ugrave': 500,
  32230. 'radical': 453,
  32231. 'Dcaron': 722,
  32232. 'rcommaaccent': 389,
  32233. 'Ntilde': 667,
  32234. 'otilde': 500,
  32235. 'Rcommaaccent': 611,
  32236. 'Lcommaaccent': 556,
  32237. 'Atilde': 611,
  32238. 'Aogonek': 611,
  32239. 'Aring': 611,
  32240. 'Otilde': 722,
  32241. 'zdotaccent': 389,
  32242. 'Ecaron': 611,
  32243. 'Iogonek': 333,
  32244. 'kcommaaccent': 444,
  32245. 'minus': 675,
  32246. 'Icircumflex': 333,
  32247. 'ncaron': 500,
  32248. 'tcommaaccent': 278,
  32249. 'logicalnot': 675,
  32250. 'odieresis': 500,
  32251. 'udieresis': 500,
  32252. 'notequal': 549,
  32253. 'gcommaaccent': 500,
  32254. 'eth': 500,
  32255. 'zcaron': 389,
  32256. 'ncommaaccent': 500,
  32257. 'onesuperior': 300,
  32258. 'imacron': 278,
  32259. 'Euro': 500
  32260. },
  32261. 'ZapfDingbats': {
  32262. 'space': 278,
  32263. 'a1': 974,
  32264. 'a2': 961,
  32265. 'a202': 974,
  32266. 'a3': 980,
  32267. 'a4': 719,
  32268. 'a5': 789,
  32269. 'a119': 790,
  32270. 'a118': 791,
  32271. 'a117': 690,
  32272. 'a11': 960,
  32273. 'a12': 939,
  32274. 'a13': 549,
  32275. 'a14': 855,
  32276. 'a15': 911,
  32277. 'a16': 933,
  32278. 'a105': 911,
  32279. 'a17': 945,
  32280. 'a18': 974,
  32281. 'a19': 755,
  32282. 'a20': 846,
  32283. 'a21': 762,
  32284. 'a22': 761,
  32285. 'a23': 571,
  32286. 'a24': 677,
  32287. 'a25': 763,
  32288. 'a26': 760,
  32289. 'a27': 759,
  32290. 'a28': 754,
  32291. 'a6': 494,
  32292. 'a7': 552,
  32293. 'a8': 537,
  32294. 'a9': 577,
  32295. 'a10': 692,
  32296. 'a29': 786,
  32297. 'a30': 788,
  32298. 'a31': 788,
  32299. 'a32': 790,
  32300. 'a33': 793,
  32301. 'a34': 794,
  32302. 'a35': 816,
  32303. 'a36': 823,
  32304. 'a37': 789,
  32305. 'a38': 841,
  32306. 'a39': 823,
  32307. 'a40': 833,
  32308. 'a41': 816,
  32309. 'a42': 831,
  32310. 'a43': 923,
  32311. 'a44': 744,
  32312. 'a45': 723,
  32313. 'a46': 749,
  32314. 'a47': 790,
  32315. 'a48': 792,
  32316. 'a49': 695,
  32317. 'a50': 776,
  32318. 'a51': 768,
  32319. 'a52': 792,
  32320. 'a53': 759,
  32321. 'a54': 707,
  32322. 'a55': 708,
  32323. 'a56': 682,
  32324. 'a57': 701,
  32325. 'a58': 826,
  32326. 'a59': 815,
  32327. 'a60': 789,
  32328. 'a61': 789,
  32329. 'a62': 707,
  32330. 'a63': 687,
  32331. 'a64': 696,
  32332. 'a65': 689,
  32333. 'a66': 786,
  32334. 'a67': 787,
  32335. 'a68': 713,
  32336. 'a69': 791,
  32337. 'a70': 785,
  32338. 'a71': 791,
  32339. 'a72': 873,
  32340. 'a73': 761,
  32341. 'a74': 762,
  32342. 'a203': 762,
  32343. 'a75': 759,
  32344. 'a204': 759,
  32345. 'a76': 892,
  32346. 'a77': 892,
  32347. 'a78': 788,
  32348. 'a79': 784,
  32349. 'a81': 438,
  32350. 'a82': 138,
  32351. 'a83': 277,
  32352. 'a84': 415,
  32353. 'a97': 392,
  32354. 'a98': 392,
  32355. 'a99': 668,
  32356. 'a100': 668,
  32357. 'a89': 390,
  32358. 'a90': 390,
  32359. 'a93': 317,
  32360. 'a94': 317,
  32361. 'a91': 276,
  32362. 'a92': 276,
  32363. 'a205': 509,
  32364. 'a85': 509,
  32365. 'a206': 410,
  32366. 'a86': 410,
  32367. 'a87': 234,
  32368. 'a88': 234,
  32369. 'a95': 334,
  32370. 'a96': 334,
  32371. 'a101': 732,
  32372. 'a102': 544,
  32373. 'a103': 544,
  32374. 'a104': 910,
  32375. 'a106': 667,
  32376. 'a107': 760,
  32377. 'a108': 760,
  32378. 'a112': 776,
  32379. 'a111': 595,
  32380. 'a110': 694,
  32381. 'a109': 626,
  32382. 'a120': 788,
  32383. 'a121': 788,
  32384. 'a122': 788,
  32385. 'a123': 788,
  32386. 'a124': 788,
  32387. 'a125': 788,
  32388. 'a126': 788,
  32389. 'a127': 788,
  32390. 'a128': 788,
  32391. 'a129': 788,
  32392. 'a130': 788,
  32393. 'a131': 788,
  32394. 'a132': 788,
  32395. 'a133': 788,
  32396. 'a134': 788,
  32397. 'a135': 788,
  32398. 'a136': 788,
  32399. 'a137': 788,
  32400. 'a138': 788,
  32401. 'a139': 788,
  32402. 'a140': 788,
  32403. 'a141': 788,
  32404. 'a142': 788,
  32405. 'a143': 788,
  32406. 'a144': 788,
  32407. 'a145': 788,
  32408. 'a146': 788,
  32409. 'a147': 788,
  32410. 'a148': 788,
  32411. 'a149': 788,
  32412. 'a150': 788,
  32413. 'a151': 788,
  32414. 'a152': 788,
  32415. 'a153': 788,
  32416. 'a154': 788,
  32417. 'a155': 788,
  32418. 'a156': 788,
  32419. 'a157': 788,
  32420. 'a158': 788,
  32421. 'a159': 788,
  32422. 'a160': 894,
  32423. 'a161': 838,
  32424. 'a163': 1016,
  32425. 'a164': 458,
  32426. 'a196': 748,
  32427. 'a165': 924,
  32428. 'a192': 748,
  32429. 'a166': 918,
  32430. 'a167': 927,
  32431. 'a168': 928,
  32432. 'a169': 928,
  32433. 'a170': 834,
  32434. 'a171': 873,
  32435. 'a172': 828,
  32436. 'a173': 924,
  32437. 'a162': 924,
  32438. 'a174': 917,
  32439. 'a175': 930,
  32440. 'a176': 931,
  32441. 'a177': 463,
  32442. 'a178': 883,
  32443. 'a179': 836,
  32444. 'a193': 836,
  32445. 'a180': 867,
  32446. 'a199': 867,
  32447. 'a181': 696,
  32448. 'a200': 696,
  32449. 'a182': 874,
  32450. 'a201': 874,
  32451. 'a183': 760,
  32452. 'a184': 946,
  32453. 'a197': 771,
  32454. 'a185': 865,
  32455. 'a194': 771,
  32456. 'a198': 888,
  32457. 'a186': 967,
  32458. 'a195': 888,
  32459. 'a187': 831,
  32460. 'a188': 873,
  32461. 'a189': 927,
  32462. 'a190': 970,
  32463. 'a191': 918
  32464. }
  32465. };
  32466. var EOF = {};
  32467. function isEOF(v) {
  32468. return (v == EOF);
  32469. }
  32470. var Parser = (function ParserClosure() {
  32471. function Parser(lexer, allowStreams, xref) {
  32472. this.lexer = lexer;
  32473. this.allowStreams = allowStreams;
  32474. this.xref = xref;
  32475. this.imageCache = {
  32476. length: 0,
  32477. adler32: 0,
  32478. stream: null
  32479. };
  32480. this.refill();
  32481. }
  32482. Parser.prototype = {
  32483. refill: function Parser_refill() {
  32484. this.buf1 = this.lexer.getObj();
  32485. this.buf2 = this.lexer.getObj();
  32486. },
  32487. shift: function Parser_shift() {
  32488. if (isCmd(this.buf2, 'ID')) {
  32489. this.buf1 = this.buf2;
  32490. this.buf2 = null;
  32491. } else {
  32492. this.buf1 = this.buf2;
  32493. this.buf2 = this.lexer.getObj();
  32494. }
  32495. },
  32496. getObj: function Parser_getObj(cipherTransform) {
  32497. if (isCmd(this.buf1, 'BI')) { // inline image
  32498. this.shift();
  32499. return this.makeInlineImage(cipherTransform);
  32500. }
  32501. if (isCmd(this.buf1, '[')) { // array
  32502. this.shift();
  32503. var array = [];
  32504. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) {
  32505. array.push(this.getObj(cipherTransform));
  32506. }
  32507. if (isEOF(this.buf1)) {
  32508. error('End of file inside array');
  32509. }
  32510. this.shift();
  32511. return array;
  32512. }
  32513. if (isCmd(this.buf1, '<<')) { // dictionary or stream
  32514. this.shift();
  32515. var dict = new Dict(this.xref);
  32516. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  32517. if (!isName(this.buf1)) {
  32518. info('Malformed dictionary: key must be a name object');
  32519. this.shift();
  32520. continue;
  32521. }
  32522. var key = this.buf1.name;
  32523. this.shift();
  32524. if (isEOF(this.buf1)) {
  32525. break;
  32526. }
  32527. dict.set(key, this.getObj(cipherTransform));
  32528. }
  32529. if (isEOF(this.buf1)) {
  32530. error('End of file inside dictionary');
  32531. }
  32532. // Stream objects are not allowed inside content streams or
  32533. // object streams.
  32534. if (isCmd(this.buf2, 'stream')) {
  32535. return (this.allowStreams ?
  32536. this.makeStream(dict, cipherTransform) : dict);
  32537. }
  32538. this.shift();
  32539. return dict;
  32540. }
  32541. if (isInt(this.buf1)) { // indirect reference or integer
  32542. var num = this.buf1;
  32543. this.shift();
  32544. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  32545. var ref = new Ref(num, this.buf1);
  32546. this.shift();
  32547. this.shift();
  32548. return ref;
  32549. }
  32550. return num;
  32551. }
  32552. if (isString(this.buf1)) { // string
  32553. var str = this.buf1;
  32554. this.shift();
  32555. if (cipherTransform) {
  32556. str = cipherTransform.decryptString(str);
  32557. }
  32558. return str;
  32559. }
  32560. // simple object
  32561. var obj = this.buf1;
  32562. this.shift();
  32563. return obj;
  32564. },
  32565. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  32566. var lexer = this.lexer;
  32567. var stream = lexer.stream;
  32568. // parse dictionary
  32569. var dict = new Dict(null);
  32570. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  32571. if (!isName(this.buf1)) {
  32572. error('Dictionary key must be a name object');
  32573. }
  32574. var key = this.buf1.name;
  32575. this.shift();
  32576. if (isEOF(this.buf1)) {
  32577. break;
  32578. }
  32579. dict.set(key, this.getObj(cipherTransform));
  32580. }
  32581. // parse image stream
  32582. var startPos = stream.pos;
  32583. // searching for the /EI\s/
  32584. var state = 0, ch, i, ii;
  32585. while (state != 4 && (ch = stream.getByte()) !== -1) {
  32586. switch (ch | 0) {
  32587. case 0x20:
  32588. case 0x0D:
  32589. case 0x0A:
  32590. // let's check next five bytes to be ASCII... just be sure
  32591. var followingBytes = stream.peekBytes(5);
  32592. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  32593. ch = followingBytes[i];
  32594. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  32595. // not a LF, CR, SPACE or any visible ASCII character
  32596. state = 0;
  32597. break; // some binary stuff found, resetting the state
  32598. }
  32599. }
  32600. state = (state === 3 ? 4 : 0);
  32601. break;
  32602. case 0x45:
  32603. state = 2;
  32604. break;
  32605. case 0x49:
  32606. state = (state === 2 ? 3 : 0);
  32607. break;
  32608. default:
  32609. state = 0;
  32610. break;
  32611. }
  32612. }
  32613. var length = (stream.pos - 4) - startPos;
  32614. var imageStream = stream.makeSubStream(startPos, length, dict);
  32615. // trying to cache repeat images, first we are trying to "warm up" caching
  32616. // using length, then comparing adler32
  32617. var MAX_LENGTH_TO_CACHE = 1000;
  32618. var cacheImage = false, adler32;
  32619. if (length < MAX_LENGTH_TO_CACHE && this.imageCache.length === length) {
  32620. var imageBytes = imageStream.getBytes();
  32621. imageStream.reset();
  32622. var a = 1;
  32623. var b = 0;
  32624. for (i = 0, ii = imageBytes.length; i < ii; ++i) {
  32625. a = (a + (imageBytes[i] & 0xff)) % 65521;
  32626. b = (b + a) % 65521;
  32627. }
  32628. adler32 = (b << 16) | a;
  32629. if (this.imageCache.stream && this.imageCache.adler32 === adler32) {
  32630. this.buf2 = Cmd.get('EI');
  32631. this.shift();
  32632. this.imageCache.stream.reset();
  32633. return this.imageCache.stream;
  32634. }
  32635. cacheImage = true;
  32636. }
  32637. if (!cacheImage && !this.imageCache.stream) {
  32638. this.imageCache.length = length;
  32639. this.imageCache.stream = null;
  32640. }
  32641. if (cipherTransform) {
  32642. imageStream = cipherTransform.createStream(imageStream, length);
  32643. }
  32644. imageStream = this.filter(imageStream, dict, length);
  32645. imageStream.dict = dict;
  32646. if (cacheImage) {
  32647. imageStream.cacheKey = 'inline_' + length + '_' + adler32;
  32648. this.imageCache.adler32 = adler32;
  32649. this.imageCache.stream = imageStream;
  32650. }
  32651. this.buf2 = Cmd.get('EI');
  32652. this.shift();
  32653. return imageStream;
  32654. },
  32655. fetchIfRef: function Parser_fetchIfRef(obj) {
  32656. // not relying on the xref.fetchIfRef -- xref might not be set
  32657. return (isRef(obj) ? this.xref.fetch(obj) : obj);
  32658. },
  32659. makeStream: function Parser_makeStream(dict, cipherTransform) {
  32660. var lexer = this.lexer;
  32661. var stream = lexer.stream;
  32662. // get stream start position
  32663. lexer.skipToNextLine();
  32664. var pos = stream.pos - 1;
  32665. // get length
  32666. var length = this.fetchIfRef(dict.get('Length'));
  32667. if (!isInt(length)) {
  32668. info('Bad ' + length + ' attribute in stream');
  32669. length = 0;
  32670. }
  32671. // skip over the stream data
  32672. stream.pos = pos + length;
  32673. lexer.nextChar();
  32674. this.shift(); // '>>'
  32675. this.shift(); // 'stream'
  32676. if (!isCmd(this.buf1, 'endstream')) {
  32677. // bad stream length, scanning for endstream
  32678. stream.pos = pos;
  32679. var SCAN_BLOCK_SIZE = 2048;
  32680. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  32681. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  32682. 0x61, 0x6D];
  32683. var skipped = 0, found = false, i, j;
  32684. while (stream.pos < stream.end) {
  32685. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  32686. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  32687. found = false;
  32688. for (i = 0, j = 0; i < scanLength; i++) {
  32689. var b = scanBytes[i];
  32690. if (b !== ENDSTREAM_SIGNATURE[j]) {
  32691. i -= j;
  32692. j = 0;
  32693. } else {
  32694. j++;
  32695. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  32696. i++;
  32697. found = true;
  32698. break;
  32699. }
  32700. }
  32701. }
  32702. if (found) {
  32703. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  32704. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  32705. break;
  32706. }
  32707. skipped += scanLength;
  32708. stream.pos += scanLength;
  32709. }
  32710. if (!found) {
  32711. error('Missing endstream');
  32712. }
  32713. length = skipped;
  32714. lexer.nextChar();
  32715. this.shift();
  32716. this.shift();
  32717. }
  32718. this.shift(); // 'endstream'
  32719. stream = stream.makeSubStream(pos, length, dict);
  32720. if (cipherTransform) {
  32721. stream = cipherTransform.createStream(stream, length);
  32722. }
  32723. stream = this.filter(stream, dict, length);
  32724. stream.dict = dict;
  32725. return stream;
  32726. },
  32727. filter: function Parser_filter(stream, dict, length) {
  32728. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  32729. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  32730. if (isName(filter)) {
  32731. return this.makeFilter(stream, filter.name, length, params);
  32732. }
  32733. var maybeLength = length;
  32734. if (isArray(filter)) {
  32735. var filterArray = filter;
  32736. var paramsArray = params;
  32737. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  32738. filter = filterArray[i];
  32739. if (!isName(filter)) {
  32740. error('Bad filter name: ' + filter);
  32741. }
  32742. params = null;
  32743. if (isArray(paramsArray) && (i in paramsArray)) {
  32744. params = paramsArray[i];
  32745. }
  32746. stream = this.makeFilter(stream, filter.name, maybeLength, params);
  32747. // after the first stream the length variable is invalid
  32748. maybeLength = null;
  32749. }
  32750. }
  32751. return stream;
  32752. },
  32753. makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
  32754. if (stream.dict.get('Length') === 0) {
  32755. return new NullStream(stream);
  32756. }
  32757. if (name == 'FlateDecode' || name == 'Fl') {
  32758. if (params) {
  32759. return new PredictorStream(new FlateStream(stream, maybeLength),
  32760. maybeLength, params);
  32761. }
  32762. return new FlateStream(stream, maybeLength);
  32763. }
  32764. if (name == 'LZWDecode' || name == 'LZW') {
  32765. var earlyChange = 1;
  32766. if (params) {
  32767. if (params.has('EarlyChange')) {
  32768. earlyChange = params.get('EarlyChange');
  32769. }
  32770. return new PredictorStream(
  32771. new LZWStream(stream, maybeLength, earlyChange),
  32772. maybeLength, params);
  32773. }
  32774. return new LZWStream(stream, maybeLength, earlyChange);
  32775. }
  32776. if (name == 'DCTDecode' || name == 'DCT') {
  32777. return new JpegStream(stream, maybeLength, stream.dict, this.xref);
  32778. }
  32779. if (name == 'JPXDecode' || name == 'JPX') {
  32780. return new JpxStream(stream, maybeLength, stream.dict);
  32781. }
  32782. if (name == 'ASCII85Decode' || name == 'A85') {
  32783. return new Ascii85Stream(stream, maybeLength);
  32784. }
  32785. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  32786. return new AsciiHexStream(stream, maybeLength);
  32787. }
  32788. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  32789. return new CCITTFaxStream(stream, maybeLength, params);
  32790. }
  32791. if (name == 'RunLengthDecode' || name == 'RL') {
  32792. return new RunLengthStream(stream, maybeLength);
  32793. }
  32794. if (name == 'JBIG2Decode') {
  32795. return new Jbig2Stream(stream, maybeLength, stream.dict);
  32796. }
  32797. warn('filter "' + name + '" not supported yet');
  32798. return stream;
  32799. }
  32800. };
  32801. return Parser;
  32802. })();
  32803. var Lexer = (function LexerClosure() {
  32804. function Lexer(stream, knownCommands) {
  32805. this.stream = stream;
  32806. this.nextChar();
  32807. // While lexing, we build up many strings one char at a time. Using += for
  32808. // this can result in lots of garbage strings. It's better to build an
  32809. // array of single-char strings and then join() them together at the end.
  32810. // And reusing a single array (i.e. |this.strBuf|) over and over for this
  32811. // purpose uses less memory than using a new array for each string.
  32812. this.strBuf = [];
  32813. // The PDFs might have "glued" commands with other commands, operands or
  32814. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  32815. // commands and their prefixes. The prefixes are built the following way:
  32816. // if there a command that is a prefix of the other valid command or
  32817. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  32818. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  32819. // other commands or literals as a prefix. The knowCommands is optional.
  32820. this.knownCommands = knownCommands;
  32821. }
  32822. Lexer.isSpace = function Lexer_isSpace(ch) {
  32823. // Space is one of the following characters: SPACE, TAB, CR or LF.
  32824. return (ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A);
  32825. };
  32826. // A '1' in this array means the character is white space. A '1' or
  32827. // '2' means the character ends a name or command.
  32828. var specialChars = [
  32829. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  32830. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  32831. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  32832. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  32833. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  32834. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  32835. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  32836. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  32837. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  32838. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  32839. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  32840. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  32841. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  32842. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  32843. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  32844. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  32845. ];
  32846. function toHexDigit(ch) {
  32847. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  32848. return ch & 0x0F;
  32849. }
  32850. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  32851. // 'A'-'F', 'a'-'f'
  32852. return (ch & 0x0F) + 9;
  32853. }
  32854. return -1;
  32855. }
  32856. Lexer.prototype = {
  32857. nextChar: function Lexer_nextChar() {
  32858. return (this.currentChar = this.stream.getByte());
  32859. },
  32860. peekChar: function Lexer_peekChar() {
  32861. return this.stream.peekBytes(1)[0];
  32862. },
  32863. getNumber: function Lexer_getNumber() {
  32864. var ch = this.currentChar;
  32865. var eNotation = false;
  32866. var divideBy = 0; // different from 0 if it's a floating point value
  32867. var sign = 1;
  32868. if (ch === 0x2D) { // '-'
  32869. sign = -1;
  32870. ch = this.nextChar();
  32871. } else if (ch === 0x2B) { // '+'
  32872. ch = this.nextChar();
  32873. }
  32874. if (ch === 0x2E) { // '.'
  32875. divideBy = 10;
  32876. ch = this.nextChar();
  32877. }
  32878. if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  32879. error('Invalid number: ' + String.fromCharCode(ch));
  32880. return 0;
  32881. }
  32882. var baseValue = ch - 0x30; // '0'
  32883. var powerValue = 0;
  32884. var powerValueSign = 1;
  32885. while ((ch = this.nextChar()) >= 0) {
  32886. if (0x30 <= ch && ch <= 0x39) { // '0' - '9'
  32887. var currentDigit = ch - 0x30; // '0'
  32888. if (eNotation) { // We are after an 'e' or 'E'
  32889. powerValue = powerValue * 10 + currentDigit;
  32890. } else {
  32891. if (divideBy !== 0) { // We are after a point
  32892. divideBy *= 10;
  32893. }
  32894. baseValue = baseValue * 10 + currentDigit;
  32895. }
  32896. } else if (ch === 0x2E) { // '.'
  32897. if (divideBy === 0) {
  32898. divideBy = 1;
  32899. } else {
  32900. // A number can have only one '.'
  32901. break;
  32902. }
  32903. } else if (ch === 0x2D) { // '-'
  32904. // ignore minus signs in the middle of numbers to match
  32905. // Adobe's behavior
  32906. warn('Badly formated number');
  32907. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  32908. // 'E' can be either a scientific notation or the beginning of a new
  32909. // operator
  32910. ch = this.peekChar();
  32911. if (ch === 0x2B || ch === 0x2D) { // '+', '-'
  32912. powerValueSign = (ch === 0x2D) ? -1 : 1;
  32913. this.nextChar(); // Consume the sign character
  32914. } else if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  32915. // The 'E' must be the beginning of a new operator
  32916. break;
  32917. }
  32918. eNotation = true;
  32919. } else {
  32920. // the last character doesn't belong to us
  32921. break;
  32922. }
  32923. }
  32924. if (divideBy !== 0) {
  32925. baseValue /= divideBy;
  32926. }
  32927. if (eNotation) {
  32928. baseValue *= Math.pow(10, powerValueSign * powerValue);
  32929. }
  32930. return sign * baseValue;
  32931. },
  32932. getString: function Lexer_getString() {
  32933. var numParen = 1;
  32934. var done = false;
  32935. var strBuf = this.strBuf;
  32936. strBuf.length = 0;
  32937. var ch = this.nextChar();
  32938. while (true) {
  32939. var charBuffered = false;
  32940. switch (ch | 0) {
  32941. case -1:
  32942. warn('Unterminated string');
  32943. done = true;
  32944. break;
  32945. case 0x28: // '('
  32946. ++numParen;
  32947. strBuf.push('(');
  32948. break;
  32949. case 0x29: // ')'
  32950. if (--numParen === 0) {
  32951. this.nextChar(); // consume strings ')'
  32952. done = true;
  32953. } else {
  32954. strBuf.push(')');
  32955. }
  32956. break;
  32957. case 0x5C: // '\\'
  32958. ch = this.nextChar();
  32959. switch (ch) {
  32960. case -1:
  32961. warn('Unterminated string');
  32962. done = true;
  32963. break;
  32964. case 0x6E: // 'n'
  32965. strBuf.push('\n');
  32966. break;
  32967. case 0x72: // 'r'
  32968. strBuf.push('\r');
  32969. break;
  32970. case 0x74: // 't'
  32971. strBuf.push('\t');
  32972. break;
  32973. case 0x62: // 'b'
  32974. strBuf.push('\b');
  32975. break;
  32976. case 0x66: // 'f'
  32977. strBuf.push('\f');
  32978. break;
  32979. case 0x5C: // '\'
  32980. case 0x28: // '('
  32981. case 0x29: // ')'
  32982. strBuf.push(String.fromCharCode(ch));
  32983. break;
  32984. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  32985. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  32986. var x = ch & 0x0F;
  32987. ch = this.nextChar();
  32988. charBuffered = true;
  32989. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  32990. x = (x << 3) + (ch & 0x0F);
  32991. ch = this.nextChar();
  32992. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  32993. charBuffered = false;
  32994. x = (x << 3) + (ch & 0x0F);
  32995. }
  32996. }
  32997. strBuf.push(String.fromCharCode(x));
  32998. break;
  32999. case 0x0D: // CR
  33000. if (this.peekChar() === 0x0A) { // LF
  33001. this.nextChar();
  33002. }
  33003. break;
  33004. case 0x0A: // LF
  33005. break;
  33006. default:
  33007. strBuf.push(String.fromCharCode(ch));
  33008. break;
  33009. }
  33010. break;
  33011. default:
  33012. strBuf.push(String.fromCharCode(ch));
  33013. break;
  33014. }
  33015. if (done) {
  33016. break;
  33017. }
  33018. if (!charBuffered) {
  33019. ch = this.nextChar();
  33020. }
  33021. }
  33022. return strBuf.join('');
  33023. },
  33024. getName: function Lexer_getName() {
  33025. var ch;
  33026. var strBuf = this.strBuf;
  33027. strBuf.length = 0;
  33028. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  33029. if (ch === 0x23) { // '#'
  33030. ch = this.nextChar();
  33031. var x = toHexDigit(ch);
  33032. if (x != -1) {
  33033. var x2 = toHexDigit(this.nextChar());
  33034. if (x2 == -1) {
  33035. error('Illegal digit in hex char in name: ' + x2);
  33036. }
  33037. strBuf.push(String.fromCharCode((x << 4) | x2));
  33038. } else {
  33039. strBuf.push('#', String.fromCharCode(ch));
  33040. }
  33041. } else {
  33042. strBuf.push(String.fromCharCode(ch));
  33043. }
  33044. }
  33045. if (strBuf.length > 128) {
  33046. error('Warning: name token is longer than allowed by the spec: ' +
  33047. strBuf.length);
  33048. }
  33049. return Name.get(strBuf.join(''));
  33050. },
  33051. getHexString: function Lexer_getHexString() {
  33052. var strBuf = this.strBuf;
  33053. strBuf.length = 0;
  33054. var ch = this.currentChar;
  33055. var isFirstHex = true;
  33056. var firstDigit;
  33057. var secondDigit;
  33058. while (true) {
  33059. if (ch < 0) {
  33060. warn('Unterminated hex string');
  33061. break;
  33062. } else if (ch === 0x3E) { // '>'
  33063. this.nextChar();
  33064. break;
  33065. } else if (specialChars[ch] === 1) {
  33066. ch = this.nextChar();
  33067. continue;
  33068. } else {
  33069. if (isFirstHex) {
  33070. firstDigit = toHexDigit(ch);
  33071. if (firstDigit === -1) {
  33072. warn('Ignoring invalid character "' + ch + '" in hex string');
  33073. ch = this.nextChar();
  33074. continue;
  33075. }
  33076. } else {
  33077. secondDigit = toHexDigit(ch);
  33078. if (secondDigit === -1) {
  33079. warn('Ignoring invalid character "' + ch + '" in hex string');
  33080. ch = this.nextChar();
  33081. continue;
  33082. }
  33083. strBuf.push(String.fromCharCode((firstDigit << 4) | secondDigit));
  33084. }
  33085. isFirstHex = !isFirstHex;
  33086. ch = this.nextChar();
  33087. }
  33088. }
  33089. return strBuf.join('');
  33090. },
  33091. getObj: function Lexer_getObj() {
  33092. // skip whitespace and comments
  33093. var comment = false;
  33094. var ch = this.currentChar;
  33095. while (true) {
  33096. if (ch < 0) {
  33097. return EOF;
  33098. }
  33099. if (comment) {
  33100. if (ch === 0x0A || ch == 0x0D) { // LF, CR
  33101. comment = false;
  33102. }
  33103. } else if (ch === 0x25) { // '%'
  33104. comment = true;
  33105. } else if (specialChars[ch] !== 1) {
  33106. break;
  33107. }
  33108. ch = this.nextChar();
  33109. }
  33110. // start reading token
  33111. switch (ch | 0) {
  33112. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  33113. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  33114. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  33115. return this.getNumber();
  33116. case 0x28: // '('
  33117. return this.getString();
  33118. case 0x2F: // '/'
  33119. return this.getName();
  33120. // array punctuation
  33121. case 0x5B: // '['
  33122. this.nextChar();
  33123. return Cmd.get('[');
  33124. case 0x5D: // ']'
  33125. this.nextChar();
  33126. return Cmd.get(']');
  33127. // hex string or dict punctuation
  33128. case 0x3C: // '<'
  33129. ch = this.nextChar();
  33130. if (ch === 0x3C) {
  33131. // dict punctuation
  33132. this.nextChar();
  33133. return Cmd.get('<<');
  33134. }
  33135. return this.getHexString();
  33136. // dict punctuation
  33137. case 0x3E: // '>'
  33138. ch = this.nextChar();
  33139. if (ch === 0x3E) {
  33140. this.nextChar();
  33141. return Cmd.get('>>');
  33142. }
  33143. return Cmd.get('>');
  33144. case 0x7B: // '{'
  33145. this.nextChar();
  33146. return Cmd.get('{');
  33147. case 0x7D: // '}'
  33148. this.nextChar();
  33149. return Cmd.get('}');
  33150. case 0x29: // ')'
  33151. error('Illegal character: ' + ch);
  33152. break;
  33153. }
  33154. // command
  33155. var str = String.fromCharCode(ch);
  33156. var knownCommands = this.knownCommands;
  33157. var knownCommandFound = knownCommands && (str in knownCommands);
  33158. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  33159. // stop if known command is found and next character does not make
  33160. // the str a command
  33161. var possibleCommand = str + String.fromCharCode(ch);
  33162. if (knownCommandFound && !(possibleCommand in knownCommands)) {
  33163. break;
  33164. }
  33165. if (str.length == 128) {
  33166. error('Command token too long: ' + str.length);
  33167. }
  33168. str = possibleCommand;
  33169. knownCommandFound = knownCommands && (str in knownCommands);
  33170. }
  33171. if (str == 'true') {
  33172. return true;
  33173. }
  33174. if (str == 'false') {
  33175. return false;
  33176. }
  33177. if (str == 'null') {
  33178. return null;
  33179. }
  33180. return Cmd.get(str);
  33181. },
  33182. skipToNextLine: function Lexer_skipToNextLine() {
  33183. var ch = this.currentChar;
  33184. while (ch >= 0) {
  33185. if (ch === 0x0D) { // CR
  33186. ch = this.nextChar();
  33187. if (ch === 0x0A) { // LF
  33188. this.nextChar();
  33189. }
  33190. break;
  33191. } else if (ch === 0x0A) { // LF
  33192. this.nextChar();
  33193. break;
  33194. }
  33195. ch = this.nextChar();
  33196. }
  33197. }
  33198. };
  33199. return Lexer;
  33200. })();
  33201. var Linearization = (function LinearizationClosure() {
  33202. function Linearization(stream) {
  33203. this.parser = new Parser(new Lexer(stream), false, null);
  33204. var obj1 = this.parser.getObj();
  33205. var obj2 = this.parser.getObj();
  33206. var obj3 = this.parser.getObj();
  33207. this.linDict = this.parser.getObj();
  33208. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  33209. isDict(this.linDict)) {
  33210. var obj = this.linDict.get('Linearized');
  33211. if (!(isNum(obj) && obj > 0)) {
  33212. this.linDict = null;
  33213. }
  33214. }
  33215. }
  33216. Linearization.prototype = {
  33217. getInt: function Linearization_getInt(name) {
  33218. var linDict = this.linDict;
  33219. var obj;
  33220. if (isDict(linDict) && isInt(obj = linDict.get(name)) && obj > 0) {
  33221. return obj;
  33222. }
  33223. error('"' + name + '" field in linearization table is invalid');
  33224. },
  33225. getHint: function Linearization_getHint(index) {
  33226. var linDict = this.linDict;
  33227. var obj1, obj2;
  33228. if (isDict(linDict) && isArray(obj1 = linDict.get('H')) &&
  33229. obj1.length >= 2 && isInt(obj2 = obj1[index]) && obj2 > 0) {
  33230. return obj2;
  33231. }
  33232. error('Hints table in linearization table is invalid: ' + index);
  33233. },
  33234. get length() {
  33235. if (!isDict(this.linDict)) {
  33236. return 0;
  33237. }
  33238. return this.getInt('L');
  33239. },
  33240. get hintsOffset() {
  33241. return this.getHint(0);
  33242. },
  33243. get hintsLength() {
  33244. return this.getHint(1);
  33245. },
  33246. get hintsOffset2() {
  33247. return this.getHint(2);
  33248. },
  33249. get hintsLenth2() {
  33250. return this.getHint(3);
  33251. },
  33252. get objectNumberFirst() {
  33253. return this.getInt('O');
  33254. },
  33255. get endFirst() {
  33256. return this.getInt('E');
  33257. },
  33258. get numPages() {
  33259. return this.getInt('N');
  33260. },
  33261. get mainXRefEntriesOffset() {
  33262. return this.getInt('T');
  33263. },
  33264. get pageFirst() {
  33265. return this.getInt('P');
  33266. }
  33267. };
  33268. return Linearization;
  33269. })();
  33270. var PostScriptParser = (function PostScriptParserClosure() {
  33271. function PostScriptParser(lexer) {
  33272. this.lexer = lexer;
  33273. this.operators = [];
  33274. this.token = null;
  33275. this.prev = null;
  33276. }
  33277. PostScriptParser.prototype = {
  33278. nextToken: function PostScriptParser_nextToken() {
  33279. this.prev = this.token;
  33280. this.token = this.lexer.getToken();
  33281. },
  33282. accept: function PostScriptParser_accept(type) {
  33283. if (this.token.type == type) {
  33284. this.nextToken();
  33285. return true;
  33286. }
  33287. return false;
  33288. },
  33289. expect: function PostScriptParser_expect(type) {
  33290. if (this.accept(type)) {
  33291. return true;
  33292. }
  33293. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  33294. type + '.');
  33295. },
  33296. parse: function PostScriptParser_parse() {
  33297. this.nextToken();
  33298. this.expect(PostScriptTokenTypes.LBRACE);
  33299. this.parseBlock();
  33300. this.expect(PostScriptTokenTypes.RBRACE);
  33301. return this.operators;
  33302. },
  33303. parseBlock: function PostScriptParser_parseBlock() {
  33304. while (true) {
  33305. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  33306. this.operators.push(this.prev.value);
  33307. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  33308. this.operators.push(this.prev.value);
  33309. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33310. this.parseCondition();
  33311. } else {
  33312. return;
  33313. }
  33314. }
  33315. },
  33316. parseCondition: function PostScriptParser_parseCondition() {
  33317. // Add two place holders that will be updated later
  33318. var conditionLocation = this.operators.length;
  33319. this.operators.push(null, null);
  33320. this.parseBlock();
  33321. this.expect(PostScriptTokenTypes.RBRACE);
  33322. if (this.accept(PostScriptTokenTypes.IF)) {
  33323. // The true block is right after the 'if' so it just falls through on
  33324. // true else it jumps and skips the true block.
  33325. this.operators[conditionLocation] = this.operators.length;
  33326. this.operators[conditionLocation + 1] = 'jz';
  33327. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33328. var jumpLocation = this.operators.length;
  33329. this.operators.push(null, null);
  33330. var endOfTrue = this.operators.length;
  33331. this.parseBlock();
  33332. this.expect(PostScriptTokenTypes.RBRACE);
  33333. this.expect(PostScriptTokenTypes.IFELSE);
  33334. // The jump is added at the end of the true block to skip the false
  33335. // block.
  33336. this.operators[jumpLocation] = this.operators.length;
  33337. this.operators[jumpLocation + 1] = 'j';
  33338. this.operators[conditionLocation] = endOfTrue;
  33339. this.operators[conditionLocation + 1] = 'jz';
  33340. } else {
  33341. error('PS Function: error parsing conditional.');
  33342. }
  33343. }
  33344. };
  33345. return PostScriptParser;
  33346. })();
  33347. var PostScriptTokenTypes = {
  33348. LBRACE: 0,
  33349. RBRACE: 1,
  33350. NUMBER: 2,
  33351. OPERATOR: 3,
  33352. IF: 4,
  33353. IFELSE: 5
  33354. };
  33355. var PostScriptToken = (function PostScriptTokenClosure() {
  33356. function PostScriptToken(type, value) {
  33357. this.type = type;
  33358. this.value = value;
  33359. }
  33360. var opCache = {};
  33361. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  33362. var opValue = opCache[op];
  33363. if (opValue) {
  33364. return opValue;
  33365. }
  33366. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  33367. };
  33368. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  33369. '{');
  33370. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  33371. '}');
  33372. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  33373. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  33374. 'IFELSE');
  33375. return PostScriptToken;
  33376. })();
  33377. var PostScriptLexer = (function PostScriptLexerClosure() {
  33378. function PostScriptLexer(stream) {
  33379. this.stream = stream;
  33380. this.nextChar();
  33381. }
  33382. PostScriptLexer.prototype = {
  33383. nextChar: function PostScriptLexer_nextChar() {
  33384. return (this.currentChar = this.stream.getByte());
  33385. },
  33386. getToken: function PostScriptLexer_getToken() {
  33387. var comment = false;
  33388. var ch = this.currentChar;
  33389. // skip comments
  33390. while (true) {
  33391. if (ch < 0) {
  33392. return EOF;
  33393. }
  33394. if (comment) {
  33395. if (ch === 0x0A || ch === 0x0D) {
  33396. comment = false;
  33397. }
  33398. } else if (ch == 0x25) { // '%'
  33399. comment = true;
  33400. } else if (!Lexer.isSpace(ch)) {
  33401. break;
  33402. }
  33403. ch = this.nextChar();
  33404. }
  33405. switch (ch | 0) {
  33406. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  33407. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  33408. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  33409. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  33410. this.getNumber());
  33411. case 0x7B: // '{'
  33412. this.nextChar();
  33413. return PostScriptToken.LBRACE;
  33414. case 0x7D: // '}'
  33415. this.nextChar();
  33416. return PostScriptToken.RBRACE;
  33417. }
  33418. // operator
  33419. var str = String.fromCharCode(ch);
  33420. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  33421. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  33422. str += String.fromCharCode(ch);
  33423. }
  33424. switch (str.toLowerCase()) {
  33425. case 'if':
  33426. return PostScriptToken.IF;
  33427. case 'ifelse':
  33428. return PostScriptToken.IFELSE;
  33429. default:
  33430. return PostScriptToken.getOperator(str);
  33431. }
  33432. },
  33433. getNumber: function PostScriptLexer_getNumber() {
  33434. var ch = this.currentChar;
  33435. var str = String.fromCharCode(ch);
  33436. while ((ch = this.nextChar()) >= 0) {
  33437. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  33438. ch === 0x2D || ch === 0x2E) { // '-', '.'
  33439. str += String.fromCharCode(ch);
  33440. } else {
  33441. break;
  33442. }
  33443. }
  33444. var value = parseFloat(str);
  33445. if (isNaN(value)) {
  33446. error('Invalid floating point number: ' + value);
  33447. }
  33448. return value;
  33449. }
  33450. };
  33451. return PostScriptLexer;
  33452. })();
  33453. var Stream = (function StreamClosure() {
  33454. function Stream(arrayBuffer, start, length, dict) {
  33455. this.bytes = (arrayBuffer instanceof Uint8Array ?
  33456. arrayBuffer : new Uint8Array(arrayBuffer));
  33457. this.start = start || 0;
  33458. this.pos = this.start;
  33459. this.end = (start + length) || this.bytes.length;
  33460. this.dict = dict;
  33461. }
  33462. // required methods for a stream. if a particular stream does not
  33463. // implement these, an error should be thrown
  33464. Stream.prototype = {
  33465. get length() {
  33466. return this.end - this.start;
  33467. },
  33468. get isEmpty() {
  33469. return this.length === 0;
  33470. },
  33471. getByte: function Stream_getByte() {
  33472. if (this.pos >= this.end) {
  33473. return -1;
  33474. }
  33475. return this.bytes[this.pos++];
  33476. },
  33477. getUint16: function Stream_getUint16() {
  33478. var b0 = this.getByte();
  33479. var b1 = this.getByte();
  33480. return (b0 << 8) + b1;
  33481. },
  33482. getInt32: function Stream_getInt32() {
  33483. var b0 = this.getByte();
  33484. var b1 = this.getByte();
  33485. var b2 = this.getByte();
  33486. var b3 = this.getByte();
  33487. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33488. },
  33489. // returns subarray of original buffer
  33490. // should only be read
  33491. getBytes: function Stream_getBytes(length) {
  33492. var bytes = this.bytes;
  33493. var pos = this.pos;
  33494. var strEnd = this.end;
  33495. if (!length) {
  33496. return bytes.subarray(pos, strEnd);
  33497. }
  33498. var end = pos + length;
  33499. if (end > strEnd) {
  33500. end = strEnd;
  33501. }
  33502. this.pos = end;
  33503. return bytes.subarray(pos, end);
  33504. },
  33505. peekBytes: function Stream_peekBytes(length) {
  33506. var bytes = this.getBytes(length);
  33507. this.pos -= bytes.length;
  33508. return bytes;
  33509. },
  33510. skip: function Stream_skip(n) {
  33511. if (!n) {
  33512. n = 1;
  33513. }
  33514. this.pos += n;
  33515. },
  33516. reset: function Stream_reset() {
  33517. this.pos = this.start;
  33518. },
  33519. moveStart: function Stream_moveStart() {
  33520. this.start = this.pos;
  33521. },
  33522. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  33523. return new Stream(this.bytes.buffer, start, length, dict);
  33524. },
  33525. isStream: true
  33526. };
  33527. return Stream;
  33528. })();
  33529. var StringStream = (function StringStreamClosure() {
  33530. function StringStream(str) {
  33531. var length = str.length;
  33532. var bytes = new Uint8Array(length);
  33533. for (var n = 0; n < length; ++n) {
  33534. bytes[n] = str.charCodeAt(n);
  33535. }
  33536. Stream.call(this, bytes);
  33537. }
  33538. StringStream.prototype = Stream.prototype;
  33539. return StringStream;
  33540. })();
  33541. // super class for the decoding streams
  33542. var DecodeStream = (function DecodeStreamClosure() {
  33543. function DecodeStream(maybeMinBufferLength) {
  33544. this.pos = 0;
  33545. this.bufferLength = 0;
  33546. this.eof = false;
  33547. this.buffer = null;
  33548. this.minBufferLength = 512;
  33549. if (maybeMinBufferLength) {
  33550. // Compute the first power of two that is as big as maybeMinBufferLength.
  33551. while (this.minBufferLength < maybeMinBufferLength) {
  33552. this.minBufferLength *= 2;
  33553. }
  33554. }
  33555. }
  33556. DecodeStream.prototype = {
  33557. get isEmpty() {
  33558. while (!this.eof && this.bufferLength === 0) {
  33559. this.readBlock();
  33560. }
  33561. return this.bufferLength === 0;
  33562. },
  33563. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  33564. var buffer = this.buffer;
  33565. var current;
  33566. if (buffer) {
  33567. current = buffer.byteLength;
  33568. if (requested <= current) {
  33569. return buffer;
  33570. }
  33571. } else {
  33572. current = 0;
  33573. }
  33574. var size = this.minBufferLength;
  33575. while (size < requested) {
  33576. size *= 2;
  33577. }
  33578. var buffer2 = new Uint8Array(size);
  33579. if (buffer) {
  33580. buffer2.set(buffer);
  33581. }
  33582. return (this.buffer = buffer2);
  33583. },
  33584. getByte: function DecodeStream_getByte() {
  33585. var pos = this.pos;
  33586. while (this.bufferLength <= pos) {
  33587. if (this.eof) {
  33588. return -1;
  33589. }
  33590. this.readBlock();
  33591. }
  33592. return this.buffer[this.pos++];
  33593. },
  33594. getUint16: function DecodeStream_getUint16() {
  33595. var b0 = this.getByte();
  33596. var b1 = this.getByte();
  33597. return (b0 << 8) + b1;
  33598. },
  33599. getInt32: function DecodeStream_getInt32() {
  33600. var b0 = this.getByte();
  33601. var b1 = this.getByte();
  33602. var b2 = this.getByte();
  33603. var b3 = this.getByte();
  33604. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33605. },
  33606. getBytes: function DecodeStream_getBytes(length) {
  33607. var end, pos = this.pos;
  33608. if (length) {
  33609. this.ensureBuffer(pos + length);
  33610. end = pos + length;
  33611. while (!this.eof && this.bufferLength < end) {
  33612. this.readBlock();
  33613. }
  33614. var bufEnd = this.bufferLength;
  33615. if (end > bufEnd) {
  33616. end = bufEnd;
  33617. }
  33618. } else {
  33619. while (!this.eof) {
  33620. this.readBlock();
  33621. }
  33622. end = this.bufferLength;
  33623. // checking if bufferLength is still 0 then
  33624. // the buffer has to be initialized
  33625. if (!end) {
  33626. this.buffer = new Uint8Array(0);
  33627. }
  33628. }
  33629. this.pos = end;
  33630. return this.buffer.subarray(pos, end);
  33631. },
  33632. peekBytes: function DecodeStream_peekBytes(length) {
  33633. var bytes = this.getBytes(length);
  33634. this.pos -= bytes.length;
  33635. return bytes;
  33636. },
  33637. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  33638. var end = start + length;
  33639. while (this.bufferLength <= end && !this.eof) {
  33640. this.readBlock();
  33641. }
  33642. return new Stream(this.buffer, start, length, dict);
  33643. },
  33644. skip: function DecodeStream_skip(n) {
  33645. if (!n) {
  33646. n = 1;
  33647. }
  33648. this.pos += n;
  33649. },
  33650. reset: function DecodeStream_reset() {
  33651. this.pos = 0;
  33652. },
  33653. getBaseStreams: function DecodeStream_getBaseStreams() {
  33654. if (this.str && this.str.getBaseStreams) {
  33655. return this.str.getBaseStreams();
  33656. }
  33657. return [];
  33658. }
  33659. };
  33660. return DecodeStream;
  33661. })();
  33662. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  33663. function StreamsSequenceStream(streams) {
  33664. this.streams = streams;
  33665. DecodeStream.call(this, /* maybeLength = */ null);
  33666. }
  33667. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  33668. StreamsSequenceStream.prototype.readBlock =
  33669. function streamSequenceStreamReadBlock() {
  33670. var streams = this.streams;
  33671. if (streams.length === 0) {
  33672. this.eof = true;
  33673. return;
  33674. }
  33675. var stream = streams.shift();
  33676. var chunk = stream.getBytes();
  33677. var bufferLength = this.bufferLength;
  33678. var newLength = bufferLength + chunk.length;
  33679. var buffer = this.ensureBuffer(newLength);
  33680. buffer.set(chunk, bufferLength);
  33681. this.bufferLength = newLength;
  33682. };
  33683. StreamsSequenceStream.prototype.getBaseStreams =
  33684. function StreamsSequenceStream_getBaseStreams() {
  33685. var baseStreams = [];
  33686. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  33687. var stream = this.streams[i];
  33688. if (stream.getBaseStreams) {
  33689. Util.concatenateToArray(baseStreams, stream.getBaseStreams());
  33690. }
  33691. }
  33692. return baseStreams;
  33693. };
  33694. return StreamsSequenceStream;
  33695. })();
  33696. var FlateStream = (function FlateStreamClosure() {
  33697. var codeLenCodeMap = new Uint32Array([
  33698. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  33699. ]);
  33700. var lengthDecode = new Uint32Array([
  33701. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  33702. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  33703. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  33704. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  33705. ]);
  33706. var distDecode = new Uint32Array([
  33707. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  33708. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  33709. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  33710. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  33711. ]);
  33712. var fixedLitCodeTab = [new Uint32Array([
  33713. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  33714. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  33715. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  33716. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  33717. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  33718. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  33719. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  33720. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  33721. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  33722. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  33723. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  33724. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  33725. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  33726. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  33727. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  33728. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  33729. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  33730. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  33731. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  33732. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  33733. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  33734. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  33735. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  33736. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  33737. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  33738. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  33739. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  33740. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  33741. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  33742. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  33743. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  33744. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  33745. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  33746. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  33747. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  33748. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  33749. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  33750. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  33751. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  33752. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  33753. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  33754. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  33755. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  33756. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  33757. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  33758. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  33759. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  33760. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  33761. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  33762. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  33763. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  33764. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  33765. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  33766. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  33767. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  33768. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  33769. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  33770. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  33771. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  33772. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  33773. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  33774. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  33775. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  33776. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  33777. ]), 9];
  33778. var fixedDistCodeTab = [new Uint32Array([
  33779. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  33780. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  33781. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  33782. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  33783. ]), 5];
  33784. function FlateStream(str, maybeLength) {
  33785. this.str = str;
  33786. this.dict = str.dict;
  33787. var cmf = str.getByte();
  33788. var flg = str.getByte();
  33789. if (cmf == -1 || flg == -1) {
  33790. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  33791. }
  33792. if ((cmf & 0x0f) != 0x08) {
  33793. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  33794. }
  33795. if ((((cmf << 8) + flg) % 31) !== 0) {
  33796. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  33797. }
  33798. if (flg & 0x20) {
  33799. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  33800. }
  33801. this.codeSize = 0;
  33802. this.codeBuf = 0;
  33803. DecodeStream.call(this, maybeLength);
  33804. }
  33805. FlateStream.prototype = Object.create(DecodeStream.prototype);
  33806. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  33807. var str = this.str;
  33808. var codeSize = this.codeSize;
  33809. var codeBuf = this.codeBuf;
  33810. var b;
  33811. while (codeSize < bits) {
  33812. if ((b = str.getByte()) === -1) {
  33813. error('Bad encoding in flate stream');
  33814. }
  33815. codeBuf |= b << codeSize;
  33816. codeSize += 8;
  33817. }
  33818. b = codeBuf & ((1 << bits) - 1);
  33819. this.codeBuf = codeBuf >> bits;
  33820. this.codeSize = codeSize -= bits;
  33821. return b;
  33822. };
  33823. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  33824. var str = this.str;
  33825. var codes = table[0];
  33826. var maxLen = table[1];
  33827. var codeSize = this.codeSize;
  33828. var codeBuf = this.codeBuf;
  33829. while (codeSize < maxLen) {
  33830. var b;
  33831. if ((b = str.getByte()) === -1) {
  33832. error('Bad encoding in flate stream');
  33833. }
  33834. codeBuf |= (b << codeSize);
  33835. codeSize += 8;
  33836. }
  33837. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  33838. var codeLen = code >> 16;
  33839. var codeVal = code & 0xffff;
  33840. if (codeSize === 0 || codeSize < codeLen || codeLen === 0) {
  33841. error('Bad encoding in flate stream');
  33842. }
  33843. this.codeBuf = (codeBuf >> codeLen);
  33844. this.codeSize = (codeSize - codeLen);
  33845. return codeVal;
  33846. };
  33847. FlateStream.prototype.generateHuffmanTable =
  33848. function flateStreamGenerateHuffmanTable(lengths) {
  33849. var n = lengths.length;
  33850. // find max code length
  33851. var maxLen = 0;
  33852. var i;
  33853. for (i = 0; i < n; ++i) {
  33854. if (lengths[i] > maxLen) {
  33855. maxLen = lengths[i];
  33856. }
  33857. }
  33858. // build the table
  33859. var size = 1 << maxLen;
  33860. var codes = new Uint32Array(size);
  33861. for (var len = 1, code = 0, skip = 2;
  33862. len <= maxLen;
  33863. ++len, code <<= 1, skip <<= 1) {
  33864. for (var val = 0; val < n; ++val) {
  33865. if (lengths[val] == len) {
  33866. // bit-reverse the code
  33867. var code2 = 0;
  33868. var t = code;
  33869. for (i = 0; i < len; ++i) {
  33870. code2 = (code2 << 1) | (t & 1);
  33871. t >>= 1;
  33872. }
  33873. // fill the table entries
  33874. for (i = code2; i < size; i += skip) {
  33875. codes[i] = (len << 16) | val;
  33876. }
  33877. ++code;
  33878. }
  33879. }
  33880. }
  33881. return [codes, maxLen];
  33882. };
  33883. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  33884. var buffer, len;
  33885. var str = this.str;
  33886. // read block header
  33887. var hdr = this.getBits(3);
  33888. if (hdr & 1) {
  33889. this.eof = true;
  33890. }
  33891. hdr >>= 1;
  33892. if (hdr === 0) { // uncompressed block
  33893. var b;
  33894. if ((b = str.getByte()) === -1) {
  33895. error('Bad block header in flate stream');
  33896. }
  33897. var blockLen = b;
  33898. if ((b = str.getByte()) === -1) {
  33899. error('Bad block header in flate stream');
  33900. }
  33901. blockLen |= (b << 8);
  33902. if ((b = str.getByte()) === -1) {
  33903. error('Bad block header in flate stream');
  33904. }
  33905. var check = b;
  33906. if ((b = str.getByte()) === -1) {
  33907. error('Bad block header in flate stream');
  33908. }
  33909. check |= (b << 8);
  33910. if (check != (~blockLen & 0xffff) &&
  33911. (blockLen !== 0 || check !== 0)) {
  33912. // Ignoring error for bad "empty" block (see issue 1277)
  33913. error('Bad uncompressed block length in flate stream');
  33914. }
  33915. this.codeBuf = 0;
  33916. this.codeSize = 0;
  33917. var bufferLength = this.bufferLength;
  33918. buffer = this.ensureBuffer(bufferLength + blockLen);
  33919. var end = bufferLength + blockLen;
  33920. this.bufferLength = end;
  33921. if (blockLen === 0) {
  33922. if (str.peekBytes(1).length === 0) {
  33923. this.eof = true;
  33924. }
  33925. } else {
  33926. for (var n = bufferLength; n < end; ++n) {
  33927. if ((b = str.getByte()) === -1) {
  33928. this.eof = true;
  33929. break;
  33930. }
  33931. buffer[n] = b;
  33932. }
  33933. }
  33934. return;
  33935. }
  33936. var litCodeTable;
  33937. var distCodeTable;
  33938. if (hdr == 1) { // compressed block, fixed codes
  33939. litCodeTable = fixedLitCodeTab;
  33940. distCodeTable = fixedDistCodeTab;
  33941. } else if (hdr == 2) { // compressed block, dynamic codes
  33942. var numLitCodes = this.getBits(5) + 257;
  33943. var numDistCodes = this.getBits(5) + 1;
  33944. var numCodeLenCodes = this.getBits(4) + 4;
  33945. // build the code lengths code table
  33946. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  33947. var i;
  33948. for (i = 0; i < numCodeLenCodes; ++i) {
  33949. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  33950. }
  33951. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  33952. // build the literal and distance code tables
  33953. len = 0;
  33954. i = 0;
  33955. var codes = numLitCodes + numDistCodes;
  33956. var codeLengths = new Uint8Array(codes);
  33957. var bitsLength, bitsOffset, what;
  33958. while (i < codes) {
  33959. var code = this.getCode(codeLenCodeTab);
  33960. if (code == 16) {
  33961. bitsLength = 2; bitsOffset = 3; what = len;
  33962. } else if (code == 17) {
  33963. bitsLength = 3; bitsOffset = 3; what = (len = 0);
  33964. } else if (code == 18) {
  33965. bitsLength = 7; bitsOffset = 11; what = (len = 0);
  33966. } else {
  33967. codeLengths[i++] = len = code;
  33968. continue;
  33969. }
  33970. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  33971. while (repeatLength-- > 0) {
  33972. codeLengths[i++] = what;
  33973. }
  33974. }
  33975. litCodeTable =
  33976. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  33977. distCodeTable =
  33978. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  33979. } else {
  33980. error('Unknown block type in flate stream');
  33981. }
  33982. buffer = this.buffer;
  33983. var limit = buffer ? buffer.length : 0;
  33984. var pos = this.bufferLength;
  33985. while (true) {
  33986. var code1 = this.getCode(litCodeTable);
  33987. if (code1 < 256) {
  33988. if (pos + 1 >= limit) {
  33989. buffer = this.ensureBuffer(pos + 1);
  33990. limit = buffer.length;
  33991. }
  33992. buffer[pos++] = code1;
  33993. continue;
  33994. }
  33995. if (code1 == 256) {
  33996. this.bufferLength = pos;
  33997. return;
  33998. }
  33999. code1 -= 257;
  34000. code1 = lengthDecode[code1];
  34001. var code2 = code1 >> 16;
  34002. if (code2 > 0) {
  34003. code2 = this.getBits(code2);
  34004. }
  34005. len = (code1 & 0xffff) + code2;
  34006. code1 = this.getCode(distCodeTable);
  34007. code1 = distDecode[code1];
  34008. code2 = code1 >> 16;
  34009. if (code2 > 0) {
  34010. code2 = this.getBits(code2);
  34011. }
  34012. var dist = (code1 & 0xffff) + code2;
  34013. if (pos + len >= limit) {
  34014. buffer = this.ensureBuffer(pos + len);
  34015. limit = buffer.length;
  34016. }
  34017. for (var k = 0; k < len; ++k, ++pos) {
  34018. buffer[pos] = buffer[pos - dist];
  34019. }
  34020. }
  34021. };
  34022. return FlateStream;
  34023. })();
  34024. var PredictorStream = (function PredictorStreamClosure() {
  34025. function PredictorStream(str, maybeLength, params) {
  34026. var predictor = this.predictor = params.get('Predictor') || 1;
  34027. if (predictor <= 1) {
  34028. return str; // no prediction
  34029. }
  34030. if (predictor !== 2 && (predictor < 10 || predictor > 15)) {
  34031. error('Unsupported predictor: ' + predictor);
  34032. }
  34033. if (predictor === 2) {
  34034. this.readBlock = this.readBlockTiff;
  34035. } else {
  34036. this.readBlock = this.readBlockPng;
  34037. }
  34038. this.str = str;
  34039. this.dict = str.dict;
  34040. var colors = this.colors = params.get('Colors') || 1;
  34041. var bits = this.bits = params.get('BitsPerComponent') || 8;
  34042. var columns = this.columns = params.get('Columns') || 1;
  34043. this.pixBytes = (colors * bits + 7) >> 3;
  34044. this.rowBytes = (columns * colors * bits + 7) >> 3;
  34045. DecodeStream.call(this, maybeLength);
  34046. return this;
  34047. }
  34048. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  34049. PredictorStream.prototype.readBlockTiff =
  34050. function predictorStreamReadBlockTiff() {
  34051. var rowBytes = this.rowBytes;
  34052. var bufferLength = this.bufferLength;
  34053. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  34054. var bits = this.bits;
  34055. var colors = this.colors;
  34056. var rawBytes = this.str.getBytes(rowBytes);
  34057. this.eof = !rawBytes.length;
  34058. if (this.eof) {
  34059. return;
  34060. }
  34061. var inbuf = 0, outbuf = 0;
  34062. var inbits = 0, outbits = 0;
  34063. var pos = bufferLength;
  34064. var i;
  34065. if (bits === 1) {
  34066. for (i = 0; i < rowBytes; ++i) {
  34067. var c = rawBytes[i];
  34068. inbuf = (inbuf << 8) | c;
  34069. // bitwise addition is exclusive or
  34070. // first shift inbuf and then add
  34071. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  34072. // truncate inbuf (assumes colors < 16)
  34073. inbuf &= 0xFFFF;
  34074. }
  34075. } else if (bits === 8) {
  34076. for (i = 0; i < colors; ++i) {
  34077. buffer[pos++] = rawBytes[i];
  34078. }
  34079. for (; i < rowBytes; ++i) {
  34080. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  34081. pos++;
  34082. }
  34083. } else {
  34084. var compArray = new Uint8Array(colors + 1);
  34085. var bitMask = (1 << bits) - 1;
  34086. var j = 0, k = bufferLength;
  34087. var columns = this.columns;
  34088. for (i = 0; i < columns; ++i) {
  34089. for (var kk = 0; kk < colors; ++kk) {
  34090. if (inbits < bits) {
  34091. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  34092. inbits += 8;
  34093. }
  34094. compArray[kk] = (compArray[kk] +
  34095. (inbuf >> (inbits - bits))) & bitMask;
  34096. inbits -= bits;
  34097. outbuf = (outbuf << bits) | compArray[kk];
  34098. outbits += bits;
  34099. if (outbits >= 8) {
  34100. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  34101. outbits -= 8;
  34102. }
  34103. }
  34104. }
  34105. if (outbits > 0) {
  34106. buffer[k++] = (outbuf << (8 - outbits)) +
  34107. (inbuf & ((1 << (8 - outbits)) - 1));
  34108. }
  34109. }
  34110. this.bufferLength += rowBytes;
  34111. };
  34112. PredictorStream.prototype.readBlockPng =
  34113. function predictorStreamReadBlockPng() {
  34114. var rowBytes = this.rowBytes;
  34115. var pixBytes = this.pixBytes;
  34116. var predictor = this.str.getByte();
  34117. var rawBytes = this.str.getBytes(rowBytes);
  34118. this.eof = !rawBytes.length;
  34119. if (this.eof) {
  34120. return;
  34121. }
  34122. var bufferLength = this.bufferLength;
  34123. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  34124. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  34125. if (prevRow.length === 0) {
  34126. prevRow = new Uint8Array(rowBytes);
  34127. }
  34128. var i, j = bufferLength, up, c;
  34129. switch (predictor) {
  34130. case 0:
  34131. for (i = 0; i < rowBytes; ++i) {
  34132. buffer[j++] = rawBytes[i];
  34133. }
  34134. break;
  34135. case 1:
  34136. for (i = 0; i < pixBytes; ++i) {
  34137. buffer[j++] = rawBytes[i];
  34138. }
  34139. for (; i < rowBytes; ++i) {
  34140. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  34141. j++;
  34142. }
  34143. break;
  34144. case 2:
  34145. for (i = 0; i < rowBytes; ++i) {
  34146. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  34147. }
  34148. break;
  34149. case 3:
  34150. for (i = 0; i < pixBytes; ++i) {
  34151. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  34152. }
  34153. for (; i < rowBytes; ++i) {
  34154. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  34155. rawBytes[i]) & 0xFF;
  34156. j++;
  34157. }
  34158. break;
  34159. case 4:
  34160. // we need to save the up left pixels values. the simplest way
  34161. // is to create a new buffer
  34162. for (i = 0; i < pixBytes; ++i) {
  34163. up = prevRow[i];
  34164. c = rawBytes[i];
  34165. buffer[j++] = up + c;
  34166. }
  34167. for (; i < rowBytes; ++i) {
  34168. up = prevRow[i];
  34169. var upLeft = prevRow[i - pixBytes];
  34170. var left = buffer[j - pixBytes];
  34171. var p = left + up - upLeft;
  34172. var pa = p - left;
  34173. if (pa < 0) {
  34174. pa = -pa;
  34175. }
  34176. var pb = p - up;
  34177. if (pb < 0) {
  34178. pb = -pb;
  34179. }
  34180. var pc = p - upLeft;
  34181. if (pc < 0) {
  34182. pc = -pc;
  34183. }
  34184. c = rawBytes[i];
  34185. if (pa <= pb && pa <= pc) {
  34186. buffer[j++] = left + c;
  34187. } else if (pb <= pc) {
  34188. buffer[j++] = up + c;
  34189. } else {
  34190. buffer[j++] = upLeft + c;
  34191. }
  34192. }
  34193. break;
  34194. default:
  34195. error('Unsupported predictor: ' + predictor);
  34196. }
  34197. this.bufferLength += rowBytes;
  34198. };
  34199. return PredictorStream;
  34200. })();
  34201. /**
  34202. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  34203. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  34204. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  34205. * a library to decode these images and the stream behaves like all the other
  34206. * DecodeStreams.
  34207. */
  34208. var JpegStream = (function JpegStreamClosure() {
  34209. function JpegStream(stream, maybeLength, dict, xref) {
  34210. // TODO: per poppler, some images may have 'junk' before that
  34211. // need to be removed
  34212. this.stream = stream;
  34213. this.maybeLength = maybeLength;
  34214. this.dict = dict;
  34215. DecodeStream.call(this, maybeLength);
  34216. }
  34217. JpegStream.prototype = Object.create(DecodeStream.prototype);
  34218. Object.defineProperty(JpegStream.prototype, 'bytes', {
  34219. get: function JpegStream_bytes() {
  34220. // If this.maybeLength is null, we'll get the entire stream.
  34221. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34222. },
  34223. configurable: true
  34224. });
  34225. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  34226. if (this.bufferLength) {
  34227. return;
  34228. }
  34229. try {
  34230. var jpegImage = new JpegImage();
  34231. if (this.colorTransform != -1) {
  34232. jpegImage.colorTransform = this.colorTransform;
  34233. }
  34234. jpegImage.parse(this.bytes);
  34235. var data = jpegImage.getData(this.drawWidth, this.drawHeight,
  34236. /* forceRGBoutput = */true);
  34237. this.buffer = data;
  34238. this.bufferLength = data.length;
  34239. this.eof = true;
  34240. } catch (e) {
  34241. error('JPEG error: ' + e);
  34242. }
  34243. };
  34244. JpegStream.prototype.getBytes = function JpegStream_getBytes(length) {
  34245. this.ensureBuffer();
  34246. return this.buffer;
  34247. };
  34248. JpegStream.prototype.getIR = function JpegStream_getIR() {
  34249. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  34250. };
  34251. /**
  34252. * Checks if the image can be decoded and displayed by the browser without any
  34253. * further processing such as color space conversions.
  34254. */
  34255. JpegStream.prototype.isNativelySupported =
  34256. function JpegStream_isNativelySupported(xref, res) {
  34257. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34258. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  34259. };
  34260. /**
  34261. * Checks if the image can be decoded by the browser.
  34262. */
  34263. JpegStream.prototype.isNativelyDecodable =
  34264. function JpegStream_isNativelyDecodable(xref, res) {
  34265. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34266. var numComps = cs.numComps;
  34267. return numComps == 1 || numComps == 3;
  34268. };
  34269. return JpegStream;
  34270. })();
  34271. /**
  34272. * For JPEG 2000's we use a library to decode these images and
  34273. * the stream behaves like all the other DecodeStreams.
  34274. */
  34275. var JpxStream = (function JpxStreamClosure() {
  34276. function JpxStream(stream, maybeLength, dict) {
  34277. this.stream = stream;
  34278. this.maybeLength = maybeLength;
  34279. this.dict = dict;
  34280. DecodeStream.call(this, maybeLength);
  34281. }
  34282. JpxStream.prototype = Object.create(DecodeStream.prototype);
  34283. Object.defineProperty(JpxStream.prototype, 'bytes', {
  34284. get: function JpxStream_bytes() {
  34285. // If this.maybeLength is null, we'll get the entire stream.
  34286. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34287. },
  34288. configurable: true
  34289. });
  34290. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  34291. if (this.bufferLength) {
  34292. return;
  34293. }
  34294. var jpxImage = new JpxImage();
  34295. jpxImage.parse(this.bytes);
  34296. var width = jpxImage.width;
  34297. var height = jpxImage.height;
  34298. var componentsCount = jpxImage.componentsCount;
  34299. var tileCount = jpxImage.tiles.length;
  34300. if (tileCount === 1) {
  34301. this.buffer = jpxImage.tiles[0].items;
  34302. } else {
  34303. var data = new Uint8Array(width * height * componentsCount);
  34304. for (var k = 0; k < tileCount; k++) {
  34305. var tileComponents = jpxImage.tiles[k];
  34306. var tileWidth = tileComponents.width;
  34307. var tileHeight = tileComponents.height;
  34308. var tileLeft = tileComponents.left;
  34309. var tileTop = tileComponents.top;
  34310. var src = tileComponents.items;
  34311. var srcPosition = 0;
  34312. var dataPosition = (width * tileTop + tileLeft) * componentsCount;
  34313. var imgRowSize = width * componentsCount;
  34314. var tileRowSize = tileWidth * componentsCount;
  34315. for (var j = 0; j < tileHeight; j++) {
  34316. var rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize);
  34317. data.set(rowBytes, dataPosition);
  34318. srcPosition += tileRowSize;
  34319. dataPosition += imgRowSize;
  34320. }
  34321. }
  34322. this.buffer = data;
  34323. }
  34324. this.bufferLength = this.buffer.length;
  34325. this.eof = true;
  34326. };
  34327. return JpxStream;
  34328. })();
  34329. /**
  34330. * For JBIG2's we use a library to decode these images and
  34331. * the stream behaves like all the other DecodeStreams.
  34332. */
  34333. var Jbig2Stream = (function Jbig2StreamClosure() {
  34334. function Jbig2Stream(stream, maybeLength, dict) {
  34335. this.stream = stream;
  34336. this.maybeLength = maybeLength;
  34337. this.dict = dict;
  34338. DecodeStream.call(this, maybeLength);
  34339. }
  34340. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  34341. Object.defineProperty(Jbig2Stream.prototype, 'bytes', {
  34342. get: function Jbig2Stream_bytes() {
  34343. // If this.maybeLength is null, we'll get the entire stream.
  34344. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34345. },
  34346. configurable: true
  34347. });
  34348. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  34349. if (this.bufferLength) {
  34350. return;
  34351. }
  34352. var jbig2Image = new Jbig2Image();
  34353. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  34354. // According to the PDF specification, DecodeParms can be either
  34355. // a dictionary, or an array whose elements are dictionaries.
  34356. if (isArray(decodeParams)) {
  34357. if (decodeParams.length > 1) {
  34358. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  34359. 'not supported.');
  34360. }
  34361. decodeParams = decodeParams[0];
  34362. }
  34363. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  34364. var globalsStream = decodeParams.get('JBIG2Globals');
  34365. var globals = globalsStream.getBytes();
  34366. chunks.push({data: globals, start: 0, end: globals.length});
  34367. }
  34368. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  34369. var data = jbig2Image.parseChunks(chunks);
  34370. var dataLength = data.length;
  34371. // JBIG2 had black as 1 and white as 0, inverting the colors
  34372. for (var i = 0; i < dataLength; i++) {
  34373. data[i] ^= 0xFF;
  34374. }
  34375. this.buffer = data;
  34376. this.bufferLength = dataLength;
  34377. this.eof = true;
  34378. };
  34379. return Jbig2Stream;
  34380. })();
  34381. var DecryptStream = (function DecryptStreamClosure() {
  34382. function DecryptStream(str, maybeLength, decrypt) {
  34383. this.str = str;
  34384. this.dict = str.dict;
  34385. this.decrypt = decrypt;
  34386. this.nextChunk = null;
  34387. this.initialized = false;
  34388. DecodeStream.call(this, maybeLength);
  34389. }
  34390. var chunkSize = 512;
  34391. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  34392. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  34393. var chunk;
  34394. if (this.initialized) {
  34395. chunk = this.nextChunk;
  34396. } else {
  34397. chunk = this.str.getBytes(chunkSize);
  34398. this.initialized = true;
  34399. }
  34400. if (!chunk || chunk.length === 0) {
  34401. this.eof = true;
  34402. return;
  34403. }
  34404. this.nextChunk = this.str.getBytes(chunkSize);
  34405. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  34406. var decrypt = this.decrypt;
  34407. chunk = decrypt(chunk, !hasMoreData);
  34408. var bufferLength = this.bufferLength;
  34409. var i, n = chunk.length;
  34410. var buffer = this.ensureBuffer(bufferLength + n);
  34411. for (i = 0; i < n; i++) {
  34412. buffer[bufferLength++] = chunk[i];
  34413. }
  34414. this.bufferLength = bufferLength;
  34415. };
  34416. return DecryptStream;
  34417. })();
  34418. var Ascii85Stream = (function Ascii85StreamClosure() {
  34419. function Ascii85Stream(str, maybeLength) {
  34420. this.str = str;
  34421. this.dict = str.dict;
  34422. this.input = new Uint8Array(5);
  34423. // Most streams increase in size when decoded, but Ascii85 streams
  34424. // typically shrink by ~20%.
  34425. if (maybeLength) {
  34426. maybeLength = 0.8 * maybeLength;
  34427. }
  34428. DecodeStream.call(this, maybeLength);
  34429. }
  34430. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  34431. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  34432. var TILDA_CHAR = 0x7E; // '~'
  34433. var Z_LOWER_CHAR = 0x7A; // 'z'
  34434. var EOF = -1;
  34435. var str = this.str;
  34436. var c = str.getByte();
  34437. while (Lexer.isSpace(c)) {
  34438. c = str.getByte();
  34439. }
  34440. if (c === EOF || c === TILDA_CHAR) {
  34441. this.eof = true;
  34442. return;
  34443. }
  34444. var bufferLength = this.bufferLength, buffer;
  34445. var i;
  34446. // special code for z
  34447. if (c == Z_LOWER_CHAR) {
  34448. buffer = this.ensureBuffer(bufferLength + 4);
  34449. for (i = 0; i < 4; ++i) {
  34450. buffer[bufferLength + i] = 0;
  34451. }
  34452. this.bufferLength += 4;
  34453. } else {
  34454. var input = this.input;
  34455. input[0] = c;
  34456. for (i = 1; i < 5; ++i) {
  34457. c = str.getByte();
  34458. while (Lexer.isSpace(c)) {
  34459. c = str.getByte();
  34460. }
  34461. input[i] = c;
  34462. if (c === EOF || c == TILDA_CHAR) {
  34463. break;
  34464. }
  34465. }
  34466. buffer = this.ensureBuffer(bufferLength + i - 1);
  34467. this.bufferLength += i - 1;
  34468. // partial ending;
  34469. if (i < 5) {
  34470. for (; i < 5; ++i) {
  34471. input[i] = 0x21 + 84;
  34472. }
  34473. this.eof = true;
  34474. }
  34475. var t = 0;
  34476. for (i = 0; i < 5; ++i) {
  34477. t = t * 85 + (input[i] - 0x21);
  34478. }
  34479. for (i = 3; i >= 0; --i) {
  34480. buffer[bufferLength + i] = t & 0xFF;
  34481. t >>= 8;
  34482. }
  34483. }
  34484. };
  34485. return Ascii85Stream;
  34486. })();
  34487. var AsciiHexStream = (function AsciiHexStreamClosure() {
  34488. function AsciiHexStream(str, maybeLength) {
  34489. this.str = str;
  34490. this.dict = str.dict;
  34491. this.firstDigit = -1;
  34492. // Most streams increase in size when decoded, but AsciiHex streams shrink
  34493. // by 50%.
  34494. if (maybeLength) {
  34495. maybeLength = 0.5 * maybeLength;
  34496. }
  34497. DecodeStream.call(this, maybeLength);
  34498. }
  34499. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  34500. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  34501. var UPSTREAM_BLOCK_SIZE = 8000;
  34502. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  34503. if (!bytes.length) {
  34504. this.eof = true;
  34505. return;
  34506. }
  34507. var maxDecodeLength = (bytes.length + 1) >> 1;
  34508. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  34509. var bufferLength = this.bufferLength;
  34510. var firstDigit = this.firstDigit;
  34511. for (var i = 0, ii = bytes.length; i < ii; i++) {
  34512. var ch = bytes[i], digit;
  34513. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  34514. digit = ch & 0x0F;
  34515. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  34516. // 'A'-'Z', 'a'-'z'
  34517. digit = (ch & 0x0F) + 9;
  34518. } else if (ch === 0x3E) { // '>'
  34519. this.eof = true;
  34520. break;
  34521. } else { // probably whitespace
  34522. continue; // ignoring
  34523. }
  34524. if (firstDigit < 0) {
  34525. firstDigit = digit;
  34526. } else {
  34527. buffer[bufferLength++] = (firstDigit << 4) | digit;
  34528. firstDigit = -1;
  34529. }
  34530. }
  34531. if (firstDigit >= 0 && this.eof) {
  34532. // incomplete byte
  34533. buffer[bufferLength++] = (firstDigit << 4);
  34534. firstDigit = -1;
  34535. }
  34536. this.firstDigit = firstDigit;
  34537. this.bufferLength = bufferLength;
  34538. };
  34539. return AsciiHexStream;
  34540. })();
  34541. var RunLengthStream = (function RunLengthStreamClosure() {
  34542. function RunLengthStream(str, maybeLength) {
  34543. this.str = str;
  34544. this.dict = str.dict;
  34545. DecodeStream.call(this, maybeLength);
  34546. }
  34547. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  34548. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  34549. // The repeatHeader has following format. The first byte defines type of run
  34550. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  34551. // (in addition to the second byte from the header), n = 129 through 255 -
  34552. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  34553. var repeatHeader = this.str.getBytes(2);
  34554. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  34555. this.eof = true;
  34556. return;
  34557. }
  34558. var buffer;
  34559. var bufferLength = this.bufferLength;
  34560. var n = repeatHeader[0];
  34561. if (n < 128) {
  34562. // copy n bytes
  34563. buffer = this.ensureBuffer(bufferLength + n + 1);
  34564. buffer[bufferLength++] = repeatHeader[1];
  34565. if (n > 0) {
  34566. var source = this.str.getBytes(n);
  34567. buffer.set(source, bufferLength);
  34568. bufferLength += n;
  34569. }
  34570. } else {
  34571. n = 257 - n;
  34572. var b = repeatHeader[1];
  34573. buffer = this.ensureBuffer(bufferLength + n + 1);
  34574. for (var i = 0; i < n; i++) {
  34575. buffer[bufferLength++] = b;
  34576. }
  34577. }
  34578. this.bufferLength = bufferLength;
  34579. };
  34580. return RunLengthStream;
  34581. })();
  34582. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  34583. var ccittEOL = -2;
  34584. var twoDimPass = 0;
  34585. var twoDimHoriz = 1;
  34586. var twoDimVert0 = 2;
  34587. var twoDimVertR1 = 3;
  34588. var twoDimVertL1 = 4;
  34589. var twoDimVertR2 = 5;
  34590. var twoDimVertL2 = 6;
  34591. var twoDimVertR3 = 7;
  34592. var twoDimVertL3 = 8;
  34593. var twoDimTable = [
  34594. [-1, -1], [-1, -1], // 000000x
  34595. [7, twoDimVertL3], // 0000010
  34596. [7, twoDimVertR3], // 0000011
  34597. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  34598. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  34599. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  34600. [4, twoDimPass], [4, twoDimPass],
  34601. [4, twoDimPass], [4, twoDimPass],
  34602. [4, twoDimPass], [4, twoDimPass],
  34603. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  34604. [3, twoDimHoriz], [3, twoDimHoriz],
  34605. [3, twoDimHoriz], [3, twoDimHoriz],
  34606. [3, twoDimHoriz], [3, twoDimHoriz],
  34607. [3, twoDimHoriz], [3, twoDimHoriz],
  34608. [3, twoDimHoriz], [3, twoDimHoriz],
  34609. [3, twoDimHoriz], [3, twoDimHoriz],
  34610. [3, twoDimHoriz], [3, twoDimHoriz],
  34611. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  34612. [3, twoDimVertL1], [3, twoDimVertL1],
  34613. [3, twoDimVertL1], [3, twoDimVertL1],
  34614. [3, twoDimVertL1], [3, twoDimVertL1],
  34615. [3, twoDimVertL1], [3, twoDimVertL1],
  34616. [3, twoDimVertL1], [3, twoDimVertL1],
  34617. [3, twoDimVertL1], [3, twoDimVertL1],
  34618. [3, twoDimVertL1], [3, twoDimVertL1],
  34619. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  34620. [3, twoDimVertR1], [3, twoDimVertR1],
  34621. [3, twoDimVertR1], [3, twoDimVertR1],
  34622. [3, twoDimVertR1], [3, twoDimVertR1],
  34623. [3, twoDimVertR1], [3, twoDimVertR1],
  34624. [3, twoDimVertR1], [3, twoDimVertR1],
  34625. [3, twoDimVertR1], [3, twoDimVertR1],
  34626. [3, twoDimVertR1], [3, twoDimVertR1],
  34627. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  34628. [1, twoDimVert0], [1, twoDimVert0],
  34629. [1, twoDimVert0], [1, twoDimVert0],
  34630. [1, twoDimVert0], [1, twoDimVert0],
  34631. [1, twoDimVert0], [1, twoDimVert0],
  34632. [1, twoDimVert0], [1, twoDimVert0],
  34633. [1, twoDimVert0], [1, twoDimVert0],
  34634. [1, twoDimVert0], [1, twoDimVert0],
  34635. [1, twoDimVert0], [1, twoDimVert0],
  34636. [1, twoDimVert0], [1, twoDimVert0],
  34637. [1, twoDimVert0], [1, twoDimVert0],
  34638. [1, twoDimVert0], [1, twoDimVert0],
  34639. [1, twoDimVert0], [1, twoDimVert0],
  34640. [1, twoDimVert0], [1, twoDimVert0],
  34641. [1, twoDimVert0], [1, twoDimVert0],
  34642. [1, twoDimVert0], [1, twoDimVert0],
  34643. [1, twoDimVert0], [1, twoDimVert0],
  34644. [1, twoDimVert0], [1, twoDimVert0],
  34645. [1, twoDimVert0], [1, twoDimVert0],
  34646. [1, twoDimVert0], [1, twoDimVert0],
  34647. [1, twoDimVert0], [1, twoDimVert0],
  34648. [1, twoDimVert0], [1, twoDimVert0],
  34649. [1, twoDimVert0], [1, twoDimVert0],
  34650. [1, twoDimVert0], [1, twoDimVert0],
  34651. [1, twoDimVert0], [1, twoDimVert0],
  34652. [1, twoDimVert0], [1, twoDimVert0],
  34653. [1, twoDimVert0], [1, twoDimVert0],
  34654. [1, twoDimVert0], [1, twoDimVert0],
  34655. [1, twoDimVert0], [1, twoDimVert0],
  34656. [1, twoDimVert0], [1, twoDimVert0],
  34657. [1, twoDimVert0], [1, twoDimVert0],
  34658. [1, twoDimVert0], [1, twoDimVert0]
  34659. ];
  34660. var whiteTable1 = [
  34661. [-1, -1], // 00000
  34662. [12, ccittEOL], // 00001
  34663. [-1, -1], [-1, -1], // 0001x
  34664. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  34665. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  34666. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  34667. [11, 1792], [11, 1792], // 1000x
  34668. [12, 1984], // 10010
  34669. [12, 2048], // 10011
  34670. [12, 2112], // 10100
  34671. [12, 2176], // 10101
  34672. [12, 2240], // 10110
  34673. [12, 2304], // 10111
  34674. [11, 1856], [11, 1856], // 1100x
  34675. [11, 1920], [11, 1920], // 1101x
  34676. [12, 2368], // 11100
  34677. [12, 2432], // 11101
  34678. [12, 2496], // 11110
  34679. [12, 2560] // 11111
  34680. ];
  34681. var whiteTable2 = [
  34682. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  34683. [8, 29], [8, 29], // 00000010x
  34684. [8, 30], [8, 30], // 00000011x
  34685. [8, 45], [8, 45], // 00000100x
  34686. [8, 46], [8, 46], // 00000101x
  34687. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  34688. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  34689. [8, 47], [8, 47], // 00001010x
  34690. [8, 48], [8, 48], // 00001011x
  34691. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  34692. [6, 13], [6, 13], [6, 13], [6, 13],
  34693. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  34694. [8, 33], [8, 33], // 00010010x
  34695. [8, 34], [8, 34], // 00010011x
  34696. [8, 35], [8, 35], // 00010100x
  34697. [8, 36], [8, 36], // 00010101x
  34698. [8, 37], [8, 37], // 00010110x
  34699. [8, 38], [8, 38], // 00010111x
  34700. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  34701. [8, 31], [8, 31], // 00011010x
  34702. [8, 32], [8, 32], // 00011011x
  34703. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  34704. [6, 1], [6, 1], [6, 1], [6, 1],
  34705. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  34706. [6, 12], [6, 12], [6, 12], [6, 12],
  34707. [8, 53], [8, 53], // 00100100x
  34708. [8, 54], [8, 54], // 00100101x
  34709. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  34710. [8, 39], [8, 39], // 00101000x
  34711. [8, 40], [8, 40], // 00101001x
  34712. [8, 41], [8, 41], // 00101010x
  34713. [8, 42], [8, 42], // 00101011x
  34714. [8, 43], [8, 43], // 00101100x
  34715. [8, 44], [8, 44], // 00101101x
  34716. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  34717. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  34718. [8, 61], [8, 61], // 00110010x
  34719. [8, 62], [8, 62], // 00110011x
  34720. [8, 63], [8, 63], // 00110100x
  34721. [8, 0], [8, 0], // 00110101x
  34722. [8, 320], [8, 320], // 00110110x
  34723. [8, 384], [8, 384], // 00110111x
  34724. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  34725. [5, 10], [5, 10], [5, 10], [5, 10],
  34726. [5, 10], [5, 10], [5, 10], [5, 10],
  34727. [5, 10], [5, 10], [5, 10], [5, 10],
  34728. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  34729. [5, 11], [5, 11], [5, 11], [5, 11],
  34730. [5, 11], [5, 11], [5, 11], [5, 11],
  34731. [5, 11], [5, 11], [5, 11], [5, 11],
  34732. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  34733. [8, 59], [8, 59], // 01001010x
  34734. [8, 60], [8, 60], // 01001011x
  34735. [9, 1472], // 010011000
  34736. [9, 1536], // 010011001
  34737. [9, 1600], // 010011010
  34738. [9, 1728], // 010011011
  34739. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  34740. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  34741. [8, 49], [8, 49], // 01010010x
  34742. [8, 50], [8, 50], // 01010011x
  34743. [8, 51], [8, 51], // 01010100x
  34744. [8, 52], [8, 52], // 01010101x
  34745. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  34746. [8, 55], [8, 55], // 01011000x
  34747. [8, 56], [8, 56], // 01011001x
  34748. [8, 57], [8, 57], // 01011010x
  34749. [8, 58], [8, 58], // 01011011x
  34750. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  34751. [6, 192], [6, 192], [6, 192], [6, 192],
  34752. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  34753. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  34754. [8, 448], [8, 448], // 01100100x
  34755. [8, 512], [8, 512], // 01100101x
  34756. [9, 704], // 011001100
  34757. [9, 768], // 011001101
  34758. [8, 640], [8, 640], // 01100111x
  34759. [8, 576], [8, 576], // 01101000x
  34760. [9, 832], // 011010010
  34761. [9, 896], // 011010011
  34762. [9, 960], // 011010100
  34763. [9, 1024], // 011010101
  34764. [9, 1088], // 011010110
  34765. [9, 1152], // 011010111
  34766. [9, 1216], // 011011000
  34767. [9, 1280], // 011011001
  34768. [9, 1344], // 011011010
  34769. [9, 1408], // 011011011
  34770. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  34771. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  34772. [4, 2], [4, 2], [4, 2], [4, 2],
  34773. [4, 2], [4, 2], [4, 2], [4, 2],
  34774. [4, 2], [4, 2], [4, 2], [4, 2],
  34775. [4, 2], [4, 2], [4, 2], [4, 2],
  34776. [4, 2], [4, 2], [4, 2], [4, 2],
  34777. [4, 2], [4, 2], [4, 2], [4, 2],
  34778. [4, 2], [4, 2], [4, 2], [4, 2],
  34779. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  34780. [4, 3], [4, 3], [4, 3], [4, 3],
  34781. [4, 3], [4, 3], [4, 3], [4, 3],
  34782. [4, 3], [4, 3], [4, 3], [4, 3],
  34783. [4, 3], [4, 3], [4, 3], [4, 3],
  34784. [4, 3], [4, 3], [4, 3], [4, 3],
  34785. [4, 3], [4, 3], [4, 3], [4, 3],
  34786. [4, 3], [4, 3], [4, 3], [4, 3],
  34787. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  34788. [5, 128], [5, 128], [5, 128], [5, 128],
  34789. [5, 128], [5, 128], [5, 128], [5, 128],
  34790. [5, 128], [5, 128], [5, 128], [5, 128],
  34791. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  34792. [5, 8], [5, 8], [5, 8], [5, 8],
  34793. [5, 8], [5, 8], [5, 8], [5, 8],
  34794. [5, 8], [5, 8], [5, 8], [5, 8],
  34795. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  34796. [5, 9], [5, 9], [5, 9], [5, 9],
  34797. [5, 9], [5, 9], [5, 9], [5, 9],
  34798. [5, 9], [5, 9], [5, 9], [5, 9],
  34799. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  34800. [6, 16], [6, 16], [6, 16], [6, 16],
  34801. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  34802. [6, 17], [6, 17], [6, 17], [6, 17],
  34803. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  34804. [4, 4], [4, 4], [4, 4], [4, 4],
  34805. [4, 4], [4, 4], [4, 4], [4, 4],
  34806. [4, 4], [4, 4], [4, 4], [4, 4],
  34807. [4, 4], [4, 4], [4, 4], [4, 4],
  34808. [4, 4], [4, 4], [4, 4], [4, 4],
  34809. [4, 4], [4, 4], [4, 4], [4, 4],
  34810. [4, 4], [4, 4], [4, 4], [4, 4],
  34811. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  34812. [4, 5], [4, 5], [4, 5], [4, 5],
  34813. [4, 5], [4, 5], [4, 5], [4, 5],
  34814. [4, 5], [4, 5], [4, 5], [4, 5],
  34815. [4, 5], [4, 5], [4, 5], [4, 5],
  34816. [4, 5], [4, 5], [4, 5], [4, 5],
  34817. [4, 5], [4, 5], [4, 5], [4, 5],
  34818. [4, 5], [4, 5], [4, 5], [4, 5],
  34819. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  34820. [6, 14], [6, 14], [6, 14], [6, 14],
  34821. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  34822. [6, 15], [6, 15], [6, 15], [6, 15],
  34823. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  34824. [5, 64], [5, 64], [5, 64], [5, 64],
  34825. [5, 64], [5, 64], [5, 64], [5, 64],
  34826. [5, 64], [5, 64], [5, 64], [5, 64],
  34827. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  34828. [4, 6], [4, 6], [4, 6], [4, 6],
  34829. [4, 6], [4, 6], [4, 6], [4, 6],
  34830. [4, 6], [4, 6], [4, 6], [4, 6],
  34831. [4, 6], [4, 6], [4, 6], [4, 6],
  34832. [4, 6], [4, 6], [4, 6], [4, 6],
  34833. [4, 6], [4, 6], [4, 6], [4, 6],
  34834. [4, 6], [4, 6], [4, 6], [4, 6],
  34835. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  34836. [4, 7], [4, 7], [4, 7], [4, 7],
  34837. [4, 7], [4, 7], [4, 7], [4, 7],
  34838. [4, 7], [4, 7], [4, 7], [4, 7],
  34839. [4, 7], [4, 7], [4, 7], [4, 7],
  34840. [4, 7], [4, 7], [4, 7], [4, 7],
  34841. [4, 7], [4, 7], [4, 7], [4, 7],
  34842. [4, 7], [4, 7], [4, 7], [4, 7]
  34843. ];
  34844. var blackTable1 = [
  34845. [-1, -1], [-1, -1], // 000000000000x
  34846. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  34847. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  34848. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  34849. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  34850. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  34851. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  34852. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  34853. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  34854. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  34855. [12, 1984], [12, 1984], // 000000010010x
  34856. [12, 2048], [12, 2048], // 000000010011x
  34857. [12, 2112], [12, 2112], // 000000010100x
  34858. [12, 2176], [12, 2176], // 000000010101x
  34859. [12, 2240], [12, 2240], // 000000010110x
  34860. [12, 2304], [12, 2304], // 000000010111x
  34861. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  34862. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  34863. [12, 2368], [12, 2368], // 000000011100x
  34864. [12, 2432], [12, 2432], // 000000011101x
  34865. [12, 2496], [12, 2496], // 000000011110x
  34866. [12, 2560], [12, 2560], // 000000011111x
  34867. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  34868. [10, 18], [10, 18], [10, 18], [10, 18],
  34869. [12, 52], [12, 52], // 000000100100x
  34870. [13, 640], // 0000001001010
  34871. [13, 704], // 0000001001011
  34872. [13, 768], // 0000001001100
  34873. [13, 832], // 0000001001101
  34874. [12, 55], [12, 55], // 000000100111x
  34875. [12, 56], [12, 56], // 000000101000x
  34876. [13, 1280], // 0000001010010
  34877. [13, 1344], // 0000001010011
  34878. [13, 1408], // 0000001010100
  34879. [13, 1472], // 0000001010101
  34880. [12, 59], [12, 59], // 000000101011x
  34881. [12, 60], [12, 60], // 000000101100x
  34882. [13, 1536], // 0000001011010
  34883. [13, 1600], // 0000001011011
  34884. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  34885. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  34886. [13, 1664], // 0000001100100
  34887. [13, 1728], // 0000001100101
  34888. [12, 320], [12, 320], // 000000110011x
  34889. [12, 384], [12, 384], // 000000110100x
  34890. [12, 448], [12, 448], // 000000110101x
  34891. [13, 512], // 0000001101100
  34892. [13, 576], // 0000001101101
  34893. [12, 53], [12, 53], // 000000110111x
  34894. [12, 54], [12, 54], // 000000111000x
  34895. [13, 896], // 0000001110010
  34896. [13, 960], // 0000001110011
  34897. [13, 1024], // 0000001110100
  34898. [13, 1088], // 0000001110101
  34899. [13, 1152], // 0000001110110
  34900. [13, 1216], // 0000001110111
  34901. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  34902. [10, 64], [10, 64], [10, 64], [10, 64]
  34903. ];
  34904. var blackTable2 = [
  34905. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  34906. [8, 13], [8, 13], [8, 13], [8, 13],
  34907. [8, 13], [8, 13], [8, 13], [8, 13],
  34908. [8, 13], [8, 13], [8, 13], [8, 13],
  34909. [11, 23], [11, 23], // 00000101000x
  34910. [12, 50], // 000001010010
  34911. [12, 51], // 000001010011
  34912. [12, 44], // 000001010100
  34913. [12, 45], // 000001010101
  34914. [12, 46], // 000001010110
  34915. [12, 47], // 000001010111
  34916. [12, 57], // 000001011000
  34917. [12, 58], // 000001011001
  34918. [12, 61], // 000001011010
  34919. [12, 256], // 000001011011
  34920. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  34921. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  34922. [12, 48], // 000001100100
  34923. [12, 49], // 000001100101
  34924. [12, 62], // 000001100110
  34925. [12, 63], // 000001100111
  34926. [12, 30], // 000001101000
  34927. [12, 31], // 000001101001
  34928. [12, 32], // 000001101010
  34929. [12, 33], // 000001101011
  34930. [12, 40], // 000001101100
  34931. [12, 41], // 000001101101
  34932. [11, 22], [11, 22], // 00000110111x
  34933. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  34934. [8, 14], [8, 14], [8, 14], [8, 14],
  34935. [8, 14], [8, 14], [8, 14], [8, 14],
  34936. [8, 14], [8, 14], [8, 14], [8, 14],
  34937. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  34938. [7, 10], [7, 10], [7, 10], [7, 10],
  34939. [7, 10], [7, 10], [7, 10], [7, 10],
  34940. [7, 10], [7, 10], [7, 10], [7, 10],
  34941. [7, 10], [7, 10], [7, 10], [7, 10],
  34942. [7, 10], [7, 10], [7, 10], [7, 10],
  34943. [7, 10], [7, 10], [7, 10], [7, 10],
  34944. [7, 10], [7, 10], [7, 10], [7, 10],
  34945. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  34946. [7, 11], [7, 11], [7, 11], [7, 11],
  34947. [7, 11], [7, 11], [7, 11], [7, 11],
  34948. [7, 11], [7, 11], [7, 11], [7, 11],
  34949. [7, 11], [7, 11], [7, 11], [7, 11],
  34950. [7, 11], [7, 11], [7, 11], [7, 11],
  34951. [7, 11], [7, 11], [7, 11], [7, 11],
  34952. [7, 11], [7, 11], [7, 11], [7, 11],
  34953. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  34954. [9, 15], [9, 15], [9, 15], [9, 15],
  34955. [12, 128], // 000011001000
  34956. [12, 192], // 000011001001
  34957. [12, 26], // 000011001010
  34958. [12, 27], // 000011001011
  34959. [12, 28], // 000011001100
  34960. [12, 29], // 000011001101
  34961. [11, 19], [11, 19], // 00001100111x
  34962. [11, 20], [11, 20], // 00001101000x
  34963. [12, 34], // 000011010010
  34964. [12, 35], // 000011010011
  34965. [12, 36], // 000011010100
  34966. [12, 37], // 000011010101
  34967. [12, 38], // 000011010110
  34968. [12, 39], // 000011010111
  34969. [11, 21], [11, 21], // 00001101100x
  34970. [12, 42], // 000011011010
  34971. [12, 43], // 000011011011
  34972. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  34973. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  34974. [7, 12], [7, 12], [7, 12], [7, 12],
  34975. [7, 12], [7, 12], [7, 12], [7, 12],
  34976. [7, 12], [7, 12], [7, 12], [7, 12],
  34977. [7, 12], [7, 12], [7, 12], [7, 12],
  34978. [7, 12], [7, 12], [7, 12], [7, 12],
  34979. [7, 12], [7, 12], [7, 12], [7, 12],
  34980. [7, 12], [7, 12], [7, 12], [7, 12]
  34981. ];
  34982. var blackTable3 = [
  34983. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  34984. [6, 9], // 000100
  34985. [6, 8], // 000101
  34986. [5, 7], [5, 7], // 00011x
  34987. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  34988. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  34989. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  34990. [3, 1], [3, 1], [3, 1], [3, 1],
  34991. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  34992. [3, 4], [3, 4], [3, 4], [3, 4],
  34993. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  34994. [2, 3], [2, 3], [2, 3], [2, 3],
  34995. [2, 3], [2, 3], [2, 3], [2, 3],
  34996. [2, 3], [2, 3], [2, 3], [2, 3],
  34997. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  34998. [2, 2], [2, 2], [2, 2], [2, 2],
  34999. [2, 2], [2, 2], [2, 2], [2, 2],
  35000. [2, 2], [2, 2], [2, 2], [2, 2]
  35001. ];
  35002. function CCITTFaxStream(str, maybeLength, params) {
  35003. this.str = str;
  35004. this.dict = str.dict;
  35005. params = params || Dict.empty;
  35006. this.encoding = params.get('K') || 0;
  35007. this.eoline = params.get('EndOfLine') || false;
  35008. this.byteAlign = params.get('EncodedByteAlign') || false;
  35009. this.columns = params.get('Columns') || 1728;
  35010. this.rows = params.get('Rows') || 0;
  35011. var eoblock = params.get('EndOfBlock');
  35012. if (eoblock === null || eoblock === undefined) {
  35013. eoblock = true;
  35014. }
  35015. this.eoblock = eoblock;
  35016. this.black = params.get('BlackIs1') || false;
  35017. this.codingLine = new Uint32Array(this.columns + 1);
  35018. this.refLine = new Uint32Array(this.columns + 2);
  35019. this.codingLine[0] = this.columns;
  35020. this.codingPos = 0;
  35021. this.row = 0;
  35022. this.nextLine2D = this.encoding < 0;
  35023. this.inputBits = 0;
  35024. this.inputBuf = 0;
  35025. this.outputBits = 0;
  35026. var code1;
  35027. while ((code1 = this.lookBits(12)) === 0) {
  35028. this.eatBits(1);
  35029. }
  35030. if (code1 == 1) {
  35031. this.eatBits(12);
  35032. }
  35033. if (this.encoding > 0) {
  35034. this.nextLine2D = !this.lookBits(1);
  35035. this.eatBits(1);
  35036. }
  35037. DecodeStream.call(this, maybeLength);
  35038. }
  35039. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  35040. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  35041. while (!this.eof) {
  35042. var c = this.lookChar();
  35043. this.ensureBuffer(this.bufferLength + 1);
  35044. this.buffer[this.bufferLength++] = c;
  35045. }
  35046. };
  35047. CCITTFaxStream.prototype.addPixels =
  35048. function ccittFaxStreamAddPixels(a1, blackPixels) {
  35049. var codingLine = this.codingLine;
  35050. var codingPos = this.codingPos;
  35051. if (a1 > codingLine[codingPos]) {
  35052. if (a1 > this.columns) {
  35053. info('row is wrong length');
  35054. this.err = true;
  35055. a1 = this.columns;
  35056. }
  35057. if ((codingPos & 1) ^ blackPixels) {
  35058. ++codingPos;
  35059. }
  35060. codingLine[codingPos] = a1;
  35061. }
  35062. this.codingPos = codingPos;
  35063. };
  35064. CCITTFaxStream.prototype.addPixelsNeg =
  35065. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  35066. var codingLine = this.codingLine;
  35067. var codingPos = this.codingPos;
  35068. if (a1 > codingLine[codingPos]) {
  35069. if (a1 > this.columns) {
  35070. info('row is wrong length');
  35071. this.err = true;
  35072. a1 = this.columns;
  35073. }
  35074. if ((codingPos & 1) ^ blackPixels) {
  35075. ++codingPos;
  35076. }
  35077. codingLine[codingPos] = a1;
  35078. } else if (a1 < codingLine[codingPos]) {
  35079. if (a1 < 0) {
  35080. info('invalid code');
  35081. this.err = true;
  35082. a1 = 0;
  35083. }
  35084. while (codingPos > 0 && a1 < codingLine[codingPos - 1]) {
  35085. --codingPos;
  35086. }
  35087. codingLine[codingPos] = a1;
  35088. }
  35089. this.codingPos = codingPos;
  35090. };
  35091. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  35092. var refLine = this.refLine;
  35093. var codingLine = this.codingLine;
  35094. var columns = this.columns;
  35095. var refPos, blackPixels, bits, i;
  35096. if (this.outputBits === 0) {
  35097. if (this.eof) {
  35098. return null;
  35099. }
  35100. this.err = false;
  35101. var code1, code2, code3;
  35102. if (this.nextLine2D) {
  35103. for (i = 0; codingLine[i] < columns; ++i) {
  35104. refLine[i] = codingLine[i];
  35105. }
  35106. refLine[i++] = columns;
  35107. refLine[i] = columns;
  35108. codingLine[0] = 0;
  35109. this.codingPos = 0;
  35110. refPos = 0;
  35111. blackPixels = 0;
  35112. while (codingLine[this.codingPos] < columns) {
  35113. code1 = this.getTwoDimCode();
  35114. switch (code1) {
  35115. case twoDimPass:
  35116. this.addPixels(refLine[refPos + 1], blackPixels);
  35117. if (refLine[refPos + 1] < columns) {
  35118. refPos += 2;
  35119. }
  35120. break;
  35121. case twoDimHoriz:
  35122. code1 = code2 = 0;
  35123. if (blackPixels) {
  35124. do {
  35125. code1 += (code3 = this.getBlackCode());
  35126. } while (code3 >= 64);
  35127. do {
  35128. code2 += (code3 = this.getWhiteCode());
  35129. } while (code3 >= 64);
  35130. } else {
  35131. do {
  35132. code1 += (code3 = this.getWhiteCode());
  35133. } while (code3 >= 64);
  35134. do {
  35135. code2 += (code3 = this.getBlackCode());
  35136. } while (code3 >= 64);
  35137. }
  35138. this.addPixels(codingLine[this.codingPos] +
  35139. code1, blackPixels);
  35140. if (codingLine[this.codingPos] < columns) {
  35141. this.addPixels(codingLine[this.codingPos] + code2,
  35142. blackPixels ^ 1);
  35143. }
  35144. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35145. refLine[refPos] < columns) {
  35146. refPos += 2;
  35147. }
  35148. break;
  35149. case twoDimVertR3:
  35150. this.addPixels(refLine[refPos] + 3, blackPixels);
  35151. blackPixels ^= 1;
  35152. if (codingLine[this.codingPos] < columns) {
  35153. ++refPos;
  35154. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35155. refLine[refPos] < columns) {
  35156. refPos += 2;
  35157. }
  35158. }
  35159. break;
  35160. case twoDimVertR2:
  35161. this.addPixels(refLine[refPos] + 2, blackPixels);
  35162. blackPixels ^= 1;
  35163. if (codingLine[this.codingPos] < columns) {
  35164. ++refPos;
  35165. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35166. refLine[refPos] < columns) {
  35167. refPos += 2;
  35168. }
  35169. }
  35170. break;
  35171. case twoDimVertR1:
  35172. this.addPixels(refLine[refPos] + 1, blackPixels);
  35173. blackPixels ^= 1;
  35174. if (codingLine[this.codingPos] < columns) {
  35175. ++refPos;
  35176. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35177. refLine[refPos] < columns) {
  35178. refPos += 2;
  35179. }
  35180. }
  35181. break;
  35182. case twoDimVert0:
  35183. this.addPixels(refLine[refPos], blackPixels);
  35184. blackPixels ^= 1;
  35185. if (codingLine[this.codingPos] < columns) {
  35186. ++refPos;
  35187. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35188. refLine[refPos] < columns) {
  35189. refPos += 2;
  35190. }
  35191. }
  35192. break;
  35193. case twoDimVertL3:
  35194. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  35195. blackPixels ^= 1;
  35196. if (codingLine[this.codingPos] < columns) {
  35197. if (refPos > 0) {
  35198. --refPos;
  35199. } else {
  35200. ++refPos;
  35201. }
  35202. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35203. refLine[refPos] < columns) {
  35204. refPos += 2;
  35205. }
  35206. }
  35207. break;
  35208. case twoDimVertL2:
  35209. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  35210. blackPixels ^= 1;
  35211. if (codingLine[this.codingPos] < columns) {
  35212. if (refPos > 0) {
  35213. --refPos;
  35214. } else {
  35215. ++refPos;
  35216. }
  35217. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35218. refLine[refPos] < columns) {
  35219. refPos += 2;
  35220. }
  35221. }
  35222. break;
  35223. case twoDimVertL1:
  35224. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  35225. blackPixels ^= 1;
  35226. if (codingLine[this.codingPos] < columns) {
  35227. if (refPos > 0) {
  35228. --refPos;
  35229. } else {
  35230. ++refPos;
  35231. }
  35232. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35233. refLine[refPos] < columns) {
  35234. refPos += 2;
  35235. }
  35236. }
  35237. break;
  35238. case EOF:
  35239. this.addPixels(columns, 0);
  35240. this.eof = true;
  35241. break;
  35242. default:
  35243. info('bad 2d code');
  35244. this.addPixels(columns, 0);
  35245. this.err = true;
  35246. }
  35247. }
  35248. } else {
  35249. codingLine[0] = 0;
  35250. this.codingPos = 0;
  35251. blackPixels = 0;
  35252. while (codingLine[this.codingPos] < columns) {
  35253. code1 = 0;
  35254. if (blackPixels) {
  35255. do {
  35256. code1 += (code3 = this.getBlackCode());
  35257. } while (code3 >= 64);
  35258. } else {
  35259. do {
  35260. code1 += (code3 = this.getWhiteCode());
  35261. } while (code3 >= 64);
  35262. }
  35263. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  35264. blackPixels ^= 1;
  35265. }
  35266. }
  35267. if (this.byteAlign) {
  35268. this.inputBits &= ~7;
  35269. }
  35270. var gotEOL = false;
  35271. if (!this.eoblock && this.row == this.rows - 1) {
  35272. this.eof = true;
  35273. } else {
  35274. code1 = this.lookBits(12);
  35275. while (code1 === 0) {
  35276. this.eatBits(1);
  35277. code1 = this.lookBits(12);
  35278. }
  35279. if (code1 == 1) {
  35280. this.eatBits(12);
  35281. gotEOL = true;
  35282. } else if (code1 == EOF) {
  35283. this.eof = true;
  35284. }
  35285. }
  35286. if (!this.eof && this.encoding > 0) {
  35287. this.nextLine2D = !this.lookBits(1);
  35288. this.eatBits(1);
  35289. }
  35290. if (this.eoblock && gotEOL) {
  35291. code1 = this.lookBits(12);
  35292. if (code1 == 1) {
  35293. this.eatBits(12);
  35294. if (this.encoding > 0) {
  35295. this.lookBits(1);
  35296. this.eatBits(1);
  35297. }
  35298. if (this.encoding >= 0) {
  35299. for (i = 0; i < 4; ++i) {
  35300. code1 = this.lookBits(12);
  35301. if (code1 != 1) {
  35302. info('bad rtc code: ' + code1);
  35303. }
  35304. this.eatBits(12);
  35305. if (this.encoding > 0) {
  35306. this.lookBits(1);
  35307. this.eatBits(1);
  35308. }
  35309. }
  35310. }
  35311. this.eof = true;
  35312. }
  35313. } else if (this.err && this.eoline) {
  35314. while (true) {
  35315. code1 = this.lookBits(13);
  35316. if (code1 == EOF) {
  35317. this.eof = true;
  35318. return null;
  35319. }
  35320. if ((code1 >> 1) == 1) {
  35321. break;
  35322. }
  35323. this.eatBits(1);
  35324. }
  35325. this.eatBits(12);
  35326. if (this.encoding > 0) {
  35327. this.eatBits(1);
  35328. this.nextLine2D = !(code1 & 1);
  35329. }
  35330. }
  35331. if (codingLine[0] > 0) {
  35332. this.outputBits = codingLine[this.codingPos = 0];
  35333. } else {
  35334. this.outputBits = codingLine[this.codingPos = 1];
  35335. }
  35336. this.row++;
  35337. }
  35338. var c;
  35339. if (this.outputBits >= 8) {
  35340. c = (this.codingPos & 1) ? 0 : 0xFF;
  35341. this.outputBits -= 8;
  35342. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  35343. this.codingPos++;
  35344. this.outputBits = (codingLine[this.codingPos] -
  35345. codingLine[this.codingPos - 1]);
  35346. }
  35347. } else {
  35348. bits = 8;
  35349. c = 0;
  35350. do {
  35351. if (this.outputBits > bits) {
  35352. c <<= bits;
  35353. if (!(this.codingPos & 1)) {
  35354. c |= 0xFF >> (8 - bits);
  35355. }
  35356. this.outputBits -= bits;
  35357. bits = 0;
  35358. } else {
  35359. c <<= this.outputBits;
  35360. if (!(this.codingPos & 1)) {
  35361. c |= 0xFF >> (8 - this.outputBits);
  35362. }
  35363. bits -= this.outputBits;
  35364. this.outputBits = 0;
  35365. if (codingLine[this.codingPos] < columns) {
  35366. this.codingPos++;
  35367. this.outputBits = (codingLine[this.codingPos] -
  35368. codingLine[this.codingPos - 1]);
  35369. } else if (bits > 0) {
  35370. c <<= bits;
  35371. bits = 0;
  35372. }
  35373. }
  35374. } while (bits);
  35375. }
  35376. if (this.black) {
  35377. c ^= 0xFF;
  35378. }
  35379. return c;
  35380. };
  35381. // This functions returns the code found from the table.
  35382. // The start and end parameters set the boundaries for searching the table.
  35383. // The limit parameter is optional. Function returns an array with three
  35384. // values. The first array element indicates whether a valid code is being
  35385. // returned. The second array element is the actual code. The third array
  35386. // element indicates whether EOF was reached.
  35387. CCITTFaxStream.prototype.findTableCode =
  35388. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  35389. var limitValue = limit || 0;
  35390. for (var i = start; i <= end; ++i) {
  35391. var code = this.lookBits(i);
  35392. if (code == EOF) {
  35393. return [true, 1, false];
  35394. }
  35395. if (i < end) {
  35396. code <<= end - i;
  35397. }
  35398. if (!limitValue || code >= limitValue) {
  35399. var p = table[code - limitValue];
  35400. if (p[0] == i) {
  35401. this.eatBits(i);
  35402. return [true, p[1], true];
  35403. }
  35404. }
  35405. }
  35406. return [false, 0, false];
  35407. };
  35408. CCITTFaxStream.prototype.getTwoDimCode =
  35409. function ccittFaxStreamGetTwoDimCode() {
  35410. var code = 0;
  35411. var p;
  35412. if (this.eoblock) {
  35413. code = this.lookBits(7);
  35414. p = twoDimTable[code];
  35415. if (p && p[0] > 0) {
  35416. this.eatBits(p[0]);
  35417. return p[1];
  35418. }
  35419. } else {
  35420. var result = this.findTableCode(1, 7, twoDimTable);
  35421. if (result[0] && result[2]) {
  35422. return result[1];
  35423. }
  35424. }
  35425. info('Bad two dim code');
  35426. return EOF;
  35427. };
  35428. CCITTFaxStream.prototype.getWhiteCode =
  35429. function ccittFaxStreamGetWhiteCode() {
  35430. var code = 0;
  35431. var p;
  35432. if (this.eoblock) {
  35433. code = this.lookBits(12);
  35434. if (code == EOF) {
  35435. return 1;
  35436. }
  35437. if ((code >> 5) === 0) {
  35438. p = whiteTable1[code];
  35439. } else {
  35440. p = whiteTable2[code >> 3];
  35441. }
  35442. if (p[0] > 0) {
  35443. this.eatBits(p[0]);
  35444. return p[1];
  35445. }
  35446. } else {
  35447. var result = this.findTableCode(1, 9, whiteTable2);
  35448. if (result[0]) {
  35449. return result[1];
  35450. }
  35451. result = this.findTableCode(11, 12, whiteTable1);
  35452. if (result[0]) {
  35453. return result[1];
  35454. }
  35455. }
  35456. info('bad white code');
  35457. this.eatBits(1);
  35458. return 1;
  35459. };
  35460. CCITTFaxStream.prototype.getBlackCode =
  35461. function ccittFaxStreamGetBlackCode() {
  35462. var code, p;
  35463. if (this.eoblock) {
  35464. code = this.lookBits(13);
  35465. if (code == EOF) {
  35466. return 1;
  35467. }
  35468. if ((code >> 7) === 0) {
  35469. p = blackTable1[code];
  35470. } else if ((code >> 9) === 0 && (code >> 7) !== 0) {
  35471. p = blackTable2[(code >> 1) - 64];
  35472. } else {
  35473. p = blackTable3[code >> 7];
  35474. }
  35475. if (p[0] > 0) {
  35476. this.eatBits(p[0]);
  35477. return p[1];
  35478. }
  35479. } else {
  35480. var result = this.findTableCode(2, 6, blackTable3);
  35481. if (result[0]) {
  35482. return result[1];
  35483. }
  35484. result = this.findTableCode(7, 12, blackTable2, 64);
  35485. if (result[0]) {
  35486. return result[1];
  35487. }
  35488. result = this.findTableCode(10, 13, blackTable1);
  35489. if (result[0]) {
  35490. return result[1];
  35491. }
  35492. }
  35493. info('bad black code');
  35494. this.eatBits(1);
  35495. return 1;
  35496. };
  35497. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  35498. var c;
  35499. while (this.inputBits < n) {
  35500. if ((c = this.str.getByte()) === -1) {
  35501. if (this.inputBits === 0) {
  35502. return EOF;
  35503. }
  35504. return ((this.inputBuf << (n - this.inputBits)) &
  35505. (0xFFFF >> (16 - n)));
  35506. }
  35507. this.inputBuf = (this.inputBuf << 8) + c;
  35508. this.inputBits += 8;
  35509. }
  35510. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  35511. };
  35512. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  35513. if ((this.inputBits -= n) < 0) {
  35514. this.inputBits = 0;
  35515. }
  35516. };
  35517. return CCITTFaxStream;
  35518. })();
  35519. var LZWStream = (function LZWStreamClosure() {
  35520. function LZWStream(str, maybeLength, earlyChange) {
  35521. this.str = str;
  35522. this.dict = str.dict;
  35523. this.cachedData = 0;
  35524. this.bitsCached = 0;
  35525. var maxLzwDictionarySize = 4096;
  35526. var lzwState = {
  35527. earlyChange: earlyChange,
  35528. codeLength: 9,
  35529. nextCode: 258,
  35530. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  35531. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  35532. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  35533. currentSequence: new Uint8Array(maxLzwDictionarySize),
  35534. currentSequenceLength: 0
  35535. };
  35536. for (var i = 0; i < 256; ++i) {
  35537. lzwState.dictionaryValues[i] = i;
  35538. lzwState.dictionaryLengths[i] = 1;
  35539. }
  35540. this.lzwState = lzwState;
  35541. DecodeStream.call(this, maybeLength);
  35542. }
  35543. LZWStream.prototype = Object.create(DecodeStream.prototype);
  35544. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  35545. var bitsCached = this.bitsCached;
  35546. var cachedData = this.cachedData;
  35547. while (bitsCached < n) {
  35548. var c = this.str.getByte();
  35549. if (c === -1) {
  35550. this.eof = true;
  35551. return null;
  35552. }
  35553. cachedData = (cachedData << 8) | c;
  35554. bitsCached += 8;
  35555. }
  35556. this.bitsCached = (bitsCached -= n);
  35557. this.cachedData = cachedData;
  35558. this.lastCode = null;
  35559. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  35560. };
  35561. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  35562. var blockSize = 512;
  35563. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  35564. var i, j, q;
  35565. var lzwState = this.lzwState;
  35566. if (!lzwState) {
  35567. return; // eof was found
  35568. }
  35569. var earlyChange = lzwState.earlyChange;
  35570. var nextCode = lzwState.nextCode;
  35571. var dictionaryValues = lzwState.dictionaryValues;
  35572. var dictionaryLengths = lzwState.dictionaryLengths;
  35573. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  35574. var codeLength = lzwState.codeLength;
  35575. var prevCode = lzwState.prevCode;
  35576. var currentSequence = lzwState.currentSequence;
  35577. var currentSequenceLength = lzwState.currentSequenceLength;
  35578. var decodedLength = 0;
  35579. var currentBufferLength = this.bufferLength;
  35580. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35581. for (i = 0; i < blockSize; i++) {
  35582. var code = this.readBits(codeLength);
  35583. var hasPrev = currentSequenceLength > 0;
  35584. if (code < 256) {
  35585. currentSequence[0] = code;
  35586. currentSequenceLength = 1;
  35587. } else if (code >= 258) {
  35588. if (code < nextCode) {
  35589. currentSequenceLength = dictionaryLengths[code];
  35590. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  35591. currentSequence[j] = dictionaryValues[q];
  35592. q = dictionaryPrevCodes[q];
  35593. }
  35594. } else {
  35595. currentSequence[currentSequenceLength++] = currentSequence[0];
  35596. }
  35597. } else if (code == 256) {
  35598. codeLength = 9;
  35599. nextCode = 258;
  35600. currentSequenceLength = 0;
  35601. continue;
  35602. } else {
  35603. this.eof = true;
  35604. delete this.lzwState;
  35605. break;
  35606. }
  35607. if (hasPrev) {
  35608. dictionaryPrevCodes[nextCode] = prevCode;
  35609. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  35610. dictionaryValues[nextCode] = currentSequence[0];
  35611. nextCode++;
  35612. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  35613. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  35614. 0.6931471805599453 + 1, 12) | 0;
  35615. }
  35616. prevCode = code;
  35617. decodedLength += currentSequenceLength;
  35618. if (estimatedDecodedSize < decodedLength) {
  35619. do {
  35620. estimatedDecodedSize += decodedSizeDelta;
  35621. } while (estimatedDecodedSize < decodedLength);
  35622. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35623. }
  35624. for (j = 0; j < currentSequenceLength; j++) {
  35625. buffer[currentBufferLength++] = currentSequence[j];
  35626. }
  35627. }
  35628. lzwState.nextCode = nextCode;
  35629. lzwState.codeLength = codeLength;
  35630. lzwState.prevCode = prevCode;
  35631. lzwState.currentSequenceLength = currentSequenceLength;
  35632. this.bufferLength = currentBufferLength;
  35633. };
  35634. return LZWStream;
  35635. })();
  35636. var NullStream = (function NullStreamClosure() {
  35637. function NullStream() {
  35638. Stream.call(this, new Uint8Array(0));
  35639. }
  35640. NullStream.prototype = Stream.prototype;
  35641. return NullStream;
  35642. })();
  35643. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  35644. setup: function wphSetup(handler) {
  35645. var pdfManager;
  35646. function loadDocument(recoveryMode) {
  35647. var loadDocumentCapability = createPromiseCapability();
  35648. var parseSuccess = function parseSuccess() {
  35649. var numPagesPromise = pdfManager.ensureDoc('numPages');
  35650. var fingerprintPromise = pdfManager.ensureDoc('fingerprint');
  35651. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  35652. Promise.all([numPagesPromise, fingerprintPromise,
  35653. encryptedPromise]).then(function onDocReady(results) {
  35654. var doc = {
  35655. numPages: results[0],
  35656. fingerprint: results[1],
  35657. encrypted: !!results[2],
  35658. };
  35659. loadDocumentCapability.resolve(doc);
  35660. },
  35661. parseFailure);
  35662. };
  35663. var parseFailure = function parseFailure(e) {
  35664. loadDocumentCapability.reject(e);
  35665. };
  35666. pdfManager.ensureDoc('checkHeader', []).then(function() {
  35667. pdfManager.ensureDoc('parseStartXRef', []).then(function() {
  35668. pdfManager.ensureDoc('parse', [recoveryMode]).then(
  35669. parseSuccess, parseFailure);
  35670. }, parseFailure);
  35671. }, parseFailure);
  35672. return loadDocumentCapability.promise;
  35673. }
  35674. function getPdfManager(data) {
  35675. var pdfManagerCapability = createPromiseCapability();
  35676. var source = data.source;
  35677. var disableRange = data.disableRange;
  35678. if (source.data) {
  35679. try {
  35680. pdfManager = new LocalPdfManager(source.data, source.password);
  35681. pdfManagerCapability.resolve();
  35682. } catch (ex) {
  35683. pdfManagerCapability.reject(ex);
  35684. }
  35685. return pdfManagerCapability.promise;
  35686. } else if (source.chunkedViewerLoading) {
  35687. try {
  35688. pdfManager = new NetworkPdfManager(source, handler);
  35689. pdfManagerCapability.resolve();
  35690. } catch (ex) {
  35691. pdfManagerCapability.reject(ex);
  35692. }
  35693. return pdfManagerCapability.promise;
  35694. }
  35695. var networkManager = new NetworkManager(source.url, {
  35696. httpHeaders: source.httpHeaders,
  35697. withCredentials: source.withCredentials
  35698. });
  35699. var fullRequestXhrId = networkManager.requestFull({
  35700. onHeadersReceived: function onHeadersReceived() {
  35701. if (disableRange) {
  35702. return;
  35703. }
  35704. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  35705. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  35706. return;
  35707. }
  35708. var contentEncoding =
  35709. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  35710. if (contentEncoding !== 'identity') {
  35711. return;
  35712. }
  35713. var length = fullRequestXhr.getResponseHeader('Content-Length');
  35714. length = parseInt(length, 10);
  35715. if (!isInt(length)) {
  35716. return;
  35717. }
  35718. source.length = length;
  35719. if (length <= 2 * RANGE_CHUNK_SIZE) {
  35720. // The file size is smaller than the size of two chunks, so it does
  35721. // not make any sense to abort the request and retry with a range
  35722. // request.
  35723. return;
  35724. }
  35725. // NOTE: by cancelling the full request, and then issuing range
  35726. // requests, there will be an issue for sites where you can only
  35727. // request the pdf once. However, if this is the case, then the
  35728. // server should not be returning that it can support range requests.
  35729. networkManager.abortRequest(fullRequestXhrId);
  35730. try {
  35731. pdfManager = new NetworkPdfManager(source, handler);
  35732. pdfManagerCapability.resolve(pdfManager);
  35733. } catch (ex) {
  35734. pdfManagerCapability.reject(ex);
  35735. }
  35736. },
  35737. onDone: function onDone(args) {
  35738. // the data is array, instantiating directly from it
  35739. try {
  35740. pdfManager = new LocalPdfManager(args.chunk, source.password);
  35741. pdfManagerCapability.resolve();
  35742. } catch (ex) {
  35743. pdfManagerCapability.reject(ex);
  35744. }
  35745. },
  35746. onError: function onError(status) {
  35747. if (status == 404) {
  35748. var exception = new MissingPDFException('Missing PDF "' +
  35749. source.url + '".');
  35750. handler.send('MissingPDF', { exception: exception });
  35751. } else {
  35752. handler.send('DocError', 'Unexpected server response (' +
  35753. status + ') while retrieving PDF "' +
  35754. source.url + '".');
  35755. }
  35756. },
  35757. onProgress: function onProgress(evt) {
  35758. handler.send('DocProgress', {
  35759. loaded: evt.loaded,
  35760. total: evt.lengthComputable ? evt.total : source.length
  35761. });
  35762. }
  35763. });
  35764. return pdfManagerCapability.promise;
  35765. }
  35766. handler.on('test', function wphSetupTest(data) {
  35767. // check if Uint8Array can be sent to worker
  35768. if (!(data instanceof Uint8Array)) {
  35769. handler.send('test', false);
  35770. return;
  35771. }
  35772. // making sure postMessage transfers are working
  35773. var supportTransfers = data[0] === 255;
  35774. handler.postMessageTransfers = supportTransfers;
  35775. // check if the response property is supported by xhr
  35776. var xhr = new XMLHttpRequest();
  35777. var responseExists = 'response' in xhr;
  35778. // check if the property is actually implemented
  35779. try {
  35780. var dummy = xhr.responseType;
  35781. } catch (e) {
  35782. responseExists = false;
  35783. }
  35784. if (!responseExists) {
  35785. handler.send('test', false);
  35786. return;
  35787. }
  35788. handler.send('test', {
  35789. supportTypedArray: true,
  35790. supportTransfers: supportTransfers
  35791. });
  35792. });
  35793. handler.on('GetDocRequest', function wphSetupDoc(data) {
  35794. var onSuccess = function(doc) {
  35795. handler.send('GetDoc', { pdfInfo: doc });
  35796. };
  35797. var onFailure = function(e) {
  35798. if (e instanceof PasswordException) {
  35799. if (e.code === PasswordResponses.NEED_PASSWORD) {
  35800. handler.send('NeedPassword', {
  35801. exception: e
  35802. });
  35803. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  35804. handler.send('IncorrectPassword', {
  35805. exception: e
  35806. });
  35807. }
  35808. } else if (e instanceof InvalidPDFException) {
  35809. handler.send('InvalidPDF', {
  35810. exception: e
  35811. });
  35812. } else if (e instanceof MissingPDFException) {
  35813. handler.send('MissingPDF', {
  35814. exception: e
  35815. });
  35816. } else {
  35817. handler.send('UnknownError', {
  35818. exception: new UnknownErrorException(e.message, e.toString())
  35819. });
  35820. }
  35821. };
  35822. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  35823. -1 : data.maxImageSize;
  35824. PDFJS.disableFontFace = data.disableFontFace;
  35825. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  35826. PDFJS.verbosity = data.verbosity;
  35827. PDFJS.cMapUrl = data.cMapUrl === undefined ?
  35828. null : data.cMapUrl;
  35829. PDFJS.cMapPacked = data.cMapPacked === true;
  35830. getPdfManager(data).then(function () {
  35831. pdfManager.onLoadedStream().then(function(stream) {
  35832. handler.send('DataLoaded', { length: stream.bytes.byteLength });
  35833. });
  35834. }).then(function pdfManagerReady() {
  35835. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  35836. // Try again with recoveryMode == true
  35837. if (!(ex instanceof XRefParseException)) {
  35838. if (ex instanceof PasswordException) {
  35839. // after password exception prepare to receive a new password
  35840. // to repeat loading
  35841. pdfManager.passwordChanged().then(pdfManagerReady);
  35842. }
  35843. onFailure(ex);
  35844. return;
  35845. }
  35846. pdfManager.requestLoadedStream();
  35847. pdfManager.onLoadedStream().then(function() {
  35848. loadDocument(true).then(onSuccess, onFailure);
  35849. });
  35850. }, onFailure);
  35851. }, onFailure);
  35852. });
  35853. handler.on('GetPage', function wphSetupGetPage(data) {
  35854. return pdfManager.getPage(data.pageIndex).then(function(page) {
  35855. var rotatePromise = pdfManager.ensure(page, 'rotate');
  35856. var refPromise = pdfManager.ensure(page, 'ref');
  35857. var viewPromise = pdfManager.ensure(page, 'view');
  35858. return Promise.all([rotatePromise, refPromise, viewPromise]).then(
  35859. function(results) {
  35860. return {
  35861. rotate: results[0],
  35862. ref: results[1],
  35863. view: results[2]
  35864. };
  35865. });
  35866. });
  35867. });
  35868. handler.on('GetPageIndex', function wphSetupGetPageIndex(data) {
  35869. var ref = new Ref(data.ref.num, data.ref.gen);
  35870. var catalog = pdfManager.pdfDocument.catalog;
  35871. return catalog.getPageIndex(ref);
  35872. });
  35873. handler.on('GetDestinations',
  35874. function wphSetupGetDestinations(data) {
  35875. return pdfManager.ensureCatalog('destinations');
  35876. }
  35877. );
  35878. handler.on('GetAttachments',
  35879. function wphSetupGetAttachments(data) {
  35880. return pdfManager.ensureCatalog('attachments');
  35881. }
  35882. );
  35883. handler.on('GetJavaScript',
  35884. function wphSetupGetJavaScript(data) {
  35885. return pdfManager.ensureCatalog('javaScript');
  35886. }
  35887. );
  35888. handler.on('GetOutline',
  35889. function wphSetupGetOutline(data) {
  35890. return pdfManager.ensureCatalog('documentOutline');
  35891. }
  35892. );
  35893. handler.on('GetMetadata',
  35894. function wphSetupGetMetadata(data) {
  35895. return Promise.all([pdfManager.ensureDoc('documentInfo'),
  35896. pdfManager.ensureCatalog('metadata')]);
  35897. }
  35898. );
  35899. handler.on('GetData', function wphSetupGetData(data) {
  35900. pdfManager.requestLoadedStream();
  35901. return pdfManager.onLoadedStream().then(function(stream) {
  35902. return stream.bytes;
  35903. });
  35904. });
  35905. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  35906. pdfManager.updatePassword(data);
  35907. });
  35908. handler.on('GetAnnotations', function wphSetupGetAnnotations(data) {
  35909. return pdfManager.getPage(data.pageIndex).then(function(page) {
  35910. return pdfManager.ensure(page, 'getAnnotationsData', []);
  35911. });
  35912. });
  35913. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  35914. pdfManager.getPage(data.pageIndex).then(function(page) {
  35915. var pageNum = data.pageIndex + 1;
  35916. var start = Date.now();
  35917. // Pre compile the pdf page and fetch the fonts/images.
  35918. page.getOperatorList(handler, data.intent).then(function(operatorList) {
  35919. info('page=' + pageNum + ' - getOperatorList: time=' +
  35920. (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);
  35921. }, function(e) {
  35922. var minimumStackMessage =
  35923. 'worker.js: while trying to getPage() and getOperatorList()';
  35924. var wrappedException;
  35925. // Turn the error into an obj that can be serialized
  35926. if (typeof e === 'string') {
  35927. wrappedException = {
  35928. message: e,
  35929. stack: minimumStackMessage
  35930. };
  35931. } else if (typeof e === 'object') {
  35932. wrappedException = {
  35933. message: e.message || e.toString(),
  35934. stack: e.stack || minimumStackMessage
  35935. };
  35936. } else {
  35937. wrappedException = {
  35938. message: 'Unknown exception type: ' + (typeof e),
  35939. stack: minimumStackMessage
  35940. };
  35941. }
  35942. handler.send('PageError', {
  35943. pageNum: pageNum,
  35944. error: wrappedException,
  35945. intent: data.intent
  35946. });
  35947. });
  35948. });
  35949. }, this);
  35950. handler.on('GetTextContent', function wphExtractText(data) {
  35951. return pdfManager.getPage(data.pageIndex).then(function(page) {
  35952. var pageNum = data.pageIndex + 1;
  35953. var start = Date.now();
  35954. return page.extractTextContent().then(function(textContent) {
  35955. info('text indexing: page=' + pageNum + ' - time=' +
  35956. (Date.now() - start) + 'ms');
  35957. return textContent;
  35958. });
  35959. });
  35960. });
  35961. handler.on('Cleanup', function wphCleanup(data) {
  35962. return pdfManager.cleanup();
  35963. });
  35964. handler.on('Terminate', function wphTerminate(data) {
  35965. pdfManager.terminate();
  35966. });
  35967. }
  35968. };
  35969. var consoleTimer = {};
  35970. var workerConsole = {
  35971. log: function log() {
  35972. var args = Array.prototype.slice.call(arguments);
  35973. globalScope.postMessage({
  35974. action: 'console_log',
  35975. data: args
  35976. });
  35977. },
  35978. error: function error() {
  35979. var args = Array.prototype.slice.call(arguments);
  35980. globalScope.postMessage({
  35981. action: 'console_error',
  35982. data: args
  35983. });
  35984. throw 'pdf.js execution error';
  35985. },
  35986. time: function time(name) {
  35987. consoleTimer[name] = Date.now();
  35988. },
  35989. timeEnd: function timeEnd(name) {
  35990. var time = consoleTimer[name];
  35991. if (!time) {
  35992. error('Unknown timer name ' + name);
  35993. }
  35994. this.log('Timer:', name, Date.now() - time);
  35995. }
  35996. };
  35997. // Worker thread?
  35998. if (typeof window === 'undefined') {
  35999. if (!('console' in globalScope)) {
  36000. globalScope.console = workerConsole;
  36001. }
  36002. // Listen for unsupported features so we can pass them on to the main thread.
  36003. PDFJS.UnsupportedManager.listen(function (msg) {
  36004. globalScope.postMessage({
  36005. action: '_unsupported_feature',
  36006. data: msg
  36007. });
  36008. });
  36009. var handler = new MessageHandler('worker_processor', this);
  36010. WorkerMessageHandler.setup(handler);
  36011. }
  36012. /* This class implements the QM Coder decoding as defined in
  36013. * JPEG 2000 Part I Final Committee Draft Version 1.0
  36014. * Annex C.3 Arithmetic decoding procedure
  36015. * available at http://www.jpeg.org/public/fcd15444-1.pdf
  36016. *
  36017. * The arithmetic decoder is used in conjunction with context models to decode
  36018. * JPEG2000 and JBIG2 streams.
  36019. */
  36020. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  36021. // Table C-2
  36022. var QeTable = [
  36023. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  36024. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  36025. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  36026. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  36027. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  36028. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  36029. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  36030. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  36031. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  36032. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  36033. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  36034. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  36035. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  36036. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  36037. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  36038. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  36039. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  36040. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  36041. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  36042. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  36043. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  36044. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  36045. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  36046. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  36047. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  36048. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  36049. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  36050. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  36051. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  36052. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  36053. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  36054. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  36055. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  36056. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  36057. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  36058. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  36059. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  36060. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  36061. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  36062. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  36063. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  36064. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  36065. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  36066. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  36067. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  36068. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  36069. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  36070. ];
  36071. // C.3.5 Initialisation of the decoder (INITDEC)
  36072. function ArithmeticDecoder(data, start, end) {
  36073. this.data = data;
  36074. this.bp = start;
  36075. this.dataEnd = end;
  36076. this.chigh = data[start];
  36077. this.clow = 0;
  36078. this.byteIn();
  36079. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  36080. this.clow = (this.clow << 7) & 0xFFFF;
  36081. this.ct -= 7;
  36082. this.a = 0x8000;
  36083. }
  36084. ArithmeticDecoder.prototype = {
  36085. // C.3.4 Compressed data input (BYTEIN)
  36086. byteIn: function ArithmeticDecoder_byteIn() {
  36087. var data = this.data;
  36088. var bp = this.bp;
  36089. if (data[bp] == 0xFF) {
  36090. var b1 = data[bp + 1];
  36091. if (b1 > 0x8F) {
  36092. this.clow += 0xFF00;
  36093. this.ct = 8;
  36094. } else {
  36095. bp++;
  36096. this.clow += (data[bp] << 9);
  36097. this.ct = 7;
  36098. this.bp = bp;
  36099. }
  36100. } else {
  36101. bp++;
  36102. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  36103. this.ct = 8;
  36104. this.bp = bp;
  36105. }
  36106. if (this.clow > 0xFFFF) {
  36107. this.chigh += (this.clow >> 16);
  36108. this.clow &= 0xFFFF;
  36109. }
  36110. },
  36111. // C.3.2 Decoding a decision (DECODE)
  36112. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  36113. // contexts are packed into 1 byte:
  36114. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  36115. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  36116. var qeTableIcx = QeTable[cx_index];
  36117. var qeIcx = qeTableIcx.qe;
  36118. var d;
  36119. var a = this.a - qeIcx;
  36120. if (this.chigh < qeIcx) {
  36121. // exchangeLps
  36122. if (a < qeIcx) {
  36123. a = qeIcx;
  36124. d = cx_mps;
  36125. cx_index = qeTableIcx.nmps;
  36126. } else {
  36127. a = qeIcx;
  36128. d = 1 ^ cx_mps;
  36129. if (qeTableIcx.switchFlag === 1) {
  36130. cx_mps = d;
  36131. }
  36132. cx_index = qeTableIcx.nlps;
  36133. }
  36134. } else {
  36135. this.chigh -= qeIcx;
  36136. if ((a & 0x8000) !== 0) {
  36137. this.a = a;
  36138. return cx_mps;
  36139. }
  36140. // exchangeMps
  36141. if (a < qeIcx) {
  36142. d = 1 ^ cx_mps;
  36143. if (qeTableIcx.switchFlag === 1) {
  36144. cx_mps = d;
  36145. }
  36146. cx_index = qeTableIcx.nlps;
  36147. } else {
  36148. d = cx_mps;
  36149. cx_index = qeTableIcx.nmps;
  36150. }
  36151. }
  36152. // C.3.3 renormD;
  36153. do {
  36154. if (this.ct === 0) {
  36155. this.byteIn();
  36156. }
  36157. a <<= 1;
  36158. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  36159. this.clow = (this.clow << 1) & 0xFFFF;
  36160. this.ct--;
  36161. } while ((a & 0x8000) === 0);
  36162. this.a = a;
  36163. contexts[pos] = cx_index << 1 | cx_mps;
  36164. return d;
  36165. }
  36166. };
  36167. return ArithmeticDecoder;
  36168. })();
  36169. var JpegImage = (function jpegImage() {
  36170. var dctZigZag = new Int32Array([
  36171. 0,
  36172. 1, 8,
  36173. 16, 9, 2,
  36174. 3, 10, 17, 24,
  36175. 32, 25, 18, 11, 4,
  36176. 5, 12, 19, 26, 33, 40,
  36177. 48, 41, 34, 27, 20, 13, 6,
  36178. 7, 14, 21, 28, 35, 42, 49, 56,
  36179. 57, 50, 43, 36, 29, 22, 15,
  36180. 23, 30, 37, 44, 51, 58,
  36181. 59, 52, 45, 38, 31,
  36182. 39, 46, 53, 60,
  36183. 61, 54, 47,
  36184. 55, 62,
  36185. 63
  36186. ]);
  36187. var dctCos1 = 4017; // cos(pi/16)
  36188. var dctSin1 = 799; // sin(pi/16)
  36189. var dctCos3 = 3406; // cos(3*pi/16)
  36190. var dctSin3 = 2276; // sin(3*pi/16)
  36191. var dctCos6 = 1567; // cos(6*pi/16)
  36192. var dctSin6 = 3784; // sin(6*pi/16)
  36193. var dctSqrt2 = 5793; // sqrt(2)
  36194. var dctSqrt1d2 = 2896; // sqrt(2) / 2
  36195. function constructor() {
  36196. }
  36197. function buildHuffmanTable(codeLengths, values) {
  36198. var k = 0, code = [], i, j, length = 16;
  36199. while (length > 0 && !codeLengths[length - 1]) {
  36200. length--;
  36201. }
  36202. code.push({children: [], index: 0});
  36203. var p = code[0], q;
  36204. for (i = 0; i < length; i++) {
  36205. for (j = 0; j < codeLengths[i]; j++) {
  36206. p = code.pop();
  36207. p.children[p.index] = values[k];
  36208. while (p.index > 0) {
  36209. p = code.pop();
  36210. }
  36211. p.index++;
  36212. code.push(p);
  36213. while (code.length <= i) {
  36214. code.push(q = {children: [], index: 0});
  36215. p.children[p.index] = q.children;
  36216. p = q;
  36217. }
  36218. k++;
  36219. }
  36220. if (i + 1 < length) {
  36221. // p here points to last code
  36222. code.push(q = {children: [], index: 0});
  36223. p.children[p.index] = q.children;
  36224. p = q;
  36225. }
  36226. }
  36227. return code[0].children;
  36228. }
  36229. function getBlockBufferOffset(component, row, col) {
  36230. return 64 * ((component.blocksPerLine + 1) * row + col);
  36231. }
  36232. function decodeScan(data, offset,
  36233. frame, components, resetInterval,
  36234. spectralStart, spectralEnd,
  36235. successivePrev, successive) {
  36236. var precision = frame.precision;
  36237. var samplesPerLine = frame.samplesPerLine;
  36238. var scanLines = frame.scanLines;
  36239. var mcusPerLine = frame.mcusPerLine;
  36240. var progressive = frame.progressive;
  36241. var maxH = frame.maxH, maxV = frame.maxV;
  36242. var startOffset = offset, bitsData = 0, bitsCount = 0;
  36243. function readBit() {
  36244. if (bitsCount > 0) {
  36245. bitsCount--;
  36246. return (bitsData >> bitsCount) & 1;
  36247. }
  36248. bitsData = data[offset++];
  36249. if (bitsData == 0xFF) {
  36250. var nextByte = data[offset++];
  36251. if (nextByte) {
  36252. throw 'unexpected marker: ' +
  36253. ((bitsData << 8) | nextByte).toString(16);
  36254. }
  36255. // unstuff 0
  36256. }
  36257. bitsCount = 7;
  36258. return bitsData >>> 7;
  36259. }
  36260. function decodeHuffman(tree) {
  36261. var node = tree;
  36262. var bit;
  36263. while ((bit = readBit()) !== null) {
  36264. node = node[bit];
  36265. if (typeof node === 'number') {
  36266. return node;
  36267. }
  36268. if (typeof node !== 'object') {
  36269. throw 'invalid huffman sequence';
  36270. }
  36271. }
  36272. return null;
  36273. }
  36274. function receive(length) {
  36275. var n = 0;
  36276. while (length > 0) {
  36277. var bit = readBit();
  36278. if (bit === null) {
  36279. return;
  36280. }
  36281. n = (n << 1) | bit;
  36282. length--;
  36283. }
  36284. return n;
  36285. }
  36286. function receiveAndExtend(length) {
  36287. var n = receive(length);
  36288. if (n >= 1 << (length - 1)) {
  36289. return n;
  36290. }
  36291. return n + (-1 << length) + 1;
  36292. }
  36293. function decodeBaseline(component, offset) {
  36294. var t = decodeHuffman(component.huffmanTableDC);
  36295. var diff = t === 0 ? 0 : receiveAndExtend(t);
  36296. component.blockData[offset] = (component.pred += diff);
  36297. var k = 1;
  36298. while (k < 64) {
  36299. var rs = decodeHuffman(component.huffmanTableAC);
  36300. var s = rs & 15, r = rs >> 4;
  36301. if (s === 0) {
  36302. if (r < 15) {
  36303. break;
  36304. }
  36305. k += 16;
  36306. continue;
  36307. }
  36308. k += r;
  36309. var z = dctZigZag[k];
  36310. component.blockData[offset + z] = receiveAndExtend(s);
  36311. k++;
  36312. }
  36313. }
  36314. function decodeDCFirst(component, offset) {
  36315. var t = decodeHuffman(component.huffmanTableDC);
  36316. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  36317. component.blockData[offset] = (component.pred += diff);
  36318. }
  36319. function decodeDCSuccessive(component, offset) {
  36320. component.blockData[offset] |= readBit() << successive;
  36321. }
  36322. var eobrun = 0;
  36323. function decodeACFirst(component, offset) {
  36324. if (eobrun > 0) {
  36325. eobrun--;
  36326. return;
  36327. }
  36328. var k = spectralStart, e = spectralEnd;
  36329. while (k <= e) {
  36330. var rs = decodeHuffman(component.huffmanTableAC);
  36331. var s = rs & 15, r = rs >> 4;
  36332. if (s === 0) {
  36333. if (r < 15) {
  36334. eobrun = receive(r) + (1 << r) - 1;
  36335. break;
  36336. }
  36337. k += 16;
  36338. continue;
  36339. }
  36340. k += r;
  36341. var z = dctZigZag[k];
  36342. component.blockData[offset + z] =
  36343. receiveAndExtend(s) * (1 << successive);
  36344. k++;
  36345. }
  36346. }
  36347. var successiveACState = 0, successiveACNextValue;
  36348. function decodeACSuccessive(component, offset) {
  36349. var k = spectralStart;
  36350. var e = spectralEnd;
  36351. var r = 0;
  36352. var s;
  36353. var rs;
  36354. while (k <= e) {
  36355. var z = dctZigZag[k];
  36356. switch (successiveACState) {
  36357. case 0: // initial state
  36358. rs = decodeHuffman(component.huffmanTableAC);
  36359. s = rs & 15;
  36360. r = rs >> 4;
  36361. if (s === 0) {
  36362. if (r < 15) {
  36363. eobrun = receive(r) + (1 << r);
  36364. successiveACState = 4;
  36365. } else {
  36366. r = 16;
  36367. successiveACState = 1;
  36368. }
  36369. } else {
  36370. if (s !== 1) {
  36371. throw 'invalid ACn encoding';
  36372. }
  36373. successiveACNextValue = receiveAndExtend(s);
  36374. successiveACState = r ? 2 : 3;
  36375. }
  36376. continue;
  36377. case 1: // skipping r zero items
  36378. case 2:
  36379. if (component.blockData[offset + z]) {
  36380. component.blockData[offset + z] += (readBit() << successive);
  36381. } else {
  36382. r--;
  36383. if (r === 0) {
  36384. successiveACState = successiveACState == 2 ? 3 : 0;
  36385. }
  36386. }
  36387. break;
  36388. case 3: // set value for a zero item
  36389. if (component.blockData[offset + z]) {
  36390. component.blockData[offset + z] += (readBit() << successive);
  36391. } else {
  36392. component.blockData[offset + z] =
  36393. successiveACNextValue << successive;
  36394. successiveACState = 0;
  36395. }
  36396. break;
  36397. case 4: // eob
  36398. if (component.blockData[offset + z]) {
  36399. component.blockData[offset + z] += (readBit() << successive);
  36400. }
  36401. break;
  36402. }
  36403. k++;
  36404. }
  36405. if (successiveACState === 4) {
  36406. eobrun--;
  36407. if (eobrun === 0) {
  36408. successiveACState = 0;
  36409. }
  36410. }
  36411. }
  36412. function decodeMcu(component, decode, mcu, row, col) {
  36413. var mcuRow = (mcu / mcusPerLine) | 0;
  36414. var mcuCol = mcu % mcusPerLine;
  36415. var blockRow = mcuRow * component.v + row;
  36416. var blockCol = mcuCol * component.h + col;
  36417. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36418. decode(component, offset);
  36419. }
  36420. function decodeBlock(component, decode, mcu) {
  36421. var blockRow = (mcu / component.blocksPerLine) | 0;
  36422. var blockCol = mcu % component.blocksPerLine;
  36423. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36424. decode(component, offset);
  36425. }
  36426. var componentsLength = components.length;
  36427. var component, i, j, k, n;
  36428. var decodeFn;
  36429. if (progressive) {
  36430. if (spectralStart === 0) {
  36431. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  36432. } else {
  36433. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  36434. }
  36435. } else {
  36436. decodeFn = decodeBaseline;
  36437. }
  36438. var mcu = 0, marker;
  36439. var mcuExpected;
  36440. if (componentsLength == 1) {
  36441. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  36442. } else {
  36443. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  36444. }
  36445. if (!resetInterval) {
  36446. resetInterval = mcuExpected;
  36447. }
  36448. var h, v;
  36449. while (mcu < mcuExpected) {
  36450. // reset interval stuff
  36451. for (i = 0; i < componentsLength; i++) {
  36452. components[i].pred = 0;
  36453. }
  36454. eobrun = 0;
  36455. if (componentsLength == 1) {
  36456. component = components[0];
  36457. for (n = 0; n < resetInterval; n++) {
  36458. decodeBlock(component, decodeFn, mcu);
  36459. mcu++;
  36460. }
  36461. } else {
  36462. for (n = 0; n < resetInterval; n++) {
  36463. for (i = 0; i < componentsLength; i++) {
  36464. component = components[i];
  36465. h = component.h;
  36466. v = component.v;
  36467. for (j = 0; j < v; j++) {
  36468. for (k = 0; k < h; k++) {
  36469. decodeMcu(component, decodeFn, mcu, j, k);
  36470. }
  36471. }
  36472. }
  36473. mcu++;
  36474. }
  36475. }
  36476. // find marker
  36477. bitsCount = 0;
  36478. marker = (data[offset] << 8) | data[offset + 1];
  36479. if (marker <= 0xFF00) {
  36480. throw 'marker was not found';
  36481. }
  36482. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  36483. offset += 2;
  36484. } else {
  36485. break;
  36486. }
  36487. }
  36488. return offset - startOffset;
  36489. }
  36490. // A port of poppler's IDCT method which in turn is taken from:
  36491. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  36492. // 'Practical Fast 1-D DCT Algorithms with 11 Multiplications',
  36493. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  36494. // 988-991.
  36495. function quantizeAndInverse(component, blockBufferOffset, p) {
  36496. var qt = component.quantizationTable;
  36497. var v0, v1, v2, v3, v4, v5, v6, v7, t;
  36498. var i;
  36499. // dequant
  36500. for (i = 0; i < 64; i++) {
  36501. p[i] = component.blockData[blockBufferOffset + i] * qt[i];
  36502. }
  36503. // inverse DCT on rows
  36504. for (i = 0; i < 8; ++i) {
  36505. var row = 8 * i;
  36506. // check for all-zero AC coefficients
  36507. if (p[1 + row] === 0 && p[2 + row] === 0 && p[3 + row] === 0 &&
  36508. p[4 + row] === 0 && p[5 + row] === 0 && p[6 + row] === 0 &&
  36509. p[7 + row] === 0) {
  36510. t = (dctSqrt2 * p[0 + row] + 512) >> 10;
  36511. p[0 + row] = t;
  36512. p[1 + row] = t;
  36513. p[2 + row] = t;
  36514. p[3 + row] = t;
  36515. p[4 + row] = t;
  36516. p[5 + row] = t;
  36517. p[6 + row] = t;
  36518. p[7 + row] = t;
  36519. continue;
  36520. }
  36521. // stage 4
  36522. v0 = (dctSqrt2 * p[0 + row] + 128) >> 8;
  36523. v1 = (dctSqrt2 * p[4 + row] + 128) >> 8;
  36524. v2 = p[2 + row];
  36525. v3 = p[6 + row];
  36526. v4 = (dctSqrt1d2 * (p[1 + row] - p[7 + row]) + 128) >> 8;
  36527. v7 = (dctSqrt1d2 * (p[1 + row] + p[7 + row]) + 128) >> 8;
  36528. v5 = p[3 + row] << 4;
  36529. v6 = p[5 + row] << 4;
  36530. // stage 3
  36531. t = (v0 - v1+ 1) >> 1;
  36532. v0 = (v0 + v1 + 1) >> 1;
  36533. v1 = t;
  36534. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  36535. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  36536. v3 = t;
  36537. t = (v4 - v6 + 1) >> 1;
  36538. v4 = (v4 + v6 + 1) >> 1;
  36539. v6 = t;
  36540. t = (v7 + v5 + 1) >> 1;
  36541. v5 = (v7 - v5 + 1) >> 1;
  36542. v7 = t;
  36543. // stage 2
  36544. t = (v0 - v3 + 1) >> 1;
  36545. v0 = (v0 + v3 + 1) >> 1;
  36546. v3 = t;
  36547. t = (v1 - v2 + 1) >> 1;
  36548. v1 = (v1 + v2 + 1) >> 1;
  36549. v2 = t;
  36550. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36551. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36552. v7 = t;
  36553. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36554. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36555. v6 = t;
  36556. // stage 1
  36557. p[0 + row] = v0 + v7;
  36558. p[7 + row] = v0 - v7;
  36559. p[1 + row] = v1 + v6;
  36560. p[6 + row] = v1 - v6;
  36561. p[2 + row] = v2 + v5;
  36562. p[5 + row] = v2 - v5;
  36563. p[3 + row] = v3 + v4;
  36564. p[4 + row] = v3 - v4;
  36565. }
  36566. // inverse DCT on columns
  36567. for (i = 0; i < 8; ++i) {
  36568. var col = i;
  36569. // check for all-zero AC coefficients
  36570. if (p[1*8 + col] === 0 && p[2*8 + col] === 0 && p[3*8 + col] === 0 &&
  36571. p[4*8 + col] === 0 && p[5*8 + col] === 0 && p[6*8 + col] === 0 &&
  36572. p[7*8 + col] === 0) {
  36573. t = (dctSqrt2 * p[i+0] + 8192) >> 14;
  36574. p[0*8 + col] = t;
  36575. p[1*8 + col] = t;
  36576. p[2*8 + col] = t;
  36577. p[3*8 + col] = t;
  36578. p[4*8 + col] = t;
  36579. p[5*8 + col] = t;
  36580. p[6*8 + col] = t;
  36581. p[7*8 + col] = t;
  36582. continue;
  36583. }
  36584. // stage 4
  36585. v0 = (dctSqrt2 * p[0*8 + col] + 2048) >> 12;
  36586. v1 = (dctSqrt2 * p[4*8 + col] + 2048) >> 12;
  36587. v2 = p[2*8 + col];
  36588. v3 = p[6*8 + col];
  36589. v4 = (dctSqrt1d2 * (p[1*8 + col] - p[7*8 + col]) + 2048) >> 12;
  36590. v7 = (dctSqrt1d2 * (p[1*8 + col] + p[7*8 + col]) + 2048) >> 12;
  36591. v5 = p[3*8 + col];
  36592. v6 = p[5*8 + col];
  36593. // stage 3
  36594. t = (v0 - v1 + 1) >> 1;
  36595. v0 = (v0 + v1 + 1) >> 1;
  36596. v1 = t;
  36597. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  36598. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  36599. v3 = t;
  36600. t = (v4 - v6 + 1) >> 1;
  36601. v4 = (v4 + v6 + 1) >> 1;
  36602. v6 = t;
  36603. t = (v7 + v5 + 1) >> 1;
  36604. v5 = (v7 - v5 + 1) >> 1;
  36605. v7 = t;
  36606. // stage 2
  36607. t = (v0 - v3 + 1) >> 1;
  36608. v0 = (v0 + v3 + 1) >> 1;
  36609. v3 = t;
  36610. t = (v1 - v2 + 1) >> 1;
  36611. v1 = (v1 + v2 + 1) >> 1;
  36612. v2 = t;
  36613. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36614. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36615. v7 = t;
  36616. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36617. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36618. v6 = t;
  36619. // stage 1
  36620. p[0*8 + col] = v0 + v7;
  36621. p[7*8 + col] = v0 - v7;
  36622. p[1*8 + col] = v1 + v6;
  36623. p[6*8 + col] = v1 - v6;
  36624. p[2*8 + col] = v2 + v5;
  36625. p[5*8 + col] = v2 - v5;
  36626. p[3*8 + col] = v3 + v4;
  36627. p[4*8 + col] = v3 - v4;
  36628. }
  36629. // convert to 8-bit integers
  36630. for (i = 0; i < 64; ++i) {
  36631. var index = blockBufferOffset + i;
  36632. var q = p[i];
  36633. q = (q <= -2056) ? 0 : (q >= 2024) ? 255 : (q + 2056) >> 4;
  36634. component.blockData[index] = q;
  36635. }
  36636. }
  36637. function buildComponentData(frame, component) {
  36638. var lines = [];
  36639. var blocksPerLine = component.blocksPerLine;
  36640. var blocksPerColumn = component.blocksPerColumn;
  36641. var samplesPerLine = blocksPerLine << 3;
  36642. var computationBuffer = new Int32Array(64);
  36643. var i, j, ll = 0;
  36644. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  36645. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  36646. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36647. quantizeAndInverse(component, offset, computationBuffer);
  36648. }
  36649. }
  36650. return component.blockData;
  36651. }
  36652. function clamp0to255(a) {
  36653. return a <= 0 ? 0 : a >= 255 ? 255 : a;
  36654. }
  36655. constructor.prototype = {
  36656. parse: function parse(data) {
  36657. function readUint16() {
  36658. var value = (data[offset] << 8) | data[offset + 1];
  36659. offset += 2;
  36660. return value;
  36661. }
  36662. function readDataBlock() {
  36663. var length = readUint16();
  36664. var array = data.subarray(offset, offset + length - 2);
  36665. offset += array.length;
  36666. return array;
  36667. }
  36668. function prepareComponents(frame) {
  36669. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH);
  36670. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV);
  36671. for (var i = 0; i < frame.components.length; i++) {
  36672. component = frame.components[i];
  36673. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
  36674. component.h / frame.maxH);
  36675. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
  36676. component.v / frame.maxV);
  36677. var blocksPerLineForMcu = mcusPerLine * component.h;
  36678. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  36679. var blocksBufferSize = 64 * blocksPerColumnForMcu *
  36680. (blocksPerLineForMcu + 1);
  36681. component.blockData = new Int16Array(blocksBufferSize);
  36682. component.blocksPerLine = blocksPerLine;
  36683. component.blocksPerColumn = blocksPerColumn;
  36684. }
  36685. frame.mcusPerLine = mcusPerLine;
  36686. frame.mcusPerColumn = mcusPerColumn;
  36687. }
  36688. var offset = 0, length = data.length;
  36689. var jfif = null;
  36690. var adobe = null;
  36691. var pixels = null;
  36692. var frame, resetInterval;
  36693. var quantizationTables = [];
  36694. var huffmanTablesAC = [], huffmanTablesDC = [];
  36695. var fileMarker = readUint16();
  36696. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  36697. throw 'SOI not found';
  36698. }
  36699. fileMarker = readUint16();
  36700. while (fileMarker != 0xFFD9) { // EOI (End of image)
  36701. var i, j, l;
  36702. switch(fileMarker) {
  36703. case 0xFFE0: // APP0 (Application Specific)
  36704. case 0xFFE1: // APP1
  36705. case 0xFFE2: // APP2
  36706. case 0xFFE3: // APP3
  36707. case 0xFFE4: // APP4
  36708. case 0xFFE5: // APP5
  36709. case 0xFFE6: // APP6
  36710. case 0xFFE7: // APP7
  36711. case 0xFFE8: // APP8
  36712. case 0xFFE9: // APP9
  36713. case 0xFFEA: // APP10
  36714. case 0xFFEB: // APP11
  36715. case 0xFFEC: // APP12
  36716. case 0xFFED: // APP13
  36717. case 0xFFEE: // APP14
  36718. case 0xFFEF: // APP15
  36719. case 0xFFFE: // COM (Comment)
  36720. var appData = readDataBlock();
  36721. if (fileMarker === 0xFFE0) {
  36722. if (appData[0] === 0x4A && appData[1] === 0x46 &&
  36723. appData[2] === 0x49 && appData[3] === 0x46 &&
  36724. appData[4] === 0) { // 'JFIF\x00'
  36725. jfif = {
  36726. version: { major: appData[5], minor: appData[6] },
  36727. densityUnits: appData[7],
  36728. xDensity: (appData[8] << 8) | appData[9],
  36729. yDensity: (appData[10] << 8) | appData[11],
  36730. thumbWidth: appData[12],
  36731. thumbHeight: appData[13],
  36732. thumbData: appData.subarray(14, 14 +
  36733. 3 * appData[12] * appData[13])
  36734. };
  36735. }
  36736. }
  36737. // TODO APP1 - Exif
  36738. if (fileMarker === 0xFFEE) {
  36739. if (appData[0] === 0x41 && appData[1] === 0x64 &&
  36740. appData[2] === 0x6F && appData[3] === 0x62 &&
  36741. appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  36742. adobe = {
  36743. version: appData[6],
  36744. flags0: (appData[7] << 8) | appData[8],
  36745. flags1: (appData[9] << 8) | appData[10],
  36746. transformCode: appData[11]
  36747. };
  36748. }
  36749. }
  36750. break;
  36751. case 0xFFDB: // DQT (Define Quantization Tables)
  36752. var quantizationTablesLength = readUint16();
  36753. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  36754. var z;
  36755. while (offset < quantizationTablesEnd) {
  36756. var quantizationTableSpec = data[offset++];
  36757. var tableData = new Int32Array(64);
  36758. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  36759. for (j = 0; j < 64; j++) {
  36760. z = dctZigZag[j];
  36761. tableData[z] = data[offset++];
  36762. }
  36763. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  36764. for (j = 0; j < 64; j++) {
  36765. z = dctZigZag[j];
  36766. tableData[z] = readUint16();
  36767. }
  36768. } else {
  36769. throw 'DQT: invalid table spec';
  36770. }
  36771. quantizationTables[quantizationTableSpec & 15] = tableData;
  36772. }
  36773. break;
  36774. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  36775. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  36776. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  36777. if (frame) {
  36778. throw 'Only single frame JPEGs supported';
  36779. }
  36780. readUint16(); // skip data length
  36781. frame = {};
  36782. frame.extended = (fileMarker === 0xFFC1);
  36783. frame.progressive = (fileMarker === 0xFFC2);
  36784. frame.precision = data[offset++];
  36785. frame.scanLines = readUint16();
  36786. frame.samplesPerLine = readUint16();
  36787. frame.components = [];
  36788. frame.componentIds = {};
  36789. var componentsCount = data[offset++], componentId;
  36790. var maxH = 0, maxV = 0;
  36791. for (i = 0; i < componentsCount; i++) {
  36792. componentId = data[offset];
  36793. var h = data[offset + 1] >> 4;
  36794. var v = data[offset + 1] & 15;
  36795. if (maxH < h) {
  36796. maxH = h;
  36797. }
  36798. if (maxV < v) {
  36799. maxV = v;
  36800. }
  36801. var qId = data[offset + 2];
  36802. l = frame.components.push({
  36803. h: h,
  36804. v: v,
  36805. quantizationTable: quantizationTables[qId]
  36806. });
  36807. frame.componentIds[componentId] = l - 1;
  36808. offset += 3;
  36809. }
  36810. frame.maxH = maxH;
  36811. frame.maxV = maxV;
  36812. prepareComponents(frame);
  36813. break;
  36814. case 0xFFC4: // DHT (Define Huffman Tables)
  36815. var huffmanLength = readUint16();
  36816. for (i = 2; i < huffmanLength;) {
  36817. var huffmanTableSpec = data[offset++];
  36818. var codeLengths = new Uint8Array(16);
  36819. var codeLengthSum = 0;
  36820. for (j = 0; j < 16; j++, offset++) {
  36821. codeLengthSum += (codeLengths[j] = data[offset]);
  36822. }
  36823. var huffmanValues = new Uint8Array(codeLengthSum);
  36824. for (j = 0; j < codeLengthSum; j++, offset++) {
  36825. huffmanValues[j] = data[offset];
  36826. }
  36827. i += 17 + codeLengthSum;
  36828. ((huffmanTableSpec >> 4) === 0 ?
  36829. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  36830. buildHuffmanTable(codeLengths, huffmanValues);
  36831. }
  36832. break;
  36833. case 0xFFDD: // DRI (Define Restart Interval)
  36834. readUint16(); // skip data length
  36835. resetInterval = readUint16();
  36836. break;
  36837. case 0xFFDA: // SOS (Start of Scan)
  36838. var scanLength = readUint16();
  36839. var selectorsCount = data[offset++];
  36840. var components = [], component;
  36841. for (i = 0; i < selectorsCount; i++) {
  36842. var componentIndex = frame.componentIds[data[offset++]];
  36843. component = frame.components[componentIndex];
  36844. var tableSpec = data[offset++];
  36845. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  36846. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  36847. components.push(component);
  36848. }
  36849. var spectralStart = data[offset++];
  36850. var spectralEnd = data[offset++];
  36851. var successiveApproximation = data[offset++];
  36852. var processed = decodeScan(data, offset,
  36853. frame, components, resetInterval,
  36854. spectralStart, spectralEnd,
  36855. successiveApproximation >> 4, successiveApproximation & 15);
  36856. offset += processed;
  36857. break;
  36858. default:
  36859. if (data[offset - 3] == 0xFF &&
  36860. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  36861. // could be incorrect encoding -- last 0xFF byte of the previous
  36862. // block was eaten by the encoder
  36863. offset -= 3;
  36864. break;
  36865. }
  36866. throw 'unknown JPEG marker ' + fileMarker.toString(16);
  36867. }
  36868. fileMarker = readUint16();
  36869. }
  36870. this.width = frame.samplesPerLine;
  36871. this.height = frame.scanLines;
  36872. this.jfif = jfif;
  36873. this.adobe = adobe;
  36874. this.components = [];
  36875. for (i = 0; i < frame.components.length; i++) {
  36876. component = frame.components[i];
  36877. this.components.push({
  36878. output: buildComponentData(frame, component),
  36879. scaleX: component.h / frame.maxH,
  36880. scaleY: component.v / frame.maxV,
  36881. blocksPerLine: component.blocksPerLine,
  36882. blocksPerColumn: component.blocksPerColumn
  36883. });
  36884. }
  36885. this.numComponents = this.components.length;
  36886. },
  36887. _getLinearizedBlockData: function getLinearizedBlockData(width, height) {
  36888. var scaleX = this.width / width, scaleY = this.height / height;
  36889. var component, componentScaleX, componentScaleY, blocksPerScanline;
  36890. var x, y, i, j;
  36891. var index;
  36892. var offset = 0;
  36893. var output;
  36894. var numComponents = this.components.length;
  36895. var dataLength = width * height * numComponents;
  36896. var data = new Uint8Array(dataLength);
  36897. var xScaleBlockOffset = new Uint32Array(width);
  36898. var mask3LSB = 0xfffffff8; // used to clear the 3 LSBs
  36899. for (i = 0; i < numComponents; i++) {
  36900. component = this.components[i];
  36901. componentScaleX = component.scaleX * scaleX;
  36902. componentScaleY = component.scaleY * scaleY;
  36903. offset = i;
  36904. output = component.output;
  36905. blocksPerScanline = (component.blocksPerLine + 1) << 3;
  36906. // precalculate the xScaleBlockOffset
  36907. for (x = 0; x < width; x++) {
  36908. j = 0 | (x * componentScaleX);
  36909. xScaleBlockOffset[x] = ((j & mask3LSB) << 3) | (j & 7);
  36910. }
  36911. // linearize the blocks of the component
  36912. for (y = 0; y < height; y++) {
  36913. j = 0 | (y * componentScaleY);
  36914. index = blocksPerScanline * (j & mask3LSB) | ((j & 7) << 3);
  36915. for (x = 0; x < width; x++) {
  36916. data[offset] = output[index + xScaleBlockOffset[x]];
  36917. offset += numComponents;
  36918. }
  36919. }
  36920. }
  36921. return data;
  36922. },
  36923. _isColorConversionNeeded: function isColorConversionNeeded() {
  36924. if (this.adobe && this.adobe.transformCode) {
  36925. // The adobe transform marker overrides any previous setting
  36926. return true;
  36927. } else if (this.numComponents == 3) {
  36928. return true;
  36929. } else if (typeof this.colorTransform !== 'undefined') {
  36930. return !!this.colorTransform;
  36931. } else {
  36932. return false;
  36933. }
  36934. },
  36935. _convertYccToRgb: function convertYccToRgb(data) {
  36936. var Y, Cb, Cr;
  36937. for (var i = 0; i < data.length; i += this.numComponents) {
  36938. Y = data[i ];
  36939. Cb = data[i + 1];
  36940. Cr = data[i + 2];
  36941. data[i ] = clamp0to255(Y - 179.456 + 1.402 * Cr);
  36942. data[i + 1] = clamp0to255(Y + 135.459 - 0.344 * Cb - 0.714 * Cr);
  36943. data[i + 2] = clamp0to255(Y - 226.816 + 1.772 * Cb);
  36944. }
  36945. return data;
  36946. },
  36947. _convertYcckToRgb: function convertYcckToRgb(data) {
  36948. var Y, Cb, Cr, k, CbCb, CbCr, CbY, Cbk, CrCr, Crk, CrY, YY, Yk, kk;
  36949. var offset = 0;
  36950. for (var i = 0; i < data.length; i += this.numComponents) {
  36951. Y = data[i];
  36952. Cb = data[i + 1];
  36953. Cr = data[i + 2];
  36954. k = data[i + 3];
  36955. CbCb = Cb * Cb;
  36956. CbCr = Cb * Cr;
  36957. CbY = Cb * Y;
  36958. Cbk = Cb * k;
  36959. CrCr = Cr * Cr;
  36960. Crk = Cr * k;
  36961. CrY = Cr * Y;
  36962. YY = Y * Y;
  36963. Yk = Y * k;
  36964. kk = k * k;
  36965. var r = - 122.67195406894 -
  36966. 6.60635669420364e-5 * CbCb + 0.000437130475926232 * CbCr -
  36967. 5.4080610064599e-5* CbY + 0.00048449797120281* Cbk -
  36968. 0.154362151871126 * Cb - 0.000957964378445773 * CrCr +
  36969. 0.000817076911346625 * CrY - 0.00477271405408747 * Crk +
  36970. 1.53380253221734 * Cr + 0.000961250184130688 * YY -
  36971. 0.00266257332283933 * Yk + 0.48357088451265 * Y -
  36972. 0.000336197177618394 * kk + 0.484791561490776 * k;
  36973. var g = 107.268039397724 +
  36974. 2.19927104525741e-5 * CbCb - 0.000640992018297945 * CbCr +
  36975. 0.000659397001245577* CbY + 0.000426105652938837* Cbk -
  36976. 0.176491792462875 * Cb - 0.000778269941513683 * CrCr +
  36977. 0.00130872261408275 * CrY + 0.000770482631801132 * Crk -
  36978. 0.151051492775562 * Cr + 0.00126935368114843 * YY -
  36979. 0.00265090189010898 * Yk + 0.25802910206845 * Y -
  36980. 0.000318913117588328 * kk - 0.213742400323665 * k;
  36981. var b = - 20.810012546947 -
  36982. 0.000570115196973677 * CbCb - 2.63409051004589e-5 * CbCr +
  36983. 0.0020741088115012* CbY - 0.00288260236853442* Cbk +
  36984. 0.814272968359295 * Cb - 1.53496057440975e-5 * CrCr -
  36985. 0.000132689043961446 * CrY + 0.000560833691242812 * Crk -
  36986. 0.195152027534049 * Cr + 0.00174418132927582 * YY -
  36987. 0.00255243321439347 * Yk + 0.116935020465145 * Y -
  36988. 0.000343531996510555 * kk + 0.24165260232407 * k;
  36989. data[offset++] = clamp0to255(r);
  36990. data[offset++] = clamp0to255(g);
  36991. data[offset++] = clamp0to255(b);
  36992. }
  36993. return data;
  36994. },
  36995. _convertYcckToCmyk: function convertYcckToCmyk(data) {
  36996. var Y, Cb, Cr;
  36997. for (var i = 0; i < data.length; i += this.numComponents) {
  36998. Y = data[i];
  36999. Cb = data[i + 1];
  37000. Cr = data[i + 2];
  37001. data[i ] = clamp0to255(434.456 - Y - 1.402 * Cr);
  37002. data[i + 1] = clamp0to255(119.541 - Y + 0.344 * Cb + 0.714 * Cr);
  37003. data[i + 2] = clamp0to255(481.816 - Y - 1.772 * Cb);
  37004. // K in data[i + 3] is unchanged
  37005. }
  37006. return data;
  37007. },
  37008. _convertCmykToRgb: function convertCmykToRgb(data) {
  37009. var c, m, y, k;
  37010. var offset = 0;
  37011. var length = data.length;
  37012. var min = -255 * 255 * 255;
  37013. var scale = 1 / 255 / 255;
  37014. for (var i = 0; i < length;) {
  37015. c = data[i++];
  37016. m = data[i++];
  37017. y = data[i++];
  37018. k = data[i++];
  37019. var r =
  37020. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  37021. 18.82290502165302 * y + 212.25662451639585 * k -
  37022. 72734.4411664936) +
  37023. m * (1.7149763477362134 * m - 5.6096736904047315 * y -
  37024. 17.873870861415444 * k - 1401.7366389350734) +
  37025. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  37026. 4465.541406466231) -
  37027. k * (21.86122147463605 * k + 48317.86113160301);
  37028. var g =
  37029. c * (8.841041422036149 * c + 60.118027045597366 * m +
  37030. 6.871425592049007 * y + 31.159100130055922 * k -
  37031. 20220.756542821975) +
  37032. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  37033. 131.35250912493976 * k - 48691.05921601825) +
  37034. y * (4.444339102852739 * y + 9.8632861493405 * k -
  37035. 6341.191035517494) -
  37036. k * (20.737325471181034 * k + 47890.15695978492);
  37037. var b =
  37038. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  37039. 30.89978309703729 * y - 0.23883238689178934 * k -
  37040. 3616.812083916688) +
  37041. m * (10.49593273432072 * m + 63.02378494754052 * y +
  37042. 50.606957656360734 * k - 28620.90484698408) +
  37043. y * (0.03296041114873217 * y + 115.60384449646641 * k -
  37044. 49363.43385999684) -
  37045. k * (22.33816807309886 * k + 45932.16563550634);
  37046. data[offset++] = r >= 0 ? 255 : r <= min ? 0 : 255 + r * scale | 0;
  37047. data[offset++] = g >= 0 ? 255 : g <= min ? 0 : 255 + g * scale | 0;
  37048. data[offset++] = b >= 0 ? 255 : b <= min ? 0 : 255 + b * scale | 0;
  37049. }
  37050. return data;
  37051. },
  37052. getData: function getData(width, height, forceRGBoutput) {
  37053. if (this.numComponents > 4) {
  37054. throw 'Unsupported color mode';
  37055. }
  37056. // type of data: Uint8Array(width * height * numComponents)
  37057. var data = this._getLinearizedBlockData(width, height);
  37058. if (this.numComponents === 3) {
  37059. return this._convertYccToRgb(data);
  37060. } else if (this.numComponents === 4) {
  37061. if (this._isColorConversionNeeded()) {
  37062. if (forceRGBoutput) {
  37063. return this._convertYcckToRgb(data);
  37064. } else {
  37065. return this._convertYcckToCmyk(data);
  37066. }
  37067. } else {
  37068. return this._convertCmykToRgb(data);
  37069. }
  37070. }
  37071. return data;
  37072. }
  37073. };
  37074. return constructor;
  37075. })();
  37076. var JpxImage = (function JpxImageClosure() {
  37077. // Table E.1
  37078. var SubbandsGainLog2 = {
  37079. 'LL': 0,
  37080. 'LH': 1,
  37081. 'HL': 1,
  37082. 'HH': 2
  37083. };
  37084. function JpxImage() {
  37085. this.failOnCorruptedImage = false;
  37086. }
  37087. JpxImage.prototype = {
  37088. load: function JpxImage_load(url) {
  37089. var xhr = new XMLHttpRequest();
  37090. xhr.open('GET', url, true);
  37091. xhr.responseType = 'arraybuffer';
  37092. xhr.onload = (function() {
  37093. // TODO catch parse error
  37094. var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
  37095. this.parse(data);
  37096. if (this.onload) {
  37097. this.onload();
  37098. }
  37099. }).bind(this);
  37100. xhr.send(null);
  37101. },
  37102. parse: function JpxImage_parse(data) {
  37103. var head = readUint16(data, 0);
  37104. // No box header, immediate start of codestream (SOC)
  37105. if (head === 0xFF4F) {
  37106. this.parseCodestream(data, 0, data.length);
  37107. return;
  37108. }
  37109. var position = 0, length = data.length;
  37110. while (position < length) {
  37111. var headerSize = 8;
  37112. var lbox = readUint32(data, position);
  37113. var tbox = readUint32(data, position + 4);
  37114. position += headerSize;
  37115. if (lbox === 1) {
  37116. // XLBox: read UInt64 according to spec.
  37117. // JavaScript's int precision of 53 bit should be sufficient here.
  37118. lbox = readUint32(data, position) * 4294967296 +
  37119. readUint32(data, position + 4);
  37120. position += 8;
  37121. headerSize += 8;
  37122. }
  37123. if (lbox === 0) {
  37124. lbox = length - position + headerSize;
  37125. }
  37126. if (lbox < headerSize) {
  37127. error('JPX error: Invalid box field size');
  37128. }
  37129. var dataLength = lbox - headerSize;
  37130. var jumpDataLength = true;
  37131. switch (tbox) {
  37132. case 0x6A501A1A: // 'jP\032\032'
  37133. // TODO
  37134. break;
  37135. case 0x6A703268: // 'jp2h'
  37136. jumpDataLength = false; // parsing child boxes
  37137. break;
  37138. case 0x636F6C72: // 'colr'
  37139. // TODO
  37140. break;
  37141. case 0x6A703263: // 'jp2c'
  37142. this.parseCodestream(data, position, position + dataLength);
  37143. break;
  37144. }
  37145. if (jumpDataLength) {
  37146. position += dataLength;
  37147. }
  37148. }
  37149. },
  37150. parseImageProperties: function JpxImage_parseImageProperties(stream) {
  37151. try {
  37152. var newByte = stream.getByte();
  37153. while (newByte >= 0) {
  37154. var oldByte = newByte;
  37155. newByte = stream.getByte();
  37156. var code = (oldByte << 8) | newByte;
  37157. // Image and tile size (SIZ)
  37158. if (code == 0xFF51) {
  37159. stream.skip(4);
  37160. var Xsiz = stream.getInt32() >>> 0; // Byte 4
  37161. var Ysiz = stream.getInt32() >>> 0; // Byte 8
  37162. var XOsiz = stream.getInt32() >>> 0; // Byte 12
  37163. var YOsiz = stream.getInt32() >>> 0; // Byte 16
  37164. stream.skip(16);
  37165. var Csiz = stream.getUint16(); // Byte 36
  37166. this.width = Xsiz - XOsiz;
  37167. this.height = Ysiz - YOsiz;
  37168. this.componentsCount = Csiz;
  37169. // Results are always returned as Uint8Arrays
  37170. this.bitsPerComponent = 8;
  37171. return;
  37172. }
  37173. }
  37174. throw 'No size marker found in JPX stream';
  37175. } catch (e) {
  37176. if (this.failOnCorruptedImage) {
  37177. error('JPX error: ' + e);
  37178. } else {
  37179. warn('JPX error: ' + e + '. Trying to recover');
  37180. }
  37181. }
  37182. },
  37183. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  37184. var context = {};
  37185. try {
  37186. var position = start;
  37187. while (position + 1 < end) {
  37188. var code = readUint16(data, position);
  37189. position += 2;
  37190. var length = 0, j, sqcd, spqcds, spqcdSize, scalarExpounded, tile;
  37191. switch (code) {
  37192. case 0xFF4F: // Start of codestream (SOC)
  37193. context.mainHeader = true;
  37194. break;
  37195. case 0xFFD9: // End of codestream (EOC)
  37196. break;
  37197. case 0xFF51: // Image and tile size (SIZ)
  37198. length = readUint16(data, position);
  37199. var siz = {};
  37200. siz.Xsiz = readUint32(data, position + 4);
  37201. siz.Ysiz = readUint32(data, position + 8);
  37202. siz.XOsiz = readUint32(data, position + 12);
  37203. siz.YOsiz = readUint32(data, position + 16);
  37204. siz.XTsiz = readUint32(data, position + 20);
  37205. siz.YTsiz = readUint32(data, position + 24);
  37206. siz.XTOsiz = readUint32(data, position + 28);
  37207. siz.YTOsiz = readUint32(data, position + 32);
  37208. var componentsCount = readUint16(data, position + 36);
  37209. siz.Csiz = componentsCount;
  37210. var components = [];
  37211. j = position + 38;
  37212. for (var i = 0; i < componentsCount; i++) {
  37213. var component = {
  37214. precision: (data[j] & 0x7F) + 1,
  37215. isSigned: !!(data[j] & 0x80),
  37216. XRsiz: data[j + 1],
  37217. YRsiz: data[j + 1]
  37218. };
  37219. calculateComponentDimensions(component, siz);
  37220. components.push(component);
  37221. }
  37222. context.SIZ = siz;
  37223. context.components = components;
  37224. calculateTileGrids(context, components);
  37225. context.QCC = [];
  37226. context.COC = [];
  37227. break;
  37228. case 0xFF5C: // Quantization default (QCD)
  37229. length = readUint16(data, position);
  37230. var qcd = {};
  37231. j = position + 2;
  37232. sqcd = data[j++];
  37233. switch (sqcd & 0x1F) {
  37234. case 0:
  37235. spqcdSize = 8;
  37236. scalarExpounded = true;
  37237. break;
  37238. case 1:
  37239. spqcdSize = 16;
  37240. scalarExpounded = false;
  37241. break;
  37242. case 2:
  37243. spqcdSize = 16;
  37244. scalarExpounded = true;
  37245. break;
  37246. default:
  37247. throw 'Invalid SQcd value ' + sqcd;
  37248. }
  37249. qcd.noQuantization = (spqcdSize == 8);
  37250. qcd.scalarExpounded = scalarExpounded;
  37251. qcd.guardBits = sqcd >> 5;
  37252. spqcds = [];
  37253. while (j < length + position) {
  37254. var spqcd = {};
  37255. if (spqcdSize == 8) {
  37256. spqcd.epsilon = data[j++] >> 3;
  37257. spqcd.mu = 0;
  37258. } else {
  37259. spqcd.epsilon = data[j] >> 3;
  37260. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37261. j += 2;
  37262. }
  37263. spqcds.push(spqcd);
  37264. }
  37265. qcd.SPqcds = spqcds;
  37266. if (context.mainHeader) {
  37267. context.QCD = qcd;
  37268. } else {
  37269. context.currentTile.QCD = qcd;
  37270. context.currentTile.QCC = [];
  37271. }
  37272. break;
  37273. case 0xFF5D: // Quantization component (QCC)
  37274. length = readUint16(data, position);
  37275. var qcc = {};
  37276. j = position + 2;
  37277. var cqcc;
  37278. if (context.SIZ.Csiz < 257) {
  37279. cqcc = data[j++];
  37280. } else {
  37281. cqcc = readUint16(data, j);
  37282. j += 2;
  37283. }
  37284. sqcd = data[j++];
  37285. switch (sqcd & 0x1F) {
  37286. case 0:
  37287. spqcdSize = 8;
  37288. scalarExpounded = true;
  37289. break;
  37290. case 1:
  37291. spqcdSize = 16;
  37292. scalarExpounded = false;
  37293. break;
  37294. case 2:
  37295. spqcdSize = 16;
  37296. scalarExpounded = true;
  37297. break;
  37298. default:
  37299. throw 'Invalid SQcd value ' + sqcd;
  37300. }
  37301. qcc.noQuantization = (spqcdSize == 8);
  37302. qcc.scalarExpounded = scalarExpounded;
  37303. qcc.guardBits = sqcd >> 5;
  37304. spqcds = [];
  37305. while (j < (length + position)) {
  37306. spqcd = {};
  37307. if (spqcdSize == 8) {
  37308. spqcd.epsilon = data[j++] >> 3;
  37309. spqcd.mu = 0;
  37310. } else {
  37311. spqcd.epsilon = data[j] >> 3;
  37312. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37313. j += 2;
  37314. }
  37315. spqcds.push(spqcd);
  37316. }
  37317. qcc.SPqcds = spqcds;
  37318. if (context.mainHeader) {
  37319. context.QCC[cqcc] = qcc;
  37320. } else {
  37321. context.currentTile.QCC[cqcc] = qcc;
  37322. }
  37323. break;
  37324. case 0xFF52: // Coding style default (COD)
  37325. length = readUint16(data, position);
  37326. var cod = {};
  37327. j = position + 2;
  37328. var scod = data[j++];
  37329. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  37330. cod.sopMarkerUsed = !!(scod & 2);
  37331. cod.ephMarkerUsed = !!(scod & 4);
  37332. cod.progressionOrder = data[j++];
  37333. cod.layersCount = readUint16(data, j);
  37334. j += 2;
  37335. cod.multipleComponentTransform = data[j++];
  37336. cod.decompositionLevelsCount = data[j++];
  37337. cod.xcb = (data[j++] & 0xF) + 2;
  37338. cod.ycb = (data[j++] & 0xF) + 2;
  37339. var blockStyle = data[j++];
  37340. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  37341. cod.resetContextProbabilities = !!(blockStyle & 2);
  37342. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  37343. cod.verticalyStripe = !!(blockStyle & 8);
  37344. cod.predictableTermination = !!(blockStyle & 16);
  37345. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  37346. cod.reversibleTransformation = data[j++];
  37347. if (cod.entropyCoderWithCustomPrecincts) {
  37348. var precinctsSizes = [];
  37349. while (j < length + position) {
  37350. var precinctsSize = data[j++];
  37351. precinctsSizes.push({
  37352. PPx: precinctsSize & 0xF,
  37353. PPy: precinctsSize >> 4
  37354. });
  37355. }
  37356. cod.precinctsSizes = precinctsSizes;
  37357. }
  37358. if (cod.sopMarkerUsed || cod.ephMarkerUsed ||
  37359. cod.selectiveArithmeticCodingBypass ||
  37360. cod.resetContextProbabilities ||
  37361. cod.terminationOnEachCodingPass ||
  37362. cod.verticalyStripe || cod.predictableTermination) {
  37363. throw 'Unsupported COD options: ' +
  37364. globalScope.JSON.stringify(cod);
  37365. }
  37366. if (context.mainHeader) {
  37367. context.COD = cod;
  37368. } else {
  37369. context.currentTile.COD = cod;
  37370. context.currentTile.COC = [];
  37371. }
  37372. break;
  37373. case 0xFF90: // Start of tile-part (SOT)
  37374. length = readUint16(data, position);
  37375. tile = {};
  37376. tile.index = readUint16(data, position + 2);
  37377. tile.length = readUint32(data, position + 4);
  37378. tile.dataEnd = tile.length + position - 2;
  37379. tile.partIndex = data[position + 8];
  37380. tile.partsCount = data[position + 9];
  37381. context.mainHeader = false;
  37382. if (tile.partIndex === 0) {
  37383. // reset component specific settings
  37384. tile.COD = context.COD;
  37385. tile.COC = context.COC.slice(0); // clone of the global COC
  37386. tile.QCD = context.QCD;
  37387. tile.QCC = context.QCC.slice(0); // clone of the global COC
  37388. }
  37389. context.currentTile = tile;
  37390. break;
  37391. case 0xFF93: // Start of data (SOD)
  37392. tile = context.currentTile;
  37393. if (tile.partIndex === 0) {
  37394. initializeTile(context, tile.index);
  37395. buildPackets(context);
  37396. }
  37397. // moving to the end of the data
  37398. length = tile.dataEnd - position;
  37399. parseTilePackets(context, data, position, length);
  37400. break;
  37401. case 0xFF64: // Comment (COM)
  37402. length = readUint16(data, position);
  37403. // skipping content
  37404. break;
  37405. case 0xFF53: // Coding style component (COC)
  37406. throw 'Codestream code 0xFF53 (COC) is not implemented';
  37407. default:
  37408. throw 'Unknown codestream code: ' + code.toString(16);
  37409. }
  37410. position += length;
  37411. }
  37412. } catch (e) {
  37413. if (this.failOnCorruptedImage) {
  37414. error('JPX error: ' + e);
  37415. } else {
  37416. warn('JPX error: ' + e + '. Trying to recover');
  37417. }
  37418. }
  37419. this.tiles = transformComponents(context);
  37420. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  37421. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  37422. this.componentsCount = context.SIZ.Csiz;
  37423. }
  37424. };
  37425. function calculateComponentDimensions(component, siz) {
  37426. // Section B.2 Component mapping
  37427. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  37428. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  37429. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  37430. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  37431. component.width = component.x1 - component.x0;
  37432. component.height = component.y1 - component.y0;
  37433. }
  37434. function calculateTileGrids(context, components) {
  37435. var siz = context.SIZ;
  37436. // Section B.3 Division into tile and tile-components
  37437. var tile, tiles = [];
  37438. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  37439. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  37440. for (var q = 0; q < numYtiles; q++) {
  37441. for (var p = 0; p < numXtiles; p++) {
  37442. tile = {};
  37443. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  37444. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  37445. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  37446. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  37447. tile.width = tile.tx1 - tile.tx0;
  37448. tile.height = tile.ty1 - tile.ty0;
  37449. tile.components = [];
  37450. tiles.push(tile);
  37451. }
  37452. }
  37453. context.tiles = tiles;
  37454. var componentsCount = siz.Csiz;
  37455. for (var i = 0, ii = componentsCount; i < ii; i++) {
  37456. var component = components[i];
  37457. for (var j = 0, jj = tiles.length; j < jj; j++) {
  37458. var tileComponent = {};
  37459. tile = tiles[j];
  37460. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  37461. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  37462. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  37463. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  37464. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  37465. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  37466. tile.components[i] = tileComponent;
  37467. }
  37468. }
  37469. }
  37470. function getBlocksDimensions(context, component, r) {
  37471. var codOrCoc = component.codingStyleParameters;
  37472. var result = {};
  37473. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  37474. result.PPx = 15;
  37475. result.PPy = 15;
  37476. } else {
  37477. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  37478. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  37479. }
  37480. // calculate codeblock size as described in section B.7
  37481. result.xcb_ = (r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  37482. Math.min(codOrCoc.xcb, result.PPx));
  37483. result.ycb_ = (r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  37484. Math.min(codOrCoc.ycb, result.PPy));
  37485. return result;
  37486. }
  37487. function buildPrecincts(context, resolution, dimensions) {
  37488. // Section B.6 Division resolution to precincts
  37489. var precinctWidth = 1 << dimensions.PPx;
  37490. var precinctHeight = 1 << dimensions.PPy;
  37491. var numprecinctswide = (resolution.trx1 > resolution.trx0 ?
  37492. Math.ceil(resolution.trx1 / precinctWidth) -
  37493. Math.floor(resolution.trx0 / precinctWidth) : 0);
  37494. var numprecinctshigh = (resolution.try1 > resolution.try0 ?
  37495. Math.ceil(resolution.try1 / precinctHeight) -
  37496. Math.floor(resolution.try0 / precinctHeight) : 0);
  37497. var numprecincts = numprecinctswide * numprecinctshigh;
  37498. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  37499. precinctWidth;
  37500. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  37501. precinctHeight;
  37502. resolution.precinctParameters = {
  37503. precinctXOffset: precinctXOffset,
  37504. precinctYOffset: precinctYOffset,
  37505. precinctWidth: precinctWidth,
  37506. precinctHeight: precinctHeight,
  37507. numprecinctswide: numprecinctswide,
  37508. numprecinctshigh: numprecinctshigh,
  37509. numprecincts: numprecincts
  37510. };
  37511. }
  37512. function buildCodeblocks(context, subband, dimensions) {
  37513. // Section B.7 Division sub-band into code-blocks
  37514. var xcb_ = dimensions.xcb_;
  37515. var ycb_ = dimensions.ycb_;
  37516. var codeblockWidth = 1 << xcb_;
  37517. var codeblockHeight = 1 << ycb_;
  37518. var cbx0 = subband.tbx0 >> xcb_;
  37519. var cby0 = subband.tby0 >> ycb_;
  37520. var cbx1 = (subband.tbx1 + codeblockWidth - 1) >> xcb_;
  37521. var cby1 = (subband.tby1 + codeblockHeight - 1) >> ycb_;
  37522. var precinctParameters = subband.resolution.precinctParameters;
  37523. var codeblocks = [];
  37524. var precincts = [];
  37525. var i, j, codeblock, precinctNumber;
  37526. for (j = cby0; j < cby1; j++) {
  37527. for (i = cbx0; i < cbx1; i++) {
  37528. codeblock = {
  37529. cbx: i,
  37530. cby: j,
  37531. tbx0: codeblockWidth * i,
  37532. tby0: codeblockHeight * j,
  37533. tbx1: codeblockWidth * (i + 1),
  37534. tby1: codeblockHeight * (j + 1)
  37535. };
  37536. // calculate precinct number
  37537. var pi = Math.floor((codeblock.tbx0 -
  37538. precinctParameters.precinctXOffset) /
  37539. precinctParameters.precinctWidth);
  37540. var pj = Math.floor((codeblock.tby0 -
  37541. precinctParameters.precinctYOffset) /
  37542. precinctParameters.precinctHeight);
  37543. precinctNumber = pj + pi * precinctParameters.numprecinctswide;
  37544. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  37545. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  37546. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  37547. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  37548. codeblock.precinctNumber = precinctNumber;
  37549. codeblock.subbandType = subband.type;
  37550. codeblock.Lblock = 3;
  37551. codeblocks.push(codeblock);
  37552. // building precinct for the sub-band
  37553. var precinct = precincts[precinctNumber];
  37554. if (precinct !== undefined) {
  37555. if (i < precinct.cbxMin) {
  37556. precinct.cbxMin = i;
  37557. } else if (i > precinct.cbxMax) {
  37558. precinct.cbxMax = i;
  37559. }
  37560. if (j < precinct.cbyMin) {
  37561. precinct.cbxMin = j;
  37562. } else if (j > precinct.cbyMax) {
  37563. precinct.cbyMax = j;
  37564. }
  37565. } else {
  37566. precincts[precinctNumber] = precinct = {
  37567. cbxMin: i,
  37568. cbyMin: j,
  37569. cbxMax: i,
  37570. cbyMax: j
  37571. };
  37572. }
  37573. codeblock.precinct = precinct;
  37574. }
  37575. }
  37576. subband.codeblockParameters = {
  37577. codeblockWidth: xcb_,
  37578. codeblockHeight: ycb_,
  37579. numcodeblockwide: cbx1 - cbx0 + 1,
  37580. numcodeblockhigh: cby1 - cby1 + 1
  37581. };
  37582. subband.codeblocks = codeblocks;
  37583. subband.precincts = precincts;
  37584. }
  37585. function createPacket(resolution, precinctNumber, layerNumber) {
  37586. var precinctCodeblocks = [];
  37587. // Section B.10.8 Order of info in packet
  37588. var subbands = resolution.subbands;
  37589. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  37590. for (var i = 0, ii = subbands.length; i < ii; i++) {
  37591. var subband = subbands[i];
  37592. var codeblocks = subband.codeblocks;
  37593. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  37594. var codeblock = codeblocks[j];
  37595. if (codeblock.precinctNumber != precinctNumber) {
  37596. continue;
  37597. }
  37598. precinctCodeblocks.push(codeblock);
  37599. }
  37600. }
  37601. return {
  37602. layerNumber: layerNumber,
  37603. codeblocks: precinctCodeblocks
  37604. };
  37605. }
  37606. function LayerResolutionComponentPositionIterator(context) {
  37607. var siz = context.SIZ;
  37608. var tileIndex = context.currentTile.index;
  37609. var tile = context.tiles[tileIndex];
  37610. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37611. var componentsCount = siz.Csiz;
  37612. var maxDecompositionLevelsCount = 0;
  37613. for (var q = 0; q < componentsCount; q++) {
  37614. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37615. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37616. }
  37617. var l = 0, r = 0, i = 0, k = 0;
  37618. this.nextPacket = function JpxImage_nextPacket() {
  37619. // Section B.12.1.1 Layer-resolution-component-position
  37620. for (; l < layersCount; l++) {
  37621. for (; r <= maxDecompositionLevelsCount; r++) {
  37622. for (; i < componentsCount; i++) {
  37623. var component = tile.components[i];
  37624. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37625. continue;
  37626. }
  37627. var resolution = component.resolutions[r];
  37628. var numprecincts = resolution.precinctParameters.numprecincts;
  37629. for (; k < numprecincts;) {
  37630. var packet = createPacket(resolution, k, l);
  37631. k++;
  37632. return packet;
  37633. }
  37634. k = 0;
  37635. }
  37636. i = 0;
  37637. }
  37638. r = 0;
  37639. }
  37640. throw 'Out of packets';
  37641. };
  37642. }
  37643. function ResolutionLayerComponentPositionIterator(context) {
  37644. var siz = context.SIZ;
  37645. var tileIndex = context.currentTile.index;
  37646. var tile = context.tiles[tileIndex];
  37647. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37648. var componentsCount = siz.Csiz;
  37649. var maxDecompositionLevelsCount = 0;
  37650. for (var q = 0; q < componentsCount; q++) {
  37651. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37652. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37653. }
  37654. var r = 0, l = 0, i = 0, k = 0;
  37655. this.nextPacket = function JpxImage_nextPacket() {
  37656. // Section B.12.1.2 Resolution-layer-component-position
  37657. for (; r <= maxDecompositionLevelsCount; r++) {
  37658. for (; l < layersCount; l++) {
  37659. for (; i < componentsCount; i++) {
  37660. var component = tile.components[i];
  37661. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37662. continue;
  37663. }
  37664. var resolution = component.resolutions[r];
  37665. var numprecincts = resolution.precinctParameters.numprecincts;
  37666. for (; k < numprecincts;) {
  37667. var packet = createPacket(resolution, k, l);
  37668. k++;
  37669. return packet;
  37670. }
  37671. k = 0;
  37672. }
  37673. i = 0;
  37674. }
  37675. l = 0;
  37676. }
  37677. throw 'Out of packets';
  37678. };
  37679. }
  37680. function buildPackets(context) {
  37681. var siz = context.SIZ;
  37682. var tileIndex = context.currentTile.index;
  37683. var tile = context.tiles[tileIndex];
  37684. var componentsCount = siz.Csiz;
  37685. // Creating resolutions and sub-bands for each component
  37686. for (var c = 0; c < componentsCount; c++) {
  37687. var component = tile.components[c];
  37688. var decompositionLevelsCount =
  37689. component.codingStyleParameters.decompositionLevelsCount;
  37690. // Section B.5 Resolution levels and sub-bands
  37691. var resolutions = [];
  37692. var subbands = [];
  37693. for (var r = 0; r <= decompositionLevelsCount; r++) {
  37694. var blocksDimensions = getBlocksDimensions(context, component, r);
  37695. var resolution = {};
  37696. var scale = 1 << (decompositionLevelsCount - r);
  37697. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  37698. resolution.try0 = Math.ceil(component.tcy0 / scale);
  37699. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  37700. resolution.try1 = Math.ceil(component.tcy1 / scale);
  37701. buildPrecincts(context, resolution, blocksDimensions);
  37702. resolutions.push(resolution);
  37703. var subband;
  37704. if (r === 0) {
  37705. // one sub-band (LL) with last decomposition
  37706. subband = {};
  37707. subband.type = 'LL';
  37708. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  37709. subband.tby0 = Math.ceil(component.tcy0 / scale);
  37710. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  37711. subband.tby1 = Math.ceil(component.tcy1 / scale);
  37712. subband.resolution = resolution;
  37713. buildCodeblocks(context, subband, blocksDimensions);
  37714. subbands.push(subband);
  37715. resolution.subbands = [subband];
  37716. } else {
  37717. var bscale = 1 << (decompositionLevelsCount - r + 1);
  37718. var resolutionSubbands = [];
  37719. // three sub-bands (HL, LH and HH) with rest of decompositions
  37720. subband = {};
  37721. subband.type = 'HL';
  37722. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37723. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  37724. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37725. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  37726. subband.resolution = resolution;
  37727. buildCodeblocks(context, subband, blocksDimensions);
  37728. subbands.push(subband);
  37729. resolutionSubbands.push(subband);
  37730. subband = {};
  37731. subband.type = 'LH';
  37732. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  37733. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37734. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  37735. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37736. subband.resolution = resolution;
  37737. buildCodeblocks(context, subband, blocksDimensions);
  37738. subbands.push(subband);
  37739. resolutionSubbands.push(subband);
  37740. subband = {};
  37741. subband.type = 'HH';
  37742. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37743. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37744. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37745. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37746. subband.resolution = resolution;
  37747. buildCodeblocks(context, subband, blocksDimensions);
  37748. subbands.push(subband);
  37749. resolutionSubbands.push(subband);
  37750. resolution.subbands = resolutionSubbands;
  37751. }
  37752. }
  37753. component.resolutions = resolutions;
  37754. component.subbands = subbands;
  37755. }
  37756. // Generate the packets sequence
  37757. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  37758. switch (progressionOrder) {
  37759. case 0:
  37760. tile.packetsIterator =
  37761. new LayerResolutionComponentPositionIterator(context);
  37762. break;
  37763. case 1:
  37764. tile.packetsIterator =
  37765. new ResolutionLayerComponentPositionIterator(context);
  37766. break;
  37767. default:
  37768. throw 'Unsupported progression order ' + progressionOrder;
  37769. }
  37770. }
  37771. function parseTilePackets(context, data, offset, dataLength) {
  37772. var position = 0;
  37773. var buffer, bufferSize = 0, skipNextBit = false;
  37774. function readBits(count) {
  37775. while (bufferSize < count) {
  37776. var b = data[offset + position];
  37777. position++;
  37778. if (skipNextBit) {
  37779. buffer = (buffer << 7) | b;
  37780. bufferSize += 7;
  37781. skipNextBit = false;
  37782. } else {
  37783. buffer = (buffer << 8) | b;
  37784. bufferSize += 8;
  37785. }
  37786. if (b == 0xFF) {
  37787. skipNextBit = true;
  37788. }
  37789. }
  37790. bufferSize -= count;
  37791. return (buffer >>> bufferSize) & ((1 << count) - 1);
  37792. }
  37793. function alignToByte() {
  37794. bufferSize = 0;
  37795. if (skipNextBit) {
  37796. position++;
  37797. skipNextBit = false;
  37798. }
  37799. }
  37800. function readCodingpasses() {
  37801. if (readBits(1) === 0) {
  37802. return 1;
  37803. }
  37804. if (readBits(1) === 0) {
  37805. return 2;
  37806. }
  37807. var value = readBits(2);
  37808. if (value < 3) {
  37809. return value + 3;
  37810. }
  37811. value = readBits(5);
  37812. if (value < 31) {
  37813. return value + 6;
  37814. }
  37815. value = readBits(7);
  37816. return value + 37;
  37817. }
  37818. var tileIndex = context.currentTile.index;
  37819. var tile = context.tiles[tileIndex];
  37820. var packetsIterator = tile.packetsIterator;
  37821. while (position < dataLength) {
  37822. var packet = packetsIterator.nextPacket();
  37823. if (!readBits(1)) {
  37824. alignToByte();
  37825. continue;
  37826. }
  37827. var layerNumber = packet.layerNumber;
  37828. var queue = [], codeblock;
  37829. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  37830. codeblock = packet.codeblocks[i];
  37831. var precinct = codeblock.precinct;
  37832. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  37833. var codeblockRow = codeblock.cby - precinct.cbyMin;
  37834. var codeblockIncluded = false;
  37835. var firstTimeInclusion = false;
  37836. var valueReady;
  37837. if ('included' in codeblock) {
  37838. codeblockIncluded = !!readBits(1);
  37839. } else {
  37840. // reading inclusion tree
  37841. precinct = codeblock.precinct;
  37842. var inclusionTree, zeroBitPlanesTree;
  37843. if ('inclusionTree' in precinct) {
  37844. inclusionTree = precinct.inclusionTree;
  37845. } else {
  37846. // building inclusion and zero bit-planes trees
  37847. var width = precinct.cbxMax - precinct.cbxMin + 1;
  37848. var height = precinct.cbyMax - precinct.cbyMin + 1;
  37849. inclusionTree = new InclusionTree(width, height, layerNumber);
  37850. zeroBitPlanesTree = new TagTree(width, height);
  37851. precinct.inclusionTree = inclusionTree;
  37852. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  37853. }
  37854. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  37855. while (true) {
  37856. if (readBits(1)) {
  37857. valueReady = !inclusionTree.nextLevel();
  37858. if (valueReady) {
  37859. codeblock.included = true;
  37860. codeblockIncluded = firstTimeInclusion = true;
  37861. break;
  37862. }
  37863. } else {
  37864. inclusionTree.incrementValue(layerNumber);
  37865. break;
  37866. }
  37867. }
  37868. }
  37869. }
  37870. if (!codeblockIncluded) {
  37871. continue;
  37872. }
  37873. if (firstTimeInclusion) {
  37874. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  37875. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  37876. while (true) {
  37877. if (readBits(1)) {
  37878. valueReady = !zeroBitPlanesTree.nextLevel();
  37879. if (valueReady) {
  37880. break;
  37881. }
  37882. } else {
  37883. zeroBitPlanesTree.incrementValue();
  37884. }
  37885. }
  37886. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  37887. }
  37888. var codingpasses = readCodingpasses();
  37889. while (readBits(1)) {
  37890. codeblock.Lblock++;
  37891. }
  37892. var codingpassesLog2 = log2(codingpasses);
  37893. // rounding down log2
  37894. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  37895. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  37896. var codedDataLength = readBits(bits);
  37897. queue.push({
  37898. codeblock: codeblock,
  37899. codingpasses: codingpasses,
  37900. dataLength: codedDataLength
  37901. });
  37902. }
  37903. alignToByte();
  37904. while (queue.length > 0) {
  37905. var packetItem = queue.shift();
  37906. codeblock = packetItem.codeblock;
  37907. if (!('data' in codeblock)) {
  37908. codeblock.data = [];
  37909. }
  37910. codeblock.data.push({
  37911. data: data,
  37912. start: offset + position,
  37913. end: offset + position + packetItem.dataLength,
  37914. codingpasses: packetItem.codingpasses
  37915. });
  37916. position += packetItem.dataLength;
  37917. }
  37918. }
  37919. return position;
  37920. }
  37921. function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
  37922. delta, mb, reversible, segmentationSymbolUsed) {
  37923. var x0 = subband.tbx0;
  37924. var y0 = subband.tby0;
  37925. var width = subband.tbx1 - subband.tbx0;
  37926. var codeblocks = subband.codeblocks;
  37927. var right = subband.type.charAt(0) === 'H' ? 1 : 0;
  37928. var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0;
  37929. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  37930. var codeblock = codeblocks[i];
  37931. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  37932. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  37933. if (blockWidth === 0 || blockHeight === 0) {
  37934. continue;
  37935. }
  37936. if (!('data' in codeblock)) {
  37937. continue;
  37938. }
  37939. var bitModel, currentCodingpassType;
  37940. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  37941. codeblock.zeroBitPlanes, mb);
  37942. currentCodingpassType = 2; // first bit plane starts from cleanup
  37943. // collect data
  37944. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  37945. var j, jj, dataItem;
  37946. for (j = 0, jj = data.length; j < jj; j++) {
  37947. dataItem = data[j];
  37948. totalLength += dataItem.end - dataItem.start;
  37949. codingpasses += dataItem.codingpasses;
  37950. }
  37951. var encodedData = new Uint8Array(totalLength);
  37952. var position = 0;
  37953. for (j = 0, jj = data.length; j < jj; j++) {
  37954. dataItem = data[j];
  37955. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  37956. encodedData.set(chunk, position);
  37957. position += chunk.length;
  37958. }
  37959. // decoding the item
  37960. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  37961. bitModel.setDecoder(decoder);
  37962. for (j = 0; j < codingpasses; j++) {
  37963. switch (currentCodingpassType) {
  37964. case 0:
  37965. bitModel.runSignificancePropogationPass();
  37966. break;
  37967. case 1:
  37968. bitModel.runMagnitudeRefinementPass();
  37969. break;
  37970. case 2:
  37971. bitModel.runCleanupPass();
  37972. if (segmentationSymbolUsed) {
  37973. bitModel.checkSegmentationSymbol();
  37974. }
  37975. break;
  37976. }
  37977. currentCodingpassType = (currentCodingpassType + 1) % 3;
  37978. }
  37979. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  37980. var sign = bitModel.coefficentsSign;
  37981. var magnitude = bitModel.coefficentsMagnitude;
  37982. var bitsDecoded = bitModel.bitsDecoded;
  37983. var magnitudeCorrection = reversible ? 0 : 0.5;
  37984. var k, n, nb;
  37985. position = 0;
  37986. // Do the interleaving of Section F.3.3 here, so we do not need
  37987. // to copy later. LL level is not interleaved, just copied.
  37988. var interleave = (subband.type !== 'LL');
  37989. for (j = 0; j < blockHeight; j++) {
  37990. var row = (offset / width) | 0; // row in the non-interleaved subband
  37991. var levelOffset = 2 * row * (levelWidth - width) + right + bottom;
  37992. for (k = 0; k < blockWidth; k++) {
  37993. n = magnitude[position];
  37994. if (n !== 0) {
  37995. n = (n + magnitudeCorrection) * delta;
  37996. if (sign[position] !== 0) {
  37997. n = -n;
  37998. }
  37999. nb = bitsDecoded[position];
  38000. var pos = interleave ? (levelOffset + (offset << 1)) : offset;
  38001. if (reversible && (nb >= mb)) {
  38002. coefficients[pos] = n;
  38003. } else {
  38004. coefficients[pos] = n * (1 << (mb - nb));
  38005. }
  38006. }
  38007. offset++;
  38008. position++;
  38009. }
  38010. offset += width - blockWidth;
  38011. }
  38012. }
  38013. }
  38014. function transformTile(context, tile, c) {
  38015. var component = tile.components[c];
  38016. var codingStyleParameters = component.codingStyleParameters;
  38017. var quantizationParameters = component.quantizationParameters;
  38018. var decompositionLevelsCount =
  38019. codingStyleParameters.decompositionLevelsCount;
  38020. var spqcds = quantizationParameters.SPqcds;
  38021. var scalarExpounded = quantizationParameters.scalarExpounded;
  38022. var guardBits = quantizationParameters.guardBits;
  38023. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  38024. var precision = context.components[c].precision;
  38025. var reversible = codingStyleParameters.reversibleTransformation;
  38026. var transform = (reversible ? new ReversibleTransform() :
  38027. new IrreversibleTransform());
  38028. var subbandCoefficients = [];
  38029. var b = 0;
  38030. for (var i = 0; i <= decompositionLevelsCount; i++) {
  38031. var resolution = component.resolutions[i];
  38032. var width = resolution.trx1 - resolution.trx0;
  38033. var height = resolution.try1 - resolution.try0;
  38034. // Allocate space for the whole sublevel.
  38035. var coefficients = new Float32Array(width * height);
  38036. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  38037. var mu, epsilon;
  38038. if (!scalarExpounded) {
  38039. // formula E-5
  38040. mu = spqcds[0].mu;
  38041. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  38042. } else {
  38043. mu = spqcds[b].mu;
  38044. epsilon = spqcds[b].epsilon;
  38045. b++;
  38046. }
  38047. var subband = resolution.subbands[j];
  38048. var gainLog2 = SubbandsGainLog2[subband.type];
  38049. // calulate quantization coefficient (Section E.1.1.1)
  38050. var delta = (reversible ? 1 :
  38051. Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048));
  38052. var mb = (guardBits + epsilon - 1);
  38053. // In the first resolution level, copyCoefficients will fill the
  38054. // whole array with coefficients. In the succeding passes,
  38055. // copyCoefficients will consecutively fill in the values that belong
  38056. // to the interleaved positions of the HL, LH, and HH coefficients.
  38057. // The LL coefficients will then be interleaved in Transform.iterate().
  38058. copyCoefficients(coefficients, width, height, subband, delta, mb,
  38059. reversible, segmentationSymbolUsed);
  38060. }
  38061. subbandCoefficients.push({
  38062. width: width,
  38063. height: height,
  38064. items: coefficients
  38065. });
  38066. }
  38067. var result = transform.calculate(subbandCoefficients,
  38068. component.tcx0, component.tcy0);
  38069. return {
  38070. left: component.tcx0,
  38071. top: component.tcy0,
  38072. width: result.width,
  38073. height: result.height,
  38074. items: result.items
  38075. };
  38076. }
  38077. function transformComponents(context) {
  38078. var siz = context.SIZ;
  38079. var components = context.components;
  38080. var componentsCount = siz.Csiz;
  38081. var resultImages = [];
  38082. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  38083. var tile = context.tiles[i];
  38084. var transformedTiles = [];
  38085. var c;
  38086. for (c = 0; c < componentsCount; c++) {
  38087. transformedTiles[c] = transformTile(context, tile, c);
  38088. }
  38089. var tile0 = transformedTiles[0];
  38090. var out = new Uint8Array(tile0.items.length * componentsCount);
  38091. var result = {
  38092. left: tile0.left,
  38093. top: tile0.top,
  38094. width: tile0.width,
  38095. height: tile0.height,
  38096. items: out
  38097. };
  38098. // Section G.2.2 Inverse multi component transform
  38099. var shift, offset, max, min, maxK;
  38100. var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val;
  38101. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  38102. var fourComponents = componentsCount === 4;
  38103. var y0items = transformedTiles[0].items;
  38104. var y1items = transformedTiles[1].items;
  38105. var y2items = transformedTiles[2].items;
  38106. var y3items = fourComponents ? transformedTiles[3].items : null;
  38107. // HACK: The multiple component transform formulas below assume that
  38108. // all components have the same precision. With this in mind, we
  38109. // compute shift and offset only once.
  38110. shift = components[0].precision - 8;
  38111. offset = (128 << shift) + 0.5;
  38112. max = 255 * (1 << shift);
  38113. maxK = max * 0.5;
  38114. min = -maxK;
  38115. var component0 = tile.components[0];
  38116. var alpha01 = componentsCount - 3;
  38117. jj = y0items.length;
  38118. if (!component0.codingStyleParameters.reversibleTransformation) {
  38119. // inverse irreversible multiple component transform
  38120. for (j = 0; j < jj; j++, pos += alpha01) {
  38121. y0 = y0items[j] + offset;
  38122. y1 = y1items[j];
  38123. y2 = y2items[j];
  38124. r = y0 + 1.402 * y2;
  38125. g = y0 - 0.34413 * y1 - 0.71414 * y2;
  38126. b = y0 + 1.772 * y1;
  38127. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  38128. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  38129. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  38130. }
  38131. } else {
  38132. // inverse reversible multiple component transform
  38133. for (j = 0; j < jj; j++, pos += alpha01) {
  38134. y0 = y0items[j] + offset;
  38135. y1 = y1items[j];
  38136. y2 = y2items[j];
  38137. g = y0 - ((y2 + y1) >> 2);
  38138. r = g + y2;
  38139. b = g + y1;
  38140. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  38141. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  38142. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  38143. }
  38144. }
  38145. if (fourComponents) {
  38146. for (j = 0, pos = 3; j < jj; j++, pos += 4) {
  38147. k = y3items[j];
  38148. out[pos] = k <= min ? 0 : k >= maxK ? 255 : (k + offset) >> shift;
  38149. }
  38150. }
  38151. } else { // no multi-component transform
  38152. for (c = 0; c < componentsCount; c++) {
  38153. var items = transformedTiles[c].items;
  38154. shift = components[c].precision - 8;
  38155. offset = (128 << shift) + 0.5;
  38156. max = (127.5 * (1 << shift));
  38157. min = -max;
  38158. for (pos = c, j = 0, jj = items.length; j < jj; j++) {
  38159. val = items[j];
  38160. out[pos] = val <= min ? 0 :
  38161. val >= max ? 255 : (val + offset) >> shift;
  38162. pos += componentsCount;
  38163. }
  38164. }
  38165. }
  38166. resultImages.push(result);
  38167. }
  38168. return resultImages;
  38169. }
  38170. function initializeTile(context, tileIndex) {
  38171. var siz = context.SIZ;
  38172. var componentsCount = siz.Csiz;
  38173. var tile = context.tiles[tileIndex];
  38174. for (var c = 0; c < componentsCount; c++) {
  38175. var component = tile.components[c];
  38176. var qcdOrQcc = (c in context.currentTile.QCC ?
  38177. context.currentTile.QCC[c] : context.currentTile.QCD);
  38178. component.quantizationParameters = qcdOrQcc;
  38179. var codOrCoc = (c in context.currentTile.COC ?
  38180. context.currentTile.COC[c] : context.currentTile.COD);
  38181. component.codingStyleParameters = codOrCoc;
  38182. }
  38183. tile.codingStyleDefaultParameters = context.currentTile.COD;
  38184. }
  38185. // Section B.10.2 Tag trees
  38186. var TagTree = (function TagTreeClosure() {
  38187. function TagTree(width, height) {
  38188. var levelsLength = log2(Math.max(width, height)) + 1;
  38189. this.levels = [];
  38190. for (var i = 0; i < levelsLength; i++) {
  38191. var level = {
  38192. width: width,
  38193. height: height,
  38194. items: []
  38195. };
  38196. this.levels.push(level);
  38197. width = Math.ceil(width / 2);
  38198. height = Math.ceil(height / 2);
  38199. }
  38200. }
  38201. TagTree.prototype = {
  38202. reset: function TagTree_reset(i, j) {
  38203. var currentLevel = 0, value = 0, level;
  38204. while (currentLevel < this.levels.length) {
  38205. level = this.levels[currentLevel];
  38206. var index = i + j * level.width;
  38207. if (index in level.items) {
  38208. value = level.items[index];
  38209. break;
  38210. }
  38211. level.index = index;
  38212. i >>= 1;
  38213. j >>= 1;
  38214. currentLevel++;
  38215. }
  38216. currentLevel--;
  38217. level = this.levels[currentLevel];
  38218. level.items[level.index] = value;
  38219. this.currentLevel = currentLevel;
  38220. delete this.value;
  38221. },
  38222. incrementValue: function TagTree_incrementValue() {
  38223. var level = this.levels[this.currentLevel];
  38224. level.items[level.index]++;
  38225. },
  38226. nextLevel: function TagTree_nextLevel() {
  38227. var currentLevel = this.currentLevel;
  38228. var level = this.levels[currentLevel];
  38229. var value = level.items[level.index];
  38230. currentLevel--;
  38231. if (currentLevel < 0) {
  38232. this.value = value;
  38233. return false;
  38234. }
  38235. this.currentLevel = currentLevel;
  38236. level = this.levels[currentLevel];
  38237. level.items[level.index] = value;
  38238. return true;
  38239. }
  38240. };
  38241. return TagTree;
  38242. })();
  38243. var InclusionTree = (function InclusionTreeClosure() {
  38244. function InclusionTree(width, height, defaultValue) {
  38245. var levelsLength = log2(Math.max(width, height)) + 1;
  38246. this.levels = [];
  38247. for (var i = 0; i < levelsLength; i++) {
  38248. var items = new Uint8Array(width * height);
  38249. for (var j = 0, jj = items.length; j < jj; j++) {
  38250. items[j] = defaultValue;
  38251. }
  38252. var level = {
  38253. width: width,
  38254. height: height,
  38255. items: items
  38256. };
  38257. this.levels.push(level);
  38258. width = Math.ceil(width / 2);
  38259. height = Math.ceil(height / 2);
  38260. }
  38261. }
  38262. InclusionTree.prototype = {
  38263. reset: function InclusionTree_reset(i, j, stopValue) {
  38264. var currentLevel = 0;
  38265. while (currentLevel < this.levels.length) {
  38266. var level = this.levels[currentLevel];
  38267. var index = i + j * level.width;
  38268. level.index = index;
  38269. var value = level.items[index];
  38270. if (value == 0xFF) {
  38271. break;
  38272. }
  38273. if (value > stopValue) {
  38274. this.currentLevel = currentLevel;
  38275. // already know about this one, propagating the value to top levels
  38276. this.propagateValues();
  38277. return false;
  38278. }
  38279. i >>= 1;
  38280. j >>= 1;
  38281. currentLevel++;
  38282. }
  38283. this.currentLevel = currentLevel - 1;
  38284. return true;
  38285. },
  38286. incrementValue: function InclusionTree_incrementValue(stopValue) {
  38287. var level = this.levels[this.currentLevel];
  38288. level.items[level.index] = stopValue + 1;
  38289. this.propagateValues();
  38290. },
  38291. propagateValues: function InclusionTree_propagateValues() {
  38292. var levelIndex = this.currentLevel;
  38293. var level = this.levels[levelIndex];
  38294. var currentValue = level.items[level.index];
  38295. while (--levelIndex >= 0) {
  38296. level = this.levels[levelIndex];
  38297. level.items[level.index] = currentValue;
  38298. }
  38299. },
  38300. nextLevel: function InclusionTree_nextLevel() {
  38301. var currentLevel = this.currentLevel;
  38302. var level = this.levels[currentLevel];
  38303. var value = level.items[level.index];
  38304. level.items[level.index] = 0xFF;
  38305. currentLevel--;
  38306. if (currentLevel < 0) {
  38307. return false;
  38308. }
  38309. this.currentLevel = currentLevel;
  38310. level = this.levels[currentLevel];
  38311. level.items[level.index] = value;
  38312. return true;
  38313. }
  38314. };
  38315. return InclusionTree;
  38316. })();
  38317. // Section D. Coefficient bit modeling
  38318. var BitModel = (function BitModelClosure() {
  38319. var UNIFORM_CONTEXT = 17;
  38320. var RUNLENGTH_CONTEXT = 18;
  38321. // Table D-1
  38322. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  38323. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  38324. var LLAndLHContextsLabel = new Uint8Array([
  38325. 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,
  38326. 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,
  38327. 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
  38328. ]);
  38329. var HLContextLabel = new Uint8Array([
  38330. 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,
  38331. 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,
  38332. 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
  38333. ]);
  38334. var HHContextLabel = new Uint8Array([
  38335. 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,
  38336. 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,
  38337. 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
  38338. ]);
  38339. function BitModel(width, height, subband, zeroBitPlanes, mb) {
  38340. this.width = width;
  38341. this.height = height;
  38342. this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
  38343. (subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel));
  38344. var coefficientCount = width * height;
  38345. // coefficients outside the encoding region treated as insignificant
  38346. // add border state cells for significanceState
  38347. this.neighborsSignificance = new Uint8Array(coefficientCount);
  38348. this.coefficentsSign = new Uint8Array(coefficientCount);
  38349. this.coefficentsMagnitude = mb > 14 ? new Uint32Array(coefficientCount) :
  38350. mb > 6 ? new Uint16Array(coefficientCount) :
  38351. new Uint8Array(coefficientCount);
  38352. this.processingFlags = new Uint8Array(coefficientCount);
  38353. var bitsDecoded = new Uint8Array(coefficientCount);
  38354. if (zeroBitPlanes !== 0) {
  38355. for (var i = 0; i < coefficientCount; i++) {
  38356. bitsDecoded[i] = zeroBitPlanes;
  38357. }
  38358. }
  38359. this.bitsDecoded = bitsDecoded;
  38360. this.reset();
  38361. }
  38362. BitModel.prototype = {
  38363. setDecoder: function BitModel_setDecoder(decoder) {
  38364. this.decoder = decoder;
  38365. },
  38366. reset: function BitModel_reset() {
  38367. // We have 17 contexts that are accessed via context labels,
  38368. // plus the uniform and runlength context.
  38369. this.contexts = new Int8Array(19);
  38370. // Contexts are packed into 1 byte:
  38371. // highest 7 bits carry the index, lowest bit carries mps
  38372. this.contexts[0] = (4 << 1) | 0;
  38373. this.contexts[UNIFORM_CONTEXT] = (46 << 1) | 0;
  38374. this.contexts[RUNLENGTH_CONTEXT] = (3 << 1) | 0;
  38375. },
  38376. setNeighborsSignificance:
  38377. function BitModel_setNeighborsSignificance(row, column, index) {
  38378. var neighborsSignificance = this.neighborsSignificance;
  38379. var width = this.width, height = this.height;
  38380. var left = (column > 0);
  38381. var right = (column + 1 < width);
  38382. var i;
  38383. if (row > 0) {
  38384. i = index - width;
  38385. if (left) {
  38386. neighborsSignificance[i - 1] += 0x10;
  38387. }
  38388. if (right) {
  38389. neighborsSignificance[i + 1] += 0x10;
  38390. }
  38391. neighborsSignificance[i] += 0x04;
  38392. }
  38393. if (row + 1 < height) {
  38394. i = index + width;
  38395. if (left) {
  38396. neighborsSignificance[i - 1] += 0x10;
  38397. }
  38398. if (right) {
  38399. neighborsSignificance[i + 1] += 0x10;
  38400. }
  38401. neighborsSignificance[i] += 0x04;
  38402. }
  38403. if (left) {
  38404. neighborsSignificance[index - 1] += 0x01;
  38405. }
  38406. if (right) {
  38407. neighborsSignificance[index + 1] += 0x01;
  38408. }
  38409. neighborsSignificance[index] |= 0x80;
  38410. },
  38411. runSignificancePropogationPass:
  38412. function BitModel_runSignificancePropogationPass() {
  38413. var decoder = this.decoder;
  38414. var width = this.width, height = this.height;
  38415. var coefficentsMagnitude = this.coefficentsMagnitude;
  38416. var coefficentsSign = this.coefficentsSign;
  38417. var neighborsSignificance = this.neighborsSignificance;
  38418. var processingFlags = this.processingFlags;
  38419. var contexts = this.contexts;
  38420. var labels = this.contextLabelTable;
  38421. var bitsDecoded = this.bitsDecoded;
  38422. var processedInverseMask = ~1;
  38423. var processedMask = 1;
  38424. var firstMagnitudeBitMask = 2;
  38425. for (var i0 = 0; i0 < height; i0 += 4) {
  38426. for (var j = 0; j < width; j++) {
  38427. var index = i0 * width + j;
  38428. for (var i1 = 0; i1 < 4; i1++, index += width) {
  38429. var i = i0 + i1;
  38430. if (i >= height) {
  38431. break;
  38432. }
  38433. // clear processed flag first
  38434. processingFlags[index] &= processedInverseMask;
  38435. if (coefficentsMagnitude[index] ||
  38436. !neighborsSignificance[index]) {
  38437. continue;
  38438. }
  38439. var contextLabel = labels[neighborsSignificance[index]];
  38440. var decision = decoder.readBit(contexts, contextLabel);
  38441. if (decision) {
  38442. var sign = this.decodeSignBit(i, j, index);
  38443. coefficentsSign[index] = sign;
  38444. coefficentsMagnitude[index] = 1;
  38445. this.setNeighborsSignificance(i, j, index);
  38446. processingFlags[index] |= firstMagnitudeBitMask;
  38447. }
  38448. bitsDecoded[index]++;
  38449. processingFlags[index] |= processedMask;
  38450. }
  38451. }
  38452. }
  38453. },
  38454. decodeSignBit: function BitModel_decodeSignBit(row, column, index) {
  38455. var width = this.width, height = this.height;
  38456. var coefficentsMagnitude = this.coefficentsMagnitude;
  38457. var coefficentsSign = this.coefficentsSign;
  38458. var contribution, sign0, sign1, significance1;
  38459. var contextLabel, decoded;
  38460. // calculate horizontal contribution
  38461. significance1 = (column > 0 && coefficentsMagnitude[index - 1] !== 0);
  38462. if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) {
  38463. sign1 = coefficentsSign[index + 1];
  38464. if (significance1) {
  38465. sign0 = coefficentsSign[index - 1];
  38466. contribution = 1 - sign1 - sign0;
  38467. } else {
  38468. contribution = 1 - sign1 - sign1;
  38469. }
  38470. } else if (significance1) {
  38471. sign0 = coefficentsSign[index - 1];
  38472. contribution = 1 - sign0 - sign0;
  38473. } else {
  38474. contribution = 0;
  38475. }
  38476. var horizontalContribution = 3 * contribution;
  38477. // calculate vertical contribution and combine with the horizontal
  38478. significance1 = (row > 0 && coefficentsMagnitude[index - width] !== 0);
  38479. if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) {
  38480. sign1 = coefficentsSign[index + width];
  38481. if (significance1) {
  38482. sign0 = coefficentsSign[index - width];
  38483. contribution = 1 - sign1 - sign0 + horizontalContribution;
  38484. } else {
  38485. contribution = 1 - sign1 - sign1 + horizontalContribution;
  38486. }
  38487. } else if (significance1) {
  38488. sign0 = coefficentsSign[index - width];
  38489. contribution = 1 - sign0 - sign0 + horizontalContribution;
  38490. } else {
  38491. contribution = horizontalContribution;
  38492. }
  38493. if (contribution >= 0) {
  38494. contextLabel = 9 + contribution;
  38495. decoded = this.decoder.readBit(this.contexts, contextLabel);
  38496. } else {
  38497. contextLabel = 9 - contribution;
  38498. decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1;
  38499. }
  38500. return decoded;
  38501. },
  38502. runMagnitudeRefinementPass:
  38503. function BitModel_runMagnitudeRefinementPass() {
  38504. var decoder = this.decoder;
  38505. var width = this.width, height = this.height;
  38506. var coefficentsMagnitude = this.coefficentsMagnitude;
  38507. var neighborsSignificance = this.neighborsSignificance;
  38508. var contexts = this.contexts;
  38509. var bitsDecoded = this.bitsDecoded;
  38510. var processingFlags = this.processingFlags;
  38511. var processedMask = 1;
  38512. var firstMagnitudeBitMask = 2;
  38513. var length = width * height;
  38514. var width4 = width * 4;
  38515. for (var index0 = 0, indexNext; index0 < length; index0 = indexNext) {
  38516. indexNext = Math.min(length, index0 + width4);
  38517. for (var j = 0; j < width; j++) {
  38518. for (var index = index0 + j; index < indexNext; index += width) {
  38519. // significant but not those that have just become
  38520. if (!coefficentsMagnitude[index] ||
  38521. (processingFlags[index] & processedMask) !== 0) {
  38522. continue;
  38523. }
  38524. var contextLabel = 16;
  38525. if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) {
  38526. processingFlags[index] ^= firstMagnitudeBitMask;
  38527. // first refinement
  38528. var significance = neighborsSignificance[index] & 127;
  38529. contextLabel = significance === 0 ? 15 : 14;
  38530. }
  38531. var bit = decoder.readBit(contexts, contextLabel);
  38532. coefficentsMagnitude[index] =
  38533. (coefficentsMagnitude[index] << 1) | bit;
  38534. bitsDecoded[index]++;
  38535. processingFlags[index] |= processedMask;
  38536. }
  38537. }
  38538. }
  38539. },
  38540. runCleanupPass: function BitModel_runCleanupPass() {
  38541. var decoder = this.decoder;
  38542. var width = this.width, height = this.height;
  38543. var neighborsSignificance = this.neighborsSignificance;
  38544. var coefficentsMagnitude = this.coefficentsMagnitude;
  38545. var coefficentsSign = this.coefficentsSign;
  38546. var contexts = this.contexts;
  38547. var labels = this.contextLabelTable;
  38548. var bitsDecoded = this.bitsDecoded;
  38549. var processingFlags = this.processingFlags;
  38550. var processedMask = 1;
  38551. var firstMagnitudeBitMask = 2;
  38552. var oneRowDown = width;
  38553. var twoRowsDown = width * 2;
  38554. var threeRowsDown = width * 3;
  38555. var iNext;
  38556. for (var i0 = 0; i0 < height; i0 = iNext) {
  38557. iNext = Math.min(i0 + 4, height);
  38558. var indexBase = i0 * width;
  38559. var checkAllEmpty = i0 + 3 < height;
  38560. for (var j = 0; j < width; j++) {
  38561. var index0 = indexBase + j;
  38562. // using the property: labels[neighborsSignificance[index]] == 0
  38563. // when neighborsSignificance[index] == 0
  38564. var allEmpty = (checkAllEmpty &&
  38565. processingFlags[index0] === 0 &&
  38566. processingFlags[index0 + oneRowDown] === 0 &&
  38567. processingFlags[index0 + twoRowsDown] === 0 &&
  38568. processingFlags[index0 + threeRowsDown] === 0 &&
  38569. neighborsSignificance[index0] === 0 &&
  38570. neighborsSignificance[index0 + oneRowDown] === 0 &&
  38571. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  38572. neighborsSignificance[index0 + threeRowsDown] === 0);
  38573. var i1 = 0, index = index0;
  38574. var i = i0, sign;
  38575. if (allEmpty) {
  38576. var hasSignificantCoefficent =
  38577. decoder.readBit(contexts, RUNLENGTH_CONTEXT);
  38578. if (!hasSignificantCoefficent) {
  38579. bitsDecoded[index0]++;
  38580. bitsDecoded[index0 + oneRowDown]++;
  38581. bitsDecoded[index0 + twoRowsDown]++;
  38582. bitsDecoded[index0 + threeRowsDown]++;
  38583. continue; // next column
  38584. }
  38585. i1 = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38586. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38587. if (i1 !== 0) {
  38588. i = i0 + i1;
  38589. index += i1 * width;
  38590. }
  38591. sign = this.decodeSignBit(i, j, index);
  38592. coefficentsSign[index] = sign;
  38593. coefficentsMagnitude[index] = 1;
  38594. this.setNeighborsSignificance(i, j, index);
  38595. processingFlags[index] |= firstMagnitudeBitMask;
  38596. index = index0;
  38597. for (var i2 = i0; i2 <= i; i2++, index += width) {
  38598. bitsDecoded[index]++;
  38599. }
  38600. i1++;
  38601. }
  38602. for (i = i0 + i1; i < iNext; i++, index += width) {
  38603. if (coefficentsMagnitude[index] ||
  38604. (processingFlags[index] & processedMask) !== 0) {
  38605. continue;
  38606. }
  38607. var contextLabel = labels[neighborsSignificance[index]];
  38608. var decision = decoder.readBit(contexts, contextLabel);
  38609. if (decision === 1) {
  38610. sign = this.decodeSignBit(i, j, index);
  38611. coefficentsSign[index] = sign;
  38612. coefficentsMagnitude[index] = 1;
  38613. this.setNeighborsSignificance(i, j, index);
  38614. processingFlags[index] |= firstMagnitudeBitMask;
  38615. }
  38616. bitsDecoded[index]++;
  38617. }
  38618. }
  38619. }
  38620. },
  38621. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  38622. var decoder = this.decoder;
  38623. var contexts = this.contexts;
  38624. var symbol = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 3) |
  38625. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 2) |
  38626. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38627. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38628. if (symbol != 0xA) {
  38629. throw 'Invalid segmentation symbol';
  38630. }
  38631. }
  38632. };
  38633. return BitModel;
  38634. })();
  38635. // Section F, Discrete wavelet transformation
  38636. var Transform = (function TransformClosure() {
  38637. function Transform() {}
  38638. Transform.prototype.calculate =
  38639. function transformCalculate(subbands, u0, v0) {
  38640. var ll = subbands[0];
  38641. for (var i = 1, ii = subbands.length; i < ii; i++) {
  38642. ll = this.iterate(ll, subbands[i], u0, v0);
  38643. }
  38644. return ll;
  38645. };
  38646. Transform.prototype.extend = function extend(buffer, offset, size) {
  38647. // Section F.3.7 extending... using max extension of 4
  38648. var i1 = offset - 1, j1 = offset + 1;
  38649. var i2 = offset + size - 2, j2 = offset + size;
  38650. buffer[i1--] = buffer[j1++];
  38651. buffer[j2++] = buffer[i2--];
  38652. buffer[i1--] = buffer[j1++];
  38653. buffer[j2++] = buffer[i2--];
  38654. buffer[i1--] = buffer[j1++];
  38655. buffer[j2++] = buffer[i2--];
  38656. buffer[i1] = buffer[j1];
  38657. buffer[j2] = buffer[i2];
  38658. };
  38659. Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
  38660. u0, v0) {
  38661. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  38662. var width = hl_lh_hh.width;
  38663. var height = hl_lh_hh.height;
  38664. var items = hl_lh_hh.items;
  38665. var i, j, k, l, u, v;
  38666. // Interleave LL according to Section F.3.3
  38667. for (k = 0, i = 0; i < llHeight; i++) {
  38668. l = i * 2 * width;
  38669. for (j = 0; j < llWidth; j++, k++, l += 2) {
  38670. items[l] = llItems[k];
  38671. }
  38672. }
  38673. // The LL band is not needed anymore.
  38674. llItems = ll.items = null;
  38675. var bufferPadding = 4;
  38676. var rowBuffer = new Float32Array(width + 2 * bufferPadding);
  38677. // Section F.3.4 HOR_SR
  38678. if (width === 1) {
  38679. // if width = 1, when u0 even keep items as is, when odd divide by 2
  38680. if ((u0 & 1) !== 0) {
  38681. for (v = 0, k = 0; v < height; v++, k += width) {
  38682. items[k] *= 0.5;
  38683. }
  38684. }
  38685. } else {
  38686. for (v = 0, k = 0; v < height; v++, k += width) {
  38687. rowBuffer.set(items.subarray(k, k + width), bufferPadding);
  38688. this.extend(rowBuffer, bufferPadding, width);
  38689. this.filter(rowBuffer, bufferPadding, width);
  38690. items.set(
  38691. rowBuffer.subarray(bufferPadding, bufferPadding + width),
  38692. k);
  38693. }
  38694. }
  38695. // Accesses to the items array can take long, because it may not fit into
  38696. // CPU cache and has to be fetched from main memory. Since subsequent
  38697. // accesses to the items array are not local when reading columns, we
  38698. // have a cache miss every time. To reduce cache misses, get up to
  38699. // 'numBuffers' items at a time and store them into the individual
  38700. // buffers. The colBuffers should be small enough to fit into CPU cache.
  38701. var numBuffers = 16;
  38702. var colBuffers = [];
  38703. for (i = 0; i < numBuffers; i++) {
  38704. colBuffers.push(new Float32Array(height + 2 * bufferPadding));
  38705. }
  38706. var b, currentBuffer = 0;
  38707. ll = bufferPadding + height;
  38708. // Section F.3.5 VER_SR
  38709. if (height === 1) {
  38710. // if height = 1, when v0 even keep items as is, when odd divide by 2
  38711. if ((v0 & 1) !== 0) {
  38712. for (u = 0; u < width; u++) {
  38713. items[u] *= 0.5;
  38714. }
  38715. }
  38716. } else {
  38717. for (u = 0; u < width; u++) {
  38718. // if we ran out of buffers, copy several image columns at once
  38719. if (currentBuffer === 0) {
  38720. numBuffers = Math.min(width - u, numBuffers);
  38721. for (k = u, l = bufferPadding; l < ll; k += width, l++) {
  38722. for (b = 0; b < numBuffers; b++) {
  38723. colBuffers[b][l] = items[k + b];
  38724. }
  38725. }
  38726. currentBuffer = numBuffers;
  38727. }
  38728. currentBuffer--;
  38729. var buffer = colBuffers[currentBuffer];
  38730. this.extend(buffer, bufferPadding, height);
  38731. this.filter(buffer, bufferPadding, height);
  38732. // If this is last buffer in this group of buffers, flush all buffers.
  38733. if (currentBuffer === 0) {
  38734. k = u - numBuffers + 1;
  38735. for (l = bufferPadding; l < ll; k += width, l++) {
  38736. for (b = 0; b < numBuffers; b++) {
  38737. items[k + b] = colBuffers[b][l];
  38738. }
  38739. }
  38740. }
  38741. }
  38742. }
  38743. return {
  38744. width: width,
  38745. height: height,
  38746. items: items
  38747. };
  38748. };
  38749. return Transform;
  38750. })();
  38751. // Section 3.8.2 Irreversible 9-7 filter
  38752. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  38753. function IrreversibleTransform() {
  38754. Transform.call(this);
  38755. }
  38756. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  38757. IrreversibleTransform.prototype.filter =
  38758. function irreversibleTransformFilter(x, offset, length) {
  38759. var len = length >> 1;
  38760. offset = offset | 0;
  38761. var j, n, current, next;
  38762. var alpha = -1.586134342059924;
  38763. var beta = -0.052980118572961;
  38764. var gamma = 0.882911075530934;
  38765. var delta = 0.443506852043971;
  38766. var K = 1.230174104914001;
  38767. var K_ = 1 / K;
  38768. // step 1 is combined with step 3
  38769. // step 2
  38770. j = offset - 3;
  38771. for (n = len + 4; n--; j += 2) {
  38772. x[j] *= K_;
  38773. }
  38774. // step 1 & 3
  38775. j = offset - 2;
  38776. current = delta * x[j -1];
  38777. for (n = len + 3; n--; j += 2) {
  38778. next = delta * x[j + 1];
  38779. x[j] = K * x[j] - current - next;
  38780. if (n--) {
  38781. j += 2;
  38782. current = delta * x[j + 1];
  38783. x[j] = K * x[j] - current - next;
  38784. } else {
  38785. break;
  38786. }
  38787. }
  38788. // step 4
  38789. j = offset - 1;
  38790. current = gamma * x[j - 1];
  38791. for (n = len + 2; n--; j += 2) {
  38792. next = gamma * x[j + 1];
  38793. x[j] -= current + next;
  38794. if (n--) {
  38795. j += 2;
  38796. current = gamma * x[j + 1];
  38797. x[j] -= current + next;
  38798. } else {
  38799. break;
  38800. }
  38801. }
  38802. // step 5
  38803. j = offset;
  38804. current = beta * x[j - 1];
  38805. for (n = len + 1; n--; j += 2) {
  38806. next = beta * x[j + 1];
  38807. x[j] -= current + next;
  38808. if (n--) {
  38809. j += 2;
  38810. current = beta * x[j + 1];
  38811. x[j] -= current + next;
  38812. } else {
  38813. break;
  38814. }
  38815. }
  38816. // step 6
  38817. if (len !== 0) {
  38818. j = offset + 1;
  38819. current = alpha * x[j - 1];
  38820. for (n = len; n--; j += 2) {
  38821. next = alpha * x[j + 1];
  38822. x[j] -= current + next;
  38823. if (n--) {
  38824. j += 2;
  38825. current = alpha * x[j + 1];
  38826. x[j] -= current + next;
  38827. } else {
  38828. break;
  38829. }
  38830. }
  38831. }
  38832. };
  38833. return IrreversibleTransform;
  38834. })();
  38835. // Section 3.8.1 Reversible 5-3 filter
  38836. var ReversibleTransform = (function ReversibleTransformClosure() {
  38837. function ReversibleTransform() {
  38838. Transform.call(this);
  38839. }
  38840. ReversibleTransform.prototype = Object.create(Transform.prototype);
  38841. ReversibleTransform.prototype.filter =
  38842. function reversibleTransformFilter(x, offset, length) {
  38843. var len = length >> 1;
  38844. offset = offset | 0;
  38845. var j, n;
  38846. for (j = offset, n = len + 1; n--; j += 2) {
  38847. x[j] -= (x[j - 1] + x[j + 1] + 2) >> 2;
  38848. }
  38849. for (j = offset + 1, n = len; n--; j += 2) {
  38850. x[j] += (x[j - 1] + x[j + 1]) >> 1;
  38851. }
  38852. };
  38853. return ReversibleTransform;
  38854. })();
  38855. return JpxImage;
  38856. })();
  38857. var Jbig2Image = (function Jbig2ImageClosure() {
  38858. // Utility data structures
  38859. function ContextCache() {}
  38860. ContextCache.prototype = {
  38861. getContexts: function(id) {
  38862. if (id in this) {
  38863. return this[id];
  38864. }
  38865. return (this[id] = new Int8Array(1 << 16));
  38866. }
  38867. };
  38868. function DecodingContext(data, start, end) {
  38869. this.data = data;
  38870. this.start = start;
  38871. this.end = end;
  38872. }
  38873. DecodingContext.prototype = {
  38874. get decoder() {
  38875. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  38876. return shadow(this, 'decoder', decoder);
  38877. },
  38878. get contextCache() {
  38879. var cache = new ContextCache();
  38880. return shadow(this, 'contextCache', cache);
  38881. }
  38882. };
  38883. // Annex A. Arithmetic Integer Decoding Procedure
  38884. // A.2 Procedure for decoding values
  38885. function decodeInteger(contextCache, procedure, decoder) {
  38886. var contexts = contextCache.getContexts(procedure);
  38887. var prev = 1;
  38888. function readBits(length) {
  38889. var v = 0;
  38890. for (var i = 0; i < length; i++) {
  38891. var bit = decoder.readBit(contexts, prev);
  38892. prev = (prev < 256 ? (prev << 1) | bit :
  38893. (((prev << 1) | bit) & 511) | 256);
  38894. v = (v << 1) | bit;
  38895. }
  38896. return v >>> 0;
  38897. }
  38898. var sign = readBits(1);
  38899. var value = readBits(1) ?
  38900. (readBits(1) ?
  38901. (readBits(1) ?
  38902. (readBits(1) ?
  38903. (readBits(1) ?
  38904. (readBits(32) + 4436) :
  38905. readBits(12) + 340) :
  38906. readBits(8) + 84) :
  38907. readBits(6) + 20) :
  38908. readBits(4) + 4) :
  38909. readBits(2);
  38910. return (sign === 0 ? value : (value > 0 ? -value : null));
  38911. }
  38912. // A.3 The IAID decoding procedure
  38913. function decodeIAID(contextCache, decoder, codeLength) {
  38914. var contexts = contextCache.getContexts('IAID');
  38915. var prev = 1;
  38916. for (var i = 0; i < codeLength; i++) {
  38917. var bit = decoder.readBit(contexts, prev);
  38918. prev = (prev << 1) | bit;
  38919. }
  38920. if (codeLength < 31) {
  38921. return prev & ((1 << codeLength) - 1);
  38922. }
  38923. return prev & 0x7FFFFFFF;
  38924. }
  38925. // 7.3 Segment types
  38926. var SegmentTypes = [
  38927. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  38928. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  38929. null, null, null, null, null, 'patternDictionary', null, null, null,
  38930. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  38931. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  38932. null, null, null, null, null, 'IntermediateGenericRegion', null,
  38933. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  38934. 'IntermediateGenericRefinementRegion', null,
  38935. 'ImmediateGenericRefinementRegion',
  38936. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  38937. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  38938. 'Tables', null, null, null, null, null, null, null, null,
  38939. 'Extension'
  38940. ];
  38941. var CodingTemplates = [
  38942. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  38943. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: 2, y: -1},
  38944. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  38945. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  38946. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  38947. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  38948. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  38949. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  38950. {x: -1, y: 0}],
  38951. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  38952. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  38953. ];
  38954. var RefinementTemplates = [
  38955. {
  38956. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  38957. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  38958. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  38959. },
  38960. {
  38961. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  38962. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  38963. {x: 0, y: 1}, {x: 1, y: 1}]
  38964. }
  38965. ];
  38966. var ReusedContexts = [
  38967. 0x1CD3, // '00111001101' (template) + '0011' (at),
  38968. 0x079A, // '001111001101' + '0',
  38969. 0x00E3, // '001110001' + '1',
  38970. 0x018B // '011000101' + '1'
  38971. ];
  38972. var RefinementReusedContexts = [
  38973. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  38974. 0x0008 // '0000' + '001000'
  38975. ];
  38976. // 6.2 Generic Region Decoding Procedure
  38977. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  38978. decodingContext) {
  38979. if (mmr) {
  38980. error('JBIG2 error: MMR encoding is not supported');
  38981. }
  38982. var useskip = !!skip;
  38983. var template = CodingTemplates[templateIndex].concat(at);
  38984. // Sorting is non-standard, and it is not required. But sorting increases
  38985. // the number of template bits that can be reused from the previous
  38986. // contextLabel in the main loop.
  38987. template.sort(function (a, b) {
  38988. return (a.y - b.y) || (a.x - b.x);
  38989. });
  38990. var templateLength = template.length;
  38991. var templateX = new Int8Array(templateLength);
  38992. var templateY = new Int8Array(templateLength);
  38993. var changingTemplateEntries = [];
  38994. var reuseMask = 0, minX = 0, maxX = 0, minY = 0;
  38995. var c, k;
  38996. for (k = 0; k < templateLength; k++) {
  38997. templateX[k] = template[k].x;
  38998. templateY[k] = template[k].y;
  38999. minX = Math.min(minX, template[k].x);
  39000. maxX = Math.max(maxX, template[k].x);
  39001. minY = Math.min(minY, template[k].y);
  39002. // Check if the template pixel appears in two consecutive context labels,
  39003. // so it can be reused. Otherwise, we add it to the list of changing
  39004. // template entries.
  39005. if (k < templateLength - 1 &&
  39006. template[k].y === template[k + 1].y &&
  39007. template[k].x === template[k + 1].x - 1) {
  39008. reuseMask |= 1 << (templateLength - 1 - k);
  39009. } else {
  39010. changingTemplateEntries.push(k);
  39011. }
  39012. }
  39013. var changingEntriesLength = changingTemplateEntries.length;
  39014. var changingTemplateX = new Int8Array(changingEntriesLength);
  39015. var changingTemplateY = new Int8Array(changingEntriesLength);
  39016. var changingTemplateBit = new Uint16Array(changingEntriesLength);
  39017. for (c = 0; c < changingEntriesLength; c++) {
  39018. k = changingTemplateEntries[c];
  39019. changingTemplateX[c] = template[k].x;
  39020. changingTemplateY[c] = template[k].y;
  39021. changingTemplateBit[c] = 1 << (templateLength - 1 - k);
  39022. }
  39023. // Get the safe bounding box edges from the width, height, minX, maxX, minY
  39024. var sbb_left = -minX;
  39025. var sbb_top = -minY;
  39026. var sbb_right = width - maxX;
  39027. var pseudoPixelContext = ReusedContexts[templateIndex];
  39028. var row = new Uint8Array(width);
  39029. var bitmap = [];
  39030. var decoder = decodingContext.decoder;
  39031. var contexts = decodingContext.contextCache.getContexts('GB');
  39032. var ltp = 0, j, i0, j0, contextLabel = 0, bit, shift;
  39033. for (var i = 0; i < height; i++) {
  39034. if (prediction) {
  39035. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  39036. ltp ^= sltp;
  39037. if (ltp) {
  39038. bitmap.push(row); // duplicate previous row
  39039. continue;
  39040. }
  39041. }
  39042. row = new Uint8Array(row);
  39043. bitmap.push(row);
  39044. for (j = 0; j < width; j++) {
  39045. if (useskip && skip[i][j]) {
  39046. row[j] = 0;
  39047. continue;
  39048. }
  39049. // Are we in the middle of a scanline, so we can reuse contextLabel
  39050. // bits?
  39051. if (j >= sbb_left && j < sbb_right && i >= sbb_top) {
  39052. // If yes, we can just shift the bits that are reusable and only
  39053. // fetch the remaining ones.
  39054. contextLabel = (contextLabel << 1) & reuseMask;
  39055. for (k = 0; k < changingEntriesLength; k++) {
  39056. i0 = i + changingTemplateY[k];
  39057. j0 = j + changingTemplateX[k];
  39058. bit = bitmap[i0][j0];
  39059. if (bit) {
  39060. bit = changingTemplateBit[k];
  39061. contextLabel |= bit;
  39062. }
  39063. }
  39064. } else {
  39065. // compute the contextLabel from scratch
  39066. contextLabel = 0;
  39067. shift = templateLength - 1;
  39068. for (k = 0; k < templateLength; k++, shift--) {
  39069. j0 = j + templateX[k];
  39070. if (j0 >= 0 && j0 < width) {
  39071. i0 = i + templateY[k];
  39072. if (i0 >= 0) {
  39073. bit = bitmap[i0][j0];
  39074. if (bit) {
  39075. contextLabel |= bit << shift;
  39076. }
  39077. }
  39078. }
  39079. }
  39080. }
  39081. var pixel = decoder.readBit(contexts, contextLabel);
  39082. row[j] = pixel;
  39083. }
  39084. }
  39085. return bitmap;
  39086. }
  39087. // 6.3.2 Generic Refinement Region Decoding Procedure
  39088. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  39089. offsetX, offsetY, prediction, at,
  39090. decodingContext) {
  39091. var codingTemplate = RefinementTemplates[templateIndex].coding;
  39092. if (templateIndex === 0) {
  39093. codingTemplate = codingTemplate.concat([at[0]]);
  39094. }
  39095. var codingTemplateLength = codingTemplate.length;
  39096. var codingTemplateX = new Int32Array(codingTemplateLength);
  39097. var codingTemplateY = new Int32Array(codingTemplateLength);
  39098. var k;
  39099. for (k = 0; k < codingTemplateLength; k++) {
  39100. codingTemplateX[k] = codingTemplate[k].x;
  39101. codingTemplateY[k] = codingTemplate[k].y;
  39102. }
  39103. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  39104. if (templateIndex === 0) {
  39105. referenceTemplate = referenceTemplate.concat([at[1]]);
  39106. }
  39107. var referenceTemplateLength = referenceTemplate.length;
  39108. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  39109. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  39110. for (k = 0; k < referenceTemplateLength; k++) {
  39111. referenceTemplateX[k] = referenceTemplate[k].x;
  39112. referenceTemplateY[k] = referenceTemplate[k].y;
  39113. }
  39114. var referenceWidth = referenceBitmap[0].length;
  39115. var referenceHeight = referenceBitmap.length;
  39116. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  39117. var bitmap = [];
  39118. var decoder = decodingContext.decoder;
  39119. var contexts = decodingContext.contextCache.getContexts('GR');
  39120. var ltp = 0;
  39121. for (var i = 0; i < height; i++) {
  39122. if (prediction) {
  39123. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  39124. ltp ^= sltp;
  39125. if (ltp) {
  39126. error('JBIG2 error: prediction is not supported');
  39127. }
  39128. }
  39129. var row = new Uint8Array(width);
  39130. bitmap.push(row);
  39131. for (var j = 0; j < width; j++) {
  39132. var i0, j0;
  39133. var contextLabel = 0;
  39134. for (k = 0; k < codingTemplateLength; k++) {
  39135. i0 = i + codingTemplateY[k];
  39136. j0 = j + codingTemplateX[k];
  39137. if (i0 < 0 || j0 < 0 || j0 >= width) {
  39138. contextLabel <<= 1; // out of bound pixel
  39139. } else {
  39140. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  39141. }
  39142. }
  39143. for (k = 0; k < referenceTemplateLength; k++) {
  39144. i0 = i + referenceTemplateY[k] + offsetY;
  39145. j0 = j + referenceTemplateX[k] + offsetX;
  39146. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 ||
  39147. j0 >= referenceWidth) {
  39148. contextLabel <<= 1; // out of bound pixel
  39149. } else {
  39150. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  39151. }
  39152. }
  39153. var pixel = decoder.readBit(contexts, contextLabel);
  39154. row[j] = pixel;
  39155. }
  39156. }
  39157. return bitmap;
  39158. }
  39159. // 6.5.5 Decoding the symbol dictionary
  39160. function decodeSymbolDictionary(huffman, refinement, symbols,
  39161. numberOfNewSymbols, numberOfExportedSymbols,
  39162. huffmanTables, templateIndex, at,
  39163. refinementTemplateIndex, refinementAt,
  39164. decodingContext) {
  39165. if (huffman) {
  39166. error('JBIG2 error: huffman is not supported');
  39167. }
  39168. var newSymbols = [];
  39169. var currentHeight = 0;
  39170. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  39171. var decoder = decodingContext.decoder;
  39172. var contextCache = decodingContext.contextCache;
  39173. while (newSymbols.length < numberOfNewSymbols) {
  39174. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  39175. currentHeight += deltaHeight;
  39176. var currentWidth = 0;
  39177. var totalWidth = 0;
  39178. while (true) {
  39179. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  39180. if (deltaWidth === null) {
  39181. break; // OOB
  39182. }
  39183. currentWidth += deltaWidth;
  39184. totalWidth += currentWidth;
  39185. var bitmap;
  39186. if (refinement) {
  39187. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  39188. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  39189. if (numberOfInstances > 1) {
  39190. bitmap = decodeTextRegion(huffman, refinement,
  39191. currentWidth, currentHeight, 0,
  39192. numberOfInstances, 1, //strip size
  39193. symbols.concat(newSymbols),
  39194. symbolCodeLength,
  39195. 0, //transposed
  39196. 0, //ds offset
  39197. 1, //top left 7.4.3.1.1
  39198. 0, //OR operator
  39199. huffmanTables,
  39200. refinementTemplateIndex, refinementAt,
  39201. decodingContext);
  39202. } else {
  39203. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39204. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39205. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39206. var symbol = (symbolId < symbols.length ? symbols[symbolId] :
  39207. newSymbols[symbolId - symbols.length]);
  39208. bitmap = decodeRefinement(currentWidth, currentHeight,
  39209. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  39210. decodingContext);
  39211. }
  39212. } else {
  39213. // 6.5.8.1 Direct-coded symbol bitmap
  39214. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  39215. templateIndex, false, null, at, decodingContext);
  39216. }
  39217. newSymbols.push(bitmap);
  39218. }
  39219. }
  39220. // 6.5.10 Exported symbols
  39221. var exportedSymbols = [];
  39222. var flags = [], currentFlag = false;
  39223. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  39224. while (flags.length < totalSymbolsLength) {
  39225. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  39226. while (runLength--) {
  39227. flags.push(currentFlag);
  39228. }
  39229. currentFlag = !currentFlag;
  39230. }
  39231. for (var i = 0, ii = symbols.length; i < ii; i++) {
  39232. if (flags[i]) {
  39233. exportedSymbols.push(symbols[i]);
  39234. }
  39235. }
  39236. for (var j = 0; j < numberOfNewSymbols; i++, j++) {
  39237. if (flags[i]) {
  39238. exportedSymbols.push(newSymbols[j]);
  39239. }
  39240. }
  39241. return exportedSymbols;
  39242. }
  39243. function decodeTextRegion(huffman, refinement, width, height,
  39244. defaultPixelValue, numberOfSymbolInstances,
  39245. stripSize, inputSymbols, symbolCodeLength,
  39246. transposed, dsOffset, referenceCorner,
  39247. combinationOperator, huffmanTables,
  39248. refinementTemplateIndex, refinementAt,
  39249. decodingContext) {
  39250. if (huffman) {
  39251. error('JBIG2 error: huffman is not supported');
  39252. }
  39253. // Prepare bitmap
  39254. var bitmap = [];
  39255. var i, row;
  39256. for (i = 0; i < height; i++) {
  39257. row = new Uint8Array(width);
  39258. if (defaultPixelValue) {
  39259. for (var j = 0; j < width; j++) {
  39260. row[j] = defaultPixelValue;
  39261. }
  39262. }
  39263. bitmap.push(row);
  39264. }
  39265. var decoder = decodingContext.decoder;
  39266. var contextCache = decodingContext.contextCache;
  39267. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39268. var firstS = 0;
  39269. i = 0;
  39270. while (i < numberOfSymbolInstances) {
  39271. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39272. stripT += deltaT;
  39273. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  39274. firstS += deltaFirstS;
  39275. var currentS = firstS;
  39276. do {
  39277. var currentT = (stripSize == 1 ? 0 :
  39278. decodeInteger(contextCache, 'IAIT', decoder)); // 6.4.9
  39279. var t = stripSize * stripT + currentT;
  39280. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39281. var applyRefinement = (refinement &&
  39282. decodeInteger(contextCache, 'IARI', decoder));
  39283. var symbolBitmap = inputSymbols[symbolId];
  39284. var symbolWidth = symbolBitmap[0].length;
  39285. var symbolHeight = symbolBitmap.length;
  39286. if (applyRefinement) {
  39287. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  39288. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  39289. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39290. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39291. symbolWidth += rdw;
  39292. symbolHeight += rdh;
  39293. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  39294. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  39295. (rdh >> 1) + rdy, false, refinementAt,
  39296. decodingContext);
  39297. }
  39298. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  39299. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  39300. var s2, t2, symbolRow;
  39301. if (transposed) {
  39302. // Place Symbol Bitmap from T1,S1
  39303. for (s2 = 0; s2 < symbolHeight; s2++) {
  39304. row = bitmap[offsetS + s2];
  39305. if (!row) {
  39306. continue;
  39307. }
  39308. symbolRow = symbolBitmap[s2];
  39309. // To ignore Parts of Symbol bitmap which goes
  39310. // outside bitmap region
  39311. var maxWidth = Math.min(width - offsetT, symbolWidth);
  39312. switch (combinationOperator) {
  39313. case 0: // OR
  39314. for (t2 = 0; t2 < maxWidth; t2++) {
  39315. row[offsetT + t2] |= symbolRow[t2];
  39316. }
  39317. break;
  39318. case 2: // XOR
  39319. for (t2 = 0; t2 < maxWidth; t2++) {
  39320. row[offsetT + t2] ^= symbolRow[t2];
  39321. }
  39322. break;
  39323. default:
  39324. error('JBIG2 error: operator ' + combinationOperator +
  39325. ' is not supported');
  39326. }
  39327. }
  39328. currentS += symbolHeight - 1;
  39329. } else {
  39330. for (t2 = 0; t2 < symbolHeight; t2++) {
  39331. row = bitmap[offsetT + t2];
  39332. if (!row) {
  39333. continue;
  39334. }
  39335. symbolRow = symbolBitmap[t2];
  39336. switch (combinationOperator) {
  39337. case 0: // OR
  39338. for (s2 = 0; s2 < symbolWidth; s2++) {
  39339. row[offsetS + s2] |= symbolRow[s2];
  39340. }
  39341. break;
  39342. case 2: // XOR
  39343. for (s2 = 0; s2 < symbolWidth; s2++) {
  39344. row[offsetS + s2] ^= symbolRow[s2];
  39345. }
  39346. break;
  39347. default:
  39348. error('JBIG2 error: operator ' + combinationOperator +
  39349. ' is not supported');
  39350. }
  39351. }
  39352. currentS += symbolWidth - 1;
  39353. }
  39354. i++;
  39355. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  39356. if (deltaS === null) {
  39357. break; // OOB
  39358. }
  39359. currentS += deltaS + dsOffset;
  39360. } while (true);
  39361. }
  39362. return bitmap;
  39363. }
  39364. function readSegmentHeader(data, start) {
  39365. var segmentHeader = {};
  39366. segmentHeader.number = readUint32(data, start);
  39367. var flags = data[start + 4];
  39368. var segmentType = flags & 0x3F;
  39369. if (!SegmentTypes[segmentType]) {
  39370. error('JBIG2 error: invalid segment type: ' + segmentType);
  39371. }
  39372. segmentHeader.type = segmentType;
  39373. segmentHeader.typeName = SegmentTypes[segmentType];
  39374. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  39375. var pageAssociationFieldSize = !!(flags & 0x40);
  39376. var referredFlags = data[start + 5];
  39377. var referredToCount = (referredFlags >> 5) & 7;
  39378. var retainBits = [referredFlags & 31];
  39379. var position = start + 6;
  39380. if (referredFlags == 7) {
  39381. referredToCount = readUint32(data, position - 1) & 0x1FFFFFFF;
  39382. position += 3;
  39383. var bytes = (referredToCount + 7) >> 3;
  39384. retainBits[0] = data[position++];
  39385. while (--bytes > 0) {
  39386. retainBits.push(data[position++]);
  39387. }
  39388. } else if (referredFlags == 5 || referredFlags == 6) {
  39389. error('JBIG2 error: invalid referred-to flags');
  39390. }
  39391. segmentHeader.retainBits = retainBits;
  39392. var referredToSegmentNumberSize = (segmentHeader.number <= 256 ? 1 :
  39393. (segmentHeader.number <= 65536 ? 2 : 4));
  39394. var referredTo = [];
  39395. var i, ii;
  39396. for (i = 0; i < referredToCount; i++) {
  39397. var number = (referredToSegmentNumberSize == 1 ? data[position] :
  39398. (referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  39399. readUint32(data, position)));
  39400. referredTo.push(number);
  39401. position += referredToSegmentNumberSize;
  39402. }
  39403. segmentHeader.referredTo = referredTo;
  39404. if (!pageAssociationFieldSize) {
  39405. segmentHeader.pageAssociation = data[position++];
  39406. } else {
  39407. segmentHeader.pageAssociation = readUint32(data, position);
  39408. position += 4;
  39409. }
  39410. segmentHeader.length = readUint32(data, position);
  39411. position += 4;
  39412. if (segmentHeader.length == 0xFFFFFFFF) {
  39413. // 7.2.7 Segment data length, unknown segment length
  39414. if (segmentType === 38) { // ImmediateGenericRegion
  39415. var genericRegionInfo = readRegionSegmentInformation(data, position);
  39416. var genericRegionSegmentFlags = data[position +
  39417. RegionSegmentInformationFieldLength];
  39418. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  39419. // searching for the segment end
  39420. var searchPatternLength = 6;
  39421. var searchPattern = new Uint8Array(searchPatternLength);
  39422. if (!genericRegionMmr) {
  39423. searchPattern[0] = 0xFF;
  39424. searchPattern[1] = 0xAC;
  39425. }
  39426. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  39427. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  39428. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  39429. searchPattern[5] = genericRegionInfo.height & 0xFF;
  39430. for (i = position, ii = data.length; i < ii; i++) {
  39431. var j = 0;
  39432. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  39433. j++;
  39434. }
  39435. if (j == searchPatternLength) {
  39436. segmentHeader.length = i + searchPatternLength;
  39437. break;
  39438. }
  39439. }
  39440. if (segmentHeader.length == 0xFFFFFFFF) {
  39441. error('JBIG2 error: segment end was not found');
  39442. }
  39443. } else {
  39444. error('JBIG2 error: invalid unknown segment length');
  39445. }
  39446. }
  39447. segmentHeader.headerEnd = position;
  39448. return segmentHeader;
  39449. }
  39450. function readSegments(header, data, start, end) {
  39451. var segments = [];
  39452. var position = start;
  39453. while (position < end) {
  39454. var segmentHeader = readSegmentHeader(data, position);
  39455. position = segmentHeader.headerEnd;
  39456. var segment = {
  39457. header: segmentHeader,
  39458. data: data
  39459. };
  39460. if (!header.randomAccess) {
  39461. segment.start = position;
  39462. position += segmentHeader.length;
  39463. segment.end = position;
  39464. }
  39465. segments.push(segment);
  39466. if (segmentHeader.type == 51) {
  39467. break; // end of file is found
  39468. }
  39469. }
  39470. if (header.randomAccess) {
  39471. for (var i = 0, ii = segments.length; i < ii; i++) {
  39472. segments[i].start = position;
  39473. position += segments[i].header.length;
  39474. segments[i].end = position;
  39475. }
  39476. }
  39477. return segments;
  39478. }
  39479. // 7.4.1 Region segment information field
  39480. function readRegionSegmentInformation(data, start) {
  39481. return {
  39482. width: readUint32(data, start),
  39483. height: readUint32(data, start + 4),
  39484. x: readUint32(data, start + 8),
  39485. y: readUint32(data, start + 12),
  39486. combinationOperator: data[start + 16] & 7
  39487. };
  39488. }
  39489. var RegionSegmentInformationFieldLength = 17;
  39490. function processSegment(segment, visitor) {
  39491. var header = segment.header;
  39492. var data = segment.data, position = segment.start, end = segment.end;
  39493. var args, at, i, atLength;
  39494. switch (header.type) {
  39495. case 0: // SymbolDictionary
  39496. // 7.4.2 Symbol dictionary segment syntax
  39497. var dictionary = {};
  39498. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  39499. dictionary.huffman = !!(dictionaryFlags & 1);
  39500. dictionary.refinement = !!(dictionaryFlags & 2);
  39501. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  39502. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  39503. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  39504. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  39505. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  39506. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  39507. dictionary.template = (dictionaryFlags >> 10) & 3;
  39508. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  39509. position += 2;
  39510. if (!dictionary.huffman) {
  39511. atLength = dictionary.template === 0 ? 4 : 1;
  39512. at = [];
  39513. for (i = 0; i < atLength; i++) {
  39514. at.push({
  39515. x: readInt8(data, position),
  39516. y: readInt8(data, position + 1)
  39517. });
  39518. position += 2;
  39519. }
  39520. dictionary.at = at;
  39521. }
  39522. if (dictionary.refinement && !dictionary.refinementTemplate) {
  39523. at = [];
  39524. for (i = 0; i < 2; i++) {
  39525. at.push({
  39526. x: readInt8(data, position),
  39527. y: readInt8(data, position + 1)
  39528. });
  39529. position += 2;
  39530. }
  39531. dictionary.refinementAt = at;
  39532. }
  39533. dictionary.numberOfExportedSymbols = readUint32(data, position);
  39534. position += 4;
  39535. dictionary.numberOfNewSymbols = readUint32(data, position);
  39536. position += 4;
  39537. args = [dictionary, header.number, header.referredTo,
  39538. data, position, end];
  39539. break;
  39540. case 6: // ImmediateTextRegion
  39541. case 7: // ImmediateLosslessTextRegion
  39542. var textRegion = {};
  39543. textRegion.info = readRegionSegmentInformation(data, position);
  39544. position += RegionSegmentInformationFieldLength;
  39545. var textRegionSegmentFlags = readUint16(data, position);
  39546. position += 2;
  39547. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  39548. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  39549. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  39550. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  39551. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  39552. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  39553. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  39554. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  39555. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  39556. if (textRegion.huffman) {
  39557. var textRegionHuffmanFlags = readUint16(data, position);
  39558. position += 2;
  39559. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  39560. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  39561. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  39562. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  39563. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  39564. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  39565. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  39566. textRegion.huffmanRefinementSizeSelector =
  39567. !!(textRegionHuffmanFlags & 14);
  39568. }
  39569. if (textRegion.refinement && !textRegion.refinementTemplate) {
  39570. at = [];
  39571. for (i = 0; i < 2; i++) {
  39572. at.push({
  39573. x: readInt8(data, position),
  39574. y: readInt8(data, position + 1)
  39575. });
  39576. position += 2;
  39577. }
  39578. textRegion.refinementAt = at;
  39579. }
  39580. textRegion.numberOfSymbolInstances = readUint32(data, position);
  39581. position += 4;
  39582. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  39583. if (textRegion.huffman) {
  39584. error('JBIG2 error: huffman is not supported');
  39585. }
  39586. args = [textRegion, header.referredTo, data, position, end];
  39587. break;
  39588. case 38: // ImmediateGenericRegion
  39589. case 39: // ImmediateLosslessGenericRegion
  39590. var genericRegion = {};
  39591. genericRegion.info = readRegionSegmentInformation(data, position);
  39592. position += RegionSegmentInformationFieldLength;
  39593. var genericRegionSegmentFlags = data[position++];
  39594. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  39595. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  39596. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  39597. if (!genericRegion.mmr) {
  39598. atLength = genericRegion.template === 0 ? 4 : 1;
  39599. at = [];
  39600. for (i = 0; i < atLength; i++) {
  39601. at.push({
  39602. x: readInt8(data, position),
  39603. y: readInt8(data, position + 1)
  39604. });
  39605. position += 2;
  39606. }
  39607. genericRegion.at = at;
  39608. }
  39609. args = [genericRegion, data, position, end];
  39610. break;
  39611. case 48: // PageInformation
  39612. var pageInfo = {
  39613. width: readUint32(data, position),
  39614. height: readUint32(data, position + 4),
  39615. resolutionX: readUint32(data, position + 8),
  39616. resolutionY: readUint32(data, position + 12)
  39617. };
  39618. if (pageInfo.height == 0xFFFFFFFF) {
  39619. delete pageInfo.height;
  39620. }
  39621. var pageSegmentFlags = data[position + 16];
  39622. var pageStripingInformatiom = readUint16(data, position + 17);
  39623. pageInfo.lossless = !!(pageSegmentFlags & 1);
  39624. pageInfo.refinement = !!(pageSegmentFlags & 2);
  39625. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  39626. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  39627. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  39628. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  39629. args = [pageInfo];
  39630. break;
  39631. case 49: // EndOfPage
  39632. break;
  39633. case 50: // EndOfStripe
  39634. break;
  39635. case 51: // EndOfFile
  39636. break;
  39637. case 62: // 7.4.15 defines 2 extension types which
  39638. // are comments and can be ignored.
  39639. break;
  39640. default:
  39641. error('JBIG2 error: segment type ' + header.typeName + '(' +
  39642. header.type + ') is not implemented');
  39643. }
  39644. var callbackName = 'on' + header.typeName;
  39645. if (callbackName in visitor) {
  39646. visitor[callbackName].apply(visitor, args);
  39647. }
  39648. }
  39649. function processSegments(segments, visitor) {
  39650. for (var i = 0, ii = segments.length; i < ii; i++) {
  39651. processSegment(segments[i], visitor);
  39652. }
  39653. }
  39654. function parseJbig2(data, start, end) {
  39655. var position = start;
  39656. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  39657. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  39658. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  39659. data[position + 6] != 0x1A || data[position + 7] != 0x0A) {
  39660. error('JBIG2 error: invalid header');
  39661. }
  39662. var header = {};
  39663. position += 8;
  39664. var flags = data[position++];
  39665. header.randomAccess = !(flags & 1);
  39666. if (!(flags & 2)) {
  39667. header.numberOfPages = readUint32(data, position);
  39668. position += 4;
  39669. }
  39670. var segments = readSegments(header, data, position, end);
  39671. error('Not implemented');
  39672. // processSegments(segments, new SimpleSegmentVisitor());
  39673. }
  39674. function parseJbig2Chunks(chunks) {
  39675. var visitor = new SimpleSegmentVisitor();
  39676. for (var i = 0, ii = chunks.length; i < ii; i++) {
  39677. var chunk = chunks[i];
  39678. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  39679. processSegments(segments, visitor);
  39680. }
  39681. return visitor.buffer;
  39682. }
  39683. function SimpleSegmentVisitor() {}
  39684. SimpleSegmentVisitor.prototype = {
  39685. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  39686. this.currentPageInfo = info;
  39687. var rowSize = (info.width + 7) >> 3;
  39688. var buffer = new Uint8Array(rowSize * info.height);
  39689. // The contents of ArrayBuffers are initialized to 0.
  39690. // Fill the buffer with 0xFF only if info.defaultPixelValue is set
  39691. if (info.defaultPixelValue) {
  39692. for (var i = 0, ii = buffer.length; i < ii; i++) {
  39693. buffer[i] = 0xFF;
  39694. }
  39695. }
  39696. this.buffer = buffer;
  39697. },
  39698. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  39699. var pageInfo = this.currentPageInfo;
  39700. var width = regionInfo.width, height = regionInfo.height;
  39701. var rowSize = (pageInfo.width + 7) >> 3;
  39702. var combinationOperator = pageInfo.combinationOperatorOverride ?
  39703. regionInfo.combinationOperator : pageInfo.combinationOperator;
  39704. var buffer = this.buffer;
  39705. var mask0 = 128 >> (regionInfo.x & 7);
  39706. var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
  39707. var i, j, mask, offset;
  39708. switch (combinationOperator) {
  39709. case 0: // OR
  39710. for (i = 0; i < height; i++) {
  39711. mask = mask0;
  39712. offset = offset0;
  39713. for (j = 0; j < width; j++) {
  39714. if (bitmap[i][j]) {
  39715. buffer[offset] |= mask;
  39716. }
  39717. mask >>= 1;
  39718. if (!mask) {
  39719. mask = 128;
  39720. offset++;
  39721. }
  39722. }
  39723. offset0 += rowSize;
  39724. }
  39725. break;
  39726. case 2: // XOR
  39727. for (i = 0; i < height; i++) {
  39728. mask = mask0;
  39729. offset = offset0;
  39730. for (j = 0; j < width; j++) {
  39731. if (bitmap[i][j]) {
  39732. buffer[offset] ^= mask;
  39733. }
  39734. mask >>= 1;
  39735. if (!mask) {
  39736. mask = 128;
  39737. offset++;
  39738. }
  39739. }
  39740. offset0 += rowSize;
  39741. }
  39742. break;
  39743. default:
  39744. error('JBIG2 error: operator ' + combinationOperator +
  39745. ' is not supported');
  39746. }
  39747. },
  39748. onImmediateGenericRegion:
  39749. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  39750. start, end) {
  39751. var regionInfo = region.info;
  39752. var decodingContext = new DecodingContext(data, start, end);
  39753. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  39754. region.template, region.prediction, null,
  39755. region.at, decodingContext);
  39756. this.drawBitmap(regionInfo, bitmap);
  39757. },
  39758. onImmediateLosslessGenericRegion:
  39759. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  39760. this.onImmediateGenericRegion.apply(this, arguments);
  39761. },
  39762. onSymbolDictionary:
  39763. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  39764. currentSegment,
  39765. referredSegments,
  39766. data, start, end) {
  39767. var huffmanTables;
  39768. if (dictionary.huffman) {
  39769. error('JBIG2 error: huffman is not supported');
  39770. }
  39771. // Combines exported symbols from all referred segments
  39772. var symbols = this.symbols;
  39773. if (!symbols) {
  39774. this.symbols = symbols = {};
  39775. }
  39776. var inputSymbols = [];
  39777. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39778. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39779. }
  39780. var decodingContext = new DecodingContext(data, start, end);
  39781. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  39782. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  39783. dictionary.numberOfExportedSymbols, huffmanTables,
  39784. dictionary.template, dictionary.at,
  39785. dictionary.refinementTemplate, dictionary.refinementAt,
  39786. decodingContext);
  39787. },
  39788. onImmediateTextRegion:
  39789. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  39790. referredSegments,
  39791. data, start, end) {
  39792. var regionInfo = region.info;
  39793. var huffmanTables;
  39794. // Combines exported symbols from all referred segments
  39795. var symbols = this.symbols;
  39796. var inputSymbols = [];
  39797. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39798. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39799. }
  39800. var symbolCodeLength = log2(inputSymbols.length);
  39801. var decodingContext = new DecodingContext(data, start, end);
  39802. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  39803. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  39804. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  39805. symbolCodeLength, region.transposed, region.dsOffset,
  39806. region.referenceCorner, region.combinationOperator, huffmanTables,
  39807. region.refinementTemplate, region.refinementAt, decodingContext);
  39808. this.drawBitmap(regionInfo, bitmap);
  39809. },
  39810. onImmediateLosslessTextRegion:
  39811. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  39812. this.onImmediateTextRegion.apply(this, arguments);
  39813. }
  39814. };
  39815. function Jbig2Image() {}
  39816. Jbig2Image.prototype = {
  39817. parseChunks: function Jbig2Image_parseChunks(chunks) {
  39818. return parseJbig2Chunks(chunks);
  39819. }
  39820. };
  39821. return Jbig2Image;
  39822. })();
  39823. var bidi = PDFJS.bidi = (function bidiClosure() {
  39824. // Character types for symbols from 0000 to 00FF.
  39825. var baseTypes = [
  39826. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  39827. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39828. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  39829. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  39830. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  39831. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39832. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  39833. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39834. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39835. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  39836. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39837. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39838. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  39839. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  39840. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39841. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39842. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39843. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39844. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  39845. ];
  39846. // Character types for symbols from 0600 to 06FF
  39847. var arabicTypes = [
  39848. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39849. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL',
  39850. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39851. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39852. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39853. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39854. 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39855. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39856. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  39857. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39858. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39859. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39860. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39861. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39862. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39863. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39864. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39865. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39866. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39867. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  39868. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39869. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  39870. ];
  39871. function isOdd(i) {
  39872. return (i & 1) !== 0;
  39873. }
  39874. function isEven(i) {
  39875. return (i & 1) === 0;
  39876. }
  39877. function findUnequal(arr, start, value) {
  39878. for (var j = start, jj = arr.length; j < jj; ++j) {
  39879. if (arr[j] != value) {
  39880. return j;
  39881. }
  39882. }
  39883. return j;
  39884. }
  39885. function setValues(arr, start, end, value) {
  39886. for (var j = start; j < end; ++j) {
  39887. arr[j] = value;
  39888. }
  39889. }
  39890. function reverseValues(arr, start, end) {
  39891. for (var i = start, j = end - 1; i < j; ++i, --j) {
  39892. var temp = arr[i];
  39893. arr[i] = arr[j];
  39894. arr[j] = temp;
  39895. }
  39896. }
  39897. function createBidiText(str, isLTR, vertical) {
  39898. return {
  39899. str: str,
  39900. dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
  39901. };
  39902. }
  39903. // These are used in bidi(), which is called frequently. We re-use them on
  39904. // each call to avoid unnecessary allocations.
  39905. var chars = [];
  39906. var types = [];
  39907. function bidi(str, startLevel, vertical) {
  39908. var isLTR = true;
  39909. var strLength = str.length;
  39910. if (strLength === 0 || vertical) {
  39911. return createBidiText(str, isLTR, vertical);
  39912. }
  39913. // Get types and fill arrays
  39914. chars.length = 0;
  39915. types.length = 0;
  39916. var numBidi = 0;
  39917. var i, ii;
  39918. for (i = 0; i < strLength; ++i) {
  39919. chars[i] = str.charAt(i);
  39920. var charCode = str.charCodeAt(i);
  39921. var charType = 'L';
  39922. if (charCode <= 0x00ff) {
  39923. charType = baseTypes[charCode];
  39924. } else if (0x0590 <= charCode && charCode <= 0x05f4) {
  39925. charType = 'R';
  39926. } else if (0x0600 <= charCode && charCode <= 0x06ff) {
  39927. charType = arabicTypes[charCode & 0xff];
  39928. } else if (0x0700 <= charCode && charCode <= 0x08AC) {
  39929. charType = 'AL';
  39930. }
  39931. if (charType == 'R' || charType == 'AL' || charType == 'AN') {
  39932. numBidi++;
  39933. }
  39934. types[i] = charType;
  39935. }
  39936. // Detect the bidi method
  39937. // - If there are no rtl characters then no bidi needed
  39938. // - If less than 30% chars are rtl then string is primarily ltr
  39939. // - If more than 30% chars are rtl then string is primarily rtl
  39940. if (numBidi === 0) {
  39941. isLTR = true;
  39942. return createBidiText(str, isLTR);
  39943. }
  39944. if (startLevel == -1) {
  39945. if ((strLength / numBidi) < 0.3) {
  39946. isLTR = true;
  39947. startLevel = 0;
  39948. } else {
  39949. isLTR = false;
  39950. startLevel = 1;
  39951. }
  39952. }
  39953. var levels = [];
  39954. for (i = 0; i < strLength; ++i) {
  39955. levels[i] = startLevel;
  39956. }
  39957. /*
  39958. X1-X10: skip most of this, since we are NOT doing the embeddings.
  39959. */
  39960. var e = (isOdd(startLevel) ? 'R' : 'L');
  39961. var sor = e;
  39962. var eor = sor;
  39963. /*
  39964. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  39965. type of the NSM to the type of the previous character. If the NSM is at the
  39966. start of the level run, it will get the type of sor.
  39967. */
  39968. var lastType = sor;
  39969. for (i = 0; i < strLength; ++i) {
  39970. if (types[i] == 'NSM') {
  39971. types[i] = lastType;
  39972. } else {
  39973. lastType = types[i];
  39974. }
  39975. }
  39976. /*
  39977. W2. Search backwards from each instance of a European number until the
  39978. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  39979. the type of the European number to Arabic number.
  39980. */
  39981. lastType = sor;
  39982. var t;
  39983. for (i = 0; i < strLength; ++i) {
  39984. t = types[i];
  39985. if (t == 'EN') {
  39986. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  39987. } else if (t == 'R' || t == 'L' || t == 'AL') {
  39988. lastType = t;
  39989. }
  39990. }
  39991. /*
  39992. W3. Change all ALs to R.
  39993. */
  39994. for (i = 0; i < strLength; ++i) {
  39995. t = types[i];
  39996. if (t == 'AL') {
  39997. types[i] = 'R';
  39998. }
  39999. }
  40000. /*
  40001. W4. A single European separator between two European numbers changes to a
  40002. European number. A single common separator between two numbers of the same
  40003. type changes to that type:
  40004. */
  40005. for (i = 1; i < strLength - 1; ++i) {
  40006. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN') {
  40007. types[i] = 'EN';
  40008. }
  40009. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  40010. types[i + 1] == types[i - 1]) {
  40011. types[i] = types[i - 1];
  40012. }
  40013. }
  40014. /*
  40015. W5. A sequence of European terminators adjacent to European numbers changes
  40016. to all European numbers:
  40017. */
  40018. for (i = 0; i < strLength; ++i) {
  40019. if (types[i] == 'EN') {
  40020. // do before
  40021. var j;
  40022. for (j = i - 1; j >= 0; --j) {
  40023. if (types[j] != 'ET') {
  40024. break;
  40025. }
  40026. types[j] = 'EN';
  40027. }
  40028. // do after
  40029. for (j = i + 1; j < strLength; --j) {
  40030. if (types[j] != 'ET') {
  40031. break;
  40032. }
  40033. types[j] = 'EN';
  40034. }
  40035. }
  40036. }
  40037. /*
  40038. W6. Otherwise, separators and terminators change to Other Neutral:
  40039. */
  40040. for (i = 0; i < strLength; ++i) {
  40041. t = types[i];
  40042. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS') {
  40043. types[i] = 'ON';
  40044. }
  40045. }
  40046. /*
  40047. W7. Search backwards from each instance of a European number until the
  40048. first strong type (R, L, or sor) is found. If an L is found, then change
  40049. the type of the European number to L.
  40050. */
  40051. lastType = sor;
  40052. for (i = 0; i < strLength; ++i) {
  40053. t = types[i];
  40054. if (t == 'EN') {
  40055. types[i] = ((lastType == 'L') ? 'L' : 'EN');
  40056. } else if (t == 'R' || t == 'L') {
  40057. lastType = t;
  40058. }
  40059. }
  40060. /*
  40061. N1. A sequence of neutrals takes the direction of the surrounding strong
  40062. text if the text on both sides has the same direction. European and Arabic
  40063. numbers are treated as though they were R. Start-of-level-run (sor) and
  40064. end-of-level-run (eor) are used at level run boundaries.
  40065. */
  40066. for (i = 0; i < strLength; ++i) {
  40067. if (types[i] == 'ON') {
  40068. var end = findUnequal(types, i + 1, 'ON');
  40069. var before = sor;
  40070. if (i > 0) {
  40071. before = types[i - 1];
  40072. }
  40073. var after = eor;
  40074. if (end + 1 < strLength) {
  40075. after = types[end + 1];
  40076. }
  40077. if (before != 'L') {
  40078. before = 'R';
  40079. }
  40080. if (after != 'L') {
  40081. after = 'R';
  40082. }
  40083. if (before == after) {
  40084. setValues(types, i, end, before);
  40085. }
  40086. i = end - 1; // reset to end (-1 so next iteration is ok)
  40087. }
  40088. }
  40089. /*
  40090. N2. Any remaining neutrals take the embedding direction.
  40091. */
  40092. for (i = 0; i < strLength; ++i) {
  40093. if (types[i] == 'ON') {
  40094. types[i] = e;
  40095. }
  40096. }
  40097. /*
  40098. I1. For all characters with an even (left-to-right) embedding direction,
  40099. those of type R go up one level and those of type AN or EN go up two
  40100. levels.
  40101. I2. For all characters with an odd (right-to-left) embedding direction,
  40102. those of type L, EN or AN go up one level.
  40103. */
  40104. for (i = 0; i < strLength; ++i) {
  40105. t = types[i];
  40106. if (isEven(levels[i])) {
  40107. if (t == 'R') {
  40108. levels[i] += 1;
  40109. } else if (t == 'AN' || t == 'EN') {
  40110. levels[i] += 2;
  40111. }
  40112. } else { // isOdd
  40113. if (t == 'L' || t == 'AN' || t == 'EN') {
  40114. levels[i] += 1;
  40115. }
  40116. }
  40117. }
  40118. /*
  40119. L1. On each line, reset the embedding level of the following characters to
  40120. the paragraph embedding level:
  40121. segment separators,
  40122. paragraph separators,
  40123. any sequence of whitespace characters preceding a segment separator or
  40124. paragraph separator, and any sequence of white space characters at the end
  40125. of the line.
  40126. */
  40127. // don't bother as text is only single line
  40128. /*
  40129. L2. From the highest level found in the text to the lowest odd level on
  40130. each line, reverse any contiguous sequence of characters that are at that
  40131. level or higher.
  40132. */
  40133. // find highest level & lowest odd level
  40134. var highestLevel = -1;
  40135. var lowestOddLevel = 99;
  40136. var level;
  40137. for (i = 0, ii = levels.length; i < ii; ++i) {
  40138. level = levels[i];
  40139. if (highestLevel < level) {
  40140. highestLevel = level;
  40141. }
  40142. if (lowestOddLevel > level && isOdd(level)) {
  40143. lowestOddLevel = level;
  40144. }
  40145. }
  40146. // now reverse between those limits
  40147. for (level = highestLevel; level >= lowestOddLevel; --level) {
  40148. // find segments to reverse
  40149. var start = -1;
  40150. for (i = 0, ii = levels.length; i < ii; ++i) {
  40151. if (levels[i] < level) {
  40152. if (start >= 0) {
  40153. reverseValues(chars, start, i);
  40154. start = -1;
  40155. }
  40156. } else if (start < 0) {
  40157. start = i;
  40158. }
  40159. }
  40160. if (start >= 0) {
  40161. reverseValues(chars, start, levels.length);
  40162. }
  40163. }
  40164. /*
  40165. L3. Combining marks applied to a right-to-left base character will at this
  40166. point precede their base character. If the rendering engine expects them to
  40167. follow the base characters in the final display process, then the ordering
  40168. of the marks and the base character must be reversed.
  40169. */
  40170. // don't bother for now
  40171. /*
  40172. L4. A character that possesses the mirrored property as specified by
  40173. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  40174. directionality of that character is R.
  40175. */
  40176. // don't mirror as characters are already mirrored in the pdf
  40177. // Finally, return string
  40178. var result = '';
  40179. for (i = 0, ii = chars.length; i < ii; ++i) {
  40180. var ch = chars[i];
  40181. if (ch != '<' && ch != '>') {
  40182. result += ch;
  40183. }
  40184. }
  40185. return createBidiText(result, isLTR);
  40186. }
  40187. return bidi;
  40188. })();
  40189. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  40190. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  40191. /* Copyright 2014 Opera Software ASA
  40192. *
  40193. * Licensed under the Apache License, Version 2.0 (the "License");
  40194. * you may not use this file except in compliance with the License.
  40195. * You may obtain a copy of the License at
  40196. *
  40197. * http://www.apache.org/licenses/LICENSE-2.0
  40198. *
  40199. * Unless required by applicable law or agreed to in writing, software
  40200. * distributed under the License is distributed on an "AS IS" BASIS,
  40201. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40202. * See the License for the specific language governing permissions and
  40203. * limitations under the License.
  40204. *
  40205. *
  40206. * Based on https://code.google.com/p/smhasher/wiki/MurmurHash3.
  40207. * Hashes roughly 100 KB per millisecond on i7 3.4 GHz.
  40208. */
  40209. /* globals Uint32ArrayView */
  40210. 'use strict';
  40211. var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
  40212. // Workaround for missing math precison in JS.
  40213. var MASK_HIGH = 0xffff0000;
  40214. var MASK_LOW = 0xffff;
  40215. function MurmurHash3_64 (seed) {
  40216. var SEED = 0xc3d2e1f0;
  40217. this.h1 = seed ? seed & 0xffffffff : SEED;
  40218. this.h2 = seed ? seed & 0xffffffff : SEED;
  40219. }
  40220. MurmurHash3_64.prototype = {
  40221. update: function MurmurHash3_64_update(input) {
  40222. var useUint32ArrayView = false;
  40223. var i;
  40224. if (typeof input == 'string') {
  40225. var data = new Uint8Array(input.length * 2);
  40226. var length = 0;
  40227. for (i = 0; i < input.length; i++) {
  40228. var code = input.charCodeAt(i);
  40229. if (code <= 0xff) {
  40230. data[length++] = code;
  40231. }
  40232. else {
  40233. data[length++] = code >>> 8;
  40234. data[length++] = code & 0xff;
  40235. }
  40236. }
  40237. } else if (input instanceof Uint8Array) {
  40238. data = input;
  40239. length = data.length;
  40240. } else if (typeof input === 'object' && ('length' in input)) {
  40241. // processing regular arrays as well, e.g. for IE9
  40242. data = input;
  40243. length = data.length;
  40244. useUint32ArrayView = true;
  40245. } else {
  40246. throw new Error('Wrong data format in MurmurHash3_64_update. ' +
  40247. 'Input must be a string or array.');
  40248. }
  40249. var blockCounts = length >> 2;
  40250. var tailLength = length - blockCounts * 4;
  40251. // we don't care about endianness here
  40252. var dataUint32 = useUint32ArrayView ?
  40253. new Uint32ArrayView(data, blockCounts) :
  40254. new Uint32Array(data.buffer, 0, blockCounts);
  40255. var k1 = 0;
  40256. var k2 = 0;
  40257. var h1 = this.h1;
  40258. var h2 = this.h2;
  40259. var C1 = 0xcc9e2d51;
  40260. var C2 = 0x1b873593;
  40261. var C1_LOW = C1 & MASK_LOW;
  40262. var C2_LOW = C2 & MASK_LOW;
  40263. for (i = 0; i < blockCounts; i++) {
  40264. if (i & 1) {
  40265. k1 = dataUint32[i];
  40266. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40267. k1 = k1 << 15 | k1 >>> 17;
  40268. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40269. h1 ^= k1;
  40270. h1 = h1 << 13 | h1 >>> 19;
  40271. h1 = h1 * 5 + 0xe6546b64;
  40272. } else {
  40273. k2 = dataUint32[i];
  40274. k2 = (k2 * C1 & MASK_HIGH) | (k2 * C1_LOW & MASK_LOW);
  40275. k2 = k2 << 15 | k2 >>> 17;
  40276. k2 = (k2 * C2 & MASK_HIGH) | (k2 * C2_LOW & MASK_LOW);
  40277. h2 ^= k2;
  40278. h2 = h2 << 13 | h2 >>> 19;
  40279. h2 = h2 * 5 + 0xe6546b64;
  40280. }
  40281. }
  40282. k1 = 0;
  40283. switch (tailLength) {
  40284. case 3:
  40285. k1 ^= data[blockCounts * 4 + 2] << 16;
  40286. /* falls through */
  40287. case 2:
  40288. k1 ^= data[blockCounts * 4 + 1] << 8;
  40289. /* falls through */
  40290. case 1:
  40291. k1 ^= data[blockCounts * 4];
  40292. /* falls through */
  40293. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40294. k1 = k1 << 15 | k1 >>> 17;
  40295. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40296. if (blockCounts & 1) {
  40297. h1 ^= k1;
  40298. } else {
  40299. h2 ^= k1;
  40300. }
  40301. }
  40302. this.h1 = h1;
  40303. this.h2 = h2;
  40304. return this;
  40305. },
  40306. hexdigest: function MurmurHash3_64_hexdigest () {
  40307. var h1 = this.h1;
  40308. var h2 = this.h2;
  40309. h1 ^= h2 >>> 1;
  40310. h1 = (h1 * 0xed558ccd & MASK_HIGH) | (h1 * 0x8ccd & MASK_LOW);
  40311. h2 = (h2 * 0xff51afd7 & MASK_HIGH) |
  40312. (((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16);
  40313. h1 ^= h2 >>> 1;
  40314. h1 = (h1 * 0x1a85ec53 & MASK_HIGH) | (h1 * 0xec53 & MASK_LOW);
  40315. h2 = (h2 * 0xc4ceb9fe & MASK_HIGH) |
  40316. (((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16);
  40317. h1 ^= h2 >>> 1;
  40318. for (var i = 0, arr = [h1, h2], str = ''; i < arr.length; i++) {
  40319. var hex = (arr[i] >>> 0).toString(16);
  40320. while (hex.length < 8) {
  40321. hex = '0' + hex;
  40322. }
  40323. str += hex;
  40324. }
  40325. return str;
  40326. }
  40327. };
  40328. return MurmurHash3_64;
  40329. })();
  40330. }).call((typeof window === 'undefined') ? this : window);
  40331. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  40332. // workerSrc is not set -- using last script url to define default location
  40333. PDFJS.workerSrc = (function () {
  40334. 'use strict';
  40335. var scriptTagContainer = document.body ||
  40336. document.getElementsByTagName('head')[0];
  40337. var pdfjsSrc = scriptTagContainer.lastChild.src;
  40338. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  40339. })();
  40340. }