pdf.worker.js 1.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516
  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.117';
  23. PDFJS.build = '6a800eb';
  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. };
  173. // A notice for devs. These are good for things that are helpful to devs, such
  174. // as warning that Workers were disabled, which is important to devs but not
  175. // end users.
  176. function info(msg) {
  177. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.infos) {
  178. console.log('Info: ' + msg);
  179. }
  180. }
  181. // Non-fatal warnings.
  182. function warn(msg) {
  183. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.warnings) {
  184. console.log('Warning: ' + msg);
  185. }
  186. }
  187. // Fatal errors that should trigger the fallback UI and halt execution by
  188. // throwing an exception.
  189. function error(msg) {
  190. // If multiple arguments were passed, pass them all to the log function.
  191. if (arguments.length > 1) {
  192. var logArguments = ['Error:'];
  193. logArguments.push.apply(logArguments, arguments);
  194. console.log.apply(console, logArguments);
  195. // Join the arguments into a single string for the lines below.
  196. msg = [].join.call(arguments, ' ');
  197. } else {
  198. console.log('Error: ' + msg);
  199. }
  200. console.log(backtrace());
  201. UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
  202. throw new Error(msg);
  203. }
  204. function backtrace() {
  205. try {
  206. throw new Error();
  207. } catch (e) {
  208. return e.stack ? e.stack.split('\n').slice(2).join('\n') : '';
  209. }
  210. }
  211. function assert(cond, msg) {
  212. if (!cond) {
  213. error(msg);
  214. }
  215. }
  216. var UNSUPPORTED_FEATURES = PDFJS.UNSUPPORTED_FEATURES = {
  217. unknown: 'unknown',
  218. forms: 'forms',
  219. javaScript: 'javaScript',
  220. smask: 'smask',
  221. shadingPattern: 'shadingPattern',
  222. font: 'font'
  223. };
  224. var UnsupportedManager = PDFJS.UnsupportedManager =
  225. (function UnsupportedManagerClosure() {
  226. var listeners = [];
  227. return {
  228. listen: function (cb) {
  229. listeners.push(cb);
  230. },
  231. notify: function (featureId) {
  232. warn('Unsupported feature "' + featureId + '"');
  233. for (var i = 0, ii = listeners.length; i < ii; i++) {
  234. listeners[i](featureId);
  235. }
  236. }
  237. };
  238. })();
  239. // Combines two URLs. The baseUrl shall be absolute URL. If the url is an
  240. // absolute URL, it will be returned as is.
  241. function combineUrl(baseUrl, url) {
  242. if (!url) {
  243. return baseUrl;
  244. }
  245. if (/^[a-z][a-z0-9+\-.]*:/i.test(url)) {
  246. return url;
  247. }
  248. var i;
  249. if (url.charAt(0) == '/') {
  250. // absolute path
  251. i = baseUrl.indexOf('://');
  252. if (url.charAt(1) === '/') {
  253. ++i;
  254. } else {
  255. i = baseUrl.indexOf('/', i + 3);
  256. }
  257. return baseUrl.substring(0, i) + url;
  258. } else {
  259. // relative path
  260. var pathLength = baseUrl.length;
  261. i = baseUrl.lastIndexOf('#');
  262. pathLength = i >= 0 ? i : pathLength;
  263. i = baseUrl.lastIndexOf('?', pathLength);
  264. pathLength = i >= 0 ? i : pathLength;
  265. var prefixLength = baseUrl.lastIndexOf('/', pathLength);
  266. return baseUrl.substring(0, prefixLength + 1) + url;
  267. }
  268. }
  269. // Validates if URL is safe and allowed, e.g. to avoid XSS.
  270. function isValidUrl(url, allowRelative) {
  271. if (!url) {
  272. return false;
  273. }
  274. // RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1)
  275. // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  276. var protocol = /^[a-z][a-z0-9+\-.]*(?=:)/i.exec(url);
  277. if (!protocol) {
  278. return allowRelative;
  279. }
  280. protocol = protocol[0].toLowerCase();
  281. switch (protocol) {
  282. case 'http':
  283. case 'https':
  284. case 'ftp':
  285. case 'mailto':
  286. return true;
  287. default:
  288. return false;
  289. }
  290. }
  291. PDFJS.isValidUrl = isValidUrl;
  292. function shadow(obj, prop, value) {
  293. Object.defineProperty(obj, prop, { value: value,
  294. enumerable: true,
  295. configurable: true,
  296. writable: false });
  297. return value;
  298. }
  299. var PasswordResponses = PDFJS.PasswordResponses = {
  300. NEED_PASSWORD: 1,
  301. INCORRECT_PASSWORD: 2
  302. };
  303. var PasswordException = (function PasswordExceptionClosure() {
  304. function PasswordException(msg, code) {
  305. this.name = 'PasswordException';
  306. this.message = msg;
  307. this.code = code;
  308. }
  309. PasswordException.prototype = new Error();
  310. PasswordException.constructor = PasswordException;
  311. return PasswordException;
  312. })();
  313. var UnknownErrorException = (function UnknownErrorExceptionClosure() {
  314. function UnknownErrorException(msg, details) {
  315. this.name = 'UnknownErrorException';
  316. this.message = msg;
  317. this.details = details;
  318. }
  319. UnknownErrorException.prototype = new Error();
  320. UnknownErrorException.constructor = UnknownErrorException;
  321. return UnknownErrorException;
  322. })();
  323. var InvalidPDFException = (function InvalidPDFExceptionClosure() {
  324. function InvalidPDFException(msg) {
  325. this.name = 'InvalidPDFException';
  326. this.message = msg;
  327. }
  328. InvalidPDFException.prototype = new Error();
  329. InvalidPDFException.constructor = InvalidPDFException;
  330. return InvalidPDFException;
  331. })();
  332. var MissingPDFException = (function MissingPDFExceptionClosure() {
  333. function MissingPDFException(msg) {
  334. this.name = 'MissingPDFException';
  335. this.message = msg;
  336. }
  337. MissingPDFException.prototype = new Error();
  338. MissingPDFException.constructor = MissingPDFException;
  339. return MissingPDFException;
  340. })();
  341. var NotImplementedException = (function NotImplementedExceptionClosure() {
  342. function NotImplementedException(msg) {
  343. this.message = msg;
  344. }
  345. NotImplementedException.prototype = new Error();
  346. NotImplementedException.prototype.name = 'NotImplementedException';
  347. NotImplementedException.constructor = NotImplementedException;
  348. return NotImplementedException;
  349. })();
  350. var MissingDataException = (function MissingDataExceptionClosure() {
  351. function MissingDataException(begin, end) {
  352. this.begin = begin;
  353. this.end = end;
  354. this.message = 'Missing data [' + begin + ', ' + end + ')';
  355. }
  356. MissingDataException.prototype = new Error();
  357. MissingDataException.prototype.name = 'MissingDataException';
  358. MissingDataException.constructor = MissingDataException;
  359. return MissingDataException;
  360. })();
  361. var XRefParseException = (function XRefParseExceptionClosure() {
  362. function XRefParseException(msg) {
  363. this.message = msg;
  364. }
  365. XRefParseException.prototype = new Error();
  366. XRefParseException.prototype.name = 'XRefParseException';
  367. XRefParseException.constructor = XRefParseException;
  368. return XRefParseException;
  369. })();
  370. function bytesToString(bytes) {
  371. var length = bytes.length;
  372. var MAX_ARGUMENT_COUNT = 8192;
  373. if (length < MAX_ARGUMENT_COUNT) {
  374. return String.fromCharCode.apply(null, bytes);
  375. }
  376. var strBuf = [];
  377. for (var i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
  378. var chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
  379. var chunk = bytes.subarray(i, chunkEnd);
  380. strBuf.push(String.fromCharCode.apply(null, chunk));
  381. }
  382. return strBuf.join('');
  383. }
  384. function stringToArray(str) {
  385. var length = str.length;
  386. var array = [];
  387. for (var i = 0; i < length; ++i) {
  388. array[i] = str.charCodeAt(i);
  389. }
  390. return array;
  391. }
  392. function stringToBytes(str) {
  393. var length = str.length;
  394. var bytes = new Uint8Array(length);
  395. for (var i = 0; i < length; ++i) {
  396. bytes[i] = str.charCodeAt(i) & 0xFF;
  397. }
  398. return bytes;
  399. }
  400. function string32(value) {
  401. return String.fromCharCode((value >> 24) & 0xff, (value >> 16) & 0xff,
  402. (value >> 8) & 0xff, value & 0xff);
  403. }
  404. function log2(x) {
  405. var n = 1, i = 0;
  406. while (x > n) {
  407. n <<= 1;
  408. i++;
  409. }
  410. return i;
  411. }
  412. function readInt8(data, start) {
  413. return (data[start] << 24) >> 24;
  414. }
  415. function readUint16(data, offset) {
  416. return (data[offset] << 8) | data[offset + 1];
  417. }
  418. function readUint32(data, offset) {
  419. return ((data[offset] << 24) | (data[offset + 1] << 16) |
  420. (data[offset + 2] << 8) | data[offset + 3]) >>> 0;
  421. }
  422. // Lazy test the endianness of the platform
  423. // NOTE: This will be 'true' for simulated TypedArrays
  424. function isLittleEndian() {
  425. var buffer8 = new Uint8Array(2);
  426. buffer8[0] = 1;
  427. var buffer16 = new Uint16Array(buffer8.buffer);
  428. return (buffer16[0] === 1);
  429. }
  430. Object.defineProperty(PDFJS, 'isLittleEndian', {
  431. configurable: true,
  432. get: function PDFJS_isLittleEndian() {
  433. return shadow(PDFJS, 'isLittleEndian', isLittleEndian());
  434. }
  435. });
  436. // Lazy test if the userAgant support CanvasTypedArrays
  437. function hasCanvasTypedArrays() {
  438. var canvas = document.createElement('canvas');
  439. canvas.width = canvas.height = 1;
  440. var ctx = canvas.getContext('2d');
  441. var imageData = ctx.createImageData(1, 1);
  442. return (typeof imageData.data.buffer !== 'undefined');
  443. }
  444. Object.defineProperty(PDFJS, 'hasCanvasTypedArrays', {
  445. configurable: true,
  446. get: function PDFJS_hasCanvasTypedArrays() {
  447. return shadow(PDFJS, 'hasCanvasTypedArrays', hasCanvasTypedArrays());
  448. }
  449. });
  450. var Uint32ArrayView = (function Uint32ArrayViewClosure() {
  451. function Uint32ArrayView(buffer, length) {
  452. this.buffer = buffer;
  453. this.byteLength = buffer.length;
  454. this.length = length === undefined ? (this.byteLength >> 2) : length;
  455. ensureUint32ArrayViewProps(this.length);
  456. }
  457. Uint32ArrayView.prototype = Object.create(null);
  458. var uint32ArrayViewSetters = 0;
  459. function createUint32ArrayProp(index) {
  460. return {
  461. get: function () {
  462. var buffer = this.buffer, offset = index << 2;
  463. return (buffer[offset] | (buffer[offset + 1] << 8) |
  464. (buffer[offset + 2] << 16) | (buffer[offset + 3] << 24)) >>> 0;
  465. },
  466. set: function (value) {
  467. var buffer = this.buffer, offset = index << 2;
  468. buffer[offset] = value & 255;
  469. buffer[offset + 1] = (value >> 8) & 255;
  470. buffer[offset + 2] = (value >> 16) & 255;
  471. buffer[offset + 3] = (value >>> 24) & 255;
  472. }
  473. };
  474. }
  475. function ensureUint32ArrayViewProps(length) {
  476. while (uint32ArrayViewSetters < length) {
  477. Object.defineProperty(Uint32ArrayView.prototype,
  478. uint32ArrayViewSetters,
  479. createUint32ArrayProp(uint32ArrayViewSetters));
  480. uint32ArrayViewSetters++;
  481. }
  482. }
  483. return Uint32ArrayView;
  484. })();
  485. var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
  486. var Util = PDFJS.Util = (function UtilClosure() {
  487. function Util() {}
  488. Util.makeCssRgb = function Util_makeCssRgb(rgb) {
  489. return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
  490. };
  491. Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) {
  492. var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0);
  493. return Util.makeCssRgb(rgb);
  494. };
  495. // Concatenates two transformation matrices together and returns the result.
  496. Util.transform = function Util_transform(m1, m2) {
  497. return [
  498. m1[0] * m2[0] + m1[2] * m2[1],
  499. m1[1] * m2[0] + m1[3] * m2[1],
  500. m1[0] * m2[2] + m1[2] * m2[3],
  501. m1[1] * m2[2] + m1[3] * m2[3],
  502. m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
  503. m1[1] * m2[4] + m1[3] * m2[5] + m1[5]
  504. ];
  505. };
  506. // For 2d affine transforms
  507. Util.applyTransform = function Util_applyTransform(p, m) {
  508. var xt = p[0] * m[0] + p[1] * m[2] + m[4];
  509. var yt = p[0] * m[1] + p[1] * m[3] + m[5];
  510. return [xt, yt];
  511. };
  512. Util.applyInverseTransform = function Util_applyInverseTransform(p, m) {
  513. var d = m[0] * m[3] - m[1] * m[2];
  514. var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
  515. var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
  516. return [xt, yt];
  517. };
  518. // Applies the transform to the rectangle and finds the minimum axially
  519. // aligned bounding box.
  520. Util.getAxialAlignedBoundingBox =
  521. function Util_getAxialAlignedBoundingBox(r, m) {
  522. var p1 = Util.applyTransform(r, m);
  523. var p2 = Util.applyTransform(r.slice(2, 4), m);
  524. var p3 = Util.applyTransform([r[0], r[3]], m);
  525. var p4 = Util.applyTransform([r[2], r[1]], m);
  526. return [
  527. Math.min(p1[0], p2[0], p3[0], p4[0]),
  528. Math.min(p1[1], p2[1], p3[1], p4[1]),
  529. Math.max(p1[0], p2[0], p3[0], p4[0]),
  530. Math.max(p1[1], p2[1], p3[1], p4[1])
  531. ];
  532. };
  533. Util.inverseTransform = function Util_inverseTransform(m) {
  534. var d = m[0] * m[3] - m[1] * m[2];
  535. return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d,
  536. (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  537. };
  538. // Apply a generic 3d matrix M on a 3-vector v:
  539. // | a b c | | X |
  540. // | d e f | x | Y |
  541. // | g h i | | Z |
  542. // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i],
  543. // with v as [X,Y,Z]
  544. Util.apply3dTransform = function Util_apply3dTransform(m, v) {
  545. return [
  546. m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
  547. m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
  548. m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
  549. ];
  550. };
  551. // This calculation uses Singular Value Decomposition.
  552. // The SVD can be represented with formula A = USV. We are interested in the
  553. // matrix S here because it represents the scale values.
  554. Util.singularValueDecompose2dScale =
  555. function Util_singularValueDecompose2dScale(m) {
  556. var transpose = [m[0], m[2], m[1], m[3]];
  557. // Multiply matrix m with its transpose.
  558. var a = m[0] * transpose[0] + m[1] * transpose[2];
  559. var b = m[0] * transpose[1] + m[1] * transpose[3];
  560. var c = m[2] * transpose[0] + m[3] * transpose[2];
  561. var d = m[2] * transpose[1] + m[3] * transpose[3];
  562. // Solve the second degree polynomial to get roots.
  563. var first = (a + d) / 2;
  564. var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
  565. var sx = first + second || 1;
  566. var sy = first - second || 1;
  567. // Scale values are the square roots of the eigenvalues.
  568. return [Math.sqrt(sx), Math.sqrt(sy)];
  569. };
  570. // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
  571. // For coordinate systems whose origin lies in the bottom-left, this
  572. // means normalization to (BL,TR) ordering. For systems with origin in the
  573. // top-left, this means (TL,BR) ordering.
  574. Util.normalizeRect = function Util_normalizeRect(rect) {
  575. var r = rect.slice(0); // clone rect
  576. if (rect[0] > rect[2]) {
  577. r[0] = rect[2];
  578. r[2] = rect[0];
  579. }
  580. if (rect[1] > rect[3]) {
  581. r[1] = rect[3];
  582. r[3] = rect[1];
  583. }
  584. return r;
  585. };
  586. // Returns a rectangle [x1, y1, x2, y2] corresponding to the
  587. // intersection of rect1 and rect2. If no intersection, returns 'false'
  588. // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
  589. Util.intersect = function Util_intersect(rect1, rect2) {
  590. function compare(a, b) {
  591. return a - b;
  592. }
  593. // Order points along the axes
  594. var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare),
  595. orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare),
  596. result = [];
  597. rect1 = Util.normalizeRect(rect1);
  598. rect2 = Util.normalizeRect(rect2);
  599. // X: first and second points belong to different rectangles?
  600. if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
  601. (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
  602. // Intersection must be between second and third points
  603. result[0] = orderedX[1];
  604. result[2] = orderedX[2];
  605. } else {
  606. return false;
  607. }
  608. // Y: first and second points belong to different rectangles?
  609. if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
  610. (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
  611. // Intersection must be between second and third points
  612. result[1] = orderedY[1];
  613. result[3] = orderedY[2];
  614. } else {
  615. return false;
  616. }
  617. return result;
  618. };
  619. Util.sign = function Util_sign(num) {
  620. return num < 0 ? -1 : 1;
  621. };
  622. // TODO(mack): Rename appendToArray
  623. Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
  624. Array.prototype.push.apply(arr1, arr2);
  625. };
  626. Util.prependToArray = function concatenateToArray(arr1, arr2) {
  627. Array.prototype.unshift.apply(arr1, arr2);
  628. };
  629. Util.extendObj = function extendObj(obj1, obj2) {
  630. for (var key in obj2) {
  631. obj1[key] = obj2[key];
  632. }
  633. };
  634. Util.getInheritableProperty = function Util_getInheritableProperty(dict,
  635. name) {
  636. while (dict && !dict.has(name)) {
  637. dict = dict.get('Parent');
  638. }
  639. if (!dict) {
  640. return null;
  641. }
  642. return dict.get(name);
  643. };
  644. Util.inherit = function Util_inherit(sub, base, prototype) {
  645. sub.prototype = Object.create(base.prototype);
  646. sub.prototype.constructor = sub;
  647. for (var prop in prototype) {
  648. sub.prototype[prop] = prototype[prop];
  649. }
  650. };
  651. Util.loadScript = function Util_loadScript(src, callback) {
  652. var script = document.createElement('script');
  653. var loaded = false;
  654. script.setAttribute('src', src);
  655. if (callback) {
  656. script.onload = function() {
  657. if (!loaded) {
  658. callback();
  659. }
  660. loaded = true;
  661. };
  662. }
  663. document.getElementsByTagName('head')[0].appendChild(script);
  664. };
  665. return Util;
  666. })();
  667. var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
  668. function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
  669. this.viewBox = viewBox;
  670. this.scale = scale;
  671. this.rotation = rotation;
  672. this.offsetX = offsetX;
  673. this.offsetY = offsetY;
  674. // creating transform to convert pdf coordinate system to the normal
  675. // canvas like coordinates taking in account scale and rotation
  676. var centerX = (viewBox[2] + viewBox[0]) / 2;
  677. var centerY = (viewBox[3] + viewBox[1]) / 2;
  678. var rotateA, rotateB, rotateC, rotateD;
  679. rotation = rotation % 360;
  680. rotation = rotation < 0 ? rotation + 360 : rotation;
  681. switch (rotation) {
  682. case 180:
  683. rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
  684. break;
  685. case 90:
  686. rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0;
  687. break;
  688. case 270:
  689. rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0;
  690. break;
  691. //case 0:
  692. default:
  693. rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1;
  694. break;
  695. }
  696. if (dontFlip) {
  697. rotateC = -rotateC; rotateD = -rotateD;
  698. }
  699. var offsetCanvasX, offsetCanvasY;
  700. var width, height;
  701. if (rotateA === 0) {
  702. offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
  703. offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
  704. width = Math.abs(viewBox[3] - viewBox[1]) * scale;
  705. height = Math.abs(viewBox[2] - viewBox[0]) * scale;
  706. } else {
  707. offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
  708. offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
  709. width = Math.abs(viewBox[2] - viewBox[0]) * scale;
  710. height = Math.abs(viewBox[3] - viewBox[1]) * scale;
  711. }
  712. // creating transform for the following operations:
  713. // translate(-centerX, -centerY), rotate and flip vertically,
  714. // scale, and translate(offsetCanvasX, offsetCanvasY)
  715. this.transform = [
  716. rotateA * scale,
  717. rotateB * scale,
  718. rotateC * scale,
  719. rotateD * scale,
  720. offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY,
  721. offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY
  722. ];
  723. this.width = width;
  724. this.height = height;
  725. this.fontScale = scale;
  726. }
  727. PageViewport.prototype = {
  728. clone: function PageViewPort_clone(args) {
  729. args = args || {};
  730. var scale = 'scale' in args ? args.scale : this.scale;
  731. var rotation = 'rotation' in args ? args.rotation : this.rotation;
  732. return new PageViewport(this.viewBox.slice(), scale, rotation,
  733. this.offsetX, this.offsetY, args.dontFlip);
  734. },
  735. convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) {
  736. return Util.applyTransform([x, y], this.transform);
  737. },
  738. convertToViewportRectangle:
  739. function PageViewport_convertToViewportRectangle(rect) {
  740. var tl = Util.applyTransform([rect[0], rect[1]], this.transform);
  741. var br = Util.applyTransform([rect[2], rect[3]], this.transform);
  742. return [tl[0], tl[1], br[0], br[1]];
  743. },
  744. convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) {
  745. return Util.applyInverseTransform([x, y], this.transform);
  746. }
  747. };
  748. return PageViewport;
  749. })();
  750. var PDFStringTranslateTable = [
  751. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  752. 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0,
  753. 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,
  754. 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,
  755. 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,
  756. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014,
  757. 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C,
  758. 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160,
  759. 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC
  760. ];
  761. function stringToPDFString(str) {
  762. var i, n = str.length, strBuf = [];
  763. if (str[0] === '\xFE' && str[1] === '\xFF') {
  764. // UTF16BE BOM
  765. for (i = 2; i < n; i += 2) {
  766. strBuf.push(String.fromCharCode(
  767. (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1)));
  768. }
  769. } else {
  770. for (i = 0; i < n; ++i) {
  771. var code = PDFStringTranslateTable[str.charCodeAt(i)];
  772. strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
  773. }
  774. }
  775. return strBuf.join('');
  776. }
  777. function stringToUTF8String(str) {
  778. return decodeURIComponent(escape(str));
  779. }
  780. function isEmptyObj(obj) {
  781. for (var key in obj) {
  782. return false;
  783. }
  784. return true;
  785. }
  786. function isBool(v) {
  787. return typeof v == 'boolean';
  788. }
  789. function isInt(v) {
  790. return typeof v == 'number' && ((v | 0) == v);
  791. }
  792. function isNum(v) {
  793. return typeof v == 'number';
  794. }
  795. function isString(v) {
  796. return typeof v == 'string';
  797. }
  798. function isNull(v) {
  799. return v === null;
  800. }
  801. function isName(v) {
  802. return v instanceof Name;
  803. }
  804. function isCmd(v, cmd) {
  805. return v instanceof Cmd && (!cmd || v.cmd == cmd);
  806. }
  807. function isDict(v, type) {
  808. if (!(v instanceof Dict)) {
  809. return false;
  810. }
  811. if (!type) {
  812. return true;
  813. }
  814. var dictType = v.get('Type');
  815. return isName(dictType) && dictType.name == type;
  816. }
  817. function isArray(v) {
  818. return v instanceof Array;
  819. }
  820. function isStream(v) {
  821. return typeof v == 'object' && v !== null && v !== undefined &&
  822. ('getBytes' in v);
  823. }
  824. function isArrayBuffer(v) {
  825. return typeof v == 'object' && v !== null && v !== undefined &&
  826. ('byteLength' in v);
  827. }
  828. function isRef(v) {
  829. return v instanceof Ref;
  830. }
  831. function isPDFFunction(v) {
  832. var fnDict;
  833. if (typeof v != 'object') {
  834. return false;
  835. } else if (isDict(v)) {
  836. fnDict = v;
  837. } else if (isStream(v)) {
  838. fnDict = v.dict;
  839. } else {
  840. return false;
  841. }
  842. return fnDict.has('FunctionType');
  843. }
  844. /**
  845. * Legacy support for PDFJS Promise implementation.
  846. * TODO remove eventually
  847. * @ignore
  848. */
  849. var LegacyPromise = PDFJS.LegacyPromise = (function LegacyPromiseClosure() {
  850. return function LegacyPromise() {
  851. var resolve, reject;
  852. var promise = new Promise(function (resolve_, reject_) {
  853. resolve = resolve_;
  854. reject = reject_;
  855. });
  856. promise.resolve = resolve;
  857. promise.reject = reject;
  858. return promise;
  859. };
  860. })();
  861. /**
  862. * Promise Capability object.
  863. *
  864. * @typedef {Object} PromiseCapability
  865. * @property {Promise} promise - A promise object.
  866. * @property {function} resolve - Fullfills the promise.
  867. * @property {function} reject - Rejects the promise.
  868. */
  869. /**
  870. * Creates a promise capability object.
  871. * @return {PromiseCapability} A capability object contains:
  872. * - a Promise, resolve and reject methods.
  873. */
  874. function createPromiseCapability() {
  875. var capability = {};
  876. capability.promise = new Promise(function (resolve, reject) {
  877. capability.resolve = resolve;
  878. capability.reject = reject;
  879. });
  880. return capability;
  881. }
  882. PDFJS.createPromiseCapability = createPromiseCapability;
  883. /**
  884. * Polyfill for Promises:
  885. * The following promise implementation tries to generally implment the
  886. * Promise/A+ spec. Some notable differences from other promise libaries are:
  887. * - There currently isn't a seperate deferred and promise object.
  888. * - Unhandled rejections eventually show an error if they aren't handled.
  889. *
  890. * Based off of the work in:
  891. * https://bugzilla.mozilla.org/show_bug.cgi?id=810490
  892. */
  893. (function PromiseClosure() {
  894. if (globalScope.Promise) {
  895. // Promises existing in the DOM/Worker, checking presence of all/resolve
  896. if (typeof globalScope.Promise.all !== 'function') {
  897. globalScope.Promise.all = function (iterable) {
  898. var count = 0, results = [], resolve, reject;
  899. var promise = new globalScope.Promise(function (resolve_, reject_) {
  900. resolve = resolve_;
  901. reject = reject_;
  902. });
  903. iterable.forEach(function (p, i) {
  904. count++;
  905. p.then(function (result) {
  906. results[i] = result;
  907. count--;
  908. if (count === 0) {
  909. resolve(results);
  910. }
  911. }, reject);
  912. });
  913. if (count === 0) {
  914. resolve(results);
  915. }
  916. return promise;
  917. };
  918. }
  919. if (typeof globalScope.Promise.resolve !== 'function') {
  920. globalScope.Promise.resolve = function (value) {
  921. return new globalScope.Promise(function (resolve) { resolve(value); });
  922. };
  923. }
  924. if (typeof globalScope.Promise.reject !== 'function') {
  925. globalScope.Promise.reject = function (reason) {
  926. return new globalScope.Promise(function (resolve, reject) {
  927. reject(reason);
  928. });
  929. };
  930. }
  931. return;
  932. }
  933. var STATUS_PENDING = 0;
  934. var STATUS_RESOLVED = 1;
  935. var STATUS_REJECTED = 2;
  936. // In an attempt to avoid silent exceptions, unhandled rejections are
  937. // tracked and if they aren't handled in a certain amount of time an
  938. // error is logged.
  939. var REJECTION_TIMEOUT = 500;
  940. var HandlerManager = {
  941. handlers: [],
  942. running: false,
  943. unhandledRejections: [],
  944. pendingRejectionCheck: false,
  945. scheduleHandlers: function scheduleHandlers(promise) {
  946. if (promise._status == STATUS_PENDING) {
  947. return;
  948. }
  949. this.handlers = this.handlers.concat(promise._handlers);
  950. promise._handlers = [];
  951. if (this.running) {
  952. return;
  953. }
  954. this.running = true;
  955. setTimeout(this.runHandlers.bind(this), 0);
  956. },
  957. runHandlers: function runHandlers() {
  958. var RUN_TIMEOUT = 1; // ms
  959. var timeoutAt = Date.now() + RUN_TIMEOUT;
  960. while (this.handlers.length > 0) {
  961. var handler = this.handlers.shift();
  962. var nextStatus = handler.thisPromise._status;
  963. var nextValue = handler.thisPromise._value;
  964. try {
  965. if (nextStatus === STATUS_RESOLVED) {
  966. if (typeof(handler.onResolve) == 'function') {
  967. nextValue = handler.onResolve(nextValue);
  968. }
  969. } else if (typeof(handler.onReject) === 'function') {
  970. nextValue = handler.onReject(nextValue);
  971. nextStatus = STATUS_RESOLVED;
  972. if (handler.thisPromise._unhandledRejection) {
  973. this.removeUnhandeledRejection(handler.thisPromise);
  974. }
  975. }
  976. } catch (ex) {
  977. nextStatus = STATUS_REJECTED;
  978. nextValue = ex;
  979. }
  980. handler.nextPromise._updateStatus(nextStatus, nextValue);
  981. if (Date.now() >= timeoutAt) {
  982. break;
  983. }
  984. }
  985. if (this.handlers.length > 0) {
  986. setTimeout(this.runHandlers.bind(this), 0);
  987. return;
  988. }
  989. this.running = false;
  990. },
  991. addUnhandledRejection: function addUnhandledRejection(promise) {
  992. this.unhandledRejections.push({
  993. promise: promise,
  994. time: Date.now()
  995. });
  996. this.scheduleRejectionCheck();
  997. },
  998. removeUnhandeledRejection: function removeUnhandeledRejection(promise) {
  999. promise._unhandledRejection = false;
  1000. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1001. if (this.unhandledRejections[i].promise === promise) {
  1002. this.unhandledRejections.splice(i);
  1003. i--;
  1004. }
  1005. }
  1006. },
  1007. scheduleRejectionCheck: function scheduleRejectionCheck() {
  1008. if (this.pendingRejectionCheck) {
  1009. return;
  1010. }
  1011. this.pendingRejectionCheck = true;
  1012. setTimeout(function rejectionCheck() {
  1013. this.pendingRejectionCheck = false;
  1014. var now = Date.now();
  1015. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1016. if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
  1017. var unhandled = this.unhandledRejections[i].promise._value;
  1018. var msg = 'Unhandled rejection: ' + unhandled;
  1019. if (unhandled.stack) {
  1020. msg += '\n' + unhandled.stack;
  1021. }
  1022. warn(msg);
  1023. this.unhandledRejections.splice(i);
  1024. i--;
  1025. }
  1026. }
  1027. if (this.unhandledRejections.length) {
  1028. this.scheduleRejectionCheck();
  1029. }
  1030. }.bind(this), REJECTION_TIMEOUT);
  1031. }
  1032. };
  1033. function Promise(resolver) {
  1034. this._status = STATUS_PENDING;
  1035. this._handlers = [];
  1036. resolver.call(this, this._resolve.bind(this), this._reject.bind(this));
  1037. }
  1038. /**
  1039. * Builds a promise that is resolved when all the passed in promises are
  1040. * resolved.
  1041. * @param {array} array of data and/or promises to wait for.
  1042. * @return {Promise} New dependant promise.
  1043. */
  1044. Promise.all = function Promise_all(promises) {
  1045. var resolveAll, rejectAll;
  1046. var deferred = new Promise(function (resolve, reject) {
  1047. resolveAll = resolve;
  1048. rejectAll = reject;
  1049. });
  1050. var unresolved = promises.length;
  1051. var results = [];
  1052. if (unresolved === 0) {
  1053. resolveAll(results);
  1054. return deferred;
  1055. }
  1056. function reject(reason) {
  1057. if (deferred._status === STATUS_REJECTED) {
  1058. return;
  1059. }
  1060. results = [];
  1061. rejectAll(reason);
  1062. }
  1063. for (var i = 0, ii = promises.length; i < ii; ++i) {
  1064. var promise = promises[i];
  1065. var resolve = (function(i) {
  1066. return function(value) {
  1067. if (deferred._status === STATUS_REJECTED) {
  1068. return;
  1069. }
  1070. results[i] = value;
  1071. unresolved--;
  1072. if (unresolved === 0) {
  1073. resolveAll(results);
  1074. }
  1075. };
  1076. })(i);
  1077. if (Promise.isPromise(promise)) {
  1078. promise.then(resolve, reject);
  1079. } else {
  1080. resolve(promise);
  1081. }
  1082. }
  1083. return deferred;
  1084. };
  1085. /**
  1086. * Checks if the value is likely a promise (has a 'then' function).
  1087. * @return {boolean} true if value is thenable
  1088. */
  1089. Promise.isPromise = function Promise_isPromise(value) {
  1090. return value && typeof value.then === 'function';
  1091. };
  1092. /**
  1093. * Creates resolved promise
  1094. * @param value resolve value
  1095. * @returns {Promise}
  1096. */
  1097. Promise.resolve = function Promise_resolve(value) {
  1098. return new Promise(function (resolve) { resolve(value); });
  1099. };
  1100. /**
  1101. * Creates rejected promise
  1102. * @param reason rejection value
  1103. * @returns {Promise}
  1104. */
  1105. Promise.reject = function Promise_reject(reason) {
  1106. return new Promise(function (resolve, reject) { reject(reason); });
  1107. };
  1108. Promise.prototype = {
  1109. _status: null,
  1110. _value: null,
  1111. _handlers: null,
  1112. _unhandledRejection: null,
  1113. _updateStatus: function Promise__updateStatus(status, value) {
  1114. if (this._status === STATUS_RESOLVED ||
  1115. this._status === STATUS_REJECTED) {
  1116. return;
  1117. }
  1118. if (status == STATUS_RESOLVED &&
  1119. Promise.isPromise(value)) {
  1120. value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
  1121. this._updateStatus.bind(this, STATUS_REJECTED));
  1122. return;
  1123. }
  1124. this._status = status;
  1125. this._value = value;
  1126. if (status === STATUS_REJECTED && this._handlers.length === 0) {
  1127. this._unhandledRejection = true;
  1128. HandlerManager.addUnhandledRejection(this);
  1129. }
  1130. HandlerManager.scheduleHandlers(this);
  1131. },
  1132. _resolve: function Promise_resolve(value) {
  1133. this._updateStatus(STATUS_RESOLVED, value);
  1134. },
  1135. _reject: function Promise_reject(reason) {
  1136. this._updateStatus(STATUS_REJECTED, reason);
  1137. },
  1138. then: function Promise_then(onResolve, onReject) {
  1139. var nextPromise = new Promise(function (resolve, reject) {
  1140. this.resolve = reject;
  1141. this.reject = reject;
  1142. });
  1143. this._handlers.push({
  1144. thisPromise: this,
  1145. onResolve: onResolve,
  1146. onReject: onReject,
  1147. nextPromise: nextPromise
  1148. });
  1149. HandlerManager.scheduleHandlers(this);
  1150. return nextPromise;
  1151. }
  1152. };
  1153. globalScope.Promise = Promise;
  1154. })();
  1155. var StatTimer = (function StatTimerClosure() {
  1156. function rpad(str, pad, length) {
  1157. while (str.length < length) {
  1158. str += pad;
  1159. }
  1160. return str;
  1161. }
  1162. function StatTimer() {
  1163. this.started = {};
  1164. this.times = [];
  1165. this.enabled = true;
  1166. }
  1167. StatTimer.prototype = {
  1168. time: function StatTimer_time(name) {
  1169. if (!this.enabled) {
  1170. return;
  1171. }
  1172. if (name in this.started) {
  1173. warn('Timer is already running for ' + name);
  1174. }
  1175. this.started[name] = Date.now();
  1176. },
  1177. timeEnd: function StatTimer_timeEnd(name) {
  1178. if (!this.enabled) {
  1179. return;
  1180. }
  1181. if (!(name in this.started)) {
  1182. warn('Timer has not been started for ' + name);
  1183. }
  1184. this.times.push({
  1185. 'name': name,
  1186. 'start': this.started[name],
  1187. 'end': Date.now()
  1188. });
  1189. // Remove timer from started so it can be called again.
  1190. delete this.started[name];
  1191. },
  1192. toString: function StatTimer_toString() {
  1193. var i, ii;
  1194. var times = this.times;
  1195. var out = '';
  1196. // Find the longest name for padding purposes.
  1197. var longest = 0;
  1198. for (i = 0, ii = times.length; i < ii; ++i) {
  1199. var name = times[i]['name'];
  1200. if (name.length > longest) {
  1201. longest = name.length;
  1202. }
  1203. }
  1204. for (i = 0, ii = times.length; i < ii; ++i) {
  1205. var span = times[i];
  1206. var duration = span.end - span.start;
  1207. out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n';
  1208. }
  1209. return out;
  1210. }
  1211. };
  1212. return StatTimer;
  1213. })();
  1214. PDFJS.createBlob = function createBlob(data, contentType) {
  1215. if (typeof Blob !== 'undefined') {
  1216. return new Blob([data], { type: contentType });
  1217. }
  1218. // Blob builder is deprecated in FF14 and removed in FF18.
  1219. var bb = new MozBlobBuilder();
  1220. bb.append(data);
  1221. return bb.getBlob(contentType);
  1222. };
  1223. PDFJS.createObjectURL = (function createObjectURLClosure() {
  1224. // Blob/createObjectURL is not available, falling back to data schema.
  1225. var digits =
  1226. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1227. return function createObjectURL(data, contentType) {
  1228. if (!PDFJS.disableCreateObjectURL &&
  1229. typeof URL !== 'undefined' && URL.createObjectURL) {
  1230. var blob = PDFJS.createBlob(data, contentType);
  1231. return URL.createObjectURL(blob);
  1232. }
  1233. var buffer = 'data:' + contentType + ';base64,';
  1234. for (var i = 0, ii = data.length; i < ii; i += 3) {
  1235. var b1 = data[i] & 0xFF;
  1236. var b2 = data[i + 1] & 0xFF;
  1237. var b3 = data[i + 2] & 0xFF;
  1238. var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
  1239. var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
  1240. var d4 = i + 2 < ii ? (b3 & 0x3F) : 64;
  1241. buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
  1242. }
  1243. return buffer;
  1244. };
  1245. })();
  1246. function MessageHandler(name, comObj) {
  1247. this.name = name;
  1248. this.comObj = comObj;
  1249. this.callbackIndex = 1;
  1250. this.postMessageTransfers = true;
  1251. var callbacks = this.callbacks = {};
  1252. var ah = this.actionHandler = {};
  1253. ah['console_log'] = [function ahConsoleLog(data) {
  1254. console.log.apply(console, data);
  1255. }];
  1256. ah['console_error'] = [function ahConsoleError(data) {
  1257. console.error.apply(console, data);
  1258. }];
  1259. ah['_unsupported_feature'] = [function ah_unsupportedFeature(data) {
  1260. UnsupportedManager.notify(data);
  1261. }];
  1262. comObj.onmessage = function messageHandlerComObjOnMessage(event) {
  1263. var data = event.data;
  1264. if (data.isReply) {
  1265. var callbackId = data.callbackId;
  1266. if (data.callbackId in callbacks) {
  1267. var callback = callbacks[callbackId];
  1268. delete callbacks[callbackId];
  1269. callback(data.data);
  1270. } else {
  1271. error('Cannot resolve callback ' + callbackId);
  1272. }
  1273. } else if (data.action in ah) {
  1274. var action = ah[data.action];
  1275. if (data.callbackId) {
  1276. var deferred = {};
  1277. var promise = new Promise(function (resolve, reject) {
  1278. deferred.resolve = resolve;
  1279. deferred.reject = reject;
  1280. });
  1281. deferred.promise = promise;
  1282. promise.then(function(resolvedData) {
  1283. comObj.postMessage({
  1284. isReply: true,
  1285. callbackId: data.callbackId,
  1286. data: resolvedData
  1287. });
  1288. });
  1289. action[0].call(action[1], data.data, deferred);
  1290. } else {
  1291. action[0].call(action[1], data.data);
  1292. }
  1293. } else {
  1294. error('Unkown action from worker: ' + data.action);
  1295. }
  1296. };
  1297. }
  1298. MessageHandler.prototype = {
  1299. on: function messageHandlerOn(actionName, handler, scope) {
  1300. var ah = this.actionHandler;
  1301. if (ah[actionName]) {
  1302. error('There is already an actionName called "' + actionName + '"');
  1303. }
  1304. ah[actionName] = [handler, scope];
  1305. },
  1306. /**
  1307. * Sends a message to the comObj to invoke the action with the supplied data.
  1308. * @param {String} actionName Action to call.
  1309. * @param {JSON} data JSON data to send.
  1310. * @param {function} [callback] Optional callback that will handle a reply.
  1311. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers
  1312. */
  1313. send: function messageHandlerSend(actionName, data, callback, transfers) {
  1314. var message = {
  1315. action: actionName,
  1316. data: data
  1317. };
  1318. if (callback) {
  1319. var callbackId = this.callbackIndex++;
  1320. this.callbacks[callbackId] = callback;
  1321. message.callbackId = callbackId;
  1322. }
  1323. if (transfers && this.postMessageTransfers) {
  1324. this.comObj.postMessage(message, transfers);
  1325. } else {
  1326. this.comObj.postMessage(message);
  1327. }
  1328. }
  1329. };
  1330. function loadJpegStream(id, imageUrl, objs) {
  1331. var img = new Image();
  1332. img.onload = (function loadJpegStream_onloadClosure() {
  1333. objs.resolve(id, img);
  1334. });
  1335. img.src = imageUrl;
  1336. }
  1337. var ColorSpace = (function ColorSpaceClosure() {
  1338. // Constructor should define this.numComps, this.defaultColor, this.name
  1339. function ColorSpace() {
  1340. error('should not call ColorSpace constructor');
  1341. }
  1342. ColorSpace.prototype = {
  1343. /**
  1344. * Converts the color value to the RGB color. The color components are
  1345. * located in the src array starting from the srcOffset. Returns the array
  1346. * of the rgb components, each value ranging from [0,255].
  1347. */
  1348. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  1349. var rgb = new Uint8Array(3);
  1350. this.getRgbItem(src, srcOffset, rgb, 0);
  1351. return rgb;
  1352. },
  1353. /**
  1354. * Converts the color value to the RGB color, similar to the getRgb method.
  1355. * The result placed into the dest array starting from the destOffset.
  1356. */
  1357. getRgbItem: function ColorSpace_getRgbItem(src, srcOffset,
  1358. dest, destOffset) {
  1359. error('Should not call ColorSpace.getRgbItem');
  1360. },
  1361. /**
  1362. * Converts the specified number of the color values to the RGB colors.
  1363. * The colors are located in the src array starting from the srcOffset.
  1364. * The result is placed into the dest array starting from the destOffset.
  1365. * The src array items shall be in [0,2^bits) range, the dest array items
  1366. * will be in [0,255] range. alpha01 indicates how many alpha components
  1367. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  1368. * array).
  1369. */
  1370. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  1371. dest, destOffset, bits,
  1372. alpha01) {
  1373. error('Should not call ColorSpace.getRgbBuffer');
  1374. },
  1375. /**
  1376. * Determines the number of bytes required to store the result of the
  1377. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  1378. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  1379. */
  1380. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  1381. alpha01) {
  1382. error('Should not call ColorSpace.getOutputLength');
  1383. },
  1384. /**
  1385. * Returns true if source data will be equal the result/output data.
  1386. */
  1387. isPassthrough: function ColorSpace_isPassthrough(bits) {
  1388. return false;
  1389. },
  1390. /**
  1391. * Fills in the RGB colors in the destination buffer. alpha01 indicates
  1392. * how many alpha components there are in the dest array; it will be either
  1393. * 0 (RGB array) or 1 (RGBA array).
  1394. */
  1395. fillRgb: function ColorSpace_fillRgb(dest, originalWidth,
  1396. originalHeight, width, height,
  1397. actualHeight, bpc, comps, alpha01) {
  1398. var count = originalWidth * originalHeight;
  1399. var rgbBuf = null;
  1400. var numComponentColors = 1 << bpc;
  1401. var needsResizing = originalHeight != height || originalWidth != width;
  1402. var i, ii;
  1403. if (this.isPassthrough(bpc)) {
  1404. rgbBuf = comps;
  1405. } else if (this.numComps === 1 && count > numComponentColors &&
  1406. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  1407. // Optimization: create a color map when there is just one component and
  1408. // we are converting more colors than the size of the color map. We
  1409. // don't build the map if the colorspace is gray or rgb since those
  1410. // methods are faster than building a map. This mainly offers big speed
  1411. // ups for indexed and alternate colorspaces.
  1412. //
  1413. // TODO it may be worth while to cache the color map. While running
  1414. // testing I never hit a cache so I will leave that out for now (perhaps
  1415. // we are reparsing colorspaces too much?).
  1416. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  1417. new Uint16Array(numComponentColors);
  1418. var key;
  1419. for (i = 0; i < numComponentColors; i++) {
  1420. allColors[i] = i;
  1421. }
  1422. var colorMap = new Uint8Array(numComponentColors * 3);
  1423. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  1424. /* alpha01 = */ 0);
  1425. var destPos, rgbPos;
  1426. if (!needsResizing) {
  1427. // Fill in the RGB values directly into |dest|.
  1428. destPos = 0;
  1429. for (i = 0; i < count; ++i) {
  1430. key = comps[i] * 3;
  1431. dest[destPos++] = colorMap[key];
  1432. dest[destPos++] = colorMap[key + 1];
  1433. dest[destPos++] = colorMap[key + 2];
  1434. destPos += alpha01;
  1435. }
  1436. } else {
  1437. rgbBuf = new Uint8Array(count * 3);
  1438. rgbPos = 0;
  1439. for (i = 0; i < count; ++i) {
  1440. key = comps[i] * 3;
  1441. rgbBuf[rgbPos++] = colorMap[key];
  1442. rgbBuf[rgbPos++] = colorMap[key + 1];
  1443. rgbBuf[rgbPos++] = colorMap[key + 2];
  1444. }
  1445. }
  1446. } else {
  1447. if (!needsResizing) {
  1448. // Fill in the RGB values directly into |dest|.
  1449. this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc,
  1450. alpha01);
  1451. } else {
  1452. rgbBuf = new Uint8Array(count * 3);
  1453. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  1454. /* alpha01 = */ 0);
  1455. }
  1456. }
  1457. if (rgbBuf) {
  1458. if (needsResizing) {
  1459. PDFImage.resize(rgbBuf, bpc, 3, originalWidth, originalHeight, width,
  1460. height, dest, alpha01);
  1461. } else {
  1462. rgbPos = 0;
  1463. destPos = 0;
  1464. for (i = 0, ii = width * actualHeight; i < ii; i++) {
  1465. dest[destPos++] = rgbBuf[rgbPos++];
  1466. dest[destPos++] = rgbBuf[rgbPos++];
  1467. dest[destPos++] = rgbBuf[rgbPos++];
  1468. destPos += alpha01;
  1469. }
  1470. }
  1471. }
  1472. },
  1473. /**
  1474. * True if the colorspace has components in the default range of [0, 1].
  1475. * This should be true for all colorspaces except for lab color spaces
  1476. * which are [0,100], [-128, 127], [-128, 127].
  1477. */
  1478. usesZeroToOneRange: true
  1479. };
  1480. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  1481. var IR = ColorSpace.parseToIR(cs, xref, res);
  1482. if (IR instanceof AlternateCS) {
  1483. return IR;
  1484. }
  1485. return ColorSpace.fromIR(IR);
  1486. };
  1487. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  1488. var name = isArray(IR) ? IR[0] : IR;
  1489. var whitePoint, blackPoint;
  1490. switch (name) {
  1491. case 'DeviceGrayCS':
  1492. return this.singletons.gray;
  1493. case 'DeviceRgbCS':
  1494. return this.singletons.rgb;
  1495. case 'DeviceCmykCS':
  1496. return this.singletons.cmyk;
  1497. case 'CalGrayCS':
  1498. whitePoint = IR[1].WhitePoint;
  1499. blackPoint = IR[1].BlackPoint;
  1500. var gamma = IR[1].Gamma;
  1501. return new CalGrayCS(whitePoint, blackPoint, gamma);
  1502. case 'PatternCS':
  1503. var basePatternCS = IR[1];
  1504. if (basePatternCS) {
  1505. basePatternCS = ColorSpace.fromIR(basePatternCS);
  1506. }
  1507. return new PatternCS(basePatternCS);
  1508. case 'IndexedCS':
  1509. var baseIndexedCS = IR[1];
  1510. var hiVal = IR[2];
  1511. var lookup = IR[3];
  1512. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  1513. case 'AlternateCS':
  1514. var numComps = IR[1];
  1515. var alt = IR[2];
  1516. var tintFnIR = IR[3];
  1517. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  1518. PDFFunction.fromIR(tintFnIR));
  1519. case 'LabCS':
  1520. whitePoint = IR[1].WhitePoint;
  1521. blackPoint = IR[1].BlackPoint;
  1522. var range = IR[1].Range;
  1523. return new LabCS(whitePoint, blackPoint, range);
  1524. default:
  1525. error('Unkown name ' + name);
  1526. }
  1527. return null;
  1528. };
  1529. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  1530. if (isName(cs)) {
  1531. var colorSpaces = res.get('ColorSpace');
  1532. if (isDict(colorSpaces)) {
  1533. var refcs = colorSpaces.get(cs.name);
  1534. if (refcs) {
  1535. cs = refcs;
  1536. }
  1537. }
  1538. }
  1539. cs = xref.fetchIfRef(cs);
  1540. var mode;
  1541. if (isName(cs)) {
  1542. mode = cs.name;
  1543. this.mode = mode;
  1544. switch (mode) {
  1545. case 'DeviceGray':
  1546. case 'G':
  1547. return 'DeviceGrayCS';
  1548. case 'DeviceRGB':
  1549. case 'RGB':
  1550. return 'DeviceRgbCS';
  1551. case 'DeviceCMYK':
  1552. case 'CMYK':
  1553. return 'DeviceCmykCS';
  1554. case 'Pattern':
  1555. return ['PatternCS', null];
  1556. default:
  1557. error('unrecognized colorspace ' + mode);
  1558. }
  1559. } else if (isArray(cs)) {
  1560. mode = cs[0].name;
  1561. this.mode = mode;
  1562. var numComps, params;
  1563. switch (mode) {
  1564. case 'DeviceGray':
  1565. case 'G':
  1566. return 'DeviceGrayCS';
  1567. case 'DeviceRGB':
  1568. case 'RGB':
  1569. return 'DeviceRgbCS';
  1570. case 'DeviceCMYK':
  1571. case 'CMYK':
  1572. return 'DeviceCmykCS';
  1573. case 'CalGray':
  1574. params = cs[1].getAll();
  1575. return ['CalGrayCS', params];
  1576. case 'CalRGB':
  1577. return 'DeviceRgbCS';
  1578. case 'ICCBased':
  1579. var stream = xref.fetchIfRef(cs[1]);
  1580. var dict = stream.dict;
  1581. numComps = dict.get('N');
  1582. if (numComps == 1) {
  1583. return 'DeviceGrayCS';
  1584. } else if (numComps == 3) {
  1585. return 'DeviceRgbCS';
  1586. } else if (numComps == 4) {
  1587. return 'DeviceCmykCS';
  1588. }
  1589. break;
  1590. case 'Pattern':
  1591. var basePatternCS = cs[1];
  1592. if (basePatternCS) {
  1593. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  1594. }
  1595. return ['PatternCS', basePatternCS];
  1596. case 'Indexed':
  1597. case 'I':
  1598. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  1599. var hiVal = cs[2] + 1;
  1600. var lookup = xref.fetchIfRef(cs[3]);
  1601. if (isStream(lookup)) {
  1602. lookup = lookup.getBytes();
  1603. }
  1604. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  1605. case 'Separation':
  1606. case 'DeviceN':
  1607. var name = cs[1];
  1608. numComps = 1;
  1609. if (isName(name)) {
  1610. numComps = 1;
  1611. } else if (isArray(name)) {
  1612. numComps = name.length;
  1613. }
  1614. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  1615. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  1616. return ['AlternateCS', numComps, alt, tintFnIR];
  1617. case 'Lab':
  1618. params = cs[1].getAll();
  1619. return ['LabCS', params];
  1620. default:
  1621. error('unimplemented color space object "' + mode + '"');
  1622. }
  1623. } else {
  1624. error('unrecognized color space object: "' + cs + '"');
  1625. }
  1626. return null;
  1627. };
  1628. /**
  1629. * Checks if a decode map matches the default decode map for a color space.
  1630. * This handles the general decode maps where there are two values per
  1631. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  1632. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  1633. * slightly different.
  1634. * @param {Array} decode Decode map (usually from an image).
  1635. * @param {Number} n Number of components the color space has.
  1636. */
  1637. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  1638. if (!decode) {
  1639. return true;
  1640. }
  1641. if (n * 2 !== decode.length) {
  1642. warn('The decode map is not the correct length');
  1643. return true;
  1644. }
  1645. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  1646. if (decode[i] !== 0 || decode[i + 1] != 1) {
  1647. return false;
  1648. }
  1649. }
  1650. return true;
  1651. };
  1652. ColorSpace.singletons = {
  1653. get gray() {
  1654. return shadow(this, 'gray', new DeviceGrayCS());
  1655. },
  1656. get rgb() {
  1657. return shadow(this, 'rgb', new DeviceRgbCS());
  1658. },
  1659. get cmyk() {
  1660. return shadow(this, 'cmyk', new DeviceCmykCS());
  1661. }
  1662. };
  1663. return ColorSpace;
  1664. })();
  1665. /**
  1666. * Alternate color space handles both Separation and DeviceN color spaces. A
  1667. * Separation color space is actually just a DeviceN with one color component.
  1668. * Both color spaces use a tinting function to convert colors to a base color
  1669. * space.
  1670. */
  1671. var AlternateCS = (function AlternateCSClosure() {
  1672. function AlternateCS(numComps, base, tintFn) {
  1673. this.name = 'Alternate';
  1674. this.numComps = numComps;
  1675. this.defaultColor = new Float32Array(numComps);
  1676. for (var i = 0; i < numComps; ++i) {
  1677. this.defaultColor[i] = 1;
  1678. }
  1679. this.base = base;
  1680. this.tintFn = tintFn;
  1681. }
  1682. AlternateCS.prototype = {
  1683. getRgb: ColorSpace.prototype.getRgb,
  1684. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  1685. dest, destOffset) {
  1686. var baseNumComps = this.base.numComps;
  1687. var input = 'subarray' in src ?
  1688. src.subarray(srcOffset, srcOffset + this.numComps) :
  1689. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  1690. var tinted = this.tintFn(input);
  1691. this.base.getRgbItem(tinted, 0, dest, destOffset);
  1692. },
  1693. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  1694. dest, destOffset, bits,
  1695. alpha01) {
  1696. var tintFn = this.tintFn;
  1697. var base = this.base;
  1698. var scale = 1 / ((1 << bits) - 1);
  1699. var baseNumComps = base.numComps;
  1700. var usesZeroToOneRange = base.usesZeroToOneRange;
  1701. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  1702. alpha01 === 0;
  1703. var pos = isPassthrough ? destOffset : 0;
  1704. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  1705. var numComps = this.numComps;
  1706. var scaled = new Float32Array(numComps);
  1707. var i, j;
  1708. for (i = 0; i < count; i++) {
  1709. for (j = 0; j < numComps; j++) {
  1710. scaled[j] = src[srcOffset++] * scale;
  1711. }
  1712. var tinted = tintFn(scaled);
  1713. if (usesZeroToOneRange) {
  1714. for (j = 0; j < baseNumComps; j++) {
  1715. baseBuf[pos++] = tinted[j] * 255;
  1716. }
  1717. } else {
  1718. base.getRgbItem(tinted, 0, baseBuf, pos);
  1719. pos += baseNumComps;
  1720. }
  1721. }
  1722. if (!isPassthrough) {
  1723. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  1724. }
  1725. },
  1726. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  1727. alpha01) {
  1728. return this.base.getOutputLength(inputLength *
  1729. this.base.numComps / this.numComps,
  1730. alpha01);
  1731. },
  1732. isPassthrough: ColorSpace.prototype.isPassthrough,
  1733. fillRgb: ColorSpace.prototype.fillRgb,
  1734. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  1735. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1736. },
  1737. usesZeroToOneRange: true
  1738. };
  1739. return AlternateCS;
  1740. })();
  1741. var PatternCS = (function PatternCSClosure() {
  1742. function PatternCS(baseCS) {
  1743. this.name = 'Pattern';
  1744. this.base = baseCS;
  1745. }
  1746. PatternCS.prototype = {};
  1747. return PatternCS;
  1748. })();
  1749. var IndexedCS = (function IndexedCSClosure() {
  1750. function IndexedCS(base, highVal, lookup) {
  1751. this.name = 'Indexed';
  1752. this.numComps = 1;
  1753. this.defaultColor = new Uint8Array([0]);
  1754. this.base = base;
  1755. this.highVal = highVal;
  1756. var baseNumComps = base.numComps;
  1757. var length = baseNumComps * highVal;
  1758. var lookupArray;
  1759. if (isStream(lookup)) {
  1760. lookupArray = new Uint8Array(length);
  1761. var bytes = lookup.getBytes(length);
  1762. lookupArray.set(bytes);
  1763. } else if (isString(lookup)) {
  1764. lookupArray = new Uint8Array(length);
  1765. for (var i = 0; i < length; ++i) {
  1766. lookupArray[i] = lookup.charCodeAt(i);
  1767. }
  1768. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  1769. lookupArray = lookup;
  1770. } else {
  1771. error('Unrecognized lookup table: ' + lookup);
  1772. }
  1773. this.lookup = lookupArray;
  1774. }
  1775. IndexedCS.prototype = {
  1776. getRgb: ColorSpace.prototype.getRgb,
  1777. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  1778. dest, destOffset) {
  1779. var numComps = this.base.numComps;
  1780. var start = src[srcOffset] * numComps;
  1781. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  1782. },
  1783. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  1784. dest, destOffset, bits,
  1785. alpha01) {
  1786. var base = this.base;
  1787. var numComps = base.numComps;
  1788. var outputDelta = base.getOutputLength(numComps, alpha01);
  1789. var lookup = this.lookup;
  1790. for (var i = 0; i < count; ++i) {
  1791. var lookupPos = src[srcOffset++] * numComps;
  1792. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  1793. destOffset += outputDelta;
  1794. }
  1795. },
  1796. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  1797. return this.base.getOutputLength(inputLength * this.base.numComps,
  1798. alpha01);
  1799. },
  1800. isPassthrough: ColorSpace.prototype.isPassthrough,
  1801. fillRgb: ColorSpace.prototype.fillRgb,
  1802. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  1803. // indexed color maps shouldn't be changed
  1804. return true;
  1805. },
  1806. usesZeroToOneRange: true
  1807. };
  1808. return IndexedCS;
  1809. })();
  1810. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  1811. function DeviceGrayCS() {
  1812. this.name = 'DeviceGray';
  1813. this.numComps = 1;
  1814. this.defaultColor = new Float32Array([0]);
  1815. }
  1816. DeviceGrayCS.prototype = {
  1817. getRgb: ColorSpace.prototype.getRgb,
  1818. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  1819. dest, destOffset) {
  1820. var c = (src[srcOffset] * 255) | 0;
  1821. c = c < 0 ? 0 : c > 255 ? 255 : c;
  1822. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  1823. },
  1824. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  1825. dest, destOffset, bits,
  1826. alpha01) {
  1827. var scale = 255 / ((1 << bits) - 1);
  1828. var j = srcOffset, q = destOffset;
  1829. for (var i = 0; i < count; ++i) {
  1830. var c = (scale * src[j++]) | 0;
  1831. dest[q++] = c;
  1832. dest[q++] = c;
  1833. dest[q++] = c;
  1834. q += alpha01;
  1835. }
  1836. },
  1837. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  1838. alpha01) {
  1839. return inputLength * (3 + alpha01);
  1840. },
  1841. isPassthrough: ColorSpace.prototype.isPassthrough,
  1842. fillRgb: ColorSpace.prototype.fillRgb,
  1843. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  1844. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1845. },
  1846. usesZeroToOneRange: true
  1847. };
  1848. return DeviceGrayCS;
  1849. })();
  1850. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  1851. function DeviceRgbCS() {
  1852. this.name = 'DeviceRGB';
  1853. this.numComps = 3;
  1854. this.defaultColor = new Float32Array([0, 0, 0]);
  1855. }
  1856. DeviceRgbCS.prototype = {
  1857. getRgb: ColorSpace.prototype.getRgb,
  1858. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  1859. dest, destOffset) {
  1860. var r = (src[srcOffset] * 255) | 0;
  1861. var g = (src[srcOffset + 1] * 255) | 0;
  1862. var b = (src[srcOffset + 2] * 255) | 0;
  1863. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  1864. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  1865. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  1866. },
  1867. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  1868. dest, destOffset, bits,
  1869. alpha01) {
  1870. if (bits === 8 && alpha01 === 0) {
  1871. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  1872. return;
  1873. }
  1874. var scale = 255 / ((1 << bits) - 1);
  1875. var j = srcOffset, q = destOffset;
  1876. for (var i = 0; i < count; ++i) {
  1877. dest[q++] = (scale * src[j++]) | 0;
  1878. dest[q++] = (scale * src[j++]) | 0;
  1879. dest[q++] = (scale * src[j++]) | 0;
  1880. q += alpha01;
  1881. }
  1882. },
  1883. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  1884. alpha01) {
  1885. return (inputLength * (3 + alpha01) / 3) | 0;
  1886. },
  1887. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  1888. return bits == 8;
  1889. },
  1890. fillRgb: ColorSpace.prototype.fillRgb,
  1891. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  1892. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1893. },
  1894. usesZeroToOneRange: true
  1895. };
  1896. return DeviceRgbCS;
  1897. })();
  1898. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  1899. // The coefficients below was found using numerical analysis: the method of
  1900. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  1901. // where color_value is the tabular value from the table of sampled RGB colors
  1902. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  1903. // CMYK color conversion using the estimation below:
  1904. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  1905. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  1906. var c = src[srcOffset + 0] * srcScale;
  1907. var m = src[srcOffset + 1] * srcScale;
  1908. var y = src[srcOffset + 2] * srcScale;
  1909. var k = src[srcOffset + 3] * srcScale;
  1910. var r =
  1911. (c * (-4.387332384609988 * c + 54.48615194189176 * m +
  1912. 18.82290502165302 * y + 212.25662451639585 * k +
  1913. -285.2331026137004) +
  1914. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  1915. -17.873870861415444 * k - 5.497006427196366) +
  1916. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  1917. 17.5119270841813) +
  1918. k * (-21.86122147463605 * k - 189.48180835922747) + 255) | 0;
  1919. var g =
  1920. (c * (8.841041422036149 * c + 60.118027045597366 * m +
  1921. 6.871425592049007 * y + 31.159100130055922 * k +
  1922. -79.2970844816548) +
  1923. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  1924. 131.35250912493976 * k - 190.9453302588951) +
  1925. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  1926. k * (-20.737325471181034 * k - 187.80453709719578) + 255) | 0;
  1927. var b =
  1928. (c * (0.8842522430003296 * c + 8.078677503112928 * m +
  1929. 30.89978309703729 * y - 0.23883238689178934 * k +
  1930. -14.183576799673286) +
  1931. m * (10.49593273432072 * m + 63.02378494754052 * y +
  1932. 50.606957656360734 * k - 112.23884253719248) +
  1933. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  1934. -193.58209356861505) +
  1935. k * (-22.33816807309886 * k - 180.12613974708367) + 255) | 0;
  1936. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  1937. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  1938. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  1939. }
  1940. function DeviceCmykCS() {
  1941. this.name = 'DeviceCMYK';
  1942. this.numComps = 4;
  1943. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  1944. }
  1945. DeviceCmykCS.prototype = {
  1946. getRgb: ColorSpace.prototype.getRgb,
  1947. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  1948. dest, destOffset) {
  1949. convertToRgb(src, srcOffset, 1, dest, destOffset);
  1950. },
  1951. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  1952. dest, destOffset, bits,
  1953. alpha01) {
  1954. var scale = 1 / ((1 << bits) - 1);
  1955. for (var i = 0; i < count; i++) {
  1956. convertToRgb(src, srcOffset, scale, dest, destOffset);
  1957. srcOffset += 4;
  1958. destOffset += 3 + alpha01;
  1959. }
  1960. },
  1961. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  1962. alpha01) {
  1963. return (inputLength / 4 * (3 + alpha01)) | 0;
  1964. },
  1965. isPassthrough: ColorSpace.prototype.isPassthrough,
  1966. fillRgb: ColorSpace.prototype.fillRgb,
  1967. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  1968. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1969. },
  1970. usesZeroToOneRange: true
  1971. };
  1972. return DeviceCmykCS;
  1973. })();
  1974. //
  1975. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  1976. //
  1977. var CalGrayCS = (function CalGrayCSClosure() {
  1978. function CalGrayCS(whitePoint, blackPoint, gamma) {
  1979. this.name = 'CalGray';
  1980. this.numComps = 1;
  1981. this.defaultColor = new Float32Array([0]);
  1982. if (!whitePoint) {
  1983. error('WhitePoint missing - required for color space CalGray');
  1984. }
  1985. blackPoint = blackPoint || [0, 0, 0];
  1986. gamma = gamma || 1;
  1987. // Translate arguments to spec variables.
  1988. this.XW = whitePoint[0];
  1989. this.YW = whitePoint[1];
  1990. this.ZW = whitePoint[2];
  1991. this.XB = blackPoint[0];
  1992. this.YB = blackPoint[1];
  1993. this.ZB = blackPoint[2];
  1994. this.G = gamma;
  1995. // Validate variables as per spec.
  1996. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  1997. error('Invalid WhitePoint components for ' + this.name +
  1998. ', no fallback available');
  1999. }
  2000. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  2001. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  2002. this.XB = this.YB = this.ZB = 0;
  2003. }
  2004. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  2005. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  2006. ', ZB: ' + this.ZB + ', only default values are supported.');
  2007. }
  2008. if (this.G < 1) {
  2009. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  2010. ', falling back to default');
  2011. this.G = 1;
  2012. }
  2013. }
  2014. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  2015. // A represents a gray component of a calibrated gray space.
  2016. // A <---> AG in the spec
  2017. var A = src[srcOffset] * scale;
  2018. var AG = Math.pow(A, cs.G);
  2019. // Computes intermediate variables M, L, N as per spec.
  2020. // Except if other than default BlackPoint values are used.
  2021. var M = cs.XW * AG;
  2022. var L = cs.YW * AG;
  2023. var N = cs.ZW * AG;
  2024. // Decode XYZ, as per spec.
  2025. var X = M;
  2026. var Y = L;
  2027. var Z = N;
  2028. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  2029. // This yields values in range [0, 100].
  2030. var Lstar = Math.max(116 * Math.pow(Y, 1 / 3) - 16, 0);
  2031. // Convert values to rgb range [0, 255].
  2032. dest[destOffset] = Lstar * 255 / 100;
  2033. dest[destOffset + 1] = Lstar * 255 / 100;
  2034. dest[destOffset + 2] = Lstar * 255 / 100;
  2035. }
  2036. CalGrayCS.prototype = {
  2037. getRgb: ColorSpace.prototype.getRgb,
  2038. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  2039. dest, destOffset) {
  2040. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  2041. },
  2042. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  2043. dest, destOffset, bits,
  2044. alpha01) {
  2045. var scale = 1 / ((1 << bits) - 1);
  2046. for (var i = 0; i < count; ++i) {
  2047. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  2048. srcOffset += 1;
  2049. destOffset += 3 + alpha01;
  2050. }
  2051. },
  2052. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  2053. return inputLength * (3 + alpha01);
  2054. },
  2055. isPassthrough: ColorSpace.prototype.isPassthrough,
  2056. fillRgb: ColorSpace.prototype.fillRgb,
  2057. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  2058. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  2059. },
  2060. usesZeroToOneRange: true
  2061. };
  2062. return CalGrayCS;
  2063. })();
  2064. //
  2065. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  2066. //
  2067. var LabCS = (function LabCSClosure() {
  2068. function LabCS(whitePoint, blackPoint, range) {
  2069. this.name = 'Lab';
  2070. this.numComps = 3;
  2071. this.defaultColor = new Float32Array([0, 0, 0]);
  2072. if (!whitePoint) {
  2073. error('WhitePoint missing - required for color space Lab');
  2074. }
  2075. blackPoint = blackPoint || [0, 0, 0];
  2076. range = range || [-100, 100, -100, 100];
  2077. // Translate args to spec variables
  2078. this.XW = whitePoint[0];
  2079. this.YW = whitePoint[1];
  2080. this.ZW = whitePoint[2];
  2081. this.amin = range[0];
  2082. this.amax = range[1];
  2083. this.bmin = range[2];
  2084. this.bmax = range[3];
  2085. // These are here just for completeness - the spec doesn't offer any
  2086. // formulas that use BlackPoint in Lab
  2087. this.XB = blackPoint[0];
  2088. this.YB = blackPoint[1];
  2089. this.ZB = blackPoint[2];
  2090. // Validate vars as per spec
  2091. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  2092. error('Invalid WhitePoint components, no fallback available');
  2093. }
  2094. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  2095. info('Invalid BlackPoint, falling back to default');
  2096. this.XB = this.YB = this.ZB = 0;
  2097. }
  2098. if (this.amin > this.amax || this.bmin > this.bmax) {
  2099. info('Invalid Range, falling back to defaults');
  2100. this.amin = -100;
  2101. this.amax = 100;
  2102. this.bmin = -100;
  2103. this.bmax = 100;
  2104. }
  2105. }
  2106. // Function g(x) from spec
  2107. function fn_g(x) {
  2108. if (x >= 6 / 29) {
  2109. return x * x * x;
  2110. } else {
  2111. return (108 / 841) * (x - 4 / 29);
  2112. }
  2113. }
  2114. function decode(value, high1, low2, high2) {
  2115. return low2 + (value) * (high2 - low2) / (high1);
  2116. }
  2117. // If decoding is needed maxVal should be 2^bits per component - 1.
  2118. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  2119. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  2120. // not the usual [0, 1]. If a command like setFillColor is used the src
  2121. // values will already be within the correct range. However, if we are
  2122. // converting an image we have to map the values to the correct range given
  2123. // above.
  2124. // Ls,as,bs <---> L*,a*,b* in the spec
  2125. var Ls = src[srcOffset];
  2126. var as = src[srcOffset + 1];
  2127. var bs = src[srcOffset + 2];
  2128. if (maxVal !== false) {
  2129. Ls = decode(Ls, maxVal, 0, 100);
  2130. as = decode(as, maxVal, cs.amin, cs.amax);
  2131. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  2132. }
  2133. // Adjust limits of 'as' and 'bs'
  2134. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  2135. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  2136. // Computes intermediate variables X,Y,Z as per spec
  2137. var M = (Ls + 16) / 116;
  2138. var L = M + (as / 500);
  2139. var N = M - (bs / 200);
  2140. var X = cs.XW * fn_g(L);
  2141. var Y = cs.YW * fn_g(M);
  2142. var Z = cs.ZW * fn_g(N);
  2143. var r, g, b;
  2144. // Using different conversions for D50 and D65 white points,
  2145. // per http://www.color.org/srgb.pdf
  2146. if (cs.ZW < 1) {
  2147. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  2148. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  2149. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  2150. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  2151. } else {
  2152. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  2153. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  2154. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  2155. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  2156. }
  2157. // clamp color values to [0,1] range then convert to [0,255] range.
  2158. dest[destOffset] = r <= 0 ? 0 : r >= 1 ? 255 : Math.sqrt(r) * 255 | 0;
  2159. dest[destOffset + 1] = g <= 0 ? 0 : g >= 1 ? 255 : Math.sqrt(g) * 255 | 0;
  2160. dest[destOffset + 2] = b <= 0 ? 0 : b >= 1 ? 255 : Math.sqrt(b) * 255 | 0;
  2161. }
  2162. LabCS.prototype = {
  2163. getRgb: ColorSpace.prototype.getRgb,
  2164. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  2165. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  2166. },
  2167. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  2168. dest, destOffset, bits,
  2169. alpha01) {
  2170. var maxVal = (1 << bits) - 1;
  2171. for (var i = 0; i < count; i++) {
  2172. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  2173. srcOffset += 3;
  2174. destOffset += 3 + alpha01;
  2175. }
  2176. },
  2177. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  2178. return (inputLength * (3 + alpha01) / 3) | 0;
  2179. },
  2180. isPassthrough: ColorSpace.prototype.isPassthrough,
  2181. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  2182. // XXX: Decoding is handled with the lab conversion because of the strange
  2183. // ranges that are used.
  2184. return true;
  2185. },
  2186. usesZeroToOneRange: false
  2187. };
  2188. return LabCS;
  2189. })();
  2190. var PDFFunction = (function PDFFunctionClosure() {
  2191. var CONSTRUCT_SAMPLED = 0;
  2192. var CONSTRUCT_INTERPOLATED = 2;
  2193. var CONSTRUCT_STICHED = 3;
  2194. var CONSTRUCT_POSTSCRIPT = 4;
  2195. return {
  2196. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  2197. str) {
  2198. var i, ii;
  2199. var length = 1;
  2200. for (i = 0, ii = size.length; i < ii; i++) {
  2201. length *= size[i];
  2202. }
  2203. length *= outputSize;
  2204. var array = [];
  2205. var codeSize = 0;
  2206. var codeBuf = 0;
  2207. // 32 is a valid bps so shifting won't work
  2208. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  2209. var strBytes = str.getBytes((length * bps + 7) / 8);
  2210. var strIdx = 0;
  2211. for (i = 0; i < length; i++) {
  2212. while (codeSize < bps) {
  2213. codeBuf <<= 8;
  2214. codeBuf |= strBytes[strIdx++];
  2215. codeSize += 8;
  2216. }
  2217. codeSize -= bps;
  2218. array.push((codeBuf >> codeSize) * sampleMul);
  2219. codeBuf &= (1 << codeSize) - 1;
  2220. }
  2221. return array;
  2222. },
  2223. getIR: function PDFFunction_getIR(xref, fn) {
  2224. var dict = fn.dict;
  2225. if (!dict) {
  2226. dict = fn;
  2227. }
  2228. var types = [this.constructSampled,
  2229. null,
  2230. this.constructInterpolated,
  2231. this.constructStiched,
  2232. this.constructPostScript];
  2233. var typeNum = dict.get('FunctionType');
  2234. var typeFn = types[typeNum];
  2235. if (!typeFn) {
  2236. error('Unknown type of function');
  2237. }
  2238. return typeFn.call(this, fn, dict, xref);
  2239. },
  2240. fromIR: function PDFFunction_fromIR(IR) {
  2241. var type = IR[0];
  2242. switch (type) {
  2243. case CONSTRUCT_SAMPLED:
  2244. return this.constructSampledFromIR(IR);
  2245. case CONSTRUCT_INTERPOLATED:
  2246. return this.constructInterpolatedFromIR(IR);
  2247. case CONSTRUCT_STICHED:
  2248. return this.constructStichedFromIR(IR);
  2249. //case CONSTRUCT_POSTSCRIPT:
  2250. default:
  2251. return this.constructPostScriptFromIR(IR);
  2252. }
  2253. },
  2254. parse: function PDFFunction_parse(xref, fn) {
  2255. var IR = this.getIR(xref, fn);
  2256. return this.fromIR(IR);
  2257. },
  2258. constructSampled: function PDFFunction_constructSampled(str, dict) {
  2259. function toMultiArray(arr) {
  2260. var inputLength = arr.length;
  2261. var out = [];
  2262. var index = 0;
  2263. for (var i = 0; i < inputLength; i += 2) {
  2264. out[index] = [arr[i], arr[i + 1]];
  2265. ++index;
  2266. }
  2267. return out;
  2268. }
  2269. var domain = dict.get('Domain');
  2270. var range = dict.get('Range');
  2271. if (!domain || !range) {
  2272. error('No domain or range');
  2273. }
  2274. var inputSize = domain.length / 2;
  2275. var outputSize = range.length / 2;
  2276. domain = toMultiArray(domain);
  2277. range = toMultiArray(range);
  2278. var size = dict.get('Size');
  2279. var bps = dict.get('BitsPerSample');
  2280. var order = dict.get('Order') || 1;
  2281. if (order !== 1) {
  2282. // No description how cubic spline interpolation works in PDF32000:2008
  2283. // As in poppler, ignoring order, linear interpolation may work as good
  2284. info('No support for cubic spline interpolation: ' + order);
  2285. }
  2286. var encode = dict.get('Encode');
  2287. if (!encode) {
  2288. encode = [];
  2289. for (var i = 0; i < inputSize; ++i) {
  2290. encode.push(0);
  2291. encode.push(size[i] - 1);
  2292. }
  2293. }
  2294. encode = toMultiArray(encode);
  2295. var decode = dict.get('Decode');
  2296. if (!decode) {
  2297. decode = range;
  2298. } else {
  2299. decode = toMultiArray(decode);
  2300. }
  2301. var samples = this.getSampleArray(size, outputSize, bps, str);
  2302. return [
  2303. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  2304. outputSize, Math.pow(2, bps) - 1, range
  2305. ];
  2306. },
  2307. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  2308. // See chapter 3, page 109 of the PDF reference
  2309. function interpolate(x, xmin, xmax, ymin, ymax) {
  2310. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  2311. }
  2312. return function constructSampledFromIRResult(args) {
  2313. // See chapter 3, page 110 of the PDF reference.
  2314. var m = IR[1];
  2315. var domain = IR[2];
  2316. var encode = IR[3];
  2317. var decode = IR[4];
  2318. var samples = IR[5];
  2319. var size = IR[6];
  2320. var n = IR[7];
  2321. //var mask = IR[8];
  2322. var range = IR[9];
  2323. if (m != args.length) {
  2324. error('Incorrect number of arguments: ' + m + ' != ' +
  2325. args.length);
  2326. }
  2327. var x = args;
  2328. // Building the cube vertices: its part and sample index
  2329. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  2330. var cubeVertices = 1 << m;
  2331. var cubeN = new Float64Array(cubeVertices);
  2332. var cubeVertex = new Uint32Array(cubeVertices);
  2333. var i, j;
  2334. for (j = 0; j < cubeVertices; j++) {
  2335. cubeN[j] = 1;
  2336. }
  2337. var k = n, pos = 1;
  2338. // Map x_i to y_j for 0 <= i < m using the sampled function.
  2339. for (i = 0; i < m; ++i) {
  2340. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  2341. var domain_2i = domain[i][0];
  2342. var domain_2i_1 = domain[i][1];
  2343. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  2344. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  2345. // Encode_2i, Encode_2i+1)
  2346. var e = interpolate(xi, domain_2i, domain_2i_1,
  2347. encode[i][0], encode[i][1]);
  2348. // e_i' = min(max(e_i, 0), Size_i - 1)
  2349. var size_i = size[i];
  2350. e = Math.min(Math.max(e, 0), size_i - 1);
  2351. // Adjusting the cube: N and vertex sample index
  2352. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  2353. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  2354. var n1 = e - e0; // (e - e0) / (e1 - e0);
  2355. var offset0 = e0 * k;
  2356. var offset1 = offset0 + k; // e1 * k
  2357. for (j = 0; j < cubeVertices; j++) {
  2358. if (j & pos) {
  2359. cubeN[j] *= n1;
  2360. cubeVertex[j] += offset1;
  2361. } else {
  2362. cubeN[j] *= n0;
  2363. cubeVertex[j] += offset0;
  2364. }
  2365. }
  2366. k *= size_i;
  2367. pos <<= 1;
  2368. }
  2369. var y = new Float64Array(n);
  2370. for (j = 0; j < n; ++j) {
  2371. // Sum all cube vertices' samples portions
  2372. var rj = 0;
  2373. for (i = 0; i < cubeVertices; i++) {
  2374. rj += samples[cubeVertex[i] + j] * cubeN[i];
  2375. }
  2376. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  2377. // Decode_2j, Decode_2j+1)
  2378. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  2379. // y_j = min(max(r_j, range_2j), range_2j+1)
  2380. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  2381. }
  2382. return y;
  2383. };
  2384. },
  2385. constructInterpolated: function PDFFunction_constructInterpolated(str,
  2386. dict) {
  2387. var c0 = dict.get('C0') || [0];
  2388. var c1 = dict.get('C1') || [1];
  2389. var n = dict.get('N');
  2390. if (!isArray(c0) || !isArray(c1)) {
  2391. error('Illegal dictionary for interpolated function');
  2392. }
  2393. var length = c0.length;
  2394. var diff = [];
  2395. for (var i = 0; i < length; ++i) {
  2396. diff.push(c1[i] - c0[i]);
  2397. }
  2398. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  2399. },
  2400. constructInterpolatedFromIR:
  2401. function PDFFunction_constructInterpolatedFromIR(IR) {
  2402. var c0 = IR[1];
  2403. var diff = IR[2];
  2404. var n = IR[3];
  2405. var length = diff.length;
  2406. return function constructInterpolatedFromIRResult(args) {
  2407. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  2408. var out = [];
  2409. for (var j = 0; j < length; ++j) {
  2410. out.push(c0[j] + (x * diff[j]));
  2411. }
  2412. return out;
  2413. };
  2414. },
  2415. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  2416. var domain = dict.get('Domain');
  2417. if (!domain) {
  2418. error('No domain');
  2419. }
  2420. var inputSize = domain.length / 2;
  2421. if (inputSize != 1) {
  2422. error('Bad domain for stiched function');
  2423. }
  2424. var fnRefs = dict.get('Functions');
  2425. var fns = [];
  2426. for (var i = 0, ii = fnRefs.length; i < ii; ++i) {
  2427. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  2428. }
  2429. var bounds = dict.get('Bounds');
  2430. var encode = dict.get('Encode');
  2431. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  2432. },
  2433. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  2434. var domain = IR[1];
  2435. var bounds = IR[2];
  2436. var encode = IR[3];
  2437. var fnsIR = IR[4];
  2438. var fns = [];
  2439. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  2440. fns.push(PDFFunction.fromIR(fnsIR[i]));
  2441. }
  2442. return function constructStichedFromIRResult(args) {
  2443. var clip = function constructStichedFromIRClip(v, min, max) {
  2444. if (v > max) {
  2445. v = max;
  2446. } else if (v < min) {
  2447. v = min;
  2448. }
  2449. return v;
  2450. };
  2451. // clip to domain
  2452. var v = clip(args[0], domain[0], domain[1]);
  2453. // calulate which bound the value is in
  2454. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  2455. if (v < bounds[i]) {
  2456. break;
  2457. }
  2458. }
  2459. // encode value into domain of function
  2460. var dmin = domain[0];
  2461. if (i > 0) {
  2462. dmin = bounds[i - 1];
  2463. }
  2464. var dmax = domain[1];
  2465. if (i < bounds.length) {
  2466. dmax = bounds[i];
  2467. }
  2468. var rmin = encode[2 * i];
  2469. var rmax = encode[2 * i + 1];
  2470. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  2471. // call the appropriate function
  2472. return fns[i]([v2]);
  2473. };
  2474. },
  2475. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  2476. xref) {
  2477. var domain = dict.get('Domain');
  2478. var range = dict.get('Range');
  2479. if (!domain) {
  2480. error('No domain.');
  2481. }
  2482. if (!range) {
  2483. error('No range.');
  2484. }
  2485. var lexer = new PostScriptLexer(fn);
  2486. var parser = new PostScriptParser(lexer);
  2487. var code = parser.parse();
  2488. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  2489. },
  2490. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  2491. IR) {
  2492. var domain = IR[1];
  2493. var range = IR[2];
  2494. var code = IR[3];
  2495. var numOutputs = range.length / 2;
  2496. var evaluator = new PostScriptEvaluator(code);
  2497. // Cache the values for a big speed up, the cache size is limited though
  2498. // since the number of possible values can be huge from a PS function.
  2499. var cache = new FunctionCache();
  2500. return function constructPostScriptFromIRResult(args) {
  2501. var initialStack = [];
  2502. for (var i = 0, ii = (domain.length / 2); i < ii; ++i) {
  2503. initialStack.push(args[i]);
  2504. }
  2505. var key = initialStack.join('_');
  2506. if (cache.has(key)) {
  2507. return cache.get(key);
  2508. }
  2509. var stack = evaluator.execute(initialStack);
  2510. var transformed = [];
  2511. for (i = numOutputs - 1; i >= 0; --i) {
  2512. var out = stack.pop();
  2513. var rangeIndex = 2 * i;
  2514. if (out < range[rangeIndex]) {
  2515. out = range[rangeIndex];
  2516. } else if (out > range[rangeIndex + 1]) {
  2517. out = range[rangeIndex + 1];
  2518. }
  2519. transformed[i] = out;
  2520. }
  2521. cache.set(key, transformed);
  2522. return transformed;
  2523. };
  2524. }
  2525. };
  2526. })();
  2527. var FunctionCache = (function FunctionCacheClosure() {
  2528. // Of 10 PDF's with type4 functions the maxium number of distinct values seen
  2529. // was 256. This still may need some tweaking in the future though.
  2530. var MAX_CACHE_SIZE = 1024;
  2531. function FunctionCache() {
  2532. this.cache = {};
  2533. this.total = 0;
  2534. }
  2535. FunctionCache.prototype = {
  2536. has: function FunctionCache_has(key) {
  2537. return key in this.cache;
  2538. },
  2539. get: function FunctionCache_get(key) {
  2540. return this.cache[key];
  2541. },
  2542. set: function FunctionCache_set(key, value) {
  2543. if (this.total < MAX_CACHE_SIZE) {
  2544. this.cache[key] = value;
  2545. this.total++;
  2546. }
  2547. }
  2548. };
  2549. return FunctionCache;
  2550. })();
  2551. var PostScriptStack = (function PostScriptStackClosure() {
  2552. var MAX_STACK_SIZE = 100;
  2553. function PostScriptStack(initialStack) {
  2554. this.stack = initialStack || [];
  2555. }
  2556. PostScriptStack.prototype = {
  2557. push: function PostScriptStack_push(value) {
  2558. if (this.stack.length >= MAX_STACK_SIZE) {
  2559. error('PostScript function stack overflow.');
  2560. }
  2561. this.stack.push(value);
  2562. },
  2563. pop: function PostScriptStack_pop() {
  2564. if (this.stack.length <= 0) {
  2565. error('PostScript function stack underflow.');
  2566. }
  2567. return this.stack.pop();
  2568. },
  2569. copy: function PostScriptStack_copy(n) {
  2570. if (this.stack.length + n >= MAX_STACK_SIZE) {
  2571. error('PostScript function stack overflow.');
  2572. }
  2573. var stack = this.stack;
  2574. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++) {
  2575. stack.push(stack[i]);
  2576. }
  2577. },
  2578. index: function PostScriptStack_index(n) {
  2579. this.push(this.stack[this.stack.length - n - 1]);
  2580. },
  2581. // rotate the last n stack elements p times
  2582. roll: function PostScriptStack_roll(n, p) {
  2583. var stack = this.stack;
  2584. var l = stack.length - n;
  2585. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  2586. for (i = l, j = r; i < j; i++, j--) {
  2587. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2588. }
  2589. for (i = l, j = c - 1; i < j; i++, j--) {
  2590. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2591. }
  2592. for (i = c, j = r; i < j; i++, j--) {
  2593. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2594. }
  2595. }
  2596. };
  2597. return PostScriptStack;
  2598. })();
  2599. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  2600. function PostScriptEvaluator(operators) {
  2601. this.operators = operators;
  2602. }
  2603. PostScriptEvaluator.prototype = {
  2604. execute: function PostScriptEvaluator_execute(initialStack) {
  2605. var stack = new PostScriptStack(initialStack);
  2606. var counter = 0;
  2607. var operators = this.operators;
  2608. var length = operators.length;
  2609. var operator, a, b;
  2610. while (counter < length) {
  2611. operator = operators[counter++];
  2612. if (typeof operator == 'number') {
  2613. // Operator is really an operand and should be pushed to the stack.
  2614. stack.push(operator);
  2615. continue;
  2616. }
  2617. switch (operator) {
  2618. // non standard ps operators
  2619. case 'jz': // jump if false
  2620. b = stack.pop();
  2621. a = stack.pop();
  2622. if (!a) {
  2623. counter = b;
  2624. }
  2625. break;
  2626. case 'j': // jump
  2627. a = stack.pop();
  2628. counter = a;
  2629. break;
  2630. // all ps operators in alphabetical order (excluding if/ifelse)
  2631. case 'abs':
  2632. a = stack.pop();
  2633. stack.push(Math.abs(a));
  2634. break;
  2635. case 'add':
  2636. b = stack.pop();
  2637. a = stack.pop();
  2638. stack.push(a + b);
  2639. break;
  2640. case 'and':
  2641. b = stack.pop();
  2642. a = stack.pop();
  2643. if (isBool(a) && isBool(b)) {
  2644. stack.push(a && b);
  2645. } else {
  2646. stack.push(a & b);
  2647. }
  2648. break;
  2649. case 'atan':
  2650. a = stack.pop();
  2651. stack.push(Math.atan(a));
  2652. break;
  2653. case 'bitshift':
  2654. b = stack.pop();
  2655. a = stack.pop();
  2656. if (a > 0) {
  2657. stack.push(a << b);
  2658. } else {
  2659. stack.push(a >> b);
  2660. }
  2661. break;
  2662. case 'ceiling':
  2663. a = stack.pop();
  2664. stack.push(Math.ceil(a));
  2665. break;
  2666. case 'copy':
  2667. a = stack.pop();
  2668. stack.copy(a);
  2669. break;
  2670. case 'cos':
  2671. a = stack.pop();
  2672. stack.push(Math.cos(a));
  2673. break;
  2674. case 'cvi':
  2675. a = stack.pop() | 0;
  2676. stack.push(a);
  2677. break;
  2678. case 'cvr':
  2679. // noop
  2680. break;
  2681. case 'div':
  2682. b = stack.pop();
  2683. a = stack.pop();
  2684. stack.push(a / b);
  2685. break;
  2686. case 'dup':
  2687. stack.copy(1);
  2688. break;
  2689. case 'eq':
  2690. b = stack.pop();
  2691. a = stack.pop();
  2692. stack.push(a == b);
  2693. break;
  2694. case 'exch':
  2695. stack.roll(2, 1);
  2696. break;
  2697. case 'exp':
  2698. b = stack.pop();
  2699. a = stack.pop();
  2700. stack.push(Math.pow(a, b));
  2701. break;
  2702. case 'false':
  2703. stack.push(false);
  2704. break;
  2705. case 'floor':
  2706. a = stack.pop();
  2707. stack.push(Math.floor(a));
  2708. break;
  2709. case 'ge':
  2710. b = stack.pop();
  2711. a = stack.pop();
  2712. stack.push(a >= b);
  2713. break;
  2714. case 'gt':
  2715. b = stack.pop();
  2716. a = stack.pop();
  2717. stack.push(a > b);
  2718. break;
  2719. case 'idiv':
  2720. b = stack.pop();
  2721. a = stack.pop();
  2722. stack.push((a / b) | 0);
  2723. break;
  2724. case 'index':
  2725. a = stack.pop();
  2726. stack.index(a);
  2727. break;
  2728. case 'le':
  2729. b = stack.pop();
  2730. a = stack.pop();
  2731. stack.push(a <= b);
  2732. break;
  2733. case 'ln':
  2734. a = stack.pop();
  2735. stack.push(Math.log(a));
  2736. break;
  2737. case 'log':
  2738. a = stack.pop();
  2739. stack.push(Math.log(a) / Math.LN10);
  2740. break;
  2741. case 'lt':
  2742. b = stack.pop();
  2743. a = stack.pop();
  2744. stack.push(a < b);
  2745. break;
  2746. case 'mod':
  2747. b = stack.pop();
  2748. a = stack.pop();
  2749. stack.push(a % b);
  2750. break;
  2751. case 'mul':
  2752. b = stack.pop();
  2753. a = stack.pop();
  2754. stack.push(a * b);
  2755. break;
  2756. case 'ne':
  2757. b = stack.pop();
  2758. a = stack.pop();
  2759. stack.push(a != b);
  2760. break;
  2761. case 'neg':
  2762. a = stack.pop();
  2763. stack.push(-b);
  2764. break;
  2765. case 'not':
  2766. a = stack.pop();
  2767. if (isBool(a) && isBool(b)) {
  2768. stack.push(a && b);
  2769. } else {
  2770. stack.push(a & b);
  2771. }
  2772. break;
  2773. case 'or':
  2774. b = stack.pop();
  2775. a = stack.pop();
  2776. if (isBool(a) && isBool(b)) {
  2777. stack.push(a || b);
  2778. } else {
  2779. stack.push(a | b);
  2780. }
  2781. break;
  2782. case 'pop':
  2783. stack.pop();
  2784. break;
  2785. case 'roll':
  2786. b = stack.pop();
  2787. a = stack.pop();
  2788. stack.roll(a, b);
  2789. break;
  2790. case 'round':
  2791. a = stack.pop();
  2792. stack.push(Math.round(a));
  2793. break;
  2794. case 'sin':
  2795. a = stack.pop();
  2796. stack.push(Math.sin(a));
  2797. break;
  2798. case 'sqrt':
  2799. a = stack.pop();
  2800. stack.push(Math.sqrt(a));
  2801. break;
  2802. case 'sub':
  2803. b = stack.pop();
  2804. a = stack.pop();
  2805. stack.push(a - b);
  2806. break;
  2807. case 'true':
  2808. stack.push(true);
  2809. break;
  2810. case 'truncate':
  2811. a = stack.pop();
  2812. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  2813. stack.push(a);
  2814. break;
  2815. case 'xor':
  2816. b = stack.pop();
  2817. a = stack.pop();
  2818. if (isBool(a) && isBool(b)) {
  2819. stack.push(a != b);
  2820. } else {
  2821. stack.push(a ^ b);
  2822. }
  2823. break;
  2824. default:
  2825. error('Unknown operator ' + operator);
  2826. break;
  2827. }
  2828. }
  2829. return stack.stack;
  2830. }
  2831. };
  2832. return PostScriptEvaluator;
  2833. })();
  2834. var DEFAULT_ICON_SIZE = 22; // px
  2835. var HIGHLIGHT_OFFSET = 4; // px
  2836. var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
  2837. var Annotation = (function AnnotationClosure() {
  2838. // 12.5.5: Algorithm: Appearance streams
  2839. function getTransformMatrix(rect, bbox, matrix) {
  2840. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  2841. var minX = bounds[0];
  2842. var minY = bounds[1];
  2843. var maxX = bounds[2];
  2844. var maxY = bounds[3];
  2845. if (minX === maxX || minY === maxY) {
  2846. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  2847. // just apply the transform for rect
  2848. return [1, 0, 0, 1, rect[0], rect[1]];
  2849. }
  2850. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  2851. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  2852. return [
  2853. xRatio,
  2854. 0,
  2855. 0,
  2856. yRatio,
  2857. rect[0] - minX * xRatio,
  2858. rect[1] - minY * yRatio
  2859. ];
  2860. }
  2861. function getDefaultAppearance(dict) {
  2862. var appearanceState = dict.get('AP');
  2863. if (!isDict(appearanceState)) {
  2864. return;
  2865. }
  2866. var appearance;
  2867. var appearances = appearanceState.get('N');
  2868. if (isDict(appearances)) {
  2869. var as = dict.get('AS');
  2870. if (as && appearances.has(as.name)) {
  2871. appearance = appearances.get(as.name);
  2872. }
  2873. } else {
  2874. appearance = appearances;
  2875. }
  2876. return appearance;
  2877. }
  2878. function Annotation(params) {
  2879. if (params.data) {
  2880. this.data = params.data;
  2881. return;
  2882. }
  2883. var dict = params.dict;
  2884. var data = this.data = {};
  2885. data.subtype = dict.get('Subtype').name;
  2886. var rect = dict.get('Rect') || [0, 0, 0, 0];
  2887. data.rect = Util.normalizeRect(rect);
  2888. data.annotationFlags = dict.get('F');
  2889. var color = dict.get('C');
  2890. if (isArray(color) && color.length === 3) {
  2891. // TODO(mack): currently only supporting rgb; need support different
  2892. // colorspaces
  2893. data.color = color;
  2894. } else {
  2895. data.color = [0, 0, 0];
  2896. }
  2897. // Some types of annotations have border style dict which has more
  2898. // info than the border array
  2899. if (dict.has('BS')) {
  2900. var borderStyle = dict.get('BS');
  2901. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  2902. } else {
  2903. var borderArray = dict.get('Border') || [0, 0, 1];
  2904. data.borderWidth = borderArray[2] || 0;
  2905. // TODO: implement proper support for annotations with line dash patterns.
  2906. var dashArray = borderArray[3];
  2907. if (data.borderWidth > 0 && dashArray && isArray(dashArray)) {
  2908. var dashArrayLength = dashArray.length;
  2909. if (dashArrayLength > 0) {
  2910. // According to the PDF specification: the elements in a dashArray
  2911. // shall be numbers that are nonnegative and not all equal to zero.
  2912. var isInvalid = false;
  2913. var numPositive = 0;
  2914. for (var i = 0; i < dashArrayLength; i++) {
  2915. var validNumber = (+dashArray[i] >= 0);
  2916. if (!validNumber) {
  2917. isInvalid = true;
  2918. break;
  2919. } else if (dashArray[i] > 0) {
  2920. numPositive++;
  2921. }
  2922. }
  2923. if (isInvalid || numPositive === 0) {
  2924. data.borderWidth = 0;
  2925. }
  2926. }
  2927. }
  2928. }
  2929. this.appearance = getDefaultAppearance(dict);
  2930. data.hasAppearance = !!this.appearance;
  2931. data.id = params.ref.num;
  2932. }
  2933. Annotation.prototype = {
  2934. getData: function Annotation_getData() {
  2935. return this.data;
  2936. },
  2937. hasHtml: function Annotation_hasHtml() {
  2938. return false;
  2939. },
  2940. getHtmlElement: function Annotation_getHtmlElement(commonObjs) {
  2941. throw new NotImplementedException(
  2942. 'getHtmlElement() should be implemented in subclass');
  2943. },
  2944. // TODO(mack): Remove this, it's not really that helpful.
  2945. getEmptyContainer: function Annotation_getEmptyContainer(tagName, rect,
  2946. borderWidth) {
  2947. assert(!isWorker,
  2948. 'getEmptyContainer() should be called from main thread');
  2949. var bWidth = borderWidth || 0;
  2950. rect = rect || this.data.rect;
  2951. var element = document.createElement(tagName);
  2952. element.style.borderWidth = bWidth + 'px';
  2953. var width = rect[2] - rect[0] - 2 * bWidth;
  2954. var height = rect[3] - rect[1] - 2 * bWidth;
  2955. element.style.width = width + 'px';
  2956. element.style.height = height + 'px';
  2957. return element;
  2958. },
  2959. isInvisible: function Annotation_isInvisible() {
  2960. var data = this.data;
  2961. if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {
  2962. return false;
  2963. } else {
  2964. return !!(data &&
  2965. data.annotationFlags && // Default: not invisible
  2966. data.annotationFlags & 0x1); // Invisible
  2967. }
  2968. },
  2969. isViewable: function Annotation_isViewable() {
  2970. var data = this.data;
  2971. return !!(!this.isInvisible() &&
  2972. data &&
  2973. (!data.annotationFlags ||
  2974. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  2975. data.rect); // rectangle is nessessary
  2976. },
  2977. isPrintable: function Annotation_isPrintable() {
  2978. var data = this.data;
  2979. return !!(!this.isInvisible() &&
  2980. data &&
  2981. data.annotationFlags && // Default: not printable
  2982. data.annotationFlags & 0x4 && // Print
  2983. data.rect); // rectangle is nessessary
  2984. },
  2985. loadResources: function(keys) {
  2986. var promise = new LegacyPromise();
  2987. this.appearance.dict.getAsync('Resources').then(function(resources) {
  2988. if (!resources) {
  2989. promise.resolve();
  2990. return;
  2991. }
  2992. var objectLoader = new ObjectLoader(resources.map,
  2993. keys,
  2994. resources.xref);
  2995. objectLoader.load().then(function() {
  2996. promise.resolve(resources);
  2997. });
  2998. }.bind(this));
  2999. return promise;
  3000. },
  3001. getOperatorList: function Annotation_getOperatorList(evaluator) {
  3002. var promise = new LegacyPromise();
  3003. if (!this.appearance) {
  3004. promise.resolve(new OperatorList());
  3005. return promise;
  3006. }
  3007. var data = this.data;
  3008. var appearanceDict = this.appearance.dict;
  3009. var resourcesPromise = this.loadResources([
  3010. 'ExtGState',
  3011. 'ColorSpace',
  3012. 'Pattern',
  3013. 'Shading',
  3014. 'XObject',
  3015. 'Font'
  3016. // ProcSet
  3017. // Properties
  3018. ]);
  3019. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  3020. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  3021. var transform = getTransformMatrix(data.rect, bbox, matrix);
  3022. resourcesPromise.then(function(resources) {
  3023. var opList = new OperatorList();
  3024. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  3025. evaluator.getOperatorList(this.appearance, resources, opList);
  3026. opList.addOp(OPS.endAnnotation, []);
  3027. promise.resolve(opList);
  3028. this.appearance.reset();
  3029. }.bind(this));
  3030. return promise;
  3031. }
  3032. };
  3033. Annotation.getConstructor =
  3034. function Annotation_getConstructor(subtype, fieldType) {
  3035. if (!subtype) {
  3036. return;
  3037. }
  3038. // TODO(mack): Implement FreeText annotations
  3039. if (subtype === 'Link') {
  3040. return LinkAnnotation;
  3041. } else if (subtype === 'Text') {
  3042. return TextAnnotation;
  3043. } else if (subtype === 'Widget') {
  3044. if (!fieldType) {
  3045. return;
  3046. }
  3047. if (fieldType === 'Tx') {
  3048. return TextWidgetAnnotation;
  3049. } else {
  3050. return WidgetAnnotation;
  3051. }
  3052. } else {
  3053. return Annotation;
  3054. }
  3055. };
  3056. // TODO(mack): Support loading annotation from data
  3057. Annotation.fromData = function Annotation_fromData(data) {
  3058. var subtype = data.subtype;
  3059. var fieldType = data.fieldType;
  3060. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3061. if (Constructor) {
  3062. return new Constructor({ data: data });
  3063. }
  3064. };
  3065. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  3066. var dict = xref.fetchIfRef(ref);
  3067. if (!isDict(dict)) {
  3068. return;
  3069. }
  3070. var subtype = dict.get('Subtype');
  3071. subtype = isName(subtype) ? subtype.name : '';
  3072. if (!subtype) {
  3073. return;
  3074. }
  3075. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3076. fieldType = isName(fieldType) ? fieldType.name : '';
  3077. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3078. if (!Constructor) {
  3079. return;
  3080. }
  3081. var params = {
  3082. dict: dict,
  3083. ref: ref,
  3084. };
  3085. var annotation = new Constructor(params);
  3086. if (annotation.isViewable() || annotation.isPrintable()) {
  3087. return annotation;
  3088. } else {
  3089. warn('unimplemented annotation type: ' + subtype);
  3090. }
  3091. };
  3092. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  3093. annotations, opList, pdfManager, partialEvaluator, intent) {
  3094. function reject(e) {
  3095. annotationsReadyPromise.reject(e);
  3096. }
  3097. var annotationsReadyPromise = new LegacyPromise();
  3098. var annotationPromises = [];
  3099. for (var i = 0, n = annotations.length; i < n; ++i) {
  3100. if (intent === 'display' && annotations[i].isViewable() ||
  3101. intent === 'print' && annotations[i].isPrintable()) {
  3102. annotationPromises.push(
  3103. annotations[i].getOperatorList(partialEvaluator));
  3104. }
  3105. }
  3106. Promise.all(annotationPromises).then(function(datas) {
  3107. opList.addOp(OPS.beginAnnotations, []);
  3108. for (var i = 0, n = datas.length; i < n; ++i) {
  3109. var annotOpList = datas[i];
  3110. opList.addOpList(annotOpList);
  3111. }
  3112. opList.addOp(OPS.endAnnotations, []);
  3113. annotationsReadyPromise.resolve();
  3114. }, reject);
  3115. return annotationsReadyPromise;
  3116. };
  3117. return Annotation;
  3118. })();
  3119. PDFJS.Annotation = Annotation;
  3120. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  3121. function WidgetAnnotation(params) {
  3122. Annotation.call(this, params);
  3123. if (params.data) {
  3124. return;
  3125. }
  3126. var dict = params.dict;
  3127. var data = this.data;
  3128. data.fieldValue = stringToPDFString(
  3129. Util.getInheritableProperty(dict, 'V') || '');
  3130. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  3131. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  3132. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3133. data.fieldType = isName(fieldType) ? fieldType.name : '';
  3134. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  3135. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
  3136. // Building the full field name by collecting the field and
  3137. // its ancestors 'T' data and joining them using '.'.
  3138. var fieldName = [];
  3139. var namedItem = dict;
  3140. var ref = params.ref;
  3141. while (namedItem) {
  3142. var parent = namedItem.get('Parent');
  3143. var parentRef = namedItem.getRaw('Parent');
  3144. var name = namedItem.get('T');
  3145. if (name) {
  3146. fieldName.unshift(stringToPDFString(name));
  3147. } else {
  3148. // The field name is absent, that means more than one field
  3149. // with the same name may exist. Replacing the empty name
  3150. // with the '`' plus index in the parent's 'Kids' array.
  3151. // This is not in the PDF spec but necessary to id the
  3152. // the input controls.
  3153. var kids = parent.get('Kids');
  3154. var j, jj;
  3155. for (j = 0, jj = kids.length; j < jj; j++) {
  3156. var kidRef = kids[j];
  3157. if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
  3158. break;
  3159. }
  3160. }
  3161. fieldName.unshift('`' + j);
  3162. }
  3163. namedItem = parent;
  3164. ref = parentRef;
  3165. }
  3166. data.fullName = fieldName.join('.');
  3167. }
  3168. var parent = Annotation.prototype;
  3169. Util.inherit(WidgetAnnotation, Annotation, {
  3170. isViewable: function WidgetAnnotation_isViewable() {
  3171. if (this.data.fieldType === 'Sig') {
  3172. warn('unimplemented annotation type: Widget signature');
  3173. return false;
  3174. }
  3175. return parent.isViewable.call(this);
  3176. }
  3177. });
  3178. return WidgetAnnotation;
  3179. })();
  3180. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  3181. function TextWidgetAnnotation(params) {
  3182. WidgetAnnotation.call(this, params);
  3183. if (params.data) {
  3184. return;
  3185. }
  3186. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  3187. }
  3188. // TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
  3189. function setTextStyles(element, item, fontObj) {
  3190. var style = element.style;
  3191. style.fontSize = item.fontSize + 'px';
  3192. style.direction = item.fontDirection < 0 ? 'rtl': 'ltr';
  3193. if (!fontObj) {
  3194. return;
  3195. }
  3196. style.fontWeight = fontObj.black ?
  3197. (fontObj.bold ? 'bolder' : 'bold') :
  3198. (fontObj.bold ? 'bold' : 'normal');
  3199. style.fontStyle = fontObj.italic ? 'italic' : 'normal';
  3200. var fontName = fontObj.loadedName;
  3201. var fontFamily = fontName ? '"' + fontName + '", ' : '';
  3202. // Use a reasonable default font if the font doesn't specify a fallback
  3203. var fallbackName = fontObj.fallbackName || 'Helvetica, sans-serif';
  3204. style.fontFamily = fontFamily + fallbackName;
  3205. }
  3206. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  3207. hasHtml: function TextWidgetAnnotation_hasHtml() {
  3208. return !this.data.hasAppearance && !!this.data.fieldValue;
  3209. },
  3210. getHtmlElement: function TextWidgetAnnotation_getHtmlElement(commonObjs) {
  3211. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3212. var item = this.data;
  3213. var element = this.getEmptyContainer('div');
  3214. element.style.display = 'table';
  3215. var content = document.createElement('div');
  3216. content.textContent = item.fieldValue;
  3217. var textAlignment = item.textAlignment;
  3218. content.style.textAlign = ['left', 'center', 'right'][textAlignment];
  3219. content.style.verticalAlign = 'middle';
  3220. content.style.display = 'table-cell';
  3221. var fontObj = item.fontRefName ?
  3222. commonObjs.getData(item.fontRefName) : null;
  3223. setTextStyles(content, item, fontObj);
  3224. element.appendChild(content);
  3225. return element;
  3226. },
  3227. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  3228. if (this.appearance) {
  3229. return Annotation.prototype.getOperatorList.call(this, evaluator);
  3230. }
  3231. var promise = new LegacyPromise();
  3232. var opList = new OperatorList();
  3233. var data = this.data;
  3234. // Even if there is an appearance stream, ignore it. This is the
  3235. // behaviour used by Adobe Reader.
  3236. var defaultAppearance = data.defaultAppearance;
  3237. if (!defaultAppearance) {
  3238. promise.resolve(opList);
  3239. return promise;
  3240. }
  3241. // Include any font resources found in the default appearance
  3242. var stream = new Stream(stringToBytes(defaultAppearance));
  3243. evaluator.getOperatorList(stream, this.fieldResources, opList);
  3244. var appearanceFnArray = opList.fnArray;
  3245. var appearanceArgsArray = opList.argsArray;
  3246. var fnArray = [];
  3247. // TODO(mack): Add support for stroke color
  3248. data.rgb = [0, 0, 0];
  3249. // TODO THIS DOESN'T MAKE ANY SENSE SINCE THE fnArray IS EMPTY!
  3250. for (var i = 0, n = fnArray.length; i < n; ++i) {
  3251. var fnId = appearanceFnArray[i];
  3252. var args = appearanceArgsArray[i];
  3253. if (fnId === OPS.setFont) {
  3254. data.fontRefName = args[0];
  3255. var size = args[1];
  3256. if (size < 0) {
  3257. data.fontDirection = -1;
  3258. data.fontSize = -size;
  3259. } else {
  3260. data.fontDirection = 1;
  3261. data.fontSize = size;
  3262. }
  3263. } else if (fnId === OPS.setFillRGBColor) {
  3264. data.rgb = args;
  3265. } else if (fnId === OPS.setFillGray) {
  3266. var rgbValue = args[0] * 255;
  3267. data.rgb = [rgbValue, rgbValue, rgbValue];
  3268. }
  3269. }
  3270. promise.resolve(opList);
  3271. return promise;
  3272. }
  3273. });
  3274. return TextWidgetAnnotation;
  3275. })();
  3276. var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
  3277. function InteractiveAnnotation(params) {
  3278. Annotation.call(this, params);
  3279. }
  3280. Util.inherit(InteractiveAnnotation, Annotation, {
  3281. hasHtml: function InteractiveAnnotation_hasHtml() {
  3282. return true;
  3283. },
  3284. highlight: function InteractiveAnnotation_highlight() {
  3285. if (this.highlightElement &&
  3286. this.highlightElement.hasAttribute('hidden')) {
  3287. this.highlightElement.removeAttribute('hidden');
  3288. }
  3289. },
  3290. unhighlight: function InteractiveAnnotation_unhighlight() {
  3291. if (this.highlightElement &&
  3292. !this.highlightElement.hasAttribute('hidden')) {
  3293. this.highlightElement.setAttribute('hidden', true);
  3294. }
  3295. },
  3296. initContainer: function InteractiveAnnotation_initContainer() {
  3297. var item = this.data;
  3298. var rect = item.rect;
  3299. var container = this.getEmptyContainer('section', rect, item.borderWidth);
  3300. container.style.backgroundColor = item.color;
  3301. var color = item.color;
  3302. var rgb = [];
  3303. for (var i = 0; i < 3; ++i) {
  3304. rgb[i] = Math.round(color[i] * 255);
  3305. }
  3306. item.colorCssRgb = Util.makeCssRgb(rgb);
  3307. var highlight = document.createElement('div');
  3308. highlight.className = 'annotationHighlight';
  3309. highlight.style.left = highlight.style.top = -HIGHLIGHT_OFFSET + 'px';
  3310. highlight.style.right = highlight.style.bottom = -HIGHLIGHT_OFFSET + 'px';
  3311. highlight.setAttribute('hidden', true);
  3312. this.highlightElement = highlight;
  3313. container.appendChild(this.highlightElement);
  3314. return container;
  3315. }
  3316. });
  3317. return InteractiveAnnotation;
  3318. })();
  3319. var TextAnnotation = (function TextAnnotationClosure() {
  3320. function TextAnnotation(params) {
  3321. InteractiveAnnotation.call(this, params);
  3322. if (params.data) {
  3323. return;
  3324. }
  3325. var dict = params.dict;
  3326. var data = this.data;
  3327. var content = dict.get('Contents');
  3328. var title = dict.get('T');
  3329. data.content = stringToPDFString(content || '');
  3330. data.title = stringToPDFString(title || '');
  3331. if (data.hasAppearance) {
  3332. data.name = 'NoIcon';
  3333. } else {
  3334. data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
  3335. data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
  3336. data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
  3337. }
  3338. if (dict.has('C')) {
  3339. data.hasBgColor = true;
  3340. }
  3341. }
  3342. var ANNOT_MIN_SIZE = 10;
  3343. Util.inherit(TextAnnotation, InteractiveAnnotation, {
  3344. getHtmlElement: function TextAnnotation_getHtmlElement(commonObjs) {
  3345. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3346. var item = this.data;
  3347. var rect = item.rect;
  3348. // sanity check because of OOo-generated PDFs
  3349. if ((rect[3] - rect[1]) < ANNOT_MIN_SIZE) {
  3350. rect[3] = rect[1] + ANNOT_MIN_SIZE;
  3351. }
  3352. if ((rect[2] - rect[0]) < ANNOT_MIN_SIZE) {
  3353. rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
  3354. }
  3355. var container = this.initContainer();
  3356. container.className = 'annotText';
  3357. var image = document.createElement('img');
  3358. image.style.height = container.style.height;
  3359. image.style.width = container.style.width;
  3360. var iconName = item.name;
  3361. image.src = PDFJS.imageResourcesPath + 'annotation-' +
  3362. iconName.toLowerCase() + '.svg';
  3363. image.alt = '[{{type}} Annotation]';
  3364. image.dataset.l10nId = 'text_annotation_type';
  3365. image.dataset.l10nArgs = JSON.stringify({type: iconName});
  3366. var contentWrapper = document.createElement('div');
  3367. contentWrapper.className = 'annotTextContentWrapper';
  3368. contentWrapper.style.left = Math.floor(rect[2] - rect[0] + 5) + 'px';
  3369. contentWrapper.style.top = '-10px';
  3370. var content = document.createElement('div');
  3371. content.className = 'annotTextContent';
  3372. content.setAttribute('hidden', true);
  3373. var i, ii;
  3374. if (item.hasBgColor) {
  3375. var color = item.color;
  3376. var rgb = [];
  3377. for (i = 0; i < 3; ++i) {
  3378. // Enlighten the color (70%)
  3379. var c = Math.round(color[i] * 255);
  3380. rgb[i] = Math.round((255 - c) * 0.7) + c;
  3381. }
  3382. content.style.backgroundColor = Util.makeCssRgb(rgb);
  3383. }
  3384. var title = document.createElement('h1');
  3385. var text = document.createElement('p');
  3386. title.textContent = item.title;
  3387. if (!item.content && !item.title) {
  3388. content.setAttribute('hidden', true);
  3389. } else {
  3390. var e = document.createElement('span');
  3391. var lines = item.content.split(/(?:\r\n?|\n)/);
  3392. for (i = 0, ii = lines.length; i < ii; ++i) {
  3393. var line = lines[i];
  3394. e.appendChild(document.createTextNode(line));
  3395. if (i < (ii - 1)) {
  3396. e.appendChild(document.createElement('br'));
  3397. }
  3398. }
  3399. text.appendChild(e);
  3400. var pinned = false;
  3401. var showAnnotation = function showAnnotation(pin) {
  3402. if (pin) {
  3403. pinned = true;
  3404. }
  3405. if (content.hasAttribute('hidden')) {
  3406. container.style.zIndex += 1;
  3407. content.removeAttribute('hidden');
  3408. }
  3409. };
  3410. var hideAnnotation = function hideAnnotation(unpin) {
  3411. if (unpin) {
  3412. pinned = false;
  3413. }
  3414. if (!content.hasAttribute('hidden') && !pinned) {
  3415. container.style.zIndex -= 1;
  3416. content.setAttribute('hidden', true);
  3417. }
  3418. };
  3419. var toggleAnnotation = function toggleAnnotation() {
  3420. if (pinned) {
  3421. hideAnnotation(true);
  3422. } else {
  3423. showAnnotation(true);
  3424. }
  3425. };
  3426. image.addEventListener('click', function image_clickHandler() {
  3427. toggleAnnotation();
  3428. }, false);
  3429. image.addEventListener('mouseover', function image_mouseOverHandler() {
  3430. showAnnotation();
  3431. }, false);
  3432. image.addEventListener('mouseout', function image_mouseOutHandler() {
  3433. hideAnnotation();
  3434. }, false);
  3435. content.addEventListener('click', function content_clickHandler() {
  3436. hideAnnotation(true);
  3437. }, false);
  3438. }
  3439. content.appendChild(title);
  3440. content.appendChild(text);
  3441. contentWrapper.appendChild(content);
  3442. container.appendChild(image);
  3443. container.appendChild(contentWrapper);
  3444. return container;
  3445. }
  3446. });
  3447. return TextAnnotation;
  3448. })();
  3449. var LinkAnnotation = (function LinkAnnotationClosure() {
  3450. function LinkAnnotation(params) {
  3451. InteractiveAnnotation.call(this, params);
  3452. if (params.data) {
  3453. return;
  3454. }
  3455. var dict = params.dict;
  3456. var data = this.data;
  3457. var action = dict.get('A');
  3458. if (action) {
  3459. var linkType = action.get('S').name;
  3460. if (linkType === 'URI') {
  3461. var url = action.get('URI');
  3462. if (isName(url)) {
  3463. // Some bad PDFs do not put parentheses around relative URLs.
  3464. url = '/' + url.name;
  3465. } else if (url) {
  3466. url = addDefaultProtocolToUrl(url);
  3467. }
  3468. // TODO: pdf spec mentions urls can be relative to a Base
  3469. // entry in the dictionary.
  3470. if (!isValidUrl(url, false)) {
  3471. url = '';
  3472. }
  3473. data.url = url;
  3474. } else if (linkType === 'GoTo') {
  3475. data.dest = action.get('D');
  3476. } else if (linkType === 'GoToR') {
  3477. var urlDict = action.get('F');
  3478. if (isDict(urlDict)) {
  3479. // We assume that the 'url' is a Filspec dictionary
  3480. // and fetch the url without checking any further
  3481. url = urlDict.get('F') || '';
  3482. }
  3483. // TODO: pdf reference says that GoToR
  3484. // can also have 'NewWindow' attribute
  3485. if (!isValidUrl(url, false)) {
  3486. url = '';
  3487. }
  3488. data.url = url;
  3489. data.dest = action.get('D');
  3490. } else if (linkType === 'Named') {
  3491. data.action = action.get('N').name;
  3492. } else {
  3493. warn('unrecognized link type: ' + linkType);
  3494. }
  3495. } else if (dict.has('Dest')) {
  3496. // simple destination link
  3497. var dest = dict.get('Dest');
  3498. data.dest = isName(dest) ? dest.name : dest;
  3499. }
  3500. }
  3501. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  3502. function addDefaultProtocolToUrl(url) {
  3503. if (url && url.indexOf('www.') === 0) {
  3504. return ('http://' + url);
  3505. }
  3506. return url;
  3507. }
  3508. Util.inherit(LinkAnnotation, InteractiveAnnotation, {
  3509. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  3510. return false;
  3511. },
  3512. getHtmlElement: function LinkAnnotation_getHtmlElement(commonObjs) {
  3513. var container = this.initContainer();
  3514. container.className = 'annotLink';
  3515. var item = this.data;
  3516. container.style.borderColor = item.colorCssRgb;
  3517. container.style.borderStyle = 'solid';
  3518. var link = document.createElement('a');
  3519. link.href = link.title = this.data.url || '';
  3520. container.appendChild(link);
  3521. return container;
  3522. }
  3523. });
  3524. return LinkAnnotation;
  3525. })();
  3526. var NetworkManager = (function NetworkManagerClosure() {
  3527. var OK_RESPONSE = 200;
  3528. var PARTIAL_CONTENT_RESPONSE = 206;
  3529. function NetworkManager(url, args) {
  3530. this.url = url;
  3531. args = args || {};
  3532. this.isHttp = /^https?:/i.test(url);
  3533. this.httpHeaders = (this.isHttp && args.httpHeaders) || {};
  3534. this.withCredentials = args.withCredentials || false;
  3535. this.getXhr = args.getXhr ||
  3536. function NetworkManager_getXhr() {
  3537. return new XMLHttpRequest();
  3538. };
  3539. this.currXhrId = 0;
  3540. this.pendingRequests = {};
  3541. this.loadedRequests = {};
  3542. }
  3543. function getArrayBuffer(xhr) {
  3544. var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
  3545. xhr.responseArrayBuffer || xhr.response);
  3546. if (typeof data !== 'string') {
  3547. return data;
  3548. }
  3549. var length = data.length;
  3550. var buffer = new Uint8Array(length);
  3551. for (var i = 0; i < length; i++) {
  3552. buffer[i] = data.charCodeAt(i) & 0xFF;
  3553. }
  3554. return buffer;
  3555. }
  3556. NetworkManager.prototype = {
  3557. requestRange: function NetworkManager_requestRange(begin, end, listeners) {
  3558. var args = {
  3559. begin: begin,
  3560. end: end
  3561. };
  3562. for (var prop in listeners) {
  3563. args[prop] = listeners[prop];
  3564. }
  3565. return this.request(args);
  3566. },
  3567. requestFull: function NetworkManager_requestRange(listeners) {
  3568. return this.request(listeners);
  3569. },
  3570. request: function NetworkManager_requestRange(args) {
  3571. var xhr = this.getXhr();
  3572. var xhrId = this.currXhrId++;
  3573. var pendingRequest = this.pendingRequests[xhrId] = {
  3574. xhr: xhr
  3575. };
  3576. xhr.open('GET', this.url);
  3577. xhr.withCredentials = this.withCredentials;
  3578. for (var property in this.httpHeaders) {
  3579. var value = this.httpHeaders[property];
  3580. if (typeof value === 'undefined') {
  3581. continue;
  3582. }
  3583. xhr.setRequestHeader(property, value);
  3584. }
  3585. if (this.isHttp && 'begin' in args && 'end' in args) {
  3586. var rangeStr = args.begin + '-' + (args.end - 1);
  3587. xhr.setRequestHeader('Range', 'bytes=' + rangeStr);
  3588. pendingRequest.expectedStatus = 206;
  3589. } else {
  3590. pendingRequest.expectedStatus = 200;
  3591. }
  3592. xhr.mozResponseType = xhr.responseType = 'arraybuffer';
  3593. if (args.onProgress) {
  3594. xhr.onprogress = args.onProgress;
  3595. }
  3596. if (args.onError) {
  3597. xhr.onerror = function(evt) {
  3598. args.onError(xhr.status);
  3599. };
  3600. }
  3601. xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
  3602. pendingRequest.onHeadersReceived = args.onHeadersReceived;
  3603. pendingRequest.onDone = args.onDone;
  3604. pendingRequest.onError = args.onError;
  3605. xhr.send(null);
  3606. return xhrId;
  3607. },
  3608. onStateChange: function NetworkManager_onStateChange(xhrId, evt) {
  3609. var pendingRequest = this.pendingRequests[xhrId];
  3610. if (!pendingRequest) {
  3611. // Maybe abortRequest was called...
  3612. return;
  3613. }
  3614. var xhr = pendingRequest.xhr;
  3615. if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
  3616. pendingRequest.onHeadersReceived();
  3617. delete pendingRequest.onHeadersReceived;
  3618. }
  3619. if (xhr.readyState !== 4) {
  3620. return;
  3621. }
  3622. if (!(xhrId in this.pendingRequests)) {
  3623. // The XHR request might have been aborted in onHeadersReceived()
  3624. // callback, in which case we should abort request
  3625. return;
  3626. }
  3627. delete this.pendingRequests[xhrId];
  3628. // success status == 0 can be on ftp, file and other protocols
  3629. if (xhr.status === 0 && this.isHttp) {
  3630. if (pendingRequest.onError) {
  3631. pendingRequest.onError(xhr.status);
  3632. }
  3633. return;
  3634. }
  3635. var xhrStatus = xhr.status || OK_RESPONSE;
  3636. // From http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2:
  3637. // "A server MAY ignore the Range header". This means it's possible to
  3638. // get a 200 rather than a 206 response from a range request.
  3639. var ok_response_on_range_request =
  3640. xhrStatus === OK_RESPONSE &&
  3641. pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;
  3642. if (!ok_response_on_range_request &&
  3643. xhrStatus !== pendingRequest.expectedStatus) {
  3644. if (pendingRequest.onError) {
  3645. pendingRequest.onError(xhr.status);
  3646. }
  3647. return;
  3648. }
  3649. this.loadedRequests[xhrId] = true;
  3650. var chunk = getArrayBuffer(xhr);
  3651. if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
  3652. var rangeHeader = xhr.getResponseHeader('Content-Range');
  3653. var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
  3654. var begin = parseInt(matches[1], 10);
  3655. pendingRequest.onDone({
  3656. begin: begin,
  3657. chunk: chunk
  3658. });
  3659. } else {
  3660. pendingRequest.onDone({
  3661. begin: 0,
  3662. chunk: chunk
  3663. });
  3664. }
  3665. },
  3666. hasPendingRequests: function NetworkManager_hasPendingRequests() {
  3667. for (var xhrId in this.pendingRequests) {
  3668. return true;
  3669. }
  3670. return false;
  3671. },
  3672. getRequestXhr: function NetworkManager_getXhr(xhrId) {
  3673. return this.pendingRequests[xhrId].xhr;
  3674. },
  3675. isPendingRequest: function NetworkManager_isPendingRequest(xhrId) {
  3676. return xhrId in this.pendingRequests;
  3677. },
  3678. isLoadedRequest: function NetworkManager_isLoadedRequest(xhrId) {
  3679. return xhrId in this.loadedRequests;
  3680. },
  3681. abortAllRequests: function NetworkManager_abortAllRequests() {
  3682. for (var xhrId in this.pendingRequests) {
  3683. this.abortRequest(xhrId | 0);
  3684. }
  3685. },
  3686. abortRequest: function NetworkManager_abortRequest(xhrId) {
  3687. var xhr = this.pendingRequests[xhrId].xhr;
  3688. delete this.pendingRequests[xhrId];
  3689. xhr.abort();
  3690. }
  3691. };
  3692. return NetworkManager;
  3693. })();
  3694. var ChunkedStream = (function ChunkedStreamClosure() {
  3695. function ChunkedStream(length, chunkSize, manager) {
  3696. this.bytes = new Uint8Array(length);
  3697. this.start = 0;
  3698. this.pos = 0;
  3699. this.end = length;
  3700. this.chunkSize = chunkSize;
  3701. this.loadedChunks = [];
  3702. this.numChunksLoaded = 0;
  3703. this.numChunks = Math.ceil(length / chunkSize);
  3704. this.manager = manager;
  3705. this.initialDataLength = 0;
  3706. }
  3707. // required methods for a stream. if a particular stream does not
  3708. // implement these, an error should be thrown
  3709. ChunkedStream.prototype = {
  3710. getMissingChunks: function ChunkedStream_getMissingChunks() {
  3711. var chunks = [];
  3712. for (var chunk = 0, n = this.numChunks; chunk < n; ++chunk) {
  3713. if (!(chunk in this.loadedChunks)) {
  3714. chunks.push(chunk);
  3715. }
  3716. }
  3717. return chunks;
  3718. },
  3719. getBaseStreams: function ChunkedStream_getBaseStreams() {
  3720. return [this];
  3721. },
  3722. allChunksLoaded: function ChunkedStream_allChunksLoaded() {
  3723. return this.numChunksLoaded === this.numChunks;
  3724. },
  3725. onReceiveData: function ChunkedStream_onReceiveData(begin, chunk) {
  3726. var end = begin + chunk.byteLength;
  3727. assert(begin % this.chunkSize === 0, 'Bad begin offset: ' + begin);
  3728. // Using this.length is inaccurate here since this.start can be moved
  3729. // See ChunkedStream.moveStart()
  3730. var length = this.bytes.length;
  3731. assert(end % this.chunkSize === 0 || end === length,
  3732. 'Bad end offset: ' + end);
  3733. this.bytes.set(new Uint8Array(chunk), begin);
  3734. var chunkSize = this.chunkSize;
  3735. var beginChunk = Math.floor(begin / chunkSize);
  3736. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3737. var curChunk;
  3738. for (curChunk = beginChunk; curChunk < endChunk; ++curChunk) {
  3739. if (!(curChunk in this.loadedChunks)) {
  3740. this.loadedChunks[curChunk] = true;
  3741. ++this.numChunksLoaded;
  3742. }
  3743. }
  3744. },
  3745. onReceiveInitialData: function ChunkedStream_onReceiveInitialData(data) {
  3746. this.bytes.set(data);
  3747. this.initialDataLength = data.length;
  3748. var endChunk = (this.end === data.length ?
  3749. this.numChunks : Math.floor(data.length / this.chunkSize));
  3750. for (var i = 0; i < endChunk; i++) {
  3751. this.loadedChunks[i] = true;
  3752. ++this.numChunksLoaded;
  3753. }
  3754. },
  3755. ensureRange: function ChunkedStream_ensureRange(begin, end) {
  3756. if (begin >= end) {
  3757. return;
  3758. }
  3759. if (end <= this.initialDataLength) {
  3760. return;
  3761. }
  3762. var chunkSize = this.chunkSize;
  3763. var beginChunk = Math.floor(begin / chunkSize);
  3764. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3765. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3766. if (!(chunk in this.loadedChunks)) {
  3767. throw new MissingDataException(begin, end);
  3768. }
  3769. }
  3770. },
  3771. nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
  3772. var chunk, n;
  3773. for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
  3774. if (!(chunk in this.loadedChunks)) {
  3775. return chunk;
  3776. }
  3777. }
  3778. // Wrap around to beginning
  3779. for (chunk = 0; chunk < beginChunk; ++chunk) {
  3780. if (!(chunk in this.loadedChunks)) {
  3781. return chunk;
  3782. }
  3783. }
  3784. return null;
  3785. },
  3786. hasChunk: function ChunkedStream_hasChunk(chunk) {
  3787. return chunk in this.loadedChunks;
  3788. },
  3789. get length() {
  3790. return this.end - this.start;
  3791. },
  3792. getByte: function ChunkedStream_getByte() {
  3793. var pos = this.pos;
  3794. if (pos >= this.end) {
  3795. return -1;
  3796. }
  3797. this.ensureRange(pos, pos + 1);
  3798. return this.bytes[this.pos++];
  3799. },
  3800. getUint16: function ChunkedStream_getUint16() {
  3801. var b0 = this.getByte();
  3802. var b1 = this.getByte();
  3803. return (b0 << 8) + b1;
  3804. },
  3805. getInt32: function ChunkedStream_getInt32() {
  3806. var b0 = this.getByte();
  3807. var b1 = this.getByte();
  3808. var b2 = this.getByte();
  3809. var b3 = this.getByte();
  3810. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  3811. },
  3812. // returns subarray of original buffer
  3813. // should only be read
  3814. getBytes: function ChunkedStream_getBytes(length) {
  3815. var bytes = this.bytes;
  3816. var pos = this.pos;
  3817. var strEnd = this.end;
  3818. if (!length) {
  3819. this.ensureRange(pos, strEnd);
  3820. return bytes.subarray(pos, strEnd);
  3821. }
  3822. var end = pos + length;
  3823. if (end > strEnd) {
  3824. end = strEnd;
  3825. }
  3826. this.ensureRange(pos, end);
  3827. this.pos = end;
  3828. return bytes.subarray(pos, end);
  3829. },
  3830. peekBytes: function ChunkedStream_peekBytes(length) {
  3831. var bytes = this.getBytes(length);
  3832. this.pos -= bytes.length;
  3833. return bytes;
  3834. },
  3835. getByteRange: function ChunkedStream_getBytes(begin, end) {
  3836. this.ensureRange(begin, end);
  3837. return this.bytes.subarray(begin, end);
  3838. },
  3839. skip: function ChunkedStream_skip(n) {
  3840. if (!n) {
  3841. n = 1;
  3842. }
  3843. this.pos += n;
  3844. },
  3845. reset: function ChunkedStream_reset() {
  3846. this.pos = this.start;
  3847. },
  3848. moveStart: function ChunkedStream_moveStart() {
  3849. this.start = this.pos;
  3850. },
  3851. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  3852. this.ensureRange(start, start + length);
  3853. function ChunkedStreamSubstream() {}
  3854. ChunkedStreamSubstream.prototype = Object.create(this);
  3855. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  3856. var chunkSize = this.chunkSize;
  3857. var beginChunk = Math.floor(this.start / chunkSize);
  3858. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  3859. var missingChunks = [];
  3860. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3861. if (!(chunk in this.loadedChunks)) {
  3862. missingChunks.push(chunk);
  3863. }
  3864. }
  3865. return missingChunks;
  3866. };
  3867. var subStream = new ChunkedStreamSubstream();
  3868. subStream.pos = subStream.start = start;
  3869. subStream.end = start + length || this.end;
  3870. subStream.dict = dict;
  3871. return subStream;
  3872. },
  3873. isStream: true
  3874. };
  3875. return ChunkedStream;
  3876. })();
  3877. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  3878. function ChunkedStreamManager(length, chunkSize, url, args) {
  3879. this.stream = new ChunkedStream(length, chunkSize, this);
  3880. this.length = length;
  3881. this.chunkSize = chunkSize;
  3882. this.url = url;
  3883. this.disableAutoFetch = args.disableAutoFetch;
  3884. var msgHandler = this.msgHandler = args.msgHandler;
  3885. if (args.chunkedViewerLoading) {
  3886. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  3887. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  3888. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3889. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  3890. };
  3891. } else {
  3892. var getXhr = function getXhr() {
  3893. return new XMLHttpRequest();
  3894. };
  3895. this.networkManager = new NetworkManager(this.url, {
  3896. getXhr: getXhr,
  3897. httpHeaders: args.httpHeaders,
  3898. withCredentials: args.withCredentials
  3899. });
  3900. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3901. this.networkManager.requestRange(begin, end, {
  3902. onDone: this.onReceiveData.bind(this),
  3903. onProgress: this.onProgress.bind(this)
  3904. });
  3905. };
  3906. }
  3907. this.currRequestId = 0;
  3908. this.chunksNeededByRequest = {};
  3909. this.requestsByChunk = {};
  3910. this.callbacksByRequest = {};
  3911. this.loadedStream = new LegacyPromise();
  3912. if (args.initialData) {
  3913. this.setInitialData(args.initialData);
  3914. }
  3915. }
  3916. ChunkedStreamManager.prototype = {
  3917. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  3918. this.stream.onReceiveInitialData(data);
  3919. if (this.stream.allChunksLoaded()) {
  3920. this.loadedStream.resolve(this.stream);
  3921. } else if (this.msgHandler) {
  3922. this.msgHandler.send('DocProgress', {
  3923. loaded: data.length,
  3924. total: this.length
  3925. });
  3926. }
  3927. },
  3928. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  3929. return this.loadedStream;
  3930. },
  3931. // Get all the chunks that are not yet loaded and groups them into
  3932. // contiguous ranges to load in as few requests as possible
  3933. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  3934. var missingChunks = this.stream.getMissingChunks();
  3935. this.requestChunks(missingChunks);
  3936. return this.loadedStream;
  3937. },
  3938. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  3939. callback) {
  3940. var requestId = this.currRequestId++;
  3941. var chunksNeeded;
  3942. var i, ii;
  3943. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  3944. for (i = 0, ii = chunks.length; i < ii; i++) {
  3945. if (!this.stream.hasChunk(chunks[i])) {
  3946. chunksNeeded[chunks[i]] = true;
  3947. }
  3948. }
  3949. if (isEmptyObj(chunksNeeded)) {
  3950. if (callback) {
  3951. callback();
  3952. }
  3953. return;
  3954. }
  3955. this.callbacksByRequest[requestId] = callback;
  3956. var chunksToRequest = [];
  3957. for (var chunk in chunksNeeded) {
  3958. chunk = chunk | 0;
  3959. if (!(chunk in this.requestsByChunk)) {
  3960. this.requestsByChunk[chunk] = [];
  3961. chunksToRequest.push(chunk);
  3962. }
  3963. this.requestsByChunk[chunk].push(requestId);
  3964. }
  3965. if (!chunksToRequest.length) {
  3966. return;
  3967. }
  3968. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  3969. for (i = 0; i < groupedChunksToRequest.length; ++i) {
  3970. var groupedChunk = groupedChunksToRequest[i];
  3971. var begin = groupedChunk.beginChunk * this.chunkSize;
  3972. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  3973. this.sendRequest(begin, end);
  3974. }
  3975. },
  3976. getStream: function ChunkedStreamManager_getStream() {
  3977. return this.stream;
  3978. },
  3979. // Loads any chunks in the requested range that are not yet loaded
  3980. requestRange: function ChunkedStreamManager_requestRange(
  3981. begin, end, callback) {
  3982. end = Math.min(end, this.length);
  3983. var beginChunk = this.getBeginChunk(begin);
  3984. var endChunk = this.getEndChunk(end);
  3985. var chunks = [];
  3986. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3987. chunks.push(chunk);
  3988. }
  3989. this.requestChunks(chunks, callback);
  3990. },
  3991. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  3992. callback) {
  3993. ranges = ranges || [];
  3994. var chunksToRequest = [];
  3995. for (var i = 0; i < ranges.length; i++) {
  3996. var beginChunk = this.getBeginChunk(ranges[i].begin);
  3997. var endChunk = this.getEndChunk(ranges[i].end);
  3998. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3999. if (chunksToRequest.indexOf(chunk) < 0) {
  4000. chunksToRequest.push(chunk);
  4001. }
  4002. }
  4003. }
  4004. chunksToRequest.sort(function(a, b) { return a - b; });
  4005. this.requestChunks(chunksToRequest, callback);
  4006. },
  4007. // Groups a sorted array of chunks into as few continguous larger
  4008. // chunks as possible
  4009. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  4010. var groupedChunks = [];
  4011. var beginChunk = -1;
  4012. var prevChunk = -1;
  4013. for (var i = 0; i < chunks.length; ++i) {
  4014. var chunk = chunks[i];
  4015. if (beginChunk < 0) {
  4016. beginChunk = chunk;
  4017. }
  4018. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  4019. groupedChunks.push({ beginChunk: beginChunk,
  4020. endChunk: prevChunk + 1 });
  4021. beginChunk = chunk;
  4022. }
  4023. if (i + 1 === chunks.length) {
  4024. groupedChunks.push({ beginChunk: beginChunk,
  4025. endChunk: chunk + 1 });
  4026. }
  4027. prevChunk = chunk;
  4028. }
  4029. return groupedChunks;
  4030. },
  4031. onProgress: function ChunkedStreamManager_onProgress(args) {
  4032. var bytesLoaded = (this.stream.numChunksLoaded * this.chunkSize +
  4033. args.loaded);
  4034. this.msgHandler.send('DocProgress', {
  4035. loaded: bytesLoaded,
  4036. total: this.length
  4037. });
  4038. },
  4039. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  4040. var chunk = args.chunk;
  4041. var begin = args.begin;
  4042. var end = begin + chunk.byteLength;
  4043. var beginChunk = this.getBeginChunk(begin);
  4044. var endChunk = this.getEndChunk(end);
  4045. this.stream.onReceiveData(begin, chunk);
  4046. if (this.stream.allChunksLoaded()) {
  4047. this.loadedStream.resolve(this.stream);
  4048. }
  4049. var loadedRequests = [];
  4050. var i, requestId;
  4051. for (chunk = beginChunk; chunk < endChunk; ++chunk) {
  4052. // The server might return more chunks than requested
  4053. var requestIds = this.requestsByChunk[chunk] || [];
  4054. delete this.requestsByChunk[chunk];
  4055. for (i = 0; i < requestIds.length; ++i) {
  4056. requestId = requestIds[i];
  4057. var chunksNeeded = this.chunksNeededByRequest[requestId];
  4058. if (chunk in chunksNeeded) {
  4059. delete chunksNeeded[chunk];
  4060. }
  4061. if (!isEmptyObj(chunksNeeded)) {
  4062. continue;
  4063. }
  4064. loadedRequests.push(requestId);
  4065. }
  4066. }
  4067. // If there are no pending requests, automatically fetch the next
  4068. // unfetched chunk of the PDF
  4069. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  4070. var nextEmptyChunk;
  4071. if (this.stream.numChunksLoaded === 1) {
  4072. // This is a special optimization so that after fetching the first
  4073. // chunk, rather than fetching the second chunk, we fetch the last
  4074. // chunk.
  4075. var lastChunk = this.stream.numChunks - 1;
  4076. if (!this.stream.hasChunk(lastChunk)) {
  4077. nextEmptyChunk = lastChunk;
  4078. }
  4079. } else {
  4080. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  4081. }
  4082. if (isInt(nextEmptyChunk)) {
  4083. this.requestChunks([nextEmptyChunk]);
  4084. }
  4085. }
  4086. for (i = 0; i < loadedRequests.length; ++i) {
  4087. requestId = loadedRequests[i];
  4088. var callback = this.callbacksByRequest[requestId];
  4089. delete this.callbacksByRequest[requestId];
  4090. if (callback) {
  4091. callback();
  4092. }
  4093. }
  4094. this.msgHandler.send('DocProgress', {
  4095. loaded: this.stream.numChunksLoaded * this.chunkSize,
  4096. total: this.length
  4097. });
  4098. },
  4099. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  4100. var chunk = Math.floor(begin / this.chunkSize);
  4101. return chunk;
  4102. },
  4103. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  4104. if (end % this.chunkSize === 0) {
  4105. return end / this.chunkSize;
  4106. }
  4107. // 0 -> 0
  4108. // 1 -> 1
  4109. // 99 -> 1
  4110. // 100 -> 1
  4111. // 101 -> 2
  4112. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  4113. return chunk;
  4114. }
  4115. };
  4116. return ChunkedStreamManager;
  4117. })();
  4118. // The maximum number of bytes fetched per range request
  4119. var RANGE_CHUNK_SIZE = 65536;
  4120. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  4121. var BasePdfManager = (function BasePdfManagerClosure() {
  4122. function BasePdfManager() {
  4123. throw new Error('Cannot initialize BaseManagerManager');
  4124. }
  4125. BasePdfManager.prototype = {
  4126. onLoadedStream: function BasePdfManager_onLoadedStream() {
  4127. throw new NotImplementedException();
  4128. },
  4129. ensureDoc: function BasePdfManager_ensureDoc(prop, args) {
  4130. return this.ensure(this.pdfDocument, prop, args);
  4131. },
  4132. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  4133. return this.ensure(this.pdfDocument.xref, prop, args);
  4134. },
  4135. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  4136. return this.ensure(this.pdfDocument.catalog, prop, args);
  4137. },
  4138. getPage: function BasePdfManager_pagePage(pageIndex) {
  4139. return this.pdfDocument.getPage(pageIndex);
  4140. },
  4141. cleanup: function BasePdfManager_cleanup() {
  4142. return this.pdfDocument.cleanup();
  4143. },
  4144. ensure: function BasePdfManager_ensure(obj, prop, args) {
  4145. return new NotImplementedException();
  4146. },
  4147. requestRange: function BasePdfManager_ensure(begin, end) {
  4148. return new NotImplementedException();
  4149. },
  4150. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  4151. return new NotImplementedException();
  4152. },
  4153. updatePassword: function BasePdfManager_updatePassword(password) {
  4154. this.pdfDocument.xref.password = this.password = password;
  4155. if (this.passwordChangedPromise) {
  4156. this.passwordChangedPromise.resolve();
  4157. }
  4158. },
  4159. terminate: function BasePdfManager_terminate() {
  4160. return new NotImplementedException();
  4161. }
  4162. };
  4163. return BasePdfManager;
  4164. })();
  4165. var LocalPdfManager = (function LocalPdfManagerClosure() {
  4166. function LocalPdfManager(data, password) {
  4167. var stream = new Stream(data);
  4168. this.pdfDocument = new PDFDocument(this, stream, password);
  4169. this.loadedStream = new LegacyPromise();
  4170. this.loadedStream.resolve(stream);
  4171. }
  4172. LocalPdfManager.prototype = Object.create(BasePdfManager.prototype);
  4173. LocalPdfManager.prototype.constructor = LocalPdfManager;
  4174. LocalPdfManager.prototype.ensure =
  4175. function LocalPdfManager_ensure(obj, prop, args) {
  4176. var promise = new LegacyPromise();
  4177. try {
  4178. var value = obj[prop];
  4179. var result;
  4180. if (typeof(value) === 'function') {
  4181. result = value.apply(obj, args);
  4182. } else {
  4183. result = value;
  4184. }
  4185. promise.resolve(result);
  4186. } catch (e) {
  4187. console.log(e.stack);
  4188. promise.reject(e);
  4189. }
  4190. return promise;
  4191. };
  4192. LocalPdfManager.prototype.requestRange =
  4193. function LocalPdfManager_requestRange(begin, end) {
  4194. var promise = new LegacyPromise();
  4195. promise.resolve();
  4196. return promise;
  4197. };
  4198. LocalPdfManager.prototype.requestLoadedStream =
  4199. function LocalPdfManager_requestLoadedStream() {
  4200. };
  4201. LocalPdfManager.prototype.onLoadedStream =
  4202. function LocalPdfManager_getLoadedStream() {
  4203. return this.loadedStream;
  4204. };
  4205. LocalPdfManager.prototype.terminate =
  4206. function LocalPdfManager_terminate() {
  4207. return;
  4208. };
  4209. return LocalPdfManager;
  4210. })();
  4211. var NetworkPdfManager = (function NetworkPdfManagerClosure() {
  4212. function NetworkPdfManager(args, msgHandler) {
  4213. this.msgHandler = msgHandler;
  4214. var params = {
  4215. msgHandler: msgHandler,
  4216. httpHeaders: args.httpHeaders,
  4217. withCredentials: args.withCredentials,
  4218. chunkedViewerLoading: args.chunkedViewerLoading,
  4219. disableAutoFetch: args.disableAutoFetch,
  4220. initialData: args.initialData
  4221. };
  4222. this.streamManager = new ChunkedStreamManager(args.length, RANGE_CHUNK_SIZE,
  4223. args.url, params);
  4224. this.pdfDocument = new PDFDocument(this, this.streamManager.getStream(),
  4225. args.password);
  4226. }
  4227. NetworkPdfManager.prototype = Object.create(BasePdfManager.prototype);
  4228. NetworkPdfManager.prototype.constructor = NetworkPdfManager;
  4229. NetworkPdfManager.prototype.ensure =
  4230. function NetworkPdfManager_ensure(obj, prop, args) {
  4231. var promise = new LegacyPromise();
  4232. this.ensureHelper(promise, obj, prop, args);
  4233. return promise;
  4234. };
  4235. NetworkPdfManager.prototype.ensureHelper =
  4236. function NetworkPdfManager_ensureHelper(promise, obj, prop, args) {
  4237. try {
  4238. var result;
  4239. var value = obj[prop];
  4240. if (typeof(value) === 'function') {
  4241. result = value.apply(obj, args);
  4242. } else {
  4243. result = value;
  4244. }
  4245. promise.resolve(result);
  4246. } catch(e) {
  4247. if (!(e instanceof MissingDataException)) {
  4248. console.log(e.stack);
  4249. promise.reject(e);
  4250. return;
  4251. }
  4252. this.streamManager.requestRange(e.begin, e.end, function() {
  4253. this.ensureHelper(promise, obj, prop, args);
  4254. }.bind(this));
  4255. }
  4256. };
  4257. NetworkPdfManager.prototype.requestRange =
  4258. function NetworkPdfManager_requestRange(begin, end) {
  4259. var promise = new LegacyPromise();
  4260. this.streamManager.requestRange(begin, end, function() {
  4261. promise.resolve();
  4262. });
  4263. return promise;
  4264. };
  4265. NetworkPdfManager.prototype.requestLoadedStream =
  4266. function NetworkPdfManager_requestLoadedStream() {
  4267. this.streamManager.requestAllChunks();
  4268. };
  4269. NetworkPdfManager.prototype.onLoadedStream =
  4270. function NetworkPdfManager_getLoadedStream() {
  4271. return this.streamManager.onLoadedStream();
  4272. };
  4273. NetworkPdfManager.prototype.terminate =
  4274. function NetworkPdfManager_terminate() {
  4275. this.streamManager.networkManager.abortAllRequests();
  4276. };
  4277. return NetworkPdfManager;
  4278. })();
  4279. var Page = (function PageClosure() {
  4280. var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
  4281. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  4282. this.pdfManager = pdfManager;
  4283. this.pageIndex = pageIndex;
  4284. this.pageDict = pageDict;
  4285. this.xref = xref;
  4286. this.ref = ref;
  4287. this.fontCache = fontCache;
  4288. this.idCounters = {
  4289. obj: 0
  4290. };
  4291. this.resourcesPromise = null;
  4292. }
  4293. Page.prototype = {
  4294. getPageProp: function Page_getPageProp(key) {
  4295. return this.pageDict.get(key);
  4296. },
  4297. getInheritedPageProp: function Page_inheritPageProp(key) {
  4298. var dict = this.pageDict;
  4299. var value = dict.get(key);
  4300. while (value === undefined) {
  4301. dict = dict.get('Parent');
  4302. if (!dict) {
  4303. break;
  4304. }
  4305. value = dict.get(key);
  4306. }
  4307. return value;
  4308. },
  4309. get content() {
  4310. return this.getPageProp('Contents');
  4311. },
  4312. get resources() {
  4313. var value = this.getInheritedPageProp('Resources');
  4314. // For robustness: The spec states that a \Resources entry has to be
  4315. // present, but can be empty. Some document omit it still. In this case
  4316. // return an empty dictionary:
  4317. if (value === undefined) {
  4318. value = Dict.empty;
  4319. }
  4320. return shadow(this, 'resources', value);
  4321. },
  4322. get mediaBox() {
  4323. var obj = this.getInheritedPageProp('MediaBox');
  4324. // Reset invalid media box to letter size.
  4325. if (!isArray(obj) || obj.length !== 4) {
  4326. obj = LETTER_SIZE_MEDIABOX;
  4327. }
  4328. return shadow(this, 'mediaBox', obj);
  4329. },
  4330. get view() {
  4331. var mediaBox = this.mediaBox;
  4332. var cropBox = this.getInheritedPageProp('CropBox');
  4333. if (!isArray(cropBox) || cropBox.length !== 4) {
  4334. return shadow(this, 'view', mediaBox);
  4335. }
  4336. // From the spec, 6th ed., p.963:
  4337. // "The crop, bleed, trim, and art boxes should not ordinarily
  4338. // extend beyond the boundaries of the media box. If they do, they are
  4339. // effectively reduced to their intersection with the media box."
  4340. cropBox = Util.intersect(cropBox, mediaBox);
  4341. if (!cropBox) {
  4342. return shadow(this, 'view', mediaBox);
  4343. }
  4344. return shadow(this, 'view', cropBox);
  4345. },
  4346. get annotationRefs() {
  4347. return shadow(this, 'annotationRefs',
  4348. this.getInheritedPageProp('Annots'));
  4349. },
  4350. get rotate() {
  4351. var rotate = this.getInheritedPageProp('Rotate') || 0;
  4352. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  4353. if (rotate % 90 !== 0) {
  4354. rotate = 0;
  4355. } else if (rotate >= 360) {
  4356. rotate = rotate % 360;
  4357. } else if (rotate < 0) {
  4358. // The spec doesn't cover negatives, assume its counterclockwise
  4359. // rotation. The following is the other implementation of modulo.
  4360. rotate = ((rotate % 360) + 360) % 360;
  4361. }
  4362. return shadow(this, 'rotate', rotate);
  4363. },
  4364. getContentStream: function Page_getContentStream() {
  4365. var content = this.content;
  4366. var stream;
  4367. if (isArray(content)) {
  4368. // fetching items
  4369. var xref = this.xref;
  4370. var i, n = content.length;
  4371. var streams = [];
  4372. for (i = 0; i < n; ++i) {
  4373. streams.push(xref.fetchIfRef(content[i]));
  4374. }
  4375. stream = new StreamsSequenceStream(streams);
  4376. } else if (isStream(content)) {
  4377. stream = content;
  4378. } else {
  4379. // replacing non-existent page content with empty one
  4380. stream = new NullStream();
  4381. }
  4382. return stream;
  4383. },
  4384. loadResources: function(keys) {
  4385. if (!this.resourcesPromise) {
  4386. // TODO: add async getInheritedPageProp and remove this.
  4387. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  4388. }
  4389. var promise = new LegacyPromise();
  4390. this.resourcesPromise.then(function resourceSuccess() {
  4391. var objectLoader = new ObjectLoader(this.resources.map,
  4392. keys,
  4393. this.xref);
  4394. objectLoader.load().then(function objectLoaderSuccess() {
  4395. promise.resolve();
  4396. });
  4397. }.bind(this));
  4398. return promise;
  4399. },
  4400. getOperatorList: function Page_getOperatorList(handler, intent) {
  4401. var self = this;
  4402. var promise = new LegacyPromise();
  4403. function reject(e) {
  4404. promise.reject(e);
  4405. }
  4406. var pageListPromise = new LegacyPromise();
  4407. var pdfManager = this.pdfManager;
  4408. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4409. []);
  4410. var resourcesPromise = this.loadResources([
  4411. 'ExtGState',
  4412. 'ColorSpace',
  4413. 'Pattern',
  4414. 'Shading',
  4415. 'XObject',
  4416. 'Font'
  4417. // ProcSet
  4418. // Properties
  4419. ]);
  4420. var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
  4421. handler, this.pageIndex,
  4422. 'p' + this.pageIndex + '_',
  4423. this.idCounters,
  4424. this.fontCache);
  4425. var dataPromises = Promise.all([contentStreamPromise, resourcesPromise],
  4426. reject);
  4427. dataPromises.then(function(data) {
  4428. var contentStream = data[0];
  4429. var opList = new OperatorList(intent, handler, self.pageIndex);
  4430. handler.send('StartRenderPage', {
  4431. transparency: partialEvaluator.hasBlendModes(self.resources),
  4432. pageIndex: self.pageIndex,
  4433. intent: intent
  4434. });
  4435. partialEvaluator.getOperatorList(contentStream, self.resources, opList);
  4436. pageListPromise.resolve(opList);
  4437. });
  4438. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  4439. Promise.all([pageListPromise, annotationsPromise]).then(function(datas) {
  4440. var pageOpList = datas[0];
  4441. var annotations = datas[1];
  4442. if (annotations.length === 0) {
  4443. pageOpList.flush(true);
  4444. promise.resolve(pageOpList);
  4445. return;
  4446. }
  4447. var annotationsReadyPromise = Annotation.appendToOperatorList(
  4448. annotations, pageOpList, pdfManager, partialEvaluator, intent);
  4449. annotationsReadyPromise.then(function () {
  4450. pageOpList.flush(true);
  4451. promise.resolve(pageOpList);
  4452. }, reject);
  4453. }, reject);
  4454. return promise;
  4455. },
  4456. extractTextContent: function Page_extractTextContent() {
  4457. var handler = {
  4458. on: function nullHandlerOn() {},
  4459. send: function nullHandlerSend() {}
  4460. };
  4461. var self = this;
  4462. var pdfManager = this.pdfManager;
  4463. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4464. []);
  4465. var resourcesPromise = this.loadResources([
  4466. 'ExtGState',
  4467. 'XObject',
  4468. 'Font'
  4469. ]);
  4470. var dataPromises = Promise.all([contentStreamPromise,
  4471. resourcesPromise]);
  4472. return dataPromises.then(function(data) {
  4473. var contentStream = data[0];
  4474. var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
  4475. handler, self.pageIndex,
  4476. 'p' + self.pageIndex + '_',
  4477. self.idCounters,
  4478. self.fontCache);
  4479. return partialEvaluator.getTextContent(contentStream,
  4480. self.resources);
  4481. });
  4482. },
  4483. getAnnotationsData: function Page_getAnnotationsData() {
  4484. var annotations = this.annotations;
  4485. var annotationsData = [];
  4486. for (var i = 0, n = annotations.length; i < n; ++i) {
  4487. annotationsData.push(annotations[i].getData());
  4488. }
  4489. return annotationsData;
  4490. },
  4491. get annotations() {
  4492. var annotations = [];
  4493. var annotationRefs = (this.annotationRefs || []);
  4494. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  4495. var annotationRef = annotationRefs[i];
  4496. var annotation = Annotation.fromRef(this.xref, annotationRef);
  4497. if (annotation) {
  4498. annotations.push(annotation);
  4499. }
  4500. }
  4501. return shadow(this, 'annotations', annotations);
  4502. }
  4503. };
  4504. return Page;
  4505. })();
  4506. /**
  4507. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  4508. * `PDFDoc`, this one doesn't have any job management code.
  4509. * Right now there exists one PDFDocument on the main thread + one object
  4510. * for each worker. If there is no worker support enabled, there are two
  4511. * `PDFDocument` objects on the main thread created.
  4512. */
  4513. var PDFDocument = (function PDFDocumentClosure() {
  4514. function PDFDocument(pdfManager, arg, password) {
  4515. if (isStream(arg)) {
  4516. init.call(this, pdfManager, arg, password);
  4517. } else if (isArrayBuffer(arg)) {
  4518. init.call(this, pdfManager, new Stream(arg), password);
  4519. } else {
  4520. error('PDFDocument: Unknown argument type');
  4521. }
  4522. }
  4523. function init(pdfManager, stream, password) {
  4524. assert(stream.length > 0, 'stream must have data');
  4525. this.pdfManager = pdfManager;
  4526. this.stream = stream;
  4527. var xref = new XRef(this.stream, password, pdfManager);
  4528. this.xref = xref;
  4529. }
  4530. function find(stream, needle, limit, backwards) {
  4531. var pos = stream.pos;
  4532. var end = stream.end;
  4533. var strBuf = [];
  4534. if (pos + limit > end) {
  4535. limit = end - pos;
  4536. }
  4537. for (var n = 0; n < limit; ++n) {
  4538. strBuf.push(String.fromCharCode(stream.getByte()));
  4539. }
  4540. var str = strBuf.join('');
  4541. stream.pos = pos;
  4542. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  4543. if (index == -1) {
  4544. return false; /* not found */
  4545. }
  4546. stream.pos += index;
  4547. return true; /* found */
  4548. }
  4549. var DocumentInfoValidators = {
  4550. get entries() {
  4551. // Lazily build this since all the validation functions below are not
  4552. // defined until after this file loads.
  4553. return shadow(this, 'entries', {
  4554. Title: isString,
  4555. Author: isString,
  4556. Subject: isString,
  4557. Keywords: isString,
  4558. Creator: isString,
  4559. Producer: isString,
  4560. CreationDate: isString,
  4561. ModDate: isString,
  4562. Trapped: isName
  4563. });
  4564. }
  4565. };
  4566. PDFDocument.prototype = {
  4567. parse: function PDFDocument_parse(recoveryMode) {
  4568. this.setup(recoveryMode);
  4569. try {
  4570. // checking if AcroForm is present
  4571. this.acroForm = this.catalog.catDict.get('AcroForm');
  4572. if (this.acroForm) {
  4573. this.xfa = this.acroForm.get('XFA');
  4574. var fields = this.acroForm.get('Fields');
  4575. if ((!fields || !isArray(fields) || fields.length === 0) &&
  4576. !this.xfa) {
  4577. // no fields and no XFA -- not a form (?)
  4578. this.acroForm = null;
  4579. }
  4580. }
  4581. } catch (ex) {
  4582. info('Something wrong with AcroForm entry');
  4583. this.acroForm = null;
  4584. }
  4585. },
  4586. get linearization() {
  4587. var length = this.stream.length;
  4588. var linearization = false;
  4589. if (length) {
  4590. try {
  4591. linearization = new Linearization(this.stream);
  4592. if (linearization.length != length) {
  4593. linearization = false;
  4594. }
  4595. } catch (err) {
  4596. if (err instanceof MissingDataException) {
  4597. throw err;
  4598. }
  4599. info('The linearization data is not available ' +
  4600. 'or unreadable PDF data is found');
  4601. linearization = false;
  4602. }
  4603. }
  4604. // shadow the prototype getter with a data property
  4605. return shadow(this, 'linearization', linearization);
  4606. },
  4607. get startXRef() {
  4608. var stream = this.stream;
  4609. var startXRef = 0;
  4610. var linearization = this.linearization;
  4611. if (linearization) {
  4612. // Find end of first obj.
  4613. stream.reset();
  4614. if (find(stream, 'endobj', 1024)) {
  4615. startXRef = stream.pos + 6;
  4616. }
  4617. } else {
  4618. // Find startxref by jumping backward from the end of the file.
  4619. var step = 1024;
  4620. var found = false, pos = stream.end;
  4621. while (!found && pos > 0) {
  4622. pos -= step - 'startxref'.length;
  4623. if (pos < 0) {
  4624. pos = 0;
  4625. }
  4626. stream.pos = pos;
  4627. found = find(stream, 'startxref', step, true);
  4628. }
  4629. if (found) {
  4630. stream.skip(9);
  4631. var ch;
  4632. do {
  4633. ch = stream.getByte();
  4634. } while (Lexer.isSpace(ch));
  4635. var str = '';
  4636. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  4637. str += String.fromCharCode(ch);
  4638. ch = stream.getByte();
  4639. }
  4640. startXRef = parseInt(str, 10);
  4641. if (isNaN(startXRef)) {
  4642. startXRef = 0;
  4643. }
  4644. }
  4645. }
  4646. // shadow the prototype getter with a data property
  4647. return shadow(this, 'startXRef', startXRef);
  4648. },
  4649. get mainXRefEntriesOffset() {
  4650. var mainXRefEntriesOffset = 0;
  4651. var linearization = this.linearization;
  4652. if (linearization) {
  4653. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  4654. }
  4655. // shadow the prototype getter with a data property
  4656. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  4657. },
  4658. // Find the header, remove leading garbage and setup the stream
  4659. // starting from the header.
  4660. checkHeader: function PDFDocument_checkHeader() {
  4661. var stream = this.stream;
  4662. stream.reset();
  4663. if (find(stream, '%PDF-', 1024)) {
  4664. // Found the header, trim off any garbage before it.
  4665. stream.moveStart();
  4666. // Reading file format version
  4667. var MAX_VERSION_LENGTH = 12;
  4668. var version = '', ch;
  4669. while ((ch = stream.getByte()) > 0x20) { // SPACE
  4670. if (version.length >= MAX_VERSION_LENGTH) {
  4671. break;
  4672. }
  4673. version += String.fromCharCode(ch);
  4674. }
  4675. // removing "%PDF-"-prefix
  4676. this.pdfFormatVersion = version.substring(5);
  4677. return;
  4678. }
  4679. // May not be a PDF file, continue anyway.
  4680. },
  4681. parseStartXRef: function PDFDocument_parseStartXRef() {
  4682. var startXRef = this.startXRef;
  4683. this.xref.setStartXRef(startXRef);
  4684. },
  4685. setup: function PDFDocument_setup(recoveryMode) {
  4686. this.xref.parse(recoveryMode);
  4687. this.catalog = new Catalog(this.pdfManager, this.xref);
  4688. },
  4689. get numPages() {
  4690. var linearization = this.linearization;
  4691. var num = linearization ? linearization.numPages : this.catalog.numPages;
  4692. // shadow the prototype getter
  4693. return shadow(this, 'numPages', num);
  4694. },
  4695. get documentInfo() {
  4696. var docInfo = {
  4697. PDFFormatVersion: this.pdfFormatVersion,
  4698. IsAcroFormPresent: !!this.acroForm,
  4699. IsXFAPresent: !!this.xfa
  4700. };
  4701. var infoDict;
  4702. try {
  4703. infoDict = this.xref.trailer.get('Info');
  4704. } catch (err) {
  4705. info('The document information dictionary is invalid.');
  4706. }
  4707. if (infoDict) {
  4708. var validEntries = DocumentInfoValidators.entries;
  4709. // Only fill the document info with valid entries from the spec.
  4710. for (var key in validEntries) {
  4711. if (infoDict.has(key)) {
  4712. var value = infoDict.get(key);
  4713. // Make sure the value conforms to the spec.
  4714. if (validEntries[key](value)) {
  4715. docInfo[key] = (typeof value !== 'string' ?
  4716. value : stringToPDFString(value));
  4717. } else {
  4718. info('Bad value in document info for "' + key + '"');
  4719. }
  4720. }
  4721. }
  4722. }
  4723. return shadow(this, 'documentInfo', docInfo);
  4724. },
  4725. get fingerprint() {
  4726. var xref = this.xref, hash, fileID = '';
  4727. if (xref.trailer.has('ID')) {
  4728. hash = stringToBytes(xref.trailer.get('ID')[0]);
  4729. } else {
  4730. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  4731. }
  4732. for (var i = 0, n = hash.length; i < n; i++) {
  4733. fileID += hash[i].toString(16);
  4734. }
  4735. return shadow(this, 'fingerprint', fileID);
  4736. },
  4737. getPage: function PDFDocument_getPage(pageIndex) {
  4738. return this.catalog.getPage(pageIndex);
  4739. },
  4740. cleanup: function PDFDocument_cleanup() {
  4741. return this.catalog.cleanup();
  4742. }
  4743. };
  4744. return PDFDocument;
  4745. })();
  4746. var Name = (function NameClosure() {
  4747. function Name(name) {
  4748. this.name = name;
  4749. }
  4750. Name.prototype = {};
  4751. var nameCache = {};
  4752. Name.get = function Name_get(name) {
  4753. var nameValue = nameCache[name];
  4754. return (nameValue ? nameValue : (nameCache[name] = new Name(name)));
  4755. };
  4756. return Name;
  4757. })();
  4758. var Cmd = (function CmdClosure() {
  4759. function Cmd(cmd) {
  4760. this.cmd = cmd;
  4761. }
  4762. Cmd.prototype = {};
  4763. var cmdCache = {};
  4764. Cmd.get = function Cmd_get(cmd) {
  4765. var cmdValue = cmdCache[cmd];
  4766. return (cmdValue ? cmdValue : (cmdCache[cmd] = new Cmd(cmd)));
  4767. };
  4768. return Cmd;
  4769. })();
  4770. var Dict = (function DictClosure() {
  4771. var nonSerializable = function nonSerializableClosure() {
  4772. return nonSerializable; // creating closure on some variable
  4773. };
  4774. var GETALL_DICTIONARY_TYPES_WHITELIST = {
  4775. 'Background': true,
  4776. 'ExtGState': true,
  4777. 'Halftone': true,
  4778. 'Layout': true,
  4779. 'Mask': true,
  4780. 'Pagination': true,
  4781. 'Printing': true
  4782. };
  4783. function isRecursionAllowedFor(dict) {
  4784. if (!isName(dict.Type)) {
  4785. return true;
  4786. }
  4787. var dictType = dict.Type.name;
  4788. return GETALL_DICTIONARY_TYPES_WHITELIST[dictType] === true;
  4789. }
  4790. // xref is optional
  4791. function Dict(xref) {
  4792. // Map should only be used internally, use functions below to access.
  4793. this.map = Object.create(null);
  4794. this.xref = xref;
  4795. this.objId = null;
  4796. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  4797. }
  4798. Dict.prototype = {
  4799. assignXref: function Dict_assignXref(newXref) {
  4800. this.xref = newXref;
  4801. },
  4802. // automatically dereferences Ref objects
  4803. get: function Dict_get(key1, key2, key3) {
  4804. var value;
  4805. var xref = this.xref;
  4806. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  4807. typeof key2 == 'undefined') {
  4808. return xref ? xref.fetchIfRef(value) : value;
  4809. }
  4810. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  4811. typeof key3 == 'undefined') {
  4812. return xref ? xref.fetchIfRef(value) : value;
  4813. }
  4814. value = this.map[key3] || null;
  4815. return xref ? xref.fetchIfRef(value) : value;
  4816. },
  4817. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  4818. getAsync: function Dict_getAsync(key1, key2, key3) {
  4819. var value;
  4820. var promise;
  4821. var xref = this.xref;
  4822. if (typeof (value = this.map[key1]) !== undefined || key1 in this.map ||
  4823. typeof key2 === undefined) {
  4824. if (xref) {
  4825. return xref.fetchIfRefAsync(value);
  4826. }
  4827. promise = new LegacyPromise();
  4828. promise.resolve(value);
  4829. return promise;
  4830. }
  4831. if (typeof (value = this.map[key2]) !== undefined || key2 in this.map ||
  4832. typeof key3 === undefined) {
  4833. if (xref) {
  4834. return xref.fetchIfRefAsync(value);
  4835. }
  4836. promise = new LegacyPromise();
  4837. promise.resolve(value);
  4838. return promise;
  4839. }
  4840. value = this.map[key3] || null;
  4841. if (xref) {
  4842. return xref.fetchIfRefAsync(value);
  4843. }
  4844. promise = new LegacyPromise();
  4845. promise.resolve(value);
  4846. return promise;
  4847. },
  4848. // no dereferencing
  4849. getRaw: function Dict_getRaw(key) {
  4850. return this.map[key];
  4851. },
  4852. // creates new map and dereferences all Refs
  4853. getAll: function Dict_getAll() {
  4854. var all = Object.create(null);
  4855. var queue = null;
  4856. var key, obj;
  4857. for (key in this.map) {
  4858. obj = this.get(key);
  4859. if (obj instanceof Dict) {
  4860. if (isRecursionAllowedFor(obj)) {
  4861. (queue || (queue = [])).push({target: all, key: key, obj: obj});
  4862. } else {
  4863. all[key] = this.getRaw(key);
  4864. }
  4865. } else {
  4866. all[key] = obj;
  4867. }
  4868. }
  4869. if (!queue) {
  4870. return all;
  4871. }
  4872. // trying to take cyclic references into the account
  4873. var processed = Object.create(null);
  4874. while (queue.length > 0) {
  4875. var item = queue.shift();
  4876. var itemObj = item.obj;
  4877. var objId = itemObj.objId;
  4878. if (objId && objId in processed) {
  4879. item.target[item.key] = processed[objId];
  4880. continue;
  4881. }
  4882. var dereferenced = Object.create(null);
  4883. for (key in itemObj.map) {
  4884. obj = itemObj.get(key);
  4885. if (obj instanceof Dict) {
  4886. if (isRecursionAllowedFor(obj)) {
  4887. queue.push({target: dereferenced, key: key, obj: obj});
  4888. } else {
  4889. dereferenced[key] = itemObj.getRaw(key);
  4890. }
  4891. } else {
  4892. dereferenced[key] = obj;
  4893. }
  4894. }
  4895. if (objId) {
  4896. processed[objId] = dereferenced;
  4897. }
  4898. item.target[item.key] = dereferenced;
  4899. }
  4900. return all;
  4901. },
  4902. set: function Dict_set(key, value) {
  4903. this.map[key] = value;
  4904. },
  4905. has: function Dict_has(key) {
  4906. return key in this.map;
  4907. },
  4908. forEach: function Dict_forEach(callback) {
  4909. for (var key in this.map) {
  4910. callback(key, this.get(key));
  4911. }
  4912. }
  4913. };
  4914. Dict.empty = new Dict(null);
  4915. return Dict;
  4916. })();
  4917. var Ref = (function RefClosure() {
  4918. function Ref(num, gen) {
  4919. this.num = num;
  4920. this.gen = gen;
  4921. }
  4922. Ref.prototype = {};
  4923. return Ref;
  4924. })();
  4925. // The reference is identified by number and generation.
  4926. // This structure stores only one instance of the reference.
  4927. var RefSet = (function RefSetClosure() {
  4928. function RefSet() {
  4929. this.dict = {};
  4930. }
  4931. RefSet.prototype = {
  4932. has: function RefSet_has(ref) {
  4933. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4934. },
  4935. put: function RefSet_put(ref) {
  4936. this.dict['R' + ref.num + '.' + ref.gen] = true;
  4937. },
  4938. remove: function RefSet_remove(ref) {
  4939. delete this.dict['R' + ref.num + '.' + ref.gen];
  4940. }
  4941. };
  4942. return RefSet;
  4943. })();
  4944. var RefSetCache = (function RefSetCacheClosure() {
  4945. function RefSetCache() {
  4946. this.dict = Object.create(null);
  4947. }
  4948. RefSetCache.prototype = {
  4949. get: function RefSetCache_get(ref) {
  4950. return this.dict['R' + ref.num + '.' + ref.gen];
  4951. },
  4952. has: function RefSetCache_has(ref) {
  4953. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4954. },
  4955. put: function RefSetCache_put(ref, obj) {
  4956. this.dict['R' + ref.num + '.' + ref.gen] = obj;
  4957. },
  4958. putAlias: function RefSetCache_putAlias(ref, aliasRef) {
  4959. this.dict['R' + ref.num + '.' + ref.gen] = this.get(aliasRef);
  4960. },
  4961. forEach: function RefSetCache_forEach(fn, thisArg) {
  4962. for (var i in this.dict) {
  4963. fn.call(thisArg, this.dict[i]);
  4964. }
  4965. },
  4966. clear: function RefSetCache_clear() {
  4967. this.dict = Object.create(null);
  4968. }
  4969. };
  4970. return RefSetCache;
  4971. })();
  4972. var Catalog = (function CatalogClosure() {
  4973. function Catalog(pdfManager, xref) {
  4974. this.pdfManager = pdfManager;
  4975. this.xref = xref;
  4976. this.catDict = xref.getCatalogObj();
  4977. this.fontCache = new RefSetCache();
  4978. assert(isDict(this.catDict),
  4979. 'catalog object is not a dictionary');
  4980. this.pagePromises = [];
  4981. }
  4982. Catalog.prototype = {
  4983. get metadata() {
  4984. var streamRef = this.catDict.getRaw('Metadata');
  4985. if (!isRef(streamRef)) {
  4986. return shadow(this, 'metadata', null);
  4987. }
  4988. var encryptMetadata = (!this.xref.encrypt ? false :
  4989. this.xref.encrypt.encryptMetadata);
  4990. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  4991. var metadata;
  4992. if (stream && isDict(stream.dict)) {
  4993. var type = stream.dict.get('Type');
  4994. var subtype = stream.dict.get('Subtype');
  4995. if (isName(type) && isName(subtype) &&
  4996. type.name === 'Metadata' && subtype.name === 'XML') {
  4997. // XXX: This should examine the charset the XML document defines,
  4998. // however since there are currently no real means to decode
  4999. // arbitrary charsets, let's just hope that the author of the PDF
  5000. // was reasonable enough to stick with the XML default charset,
  5001. // which is UTF-8.
  5002. try {
  5003. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  5004. } catch (e) {
  5005. info('Skipping invalid metadata.');
  5006. }
  5007. }
  5008. }
  5009. return shadow(this, 'metadata', metadata);
  5010. },
  5011. get toplevelPagesDict() {
  5012. var pagesObj = this.catDict.get('Pages');
  5013. assert(isDict(pagesObj), 'invalid top-level pages dictionary');
  5014. // shadow the prototype getter
  5015. return shadow(this, 'toplevelPagesDict', pagesObj);
  5016. },
  5017. get documentOutline() {
  5018. var obj = null;
  5019. try {
  5020. obj = this.readDocumentOutline();
  5021. } catch (ex) {
  5022. if (ex instanceof MissingDataException) {
  5023. throw ex;
  5024. }
  5025. warn('Unable to read document outline');
  5026. }
  5027. return shadow(this, 'documentOutline', obj);
  5028. },
  5029. readDocumentOutline: function Catalog_readDocumentOutline() {
  5030. var xref = this.xref;
  5031. var obj = this.catDict.get('Outlines');
  5032. var root = { items: [] };
  5033. if (isDict(obj)) {
  5034. obj = obj.getRaw('First');
  5035. var processed = new RefSet();
  5036. if (isRef(obj)) {
  5037. var queue = [{obj: obj, parent: root}];
  5038. // to avoid recursion keeping track of the items
  5039. // in the processed dictionary
  5040. processed.put(obj);
  5041. while (queue.length > 0) {
  5042. var i = queue.shift();
  5043. var outlineDict = xref.fetchIfRef(i.obj);
  5044. if (outlineDict === null) {
  5045. continue;
  5046. }
  5047. if (!outlineDict.has('Title')) {
  5048. error('Invalid outline item');
  5049. }
  5050. var dest = outlineDict.get('A');
  5051. if (dest) {
  5052. dest = dest.get('D');
  5053. } else if (outlineDict.has('Dest')) {
  5054. dest = outlineDict.getRaw('Dest');
  5055. if (isName(dest)) {
  5056. dest = dest.name;
  5057. }
  5058. }
  5059. var title = outlineDict.get('Title');
  5060. var outlineItem = {
  5061. dest: dest,
  5062. title: stringToPDFString(title),
  5063. color: outlineDict.get('C') || [0, 0, 0],
  5064. count: outlineDict.get('Count'),
  5065. bold: !!(outlineDict.get('F') & 2),
  5066. italic: !!(outlineDict.get('F') & 1),
  5067. items: []
  5068. };
  5069. i.parent.items.push(outlineItem);
  5070. obj = outlineDict.getRaw('First');
  5071. if (isRef(obj) && !processed.has(obj)) {
  5072. queue.push({obj: obj, parent: outlineItem});
  5073. processed.put(obj);
  5074. }
  5075. obj = outlineDict.getRaw('Next');
  5076. if (isRef(obj) && !processed.has(obj)) {
  5077. queue.push({obj: obj, parent: i.parent});
  5078. processed.put(obj);
  5079. }
  5080. }
  5081. }
  5082. }
  5083. return (root.items.length > 0 ? root.items : null);
  5084. },
  5085. get numPages() {
  5086. var obj = this.toplevelPagesDict.get('Count');
  5087. assert(
  5088. isInt(obj),
  5089. 'page count in top level pages object is not an integer'
  5090. );
  5091. // shadow the prototype getter
  5092. return shadow(this, 'num', obj);
  5093. },
  5094. get destinations() {
  5095. function fetchDestination(dest) {
  5096. return isDict(dest) ? dest.get('D') : dest;
  5097. }
  5098. var xref = this.xref;
  5099. var dests = {}, nameTreeRef, nameDictionaryRef;
  5100. var obj = this.catDict.get('Names');
  5101. if (obj) {
  5102. nameTreeRef = obj.getRaw('Dests');
  5103. } else if (this.catDict.has('Dests')) {
  5104. nameDictionaryRef = this.catDict.get('Dests');
  5105. }
  5106. if (nameDictionaryRef) {
  5107. // reading simple destination dictionary
  5108. obj = nameDictionaryRef;
  5109. obj.forEach(function catalogForEach(key, value) {
  5110. if (!value) {
  5111. return;
  5112. }
  5113. dests[key] = fetchDestination(value);
  5114. });
  5115. }
  5116. if (nameTreeRef) {
  5117. var nameTree = new NameTree(nameTreeRef, xref);
  5118. var names = nameTree.getAll();
  5119. for (var name in names) {
  5120. if (!names.hasOwnProperty(name)) {
  5121. continue;
  5122. }
  5123. dests[name] = fetchDestination(names[name]);
  5124. }
  5125. }
  5126. return shadow(this, 'destinations', dests);
  5127. },
  5128. get attachments() {
  5129. var xref = this.xref;
  5130. var attachments, nameTreeRef;
  5131. var obj = this.catDict.get('Names');
  5132. if (obj) {
  5133. nameTreeRef = obj.getRaw('EmbeddedFiles');
  5134. }
  5135. if (nameTreeRef) {
  5136. var nameTree = new NameTree(nameTreeRef, xref);
  5137. var names = nameTree.getAll();
  5138. for (var name in names) {
  5139. if (!names.hasOwnProperty(name)) {
  5140. continue;
  5141. }
  5142. var fs = new FileSpec(names[name], xref);
  5143. if (!attachments) {
  5144. attachments = {};
  5145. }
  5146. attachments[stringToPDFString(name)] = fs.serializable;
  5147. }
  5148. }
  5149. return shadow(this, 'attachments', attachments);
  5150. },
  5151. get javaScript() {
  5152. var xref = this.xref;
  5153. var obj = this.catDict.get('Names');
  5154. var javaScript = [];
  5155. if (obj && obj.has('JavaScript')) {
  5156. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  5157. var names = nameTree.getAll();
  5158. for (var name in names) {
  5159. if (!names.hasOwnProperty(name)) {
  5160. continue;
  5161. }
  5162. // We don't really use the JavaScript right now. This code is
  5163. // defensive so we don't cause errors on document load.
  5164. var jsDict = names[name];
  5165. if (!isDict(jsDict)) {
  5166. continue;
  5167. }
  5168. var type = jsDict.get('S');
  5169. if (!isName(type) || type.name !== 'JavaScript') {
  5170. continue;
  5171. }
  5172. var js = jsDict.get('JS');
  5173. if (!isString(js) && !isStream(js)) {
  5174. continue;
  5175. }
  5176. if (isStream(js)) {
  5177. js = bytesToString(js.getBytes());
  5178. }
  5179. javaScript.push(stringToPDFString(js));
  5180. }
  5181. }
  5182. return shadow(this, 'javaScript', javaScript);
  5183. },
  5184. cleanup: function Catalog_cleanup() {
  5185. this.fontCache.forEach(function (font) {
  5186. delete font.sent;
  5187. delete font.translated;
  5188. });
  5189. this.fontCache.clear();
  5190. },
  5191. getPage: function Catalog_getPage(pageIndex) {
  5192. if (!(pageIndex in this.pagePromises)) {
  5193. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  5194. function (a) {
  5195. var dict = a[0];
  5196. var ref = a[1];
  5197. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  5198. this.fontCache);
  5199. }.bind(this)
  5200. );
  5201. }
  5202. return this.pagePromises[pageIndex];
  5203. },
  5204. getPageDict: function Catalog_getPageDict(pageIndex) {
  5205. var promise = new LegacyPromise();
  5206. var nodesToVisit = [this.catDict.getRaw('Pages')];
  5207. var currentPageIndex = 0;
  5208. var xref = this.xref;
  5209. function next() {
  5210. while (nodesToVisit.length) {
  5211. var currentNode = nodesToVisit.pop();
  5212. if (isRef(currentNode)) {
  5213. xref.fetchAsync(currentNode).then(function (obj) {
  5214. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  5215. if (pageIndex === currentPageIndex) {
  5216. promise.resolve([obj, currentNode]);
  5217. } else {
  5218. currentPageIndex++;
  5219. next();
  5220. }
  5221. return;
  5222. }
  5223. nodesToVisit.push(obj);
  5224. next();
  5225. }.bind(this), promise.reject.bind(promise));
  5226. return;
  5227. }
  5228. // must be a child page dictionary
  5229. assert(
  5230. isDict(currentNode),
  5231. 'page dictionary kid reference points to wrong type of object'
  5232. );
  5233. var count = currentNode.get('Count');
  5234. // Skip nodes where the page can't be.
  5235. if (currentPageIndex + count <= pageIndex) {
  5236. currentPageIndex += count;
  5237. continue;
  5238. }
  5239. var kids = currentNode.get('Kids');
  5240. assert(isArray(kids), 'page dictionary kids object is not an array');
  5241. if (count === kids.length) {
  5242. // Nodes that don't have the page have been skipped and this is the
  5243. // bottom of the tree which means the page requested must be a
  5244. // descendant of this pages node. Ideally we would just resolve the
  5245. // promise with the page ref here, but there is the case where more
  5246. // pages nodes could link to single a page (see issue 3666 pdf). To
  5247. // handle this push it back on the queue so if it is a pages node it
  5248. // will be descended into.
  5249. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  5250. currentPageIndex = pageIndex;
  5251. continue;
  5252. } else {
  5253. for (var last = kids.length - 1; last >= 0; last--) {
  5254. nodesToVisit.push(kids[last]);
  5255. }
  5256. }
  5257. }
  5258. promise.reject('Page index ' + pageIndex + ' not found.');
  5259. }
  5260. next();
  5261. return promise;
  5262. },
  5263. getPageIndex: function Catalog_getPageIndex(ref) {
  5264. // The page tree nodes have the count of all the leaves below them. To get
  5265. // how many pages are before we just have to walk up the tree and keep
  5266. // adding the count of siblings to the left of the node.
  5267. var xref = this.xref;
  5268. function pagesBeforeRef(kidRef) {
  5269. var total = 0;
  5270. var parentRef;
  5271. return xref.fetchAsync(kidRef).then(function (node) {
  5272. if (!node) {
  5273. return null;
  5274. }
  5275. parentRef = node.getRaw('Parent');
  5276. return node.getAsync('Parent');
  5277. }).then(function (parent) {
  5278. if (!parent) {
  5279. return null;
  5280. }
  5281. return parent.getAsync('Kids');
  5282. }).then(function (kids) {
  5283. if (!kids) {
  5284. return null;
  5285. }
  5286. var kidPromises = [];
  5287. var found = false;
  5288. for (var i = 0; i < kids.length; i++) {
  5289. var kid = kids[i];
  5290. assert(isRef(kid), 'kids must be a ref');
  5291. if (kid.num == kidRef.num) {
  5292. found = true;
  5293. break;
  5294. }
  5295. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  5296. if (kid.has('Count')) {
  5297. var count = kid.get('Count');
  5298. total += count;
  5299. } else { // page leaf node
  5300. total++;
  5301. }
  5302. }));
  5303. }
  5304. if (!found) {
  5305. error('kid ref not found in parents kids');
  5306. }
  5307. return Promise.all(kidPromises).then(function () {
  5308. return [total, parentRef];
  5309. });
  5310. });
  5311. }
  5312. var total = 0;
  5313. function next(ref) {
  5314. return pagesBeforeRef(ref).then(function (args) {
  5315. if (!args) {
  5316. return total;
  5317. }
  5318. var count = args[0];
  5319. var parentRef = args[1];
  5320. total += count;
  5321. return next(parentRef);
  5322. });
  5323. }
  5324. return next(ref);
  5325. }
  5326. };
  5327. return Catalog;
  5328. })();
  5329. var XRef = (function XRefClosure() {
  5330. function XRef(stream, password) {
  5331. this.stream = stream;
  5332. this.entries = [];
  5333. this.xrefstms = {};
  5334. // prepare the XRef cache
  5335. this.cache = [];
  5336. this.password = password;
  5337. }
  5338. XRef.prototype = {
  5339. setStartXRef: function XRef_setStartXRef(startXRef) {
  5340. // Store the starting positions of xref tables as we process them
  5341. // so we can recover from missing data errors
  5342. this.startXRefQueue = [startXRef];
  5343. },
  5344. parse: function XRef_parse(recoveryMode) {
  5345. var trailerDict;
  5346. if (!recoveryMode) {
  5347. trailerDict = this.readXRef();
  5348. } else {
  5349. warn('Indexing all PDF objects');
  5350. trailerDict = this.indexObjects();
  5351. }
  5352. trailerDict.assignXref(this);
  5353. this.trailer = trailerDict;
  5354. var encrypt = trailerDict.get('Encrypt');
  5355. if (encrypt) {
  5356. var ids = trailerDict.get('ID');
  5357. var fileId = (ids && ids.length) ? ids[0] : '';
  5358. this.encrypt = new CipherTransformFactory(encrypt, fileId,
  5359. this.password);
  5360. }
  5361. // get the root dictionary (catalog) object
  5362. if (!(this.root = trailerDict.get('Root'))) {
  5363. error('Invalid root reference');
  5364. }
  5365. },
  5366. processXRefTable: function XRef_processXRefTable(parser) {
  5367. if (!('tableState' in this)) {
  5368. // Stores state of the table as we process it so we can resume
  5369. // from middle of table in case of missing data error
  5370. this.tableState = {
  5371. entryNum: 0,
  5372. streamPos: parser.lexer.stream.pos,
  5373. parserBuf1: parser.buf1,
  5374. parserBuf2: parser.buf2
  5375. };
  5376. }
  5377. var obj = this.readXRefTable(parser);
  5378. // Sanity check
  5379. if (!isCmd(obj, 'trailer')) {
  5380. error('Invalid XRef table: could not find trailer dictionary');
  5381. }
  5382. // Read trailer dictionary, e.g.
  5383. // trailer
  5384. // << /Size 22
  5385. // /Root 20R
  5386. // /Info 10R
  5387. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  5388. // >>
  5389. // The parser goes through the entire stream << ... >> and provides
  5390. // a getter interface for the key-value table
  5391. var dict = parser.getObj();
  5392. if (!isDict(dict)) {
  5393. error('Invalid XRef table: could not parse trailer dictionary');
  5394. }
  5395. delete this.tableState;
  5396. return dict;
  5397. },
  5398. readXRefTable: function XRef_readXRefTable(parser) {
  5399. // Example of cross-reference table:
  5400. // xref
  5401. // 0 1 <-- subsection header (first obj #, obj count)
  5402. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  5403. // 23 2 <-- subsection header ... and so on ...
  5404. // 0000025518 00002 n
  5405. // 0000025635 00000 n
  5406. // trailer
  5407. // ...
  5408. var stream = parser.lexer.stream;
  5409. var tableState = this.tableState;
  5410. stream.pos = tableState.streamPos;
  5411. parser.buf1 = tableState.parserBuf1;
  5412. parser.buf2 = tableState.parserBuf2;
  5413. // Outer loop is over subsection headers
  5414. var obj;
  5415. while (true) {
  5416. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  5417. if (isCmd(obj = parser.getObj(), 'trailer')) {
  5418. break;
  5419. }
  5420. tableState.firstEntryNum = obj;
  5421. tableState.entryCount = parser.getObj();
  5422. }
  5423. var first = tableState.firstEntryNum;
  5424. var count = tableState.entryCount;
  5425. if (!isInt(first) || !isInt(count)) {
  5426. error('Invalid XRef table: wrong types in subsection header');
  5427. }
  5428. // Inner loop is over objects themselves
  5429. for (var i = tableState.entryNum; i < count; i++) {
  5430. tableState.streamPos = stream.pos;
  5431. tableState.entryNum = i;
  5432. tableState.parserBuf1 = parser.buf1;
  5433. tableState.parserBuf2 = parser.buf2;
  5434. var entry = {};
  5435. entry.offset = parser.getObj();
  5436. entry.gen = parser.getObj();
  5437. var type = parser.getObj();
  5438. if (isCmd(type, 'f')) {
  5439. entry.free = true;
  5440. } else if (isCmd(type, 'n')) {
  5441. entry.uncompressed = true;
  5442. }
  5443. // Validate entry obj
  5444. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  5445. !(entry.free || entry.uncompressed)) {
  5446. console.log(entry.offset, entry.gen, entry.free,
  5447. entry.uncompressed);
  5448. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  5449. }
  5450. if (!this.entries[i + first]) {
  5451. this.entries[i + first] = entry;
  5452. }
  5453. }
  5454. tableState.entryNum = 0;
  5455. tableState.streamPos = stream.pos;
  5456. tableState.parserBuf1 = parser.buf1;
  5457. tableState.parserBuf2 = parser.buf2;
  5458. delete tableState.firstEntryNum;
  5459. delete tableState.entryCount;
  5460. }
  5461. // Per issue 3248: hp scanners generate bad XRef
  5462. if (first === 1 && this.entries[1] && this.entries[1].free) {
  5463. // shifting the entries
  5464. this.entries.shift();
  5465. }
  5466. // Sanity check: as per spec, first object must be free
  5467. if (this.entries[0] && !this.entries[0].free) {
  5468. error('Invalid XRef table: unexpected first object');
  5469. }
  5470. return obj;
  5471. },
  5472. processXRefStream: function XRef_processXRefStream(stream) {
  5473. if (!('streamState' in this)) {
  5474. // Stores state of the stream as we process it so we can resume
  5475. // from middle of stream in case of missing data error
  5476. var streamParameters = stream.dict;
  5477. var byteWidths = streamParameters.get('W');
  5478. var range = streamParameters.get('Index');
  5479. if (!range) {
  5480. range = [0, streamParameters.get('Size')];
  5481. }
  5482. this.streamState = {
  5483. entryRanges: range,
  5484. byteWidths: byteWidths,
  5485. entryNum: 0,
  5486. streamPos: stream.pos
  5487. };
  5488. }
  5489. this.readXRefStream(stream);
  5490. delete this.streamState;
  5491. return stream.dict;
  5492. },
  5493. readXRefStream: function XRef_readXRefStream(stream) {
  5494. var i, j;
  5495. var streamState = this.streamState;
  5496. stream.pos = streamState.streamPos;
  5497. var byteWidths = streamState.byteWidths;
  5498. var typeFieldWidth = byteWidths[0];
  5499. var offsetFieldWidth = byteWidths[1];
  5500. var generationFieldWidth = byteWidths[2];
  5501. var entryRanges = streamState.entryRanges;
  5502. while (entryRanges.length > 0) {
  5503. var first = entryRanges[0];
  5504. var n = entryRanges[1];
  5505. if (!isInt(first) || !isInt(n)) {
  5506. error('Invalid XRef range fields: ' + first + ', ' + n);
  5507. }
  5508. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  5509. !isInt(generationFieldWidth)) {
  5510. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  5511. }
  5512. for (i = streamState.entryNum; i < n; ++i) {
  5513. streamState.entryNum = i;
  5514. streamState.streamPos = stream.pos;
  5515. var type = 0, offset = 0, generation = 0;
  5516. for (j = 0; j < typeFieldWidth; ++j) {
  5517. type = (type << 8) | stream.getByte();
  5518. }
  5519. // if type field is absent, its default value is 1
  5520. if (typeFieldWidth === 0) {
  5521. type = 1;
  5522. }
  5523. for (j = 0; j < offsetFieldWidth; ++j) {
  5524. offset = (offset << 8) | stream.getByte();
  5525. }
  5526. for (j = 0; j < generationFieldWidth; ++j) {
  5527. generation = (generation << 8) | stream.getByte();
  5528. }
  5529. var entry = {};
  5530. entry.offset = offset;
  5531. entry.gen = generation;
  5532. switch (type) {
  5533. case 0:
  5534. entry.free = true;
  5535. break;
  5536. case 1:
  5537. entry.uncompressed = true;
  5538. break;
  5539. case 2:
  5540. break;
  5541. default:
  5542. error('Invalid XRef entry type: ' + type);
  5543. }
  5544. if (!this.entries[first + i]) {
  5545. this.entries[first + i] = entry;
  5546. }
  5547. }
  5548. streamState.entryNum = 0;
  5549. streamState.streamPos = stream.pos;
  5550. entryRanges.splice(0, 2);
  5551. }
  5552. },
  5553. indexObjects: function XRef_indexObjects() {
  5554. // Simple scan through the PDF content to find objects,
  5555. // trailers and XRef streams.
  5556. function readToken(data, offset) {
  5557. var token = '', ch = data[offset];
  5558. while (ch !== 13 && ch !== 10) {
  5559. if (++offset >= data.length) {
  5560. break;
  5561. }
  5562. token += String.fromCharCode(ch);
  5563. ch = data[offset];
  5564. }
  5565. return token;
  5566. }
  5567. function skipUntil(data, offset, what) {
  5568. var length = what.length, dataLength = data.length;
  5569. var skipped = 0;
  5570. // finding byte sequence
  5571. while (offset < dataLength) {
  5572. var i = 0;
  5573. while (i < length && data[offset + i] == what[i]) {
  5574. ++i;
  5575. }
  5576. if (i >= length) {
  5577. break; // sequence found
  5578. }
  5579. offset++;
  5580. skipped++;
  5581. }
  5582. return skipped;
  5583. }
  5584. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  5585. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  5586. 101, 102]);
  5587. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  5588. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  5589. var stream = this.stream;
  5590. stream.pos = 0;
  5591. var buffer = stream.getBytes();
  5592. var position = stream.start, length = buffer.length;
  5593. var trailers = [], xrefStms = [];
  5594. while (position < length) {
  5595. var ch = buffer[position];
  5596. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  5597. ++position;
  5598. continue;
  5599. }
  5600. if (ch === 37) { // %-comment
  5601. do {
  5602. ++position;
  5603. if (position >= length) {
  5604. break;
  5605. }
  5606. ch = buffer[position];
  5607. } while (ch !== 13 && ch !== 10);
  5608. continue;
  5609. }
  5610. var token = readToken(buffer, position);
  5611. var m;
  5612. if (token === 'xref') {
  5613. position += skipUntil(buffer, position, trailerBytes);
  5614. trailers.push(position);
  5615. position += skipUntil(buffer, position, startxrefBytes);
  5616. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  5617. this.entries[m[1]] = {
  5618. offset: position,
  5619. gen: m[2] | 0,
  5620. uncompressed: true
  5621. };
  5622. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  5623. var content = buffer.subarray(position, position + contentLength);
  5624. // checking XRef stream suspect
  5625. // (it shall have '/XRef' and next char is not a letter)
  5626. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  5627. if (xrefTagOffset < contentLength &&
  5628. content[xrefTagOffset + 5] < 64) {
  5629. xrefStms.push(position);
  5630. this.xrefstms[position] = 1; // don't read it recursively
  5631. }
  5632. position += contentLength;
  5633. } else {
  5634. position += token.length + 1;
  5635. }
  5636. }
  5637. // reading XRef streams
  5638. var i, ii;
  5639. for (i = 0, ii = xrefStms.length; i < ii; ++i) {
  5640. this.startXRefQueue.push(xrefStms[i]);
  5641. this.readXRef(/* recoveryMode */ true);
  5642. }
  5643. // finding main trailer
  5644. var dict;
  5645. for (i = 0, ii = trailers.length; i < ii; ++i) {
  5646. stream.pos = trailers[i];
  5647. var parser = new Parser(new Lexer(stream), true, null);
  5648. var obj = parser.getObj();
  5649. if (!isCmd(obj, 'trailer')) {
  5650. continue;
  5651. }
  5652. // read the trailer dictionary
  5653. if (!isDict(dict = parser.getObj())) {
  5654. continue;
  5655. }
  5656. // taking the first one with 'ID'
  5657. if (dict.has('ID')) {
  5658. return dict;
  5659. }
  5660. }
  5661. // no tailer with 'ID', taking last one (if exists)
  5662. if (dict) {
  5663. return dict;
  5664. }
  5665. // nothing helps
  5666. // calling error() would reject worker with an UnknownErrorException.
  5667. throw new InvalidPDFException('Invalid PDF structure');
  5668. },
  5669. readXRef: function XRef_readXRef(recoveryMode) {
  5670. var stream = this.stream;
  5671. try {
  5672. while (this.startXRefQueue.length) {
  5673. var startXRef = this.startXRefQueue[0];
  5674. stream.pos = startXRef + stream.start;
  5675. var parser = new Parser(new Lexer(stream), true, null);
  5676. var obj = parser.getObj();
  5677. var dict;
  5678. // Get dictionary
  5679. if (isCmd(obj, 'xref')) {
  5680. // Parse end-of-file XRef
  5681. dict = this.processXRefTable(parser);
  5682. if (!this.topDict) {
  5683. this.topDict = dict;
  5684. }
  5685. // Recursively get other XRefs 'XRefStm', if any
  5686. obj = dict.get('XRefStm');
  5687. if (isInt(obj)) {
  5688. var pos = obj;
  5689. // ignore previously loaded xref streams
  5690. // (possible infinite recursion)
  5691. if (!(pos in this.xrefstms)) {
  5692. this.xrefstms[pos] = 1;
  5693. this.startXRefQueue.push(pos);
  5694. }
  5695. }
  5696. } else if (isInt(obj)) {
  5697. // Parse in-stream XRef
  5698. if (!isInt(parser.getObj()) ||
  5699. !isCmd(parser.getObj(), 'obj') ||
  5700. !isStream(obj = parser.getObj())) {
  5701. error('Invalid XRef stream');
  5702. }
  5703. dict = this.processXRefStream(obj);
  5704. if (!this.topDict) {
  5705. this.topDict = dict;
  5706. }
  5707. if (!dict) {
  5708. error('Failed to read XRef stream');
  5709. }
  5710. } else {
  5711. error('Invalid XRef stream header');
  5712. }
  5713. // Recursively get previous dictionary, if any
  5714. obj = dict.get('Prev');
  5715. if (isInt(obj)) {
  5716. this.startXRefQueue.push(obj);
  5717. } else if (isRef(obj)) {
  5718. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  5719. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  5720. this.startXRefQueue.push(obj.num);
  5721. }
  5722. this.startXRefQueue.shift();
  5723. }
  5724. return this.topDict;
  5725. } catch (e) {
  5726. if (e instanceof MissingDataException) {
  5727. throw e;
  5728. }
  5729. info('(while reading XRef): ' + e);
  5730. }
  5731. if (recoveryMode) {
  5732. return;
  5733. }
  5734. throw new XRefParseException();
  5735. },
  5736. getEntry: function XRef_getEntry(i) {
  5737. var xrefEntry = this.entries[i];
  5738. if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
  5739. return xrefEntry;
  5740. }
  5741. return null;
  5742. },
  5743. fetchIfRef: function XRef_fetchIfRef(obj) {
  5744. if (!isRef(obj)) {
  5745. return obj;
  5746. }
  5747. return this.fetch(obj);
  5748. },
  5749. fetch: function XRef_fetch(ref, suppressEncryption) {
  5750. assert(isRef(ref), 'ref object is not a reference');
  5751. var num = ref.num;
  5752. if (num in this.cache) {
  5753. var cacheEntry = this.cache[num];
  5754. return cacheEntry;
  5755. }
  5756. var xrefEntry = this.getEntry(num);
  5757. // the referenced entry can be free
  5758. if (xrefEntry === null) {
  5759. return (this.cache[num] = null);
  5760. }
  5761. if (xrefEntry.uncompressed) {
  5762. xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption);
  5763. } else {
  5764. xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
  5765. }
  5766. if (isDict(xrefEntry)) {
  5767. xrefEntry.objId = 'R' + ref.num + '.' + ref.gen;
  5768. }
  5769. return xrefEntry;
  5770. },
  5771. fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry,
  5772. suppressEncryption) {
  5773. var gen = ref.gen;
  5774. var num = ref.num;
  5775. if (xrefEntry.gen !== gen) {
  5776. error('inconsistent generation in XRef');
  5777. }
  5778. var stream = this.stream.makeSubStream(xrefEntry.offset +
  5779. this.stream.start);
  5780. var parser = new Parser(new Lexer(stream), true, this);
  5781. var obj1 = parser.getObj();
  5782. var obj2 = parser.getObj();
  5783. var obj3 = parser.getObj();
  5784. if (!isInt(obj1) || parseInt(obj1, 10) !== num ||
  5785. !isInt(obj2) || parseInt(obj2, 10) !== gen ||
  5786. !isCmd(obj3)) {
  5787. error('bad XRef entry');
  5788. }
  5789. if (!isCmd(obj3, 'obj')) {
  5790. // some bad PDFs use "obj1234" and really mean 1234
  5791. if (obj3.cmd.indexOf('obj') === 0) {
  5792. num = parseInt(obj3.cmd.substring(3), 10);
  5793. if (!isNaN(num)) {
  5794. return num;
  5795. }
  5796. }
  5797. error('bad XRef entry');
  5798. }
  5799. if (this.encrypt && !suppressEncryption) {
  5800. try {
  5801. xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num,
  5802. gen));
  5803. } catch (ex) {
  5804. // Almost all streams must be encrypted, but sometimes
  5805. // they are not, probably due to some broken generators.
  5806. // Retrying without encryption...
  5807. return this.fetch(ref, true);
  5808. }
  5809. } else {
  5810. xrefEntry = parser.getObj();
  5811. }
  5812. if (!isStream(xrefEntry)) {
  5813. this.cache[num] = xrefEntry;
  5814. }
  5815. return xrefEntry;
  5816. },
  5817. fetchCompressed: function XRef_fetchCompressed(xrefEntry,
  5818. suppressEncryption) {
  5819. var tableOffset = xrefEntry.offset;
  5820. var stream = this.fetch(new Ref(tableOffset, 0));
  5821. if (!isStream(stream)) {
  5822. error('bad ObjStm stream');
  5823. }
  5824. var first = stream.dict.get('First');
  5825. var n = stream.dict.get('N');
  5826. if (!isInt(first) || !isInt(n)) {
  5827. error('invalid first and n parameters for ObjStm stream');
  5828. }
  5829. var parser = new Parser(new Lexer(stream), false, this);
  5830. parser.allowStreams = true;
  5831. var i, entries = [], num, nums = [];
  5832. // read the object numbers to populate cache
  5833. for (i = 0; i < n; ++i) {
  5834. num = parser.getObj();
  5835. if (!isInt(num)) {
  5836. error('invalid object number in the ObjStm stream: ' + num);
  5837. }
  5838. nums.push(num);
  5839. var offset = parser.getObj();
  5840. if (!isInt(offset)) {
  5841. error('invalid object offset in the ObjStm stream: ' + offset);
  5842. }
  5843. }
  5844. // read stream objects for cache
  5845. for (i = 0; i < n; ++i) {
  5846. entries.push(parser.getObj());
  5847. num = nums[i];
  5848. var entry = this.entries[num];
  5849. if (entry && entry.offset === tableOffset && entry.gen === i) {
  5850. this.cache[num] = entries[i];
  5851. }
  5852. }
  5853. xrefEntry = entries[xrefEntry.gen];
  5854. if (xrefEntry === undefined) {
  5855. error('bad XRef entry for compressed object');
  5856. }
  5857. return xrefEntry;
  5858. },
  5859. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  5860. if (!isRef(obj)) {
  5861. var promise = new LegacyPromise();
  5862. promise.resolve(obj);
  5863. return promise;
  5864. }
  5865. return this.fetchAsync(obj);
  5866. },
  5867. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  5868. var promise = new LegacyPromise();
  5869. var tryFetch = function (promise) {
  5870. try {
  5871. promise.resolve(this.fetch(ref, suppressEncryption));
  5872. } catch (e) {
  5873. if (e instanceof MissingDataException) {
  5874. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  5875. return;
  5876. }
  5877. promise.reject(e);
  5878. }
  5879. }.bind(this, promise);
  5880. tryFetch();
  5881. return promise;
  5882. },
  5883. getCatalogObj: function XRef_getCatalogObj() {
  5884. return this.root;
  5885. }
  5886. };
  5887. return XRef;
  5888. })();
  5889. /**
  5890. * A NameTree is like a Dict but has some advantageous properties, see the
  5891. * spec (7.9.6) for more details.
  5892. * TODO: implement all the Dict functions and make this more efficent.
  5893. */
  5894. var NameTree = (function NameTreeClosure() {
  5895. function NameTree(root, xref) {
  5896. this.root = root;
  5897. this.xref = xref;
  5898. }
  5899. NameTree.prototype = {
  5900. getAll: function NameTree_getAll() {
  5901. var dict = {};
  5902. if (!this.root) {
  5903. return dict;
  5904. }
  5905. var xref = this.xref;
  5906. // reading name tree
  5907. var processed = new RefSet();
  5908. processed.put(this.root);
  5909. var queue = [this.root];
  5910. while (queue.length > 0) {
  5911. var i, n;
  5912. var obj = xref.fetchIfRef(queue.shift());
  5913. if (!isDict(obj)) {
  5914. continue;
  5915. }
  5916. if (obj.has('Kids')) {
  5917. var kids = obj.get('Kids');
  5918. for (i = 0, n = kids.length; i < n; i++) {
  5919. var kid = kids[i];
  5920. if (processed.has(kid)) {
  5921. error('invalid destinations');
  5922. }
  5923. queue.push(kid);
  5924. processed.put(kid);
  5925. }
  5926. continue;
  5927. }
  5928. var names = obj.get('Names');
  5929. if (names) {
  5930. for (i = 0, n = names.length; i < n; i += 2) {
  5931. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  5932. }
  5933. }
  5934. }
  5935. return dict;
  5936. }
  5937. };
  5938. return NameTree;
  5939. })();
  5940. /**
  5941. * "A PDF file can refer to the contents of another file by using a File
  5942. * Specification (PDF 1.1)", see the spec (7.11) for more details.
  5943. * NOTE: Only embedded files are supported (as part of the attachments support)
  5944. * TODO: support the 'URL' file system (with caching if !/V), portable
  5945. * collections attributes and related files (/RF)
  5946. */
  5947. var FileSpec = (function FileSpecClosure() {
  5948. function FileSpec(root, xref) {
  5949. if (!root || !isDict(root)) {
  5950. return;
  5951. }
  5952. this.xref = xref;
  5953. this.root = root;
  5954. if (root.has('FS')) {
  5955. this.fs = root.get('FS');
  5956. }
  5957. this.description = root.has('Desc') ?
  5958. stringToPDFString(root.get('Desc')) :
  5959. '';
  5960. if (root.has('RF')) {
  5961. warn('Related file specifications are not supported');
  5962. }
  5963. this.contentAvailable = true;
  5964. if (!root.has('EF')) {
  5965. this.contentAvailable = false;
  5966. warn('Non-embedded file specifications are not supported');
  5967. }
  5968. }
  5969. function pickPlatformItem(dict) {
  5970. // Look for the filename in this order:
  5971. // UF, F, Unix, Mac, DOS
  5972. if (dict.has('UF')) {
  5973. return dict.get('UF');
  5974. } else if (dict.has('F')) {
  5975. return dict.get('F');
  5976. } else if (dict.has('Unix')) {
  5977. return dict.get('Unix');
  5978. } else if (dict.has('Mac')) {
  5979. return dict.get('Mac');
  5980. } else if (dict.has('DOS')) {
  5981. return dict.get('DOS');
  5982. } else {
  5983. return null;
  5984. }
  5985. }
  5986. FileSpec.prototype = {
  5987. get filename() {
  5988. if (!this._filename && this.root) {
  5989. var filename = pickPlatformItem(this.root) || 'unnamed';
  5990. this._filename = stringToPDFString(filename).
  5991. replace(/\\\\/g, '\\').
  5992. replace(/\\\//g, '/').
  5993. replace(/\\/g, '/');
  5994. }
  5995. return this._filename;
  5996. },
  5997. get content() {
  5998. if (!this.contentAvailable) {
  5999. return null;
  6000. }
  6001. if (!this.contentRef && this.root) {
  6002. this.contentRef = pickPlatformItem(this.root.get('EF'));
  6003. }
  6004. var content = null;
  6005. if (this.contentRef) {
  6006. var xref = this.xref;
  6007. var fileObj = xref.fetchIfRef(this.contentRef);
  6008. if (fileObj && isStream(fileObj)) {
  6009. content = fileObj.getBytes();
  6010. } else {
  6011. warn('Embedded file specification points to non-existing/invalid ' +
  6012. 'content');
  6013. }
  6014. } else {
  6015. warn('Embedded file specification does not have a content');
  6016. }
  6017. return content;
  6018. },
  6019. get serializable() {
  6020. return {
  6021. filename: this.filename,
  6022. content: this.content
  6023. };
  6024. }
  6025. };
  6026. return FileSpec;
  6027. })();
  6028. /**
  6029. * A helper for loading missing data in object graphs. It traverses the graph
  6030. * depth first and queues up any objects that have missing data. Once it has
  6031. * has traversed as many objects that are available it attempts to bundle the
  6032. * missing data requests and then resume from the nodes that weren't ready.
  6033. *
  6034. * NOTE: It provides protection from circular references by keeping track of
  6035. * of loaded references. However, you must be careful not to load any graphs
  6036. * that have references to the catalog or other pages since that will cause the
  6037. * entire PDF document object graph to be traversed.
  6038. */
  6039. var ObjectLoader = (function() {
  6040. function mayHaveChildren(value) {
  6041. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  6042. }
  6043. function addChildren(node, nodesToVisit) {
  6044. var value;
  6045. if (isDict(node) || isStream(node)) {
  6046. var map;
  6047. if (isDict(node)) {
  6048. map = node.map;
  6049. } else {
  6050. map = node.dict.map;
  6051. }
  6052. for (var key in map) {
  6053. value = map[key];
  6054. if (mayHaveChildren(value)) {
  6055. nodesToVisit.push(value);
  6056. }
  6057. }
  6058. } else if (isArray(node)) {
  6059. for (var i = 0, ii = node.length; i < ii; i++) {
  6060. value = node[i];
  6061. if (mayHaveChildren(value)) {
  6062. nodesToVisit.push(value);
  6063. }
  6064. }
  6065. }
  6066. }
  6067. function ObjectLoader(obj, keys, xref) {
  6068. this.obj = obj;
  6069. this.keys = keys;
  6070. this.xref = xref;
  6071. this.refSet = null;
  6072. }
  6073. ObjectLoader.prototype = {
  6074. load: function ObjectLoader_load() {
  6075. var keys = this.keys;
  6076. this.promise = new LegacyPromise();
  6077. // Don't walk the graph if all the data is already loaded.
  6078. if (!(this.xref.stream instanceof ChunkedStream) ||
  6079. this.xref.stream.getMissingChunks().length === 0) {
  6080. this.promise.resolve();
  6081. return this.promise;
  6082. }
  6083. this.refSet = new RefSet();
  6084. // Setup the initial nodes to visit.
  6085. var nodesToVisit = [];
  6086. for (var i = 0; i < keys.length; i++) {
  6087. nodesToVisit.push(this.obj[keys[i]]);
  6088. }
  6089. this.walk(nodesToVisit);
  6090. return this.promise;
  6091. },
  6092. walk: function ObjectLoader_walk(nodesToVisit) {
  6093. var nodesToRevisit = [];
  6094. var pendingRequests = [];
  6095. // DFS walk of the object graph.
  6096. while (nodesToVisit.length) {
  6097. var currentNode = nodesToVisit.pop();
  6098. // Only references or chunked streams can cause missing data exceptions.
  6099. if (isRef(currentNode)) {
  6100. // Skip nodes that have already been visited.
  6101. if (this.refSet.has(currentNode)) {
  6102. continue;
  6103. }
  6104. try {
  6105. var ref = currentNode;
  6106. this.refSet.put(ref);
  6107. currentNode = this.xref.fetch(currentNode);
  6108. } catch (e) {
  6109. if (!(e instanceof MissingDataException)) {
  6110. throw e;
  6111. }
  6112. nodesToRevisit.push(currentNode);
  6113. pendingRequests.push({ begin: e.begin, end: e.end });
  6114. }
  6115. }
  6116. if (currentNode && currentNode.getBaseStreams) {
  6117. var baseStreams = currentNode.getBaseStreams();
  6118. var foundMissingData = false;
  6119. for (var i = 0; i < baseStreams.length; i++) {
  6120. var stream = baseStreams[i];
  6121. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  6122. foundMissingData = true;
  6123. pendingRequests.push({
  6124. begin: stream.start,
  6125. end: stream.end
  6126. });
  6127. }
  6128. }
  6129. if (foundMissingData) {
  6130. nodesToRevisit.push(currentNode);
  6131. }
  6132. }
  6133. addChildren(currentNode, nodesToVisit);
  6134. }
  6135. if (pendingRequests.length) {
  6136. this.xref.stream.manager.requestRanges(pendingRequests,
  6137. function pendingRequestCallback() {
  6138. nodesToVisit = nodesToRevisit;
  6139. for (var i = 0; i < nodesToRevisit.length; i++) {
  6140. var node = nodesToRevisit[i];
  6141. // Remove any reference nodes from the currrent refset so they
  6142. // aren't skipped when we revist them.
  6143. if (isRef(node)) {
  6144. this.refSet.remove(node);
  6145. }
  6146. }
  6147. this.walk(nodesToVisit);
  6148. }.bind(this));
  6149. return;
  6150. }
  6151. // Everything is loaded.
  6152. this.refSet = null;
  6153. this.promise.resolve();
  6154. }
  6155. };
  6156. return ObjectLoader;
  6157. })();
  6158. var ISOAdobeCharset = [
  6159. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  6160. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  6161. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  6162. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  6163. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  6164. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  6165. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  6166. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  6167. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  6168. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  6169. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  6170. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  6171. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  6172. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  6173. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  6174. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  6175. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  6176. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  6177. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  6178. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  6179. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  6180. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  6181. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  6182. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  6183. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  6184. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  6185. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  6186. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  6187. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  6188. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  6189. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  6190. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  6191. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  6192. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  6193. ];
  6194. var ExpertCharset = [
  6195. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  6196. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  6197. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  6198. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  6199. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  6200. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  6201. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  6202. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  6203. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  6204. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  6205. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  6206. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  6207. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  6208. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  6209. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  6210. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  6211. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  6212. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  6213. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  6214. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  6215. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  6216. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  6217. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  6218. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  6219. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  6220. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  6221. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  6222. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  6223. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  6224. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  6225. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  6226. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  6227. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  6228. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  6229. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  6230. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  6231. 'Ydieresissmall'
  6232. ];
  6233. var ExpertSubsetCharset = [
  6234. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  6235. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  6236. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  6237. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  6238. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  6239. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  6240. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  6241. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  6242. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  6243. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  6244. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  6245. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  6246. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  6247. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  6248. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  6249. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  6250. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  6251. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  6252. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  6253. 'periodinferior', 'commainferior'
  6254. ];
  6255. var CIDToUnicodeMaps = {
  6256. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  6257. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  6258. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  6259. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  6260. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  6261. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  6262. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  6263. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  6264. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  6265. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  6266. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  6267. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  6268. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  6269. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  6270. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  6271. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  6272. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  6273. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  6274. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  6275. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  6276. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  6277. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  6278. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  6279. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  6280. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  6281. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  6282. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  6283. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  6284. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  6285. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  6286. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  6287. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  6288. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  6289. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  6290. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  6291. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  6292. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  6293. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  6294. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  6295. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  6296. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  6297. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  6298. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  6299. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  6300. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  6301. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  6302. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  6303. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  6304. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  6305. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  6306. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  6307. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  6308. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  6309. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  6310. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  6311. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  6312. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  6313. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  6314. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  6315. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  6316. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  6317. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  6318. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  6319. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  6320. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  6321. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  6322. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  6323. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  6324. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  6325. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  6326. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  6327. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  6328. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  6329. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  6330. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  6331. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  6332. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  6333. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  6334. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  6335. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  6336. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  6337. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  6338. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  6339. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  6340. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  6341. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  6342. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  6343. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  6344. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  6345. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  6346. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  6347. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  6348. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  6349. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  6350. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  6351. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  6352. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  6353. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  6354. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  6355. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  6356. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  6357. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  6358. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  6359. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  6360. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  6361. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  6362. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  6363. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  6364. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  6365. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  6366. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  6367. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  6368. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  6369. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  6370. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  6371. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  6372. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  6373. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  6374. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  6375. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  6376. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  6377. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  6378. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  6379. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  6380. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  6381. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  6382. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  6383. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  6384. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  6385. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  6386. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  6387. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  6388. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  6389. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  6390. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  6391. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  6392. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  6393. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  6394. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  6395. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  6396. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  6397. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  6398. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  6399. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  6400. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  6401. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  6402. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  6403. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  6404. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  6405. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  6406. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  6407. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  6408. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  6409. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  6410. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  6411. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  6412. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  6413. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  6414. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  6415. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  6416. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  6417. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  6418. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  6419. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  6420. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  6421. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  6422. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  6423. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  6424. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  6425. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  6426. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  6427. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  6428. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  6429. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  6430. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  6431. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  6432. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  6433. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  6434. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  6435. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  6436. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  6437. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  6438. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  6439. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  6440. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  6441. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  6442. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  6443. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  6444. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  6445. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  6446. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  6447. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  6448. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  6449. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  6450. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  6451. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  6452. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  6453. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  6454. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  6455. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  6456. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  6457. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  6458. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  6459. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  6460. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  6461. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  6462. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  6463. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  6464. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  6465. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  6466. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  6467. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  6468. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  6469. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  6470. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  6471. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  6472. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  6473. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  6474. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  6475. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  6476. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  6477. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  6478. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  6479. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  6480. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  6481. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  6482. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  6483. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  6484. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  6485. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  6486. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  6487. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  6488. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  6489. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  6490. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  6491. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  6492. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  6493. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  6494. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  6495. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  6496. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  6497. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  6498. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  6499. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  6500. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  6501. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  6502. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  6503. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  6504. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  6505. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  6506. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  6507. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  6508. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  6509. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  6510. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  6511. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  6512. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  6513. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  6514. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  6515. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  6516. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  6517. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  6518. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  6519. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  6520. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  6521. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  6522. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  6523. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  6524. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  6525. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  6526. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  6527. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  6528. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  6529. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  6530. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  6531. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  6532. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  6533. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  6534. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  6535. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  6536. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  6537. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  6538. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  6539. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  6540. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  6541. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  6542. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  6543. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  6544. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  6545. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  6546. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  6547. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  6548. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  6549. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  6550. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  6551. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  6552. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  6553. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  6554. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  6555. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  6556. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  6557. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  6558. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  6559. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  6560. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  6561. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  6562. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  6563. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  6564. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  6565. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  6566. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  6567. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  6568. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  6569. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  6570. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  6571. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  6572. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  6573. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  6574. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  6575. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  6576. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  6577. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  6578. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  6579. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  6580. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  6581. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  6582. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  6583. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  6584. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  6585. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  6586. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  6587. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  6588. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  6589. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  6590. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  6591. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  6592. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  6593. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  6594. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  6595. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  6596. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  6597. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  6598. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  6599. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  6600. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  6601. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  6602. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  6603. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  6604. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  6605. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  6606. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  6607. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  6608. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  6609. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  6610. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  6611. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  6612. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  6613. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  6614. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  6615. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  6616. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  6617. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  6618. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  6619. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  6620. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  6621. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  6622. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  6623. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  6624. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  6625. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  6626. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  6627. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  6628. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  6629. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  6630. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  6631. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  6632. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  6633. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  6634. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  6635. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  6636. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  6637. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  6638. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  6639. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  6640. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  6641. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  6642. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  6643. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  6644. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  6645. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  6646. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  6647. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  6648. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  6649. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  6650. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  6651. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  6652. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  6653. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  6654. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  6655. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  6656. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  6657. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  6658. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  6659. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  6660. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  6661. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  6662. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  6663. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  6664. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  6665. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  6666. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  6667. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  6668. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  6669. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  6670. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  6671. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  6672. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  6673. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  6674. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  6675. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  6676. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  6677. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  6678. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  6679. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  6680. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  6681. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  6682. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  6683. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  6684. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  6685. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  6686. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  6687. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  6688. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  6689. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  6690. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  6691. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  6692. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  6693. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  6694. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  6695. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  6696. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  6697. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  6698. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  6699. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  6700. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  6701. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  6702. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  6703. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  6704. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  6705. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  6706. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  6707. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  6708. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  6709. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  6710. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  6711. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  6712. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  6713. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  6714. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  6715. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  6716. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  6717. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  6718. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  6719. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  6720. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  6721. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  6722. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  6723. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  6724. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  6725. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  6726. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  6727. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  6728. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  6729. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  6730. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  6731. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  6732. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  6733. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  6734. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  6735. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  6736. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  6737. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  6738. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  6739. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  6740. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  6741. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  6742. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  6743. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  6744. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  6745. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  6746. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  6747. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  6748. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  6749. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  6750. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  6751. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  6752. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  6753. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  6754. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  6755. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  6756. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  6757. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  6758. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  6759. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  6760. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  6761. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  6762. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  6763. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  6764. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  6765. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  6766. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  6767. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  6768. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  6769. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  6770. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  6771. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  6772. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  6773. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  6774. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  6775. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  6776. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  6777. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  6778. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  6779. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  6780. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  6781. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  6782. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  6783. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  6784. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  6785. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  6786. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  6787. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  6788. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  6789. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  6790. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  6791. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  6792. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  6793. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  6794. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  6795. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  6796. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  6797. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  6798. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  6799. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  6800. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  6801. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  6802. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  6803. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  6804. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  6805. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  6806. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  6807. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  6808. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  6809. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  6810. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  6811. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  6812. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  6813. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  6814. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  6815. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  6816. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  6817. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  6818. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  6819. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  6820. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  6821. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  6822. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  6823. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  6824. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  6825. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  6826. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  6827. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  6828. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  6829. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  6830. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  6831. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  6832. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  6833. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  6834. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  6835. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  6836. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  6837. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  6838. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  6839. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  6840. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  6841. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  6842. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  6843. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  6844. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  6845. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  6846. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  6847. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  6848. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  6849. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  6850. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  6851. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  6852. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  6853. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  6854. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  6855. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  6856. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  6857. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  6858. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  6859. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  6860. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  6861. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  6862. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  6863. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  6864. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  6865. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  6866. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  6867. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  6868. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  6869. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  6870. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  6871. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  6872. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  6873. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  6874. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  6875. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  6876. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  6877. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  6878. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  6879. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  6880. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  6881. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  6882. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  6883. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  6884. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  6885. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  6886. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  6887. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  6888. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  6889. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  6890. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  6891. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  6892. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  6893. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  6894. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  6895. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  6896. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  6897. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  6898. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  6899. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  6900. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  6901. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  6902. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  6903. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  6904. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  6905. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  6906. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  6907. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  6908. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  6909. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  6910. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  6911. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  6912. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  6913. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  6914. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  6915. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  6916. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  6917. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  6918. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  6919. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  6920. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  6921. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  6922. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  6923. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  6924. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  6925. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  6926. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  6927. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  6928. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  6929. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  6930. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  6931. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  6932. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  6933. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  6934. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  6935. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  6936. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  6937. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  6938. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  6939. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  6940. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  6941. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  6942. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  6943. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  6944. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  6945. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  6946. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  6947. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  6948. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  6949. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  6950. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  6951. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  6952. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  6953. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  6954. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  6955. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  6956. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  6957. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  6958. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  6959. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  6960. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  6961. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  6962. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  6963. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  6964. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  6965. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  6966. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  6967. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  6968. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  6969. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  6970. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  6971. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  6972. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  6973. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  6974. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  6975. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  6976. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  6977. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  6978. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  6979. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  6980. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  6981. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  6982. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  6983. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  6984. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  6985. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  6986. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  6987. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  6988. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  6989. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  6990. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  6991. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  6992. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  6993. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  6994. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  6995. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  6996. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  6997. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  6998. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  6999. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  7000. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  7001. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  7002. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  7003. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  7004. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  7005. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  7006. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  7007. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  7008. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  7009. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  7010. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  7011. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  7012. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  7013. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  7014. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  7015. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  7016. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  7017. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  7018. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  7019. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  7020. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  7021. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  7022. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  7023. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  7024. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  7025. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  7026. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  7027. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  7028. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  7029. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  7030. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  7031. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  7032. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  7033. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  7034. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  7035. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  7036. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  7037. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  7038. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  7039. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  7040. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  7041. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  7042. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  7043. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  7044. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  7045. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  7046. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  7047. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  7048. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  7049. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  7050. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  7051. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  7052. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  7053. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  7054. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  7055. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  7056. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  7057. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  7058. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  7059. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  7060. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  7061. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  7062. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  7063. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  7064. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  7065. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  7066. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  7067. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  7068. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  7069. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  7070. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  7071. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  7072. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  7073. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  7074. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  7075. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  7076. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  7077. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  7078. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  7079. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  7080. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  7081. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  7082. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  7083. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  7084. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  7085. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  7086. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  7087. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  7088. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  7089. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  7090. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  7091. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  7092. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  7093. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  7094. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  7095. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  7096. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  7097. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  7098. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  7099. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  7100. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  7101. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  7102. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  7103. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  7104. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  7105. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  7106. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  7107. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  7108. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  7109. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  7110. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  7111. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  7112. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  7113. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  7114. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  7115. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  7116. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  7117. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  7118. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  7119. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  7120. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  7121. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  7122. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  7123. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  7124. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  7125. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  7126. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  7127. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  7128. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  7129. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  7130. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  7131. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  7132. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  7133. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  7134. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  7135. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  7136. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  7137. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  7138. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  7139. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  7140. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  7141. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  7142. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  7143. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  7144. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  7145. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  7146. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  7147. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  7148. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  7149. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  7150. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  7151. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  7152. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  7153. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  7154. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  7155. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  7156. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  7157. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  7158. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  7159. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  7160. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  7161. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  7162. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  7163. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  7164. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  7165. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  7166. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  7167. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  7168. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  7169. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  7170. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  7171. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  7172. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  7173. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  7174. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  7175. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  7176. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  7177. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  7178. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  7179. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  7180. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  7181. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  7182. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  7183. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  7184. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  7185. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  7186. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  7187. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  7188. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  7189. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  7190. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  7191. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  7192. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  7193. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  7194. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  7195. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  7196. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  7197. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  7198. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  7199. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  7200. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  7201. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  7202. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  7203. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  7204. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  7205. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  7206. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  7207. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  7208. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  7209. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  7210. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  7211. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  7212. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  7213. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  7214. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  7215. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  7216. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  7217. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  7218. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  7219. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  7220. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  7221. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  7222. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  7223. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  7224. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  7225. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  7226. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  7227. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  7228. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  7229. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  7230. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  7231. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  7232. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  7233. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  7234. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  7235. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  7236. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  7237. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  7238. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  7239. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  7240. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  7241. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  7242. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  7243. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  7244. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  7245. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  7246. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  7247. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  7248. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  7249. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  7250. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  7251. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  7252. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  7253. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  7254. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  7255. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  7256. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  7257. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  7258. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  7259. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  7260. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  7261. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  7262. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  7263. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  7264. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  7265. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  7266. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  7267. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  7268. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  7269. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  7270. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  7271. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  7272. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  7273. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  7274. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  7275. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  7276. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  7277. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  7278. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  7279. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  7280. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  7281. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  7282. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  7283. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  7284. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  7285. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  7286. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  7287. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  7288. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  7289. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  7290. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  7291. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  7292. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  7293. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  7294. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  7295. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  7296. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  7297. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  7298. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  7299. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  7300. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  7301. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  7302. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  7303. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  7304. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  7305. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  7306. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  7307. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  7308. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  7309. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  7310. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  7311. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  7312. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  7313. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  7314. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  7315. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  7316. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  7317. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  7318. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  7319. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  7320. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  7321. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  7322. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  7323. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  7324. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  7325. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  7326. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  7327. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  7328. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  7329. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  7330. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  7331. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  7332. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  7333. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  7334. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  7335. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  7336. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  7337. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  7338. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  7339. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  7340. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  7341. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  7342. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  7343. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  7344. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  7345. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  7346. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  7347. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  7348. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  7349. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  7350. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  7351. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  7352. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  7353. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  7354. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  7355. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  7356. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  7357. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  7358. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  7359. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  7360. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  7361. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  7362. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  7363. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  7364. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  7365. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  7366. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  7367. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  7368. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  7369. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  7370. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  7371. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  7372. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  7373. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  7374. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  7375. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  7376. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  7377. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  7378. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  7379. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  7380. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  7381. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  7382. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  7383. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  7384. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  7385. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  7386. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  7387. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  7388. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  7389. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  7390. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  7391. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  7392. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  7393. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  7394. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  7395. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  7396. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  7397. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  7398. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  7399. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  7400. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  7401. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  7402. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  7403. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  7404. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  7405. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  7406. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  7407. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  7408. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  7409. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  7410. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  7411. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  7412. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  7413. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  7414. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  7415. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  7416. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  7417. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  7418. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  7419. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  7420. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  7421. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  7422. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  7423. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  7424. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  7425. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  7426. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  7427. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  7428. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  7429. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  7430. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  7431. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  7432. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  7433. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  7434. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  7435. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  7436. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  7437. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  7438. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  7439. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  7440. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  7441. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  7442. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  7443. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  7444. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  7445. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  7446. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  7447. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  7448. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  7449. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  7450. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  7451. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  7452. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  7453. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  7454. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  7455. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  7456. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  7457. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  7458. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  7459. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  7460. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  7461. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  7462. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  7463. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  7464. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  7465. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  7466. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  7467. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  7468. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  7469. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  7470. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  7471. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  7472. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  7473. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  7474. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  7475. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  7476. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  7477. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  7478. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  7479. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  7480. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  7481. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  7482. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  7483. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  7484. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  7485. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  7486. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  7487. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  7488. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  7489. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  7490. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  7491. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  7492. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  7493. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  7494. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  7495. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  7496. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  7497. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  7498. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  7499. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  7500. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  7501. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  7502. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  7503. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  7504. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  7505. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  7506. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  7507. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  7508. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  7509. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  7510. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  7511. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  7512. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  7513. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  7514. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  7515. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  7516. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  7517. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  7518. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  7519. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  7520. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  7521. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  7522. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  7523. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  7524. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  7525. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  7526. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  7527. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  7528. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  7529. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  7530. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  7531. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  7532. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  7533. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  7534. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  7535. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  7536. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  7537. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  7538. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  7539. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  7540. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  7541. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  7542. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  7543. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  7544. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  7545. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  7546. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  7547. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  7548. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  7549. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  7550. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  7551. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  7552. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  7553. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  7554. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  7555. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  7556. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  7557. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  7558. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  7559. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  7560. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  7561. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  7562. 38315, 38741, 171581, 173594],
  7563. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  7564. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  7565. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  7566. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  7567. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  7568. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  7569. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  7570. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  7571. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  7572. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  7573. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  7574. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  7575. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  7576. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  7577. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  7578. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  7579. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  7580. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  7581. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  7582. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  7583. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  7584. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  7585. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  7586. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  7587. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  7588. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  7589. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  7590. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  7591. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  7592. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  7593. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  7594. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  7595. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  7596. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  7597. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  7598. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  7599. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  7600. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  7601. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  7602. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  7603. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  7604. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  7605. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  7606. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  7607. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  7608. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  7609. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  7610. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  7611. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  7612. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  7613. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  7614. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  7615. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  7616. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  7617. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  7618. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  7619. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  7620. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  7621. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  7622. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  7623. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  7624. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  7625. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  7626. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  7627. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  7628. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  7629. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  7630. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  7631. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  7632. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  7633. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  7634. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  7635. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  7636. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  7637. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  7638. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  7639. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  7640. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  7641. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  7642. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  7643. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  7644. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  7645. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  7646. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  7647. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  7648. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  7649. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  7650. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  7651. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  7652. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  7653. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  7654. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  7655. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  7656. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  7657. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  7658. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  7659. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  7660. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  7661. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  7662. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  7663. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  7664. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  7665. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  7666. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  7667. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  7668. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  7669. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  7670. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  7671. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  7672. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  7673. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  7674. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  7675. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  7676. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  7677. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  7678. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  7679. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  7680. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  7681. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  7682. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  7683. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  7684. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  7685. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  7686. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  7687. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  7688. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  7689. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  7690. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  7691. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  7692. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  7693. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  7694. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  7695. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  7696. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  7697. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  7698. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  7699. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  7700. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  7701. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  7702. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  7703. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  7704. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  7705. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  7706. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  7707. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  7708. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  7709. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  7710. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  7711. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  7712. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  7713. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  7714. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  7715. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  7716. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  7717. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  7718. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  7719. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  7720. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  7721. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  7722. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  7723. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  7724. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  7725. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  7726. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  7727. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  7728. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  7729. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  7730. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  7731. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  7732. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  7733. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  7734. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  7735. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  7736. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  7737. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  7738. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  7739. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  7740. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  7741. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  7742. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  7743. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  7744. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  7745. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  7746. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  7747. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  7748. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  7749. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  7750. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  7751. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  7752. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  7753. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  7754. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  7755. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  7756. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  7757. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  7758. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  7759. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  7760. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  7761. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  7762. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  7763. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  7764. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  7765. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  7766. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  7767. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  7768. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  7769. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  7770. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  7771. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  7772. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  7773. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  7774. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  7775. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  7776. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  7777. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  7778. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  7779. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  7780. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  7781. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  7782. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  7783. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  7784. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  7785. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  7786. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  7787. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  7788. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  7789. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  7790. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  7791. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  7792. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  7793. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  7794. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  7795. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  7796. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  7797. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  7798. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  7799. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  7800. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  7801. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  7802. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  7803. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  7804. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  7805. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  7806. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  7807. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  7808. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  7809. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  7810. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  7811. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  7812. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  7813. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  7814. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  7815. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  7816. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  7817. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  7818. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  7819. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  7820. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  7821. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  7822. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  7823. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  7824. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  7825. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  7826. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  7827. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  7828. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  7829. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  7830. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  7831. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  7832. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  7833. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  7834. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  7835. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  7836. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  7837. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  7838. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  7839. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  7840. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  7841. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  7842. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  7843. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  7844. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  7845. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  7846. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  7847. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  7848. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  7849. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  7850. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  7851. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  7852. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  7853. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  7854. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  7855. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  7856. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  7857. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  7858. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  7859. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  7860. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  7861. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  7862. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  7863. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  7864. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  7865. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  7866. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  7867. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  7868. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  7869. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  7870. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  7871. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  7872. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  7873. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  7874. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  7875. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  7876. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  7877. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  7878. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  7879. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  7880. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  7881. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  7882. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  7883. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  7884. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  7885. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  7886. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  7887. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  7888. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  7889. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  7890. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  7891. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  7892. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  7893. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  7894. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  7895. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  7896. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  7897. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  7898. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  7899. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  7900. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  7901. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  7902. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  7903. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  7904. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  7905. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  7906. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  7907. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  7908. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  7909. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  7910. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  7911. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  7912. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  7913. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  7914. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  7915. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  7916. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  7917. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  7918. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  7919. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  7920. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  7921. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  7922. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  7923. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  7924. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  7925. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  7926. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  7927. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  7928. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  7929. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  7930. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  7931. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  7932. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  7933. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  7934. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  7935. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  7936. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  7937. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  7938. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  7939. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  7940. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  7941. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  7942. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  7943. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  7944. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  7945. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  7946. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  7947. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  7948. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  7949. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  7950. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  7951. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  7952. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  7953. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  7954. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  7955. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  7956. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  7957. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  7958. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  7959. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  7960. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  7961. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  7962. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  7963. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  7964. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  7965. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  7966. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  7967. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  7968. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  7969. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  7970. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  7971. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  7972. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  7973. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  7974. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  7975. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  7976. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  7977. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  7978. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  7979. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  7980. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  7981. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  7982. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  7983. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  7984. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  7985. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  7986. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  7987. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  7988. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  7989. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  7990. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  7991. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  7992. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  7993. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  7994. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  7995. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  7996. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  7997. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  7998. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  7999. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  8000. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  8001. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  8002. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  8003. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  8004. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  8005. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  8006. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  8007. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  8008. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  8009. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  8010. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  8011. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  8012. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  8013. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  8014. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  8015. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  8016. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  8017. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  8018. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  8019. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  8020. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  8021. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  8022. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  8023. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  8024. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  8025. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  8026. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  8027. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  8028. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  8029. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  8030. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  8031. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  8032. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  8033. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  8034. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  8035. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  8036. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  8037. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  8038. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  8039. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  8040. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  8041. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  8042. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  8043. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  8044. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  8045. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  8046. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  8047. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  8048. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  8049. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  8050. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  8051. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  8052. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  8053. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  8054. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  8055. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  8056. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  8057. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  8058. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  8059. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  8060. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  8061. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  8062. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  8063. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  8064. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  8065. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  8066. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  8067. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  8068. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  8069. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  8070. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  8071. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  8072. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  8073. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  8074. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  8075. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  8076. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  8077. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  8078. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  8079. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  8080. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  8081. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  8082. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  8083. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  8084. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  8085. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  8086. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  8087. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  8088. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  8089. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  8090. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  8091. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  8092. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  8093. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  8094. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  8095. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  8096. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  8097. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  8098. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  8099. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  8100. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  8101. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  8102. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  8103. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  8104. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  8105. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  8106. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  8107. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  8108. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  8109. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  8110. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  8111. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  8112. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  8113. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  8114. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  8115. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  8116. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  8117. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  8118. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  8119. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  8120. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  8121. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  8122. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  8123. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  8124. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  8125. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  8126. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  8127. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  8128. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  8129. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  8130. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  8131. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  8132. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  8133. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  8134. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  8135. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  8136. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  8137. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  8138. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  8139. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  8140. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  8141. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  8142. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  8143. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  8144. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  8145. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  8146. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  8147. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  8148. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  8149. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  8150. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  8151. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  8152. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  8153. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  8154. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  8155. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  8156. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  8157. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  8158. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  8159. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  8160. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  8161. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  8162. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  8163. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  8164. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  8165. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  8166. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  8167. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  8168. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  8169. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  8170. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  8171. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  8172. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  8173. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  8174. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  8175. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  8176. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  8177. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  8178. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  8179. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  8180. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  8181. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  8182. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  8183. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  8184. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  8185. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  8186. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  8187. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  8188. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  8189. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  8190. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  8191. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  8192. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  8193. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  8194. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  8195. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  8196. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  8197. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  8198. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  8199. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  8200. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  8201. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  8202. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  8203. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  8204. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  8205. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  8206. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  8207. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  8208. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  8209. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  8210. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  8211. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  8212. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  8213. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  8214. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  8215. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  8216. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  8217. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  8218. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  8219. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  8220. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  8221. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  8222. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  8223. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  8224. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  8225. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  8226. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  8227. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  8228. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  8229. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  8230. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  8231. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  8232. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  8233. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  8234. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  8235. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  8236. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  8237. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  8238. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  8239. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  8240. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  8241. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  8242. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  8243. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  8244. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  8245. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  8246. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  8247. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  8248. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  8249. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  8250. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  8251. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  8252. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  8253. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  8254. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  8255. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  8256. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  8257. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  8258. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  8259. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  8260. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  8261. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  8262. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  8263. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  8264. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  8265. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  8266. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  8267. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  8268. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  8269. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  8270. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  8271. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  8272. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  8273. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  8274. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  8275. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  8276. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  8277. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  8278. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  8279. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  8280. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  8281. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  8282. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  8283. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  8284. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  8285. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  8286. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  8287. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  8288. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  8289. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  8290. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  8291. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  8292. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  8293. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  8294. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  8295. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  8296. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  8297. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  8298. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  8299. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  8300. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  8301. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  8302. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  8303. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  8304. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  8305. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  8306. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  8307. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  8308. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  8309. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  8310. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  8311. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  8312. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  8313. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  8314. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  8315. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  8316. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  8317. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  8318. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  8319. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  8320. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  8321. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  8322. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  8323. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  8324. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  8325. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  8326. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  8327. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  8328. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  8329. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  8330. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  8331. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  8332. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  8333. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  8334. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  8335. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  8336. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  8337. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  8338. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  8339. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  8340. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  8341. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  8342. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  8343. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  8344. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  8345. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  8346. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  8347. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  8348. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  8349. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  8350. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  8351. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  8352. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  8353. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  8354. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  8355. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  8356. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  8357. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  8358. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  8359. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  8360. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  8361. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  8362. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  8363. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  8364. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  8365. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  8366. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  8367. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  8368. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  8369. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  8370. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  8371. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  8372. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  8373. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  8374. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  8375. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  8376. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  8377. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  8378. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  8379. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  8380. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  8381. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  8382. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  8383. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  8384. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  8385. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  8386. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  8387. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  8388. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  8389. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  8390. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  8391. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  8392. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  8393. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  8394. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  8395. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  8396. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  8397. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  8398. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  8399. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  8400. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  8401. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  8402. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  8403. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  8404. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  8405. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  8406. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  8407. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  8408. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  8409. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  8410. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  8411. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  8412. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  8413. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  8414. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  8415. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  8416. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  8417. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  8418. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  8419. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  8420. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  8421. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  8422. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  8423. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  8424. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  8425. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  8426. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  8427. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  8428. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  8429. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  8430. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  8431. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  8432. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  8433. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  8434. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  8435. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  8436. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  8437. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  8438. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  8439. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  8440. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  8441. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  8442. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  8443. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  8444. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  8445. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  8446. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  8447. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  8448. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  8449. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  8450. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  8451. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  8452. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  8453. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  8454. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  8455. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  8456. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  8457. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  8458. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  8459. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  8460. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  8461. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  8462. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  8463. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  8464. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  8465. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  8466. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  8467. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  8468. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  8469. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  8470. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  8471. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  8472. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  8473. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  8474. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  8475. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  8476. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  8477. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  8478. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  8479. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  8480. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  8481. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  8482. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  8483. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  8484. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  8485. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  8486. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  8487. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  8488. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  8489. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  8490. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  8491. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  8492. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  8493. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  8494. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  8495. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  8496. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  8497. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  8498. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  8499. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  8500. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  8501. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  8502. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  8503. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  8504. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  8505. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  8506. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  8507. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  8508. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  8509. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  8510. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  8511. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  8512. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  8513. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  8514. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  8515. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  8516. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  8517. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  8518. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  8519. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  8520. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  8521. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  8522. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  8523. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  8524. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  8525. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  8526. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  8527. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  8528. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  8529. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  8530. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  8531. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  8532. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  8533. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  8534. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  8535. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  8536. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  8537. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  8538. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  8539. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  8540. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  8541. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  8542. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  8543. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  8544. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  8545. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  8546. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  8547. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  8548. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  8549. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  8550. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  8551. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  8552. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  8553. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  8554. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  8555. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  8556. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  8557. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  8558. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  8559. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  8560. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  8561. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  8562. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  8563. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  8564. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  8565. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  8566. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  8567. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  8568. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  8569. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  8570. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  8571. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  8572. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  8573. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  8574. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  8575. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  8576. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  8577. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  8578. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  8579. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  8580. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  8581. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  8582. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  8583. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  8584. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  8585. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  8586. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  8587. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  8588. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  8589. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  8590. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  8591. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  8592. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  8593. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  8594. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  8595. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  8596. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  8597. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  8598. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  8599. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  8600. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  8601. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  8602. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  8603. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  8604. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  8605. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  8606. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  8607. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  8608. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  8609. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  8610. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  8611. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  8612. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  8613. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  8614. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  8615. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  8616. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  8617. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  8618. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  8619. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  8620. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  8621. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  8622. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  8623. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  8624. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  8625. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  8626. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  8627. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  8628. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  8629. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  8630. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  8631. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  8632. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  8633. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  8634. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  8635. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  8636. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  8637. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  8638. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  8639. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  8640. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  8641. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  8642. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  8643. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  8644. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  8645. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  8646. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  8647. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  8648. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  8649. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  8650. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  8651. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  8652. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  8653. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  8654. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  8655. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  8656. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  8657. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  8658. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  8659. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  8660. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  8661. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  8662. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  8663. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  8664. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  8665. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  8666. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  8667. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  8668. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  8669. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  8670. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  8671. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  8672. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  8673. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  8674. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  8675. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  8676. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  8677. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  8678. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  8679. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  8680. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  8681. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  8682. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  8683. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  8684. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  8685. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  8686. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  8687. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  8688. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  8689. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  8690. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  8691. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  8692. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  8693. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  8694. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  8695. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  8696. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  8697. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  8698. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  8699. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  8700. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  8701. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  8702. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  8703. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  8704. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  8705. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  8706. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  8707. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  8708. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  8709. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  8710. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  8711. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  8712. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  8713. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  8714. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  8715. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  8716. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  8717. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  8718. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  8719. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  8720. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  8721. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  8722. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  8723. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  8724. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  8725. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  8726. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  8727. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  8728. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  8729. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  8730. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  8731. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  8732. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  8733. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  8734. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  8735. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  8736. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  8737. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  8738. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  8739. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  8740. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  8741. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  8742. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  8743. {f: 6, c: 55198}],
  8744. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  8745. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  8746. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  8747. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  8748. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  8749. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  8750. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  8751. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  8752. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  8753. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  8754. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  8755. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  8756. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  8757. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  8758. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  8759. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  8760. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  8761. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  8762. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  8763. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  8764. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  8765. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  8766. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  8767. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  8768. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  8769. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  8770. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  8771. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  8772. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  8773. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  8774. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  8775. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  8776. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  8777. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  8778. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  8779. [12057, 21353, 63192], [12059, 21430, 63193],
  8780. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  8781. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  8782. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  8783. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  8784. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  8785. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  8786. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  8787. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  8788. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  8789. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  8790. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  8791. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  8792. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  8793. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  8794. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  8795. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  8796. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  8797. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  8798. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  8799. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  8800. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  8801. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  8802. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  8803. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  8804. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  8805. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  8806. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  8807. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  8808. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  8809. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  8810. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  8811. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  8812. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  8813. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  8814. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  8815. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  8816. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  8817. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  8818. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  8819. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  8820. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  8821. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  8822. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  8823. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  8824. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  8825. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  8826. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  8827. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  8828. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  8829. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  8830. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  8831. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  8832. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  8833. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  8834. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  8835. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  8836. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  8837. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  8838. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  8839. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  8840. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  8841. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  8842. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  8843. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  8844. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  8845. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  8846. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  8847. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  8848. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  8849. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  8850. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  8851. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  8852. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  8853. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  8854. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  8855. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  8856. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  8857. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  8858. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  8859. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  8860. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  8861. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  8862. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  8863. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  8864. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  8865. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  8866. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  8867. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  8868. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  8869. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  8870. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  8871. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  8872. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  8873. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  8874. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  8875. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  8876. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  8877. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  8878. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  8879. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  8880. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  8881. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  8882. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  8883. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  8884. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  8885. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  8886. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  8887. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  8888. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  8889. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  8890. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  8891. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  8892. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  8893. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  8894. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  8895. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  8896. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  8897. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  8898. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  8899. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  8900. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  8901. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  8902. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  8903. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  8904. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  8905. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  8906. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  8907. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  8908. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  8909. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  8910. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  8911. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  8912. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  8913. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  8914. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  8915. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  8916. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  8917. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  8918. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  8919. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  8920. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  8921. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  8922. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  8923. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  8924. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  8925. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  8926. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  8927. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  8928. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  8929. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  8930. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  8931. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  8932. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  8933. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  8934. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  8935. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  8936. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  8937. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  8938. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  8939. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  8940. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  8941. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  8942. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  8943. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  8944. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  8945. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  8946. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  8947. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  8948. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  8949. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  8950. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  8951. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  8952. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  8953. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  8954. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  8955. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  8956. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  8957. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  8958. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  8959. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  8960. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  8961. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  8962. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  8963. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  8964. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  8965. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  8966. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  8967. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  8968. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  8969. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  8970. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  8971. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  8972. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  8973. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  8974. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  8975. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  8976. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  8977. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  8978. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  8979. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  8980. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  8981. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  8982. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  8983. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  8984. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  8985. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  8986. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  8987. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  8988. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  8989. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  8990. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  8991. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  8992. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  8993. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  8994. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  8995. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  8996. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  8997. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  8998. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  8999. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  9000. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  9001. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  9002. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  9003. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  9004. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  9005. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  9006. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  9007. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  9008. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  9009. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  9010. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  9011. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  9012. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  9013. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  9014. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  9015. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  9016. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  9017. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  9018. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  9019. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  9020. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  9021. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  9022. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  9023. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  9024. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  9025. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  9026. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  9027. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  9028. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  9029. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  9030. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  9031. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  9032. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  9033. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  9034. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  9035. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  9036. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  9037. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  9038. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  9039. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  9040. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  9041. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  9042. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  9043. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  9044. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  9045. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  9046. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  9047. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  9048. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  9049. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  9050. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  9051. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  9052. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  9053. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  9054. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  9055. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  9056. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  9057. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  9058. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  9059. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  9060. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  9061. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  9062. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  9063. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  9064. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  9065. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  9066. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  9067. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  9068. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  9069. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  9070. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  9071. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  9072. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  9073. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  9074. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  9075. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  9076. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  9077. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  9078. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  9079. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  9080. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  9081. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  9082. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  9083. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  9084. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  9085. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  9086. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  9087. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  9088. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  9089. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  9090. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  9091. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  9092. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  9093. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  9094. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  9095. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  9096. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  9097. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  9098. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  9099. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  9100. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  9101. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  9102. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  9103. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  9104. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  9105. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  9106. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  9107. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  9108. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  9109. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  9110. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  9111. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  9112. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  9113. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  9114. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  9115. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  9116. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  9117. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  9118. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  9119. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  9120. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  9121. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  9122. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  9123. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  9124. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  9125. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  9126. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  9127. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  9128. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  9129. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  9130. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  9131. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  9132. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  9133. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  9134. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  9135. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  9136. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  9137. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  9138. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  9139. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  9140. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  9141. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  9142. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  9143. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  9144. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  9145. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  9146. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  9147. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  9148. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  9149. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  9150. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  9151. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  9152. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  9153. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  9154. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  9155. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  9156. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  9157. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  9158. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  9159. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  9160. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  9161. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  9162. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  9163. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  9164. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  9165. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  9166. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  9167. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  9168. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  9169. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  9170. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  9171. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  9172. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  9173. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  9174. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  9175. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  9176. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  9177. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  9178. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  9179. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  9180. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  9181. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  9182. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  9183. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  9184. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  9185. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  9186. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  9187. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  9188. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  9189. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  9190. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  9191. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  9192. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  9193. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  9194. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  9195. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  9196. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  9197. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  9198. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  9199. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  9200. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  9201. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  9202. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  9203. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  9204. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  9205. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  9206. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  9207. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  9208. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  9209. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  9210. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  9211. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  9212. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  9213. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  9214. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  9215. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  9216. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  9217. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  9218. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  9219. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  9220. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  9221. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  9222. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  9223. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  9224. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  9225. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  9226. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  9227. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  9228. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  9229. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  9230. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  9231. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  9232. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  9233. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  9234. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  9235. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  9236. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  9237. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  9238. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  9239. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  9240. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  9241. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  9242. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  9243. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  9244. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  9245. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  9246. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  9247. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  9248. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  9249. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  9250. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  9251. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  9252. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  9253. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  9254. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  9255. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  9256. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  9257. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  9258. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  9259. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  9260. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  9261. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  9262. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  9263. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  9264. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  9265. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  9266. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  9267. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  9268. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  9269. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  9270. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  9271. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  9272. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  9273. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  9274. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  9275. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  9276. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  9277. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  9278. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  9279. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  9280. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  9281. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  9282. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  9283. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  9284. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  9285. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  9286. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  9287. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  9288. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  9289. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  9290. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  9291. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  9292. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  9293. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  9294. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  9295. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  9296. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  9297. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  9298. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  9299. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  9300. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  9301. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  9302. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  9303. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  9304. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  9305. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  9306. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  9307. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  9308. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  9309. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  9310. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  9311. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  9312. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  9313. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  9314. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  9315. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  9316. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  9317. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  9318. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  9319. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  9320. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  9321. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  9322. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  9323. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  9324. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  9325. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  9326. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  9327. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  9328. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  9329. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  9330. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  9331. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  9332. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  9333. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  9334. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  9335. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  9336. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  9337. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  9338. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  9339. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  9340. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  9341. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  9342. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  9343. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  9344. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  9345. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  9346. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  9347. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  9348. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  9349. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  9350. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  9351. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  9352. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  9353. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  9354. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  9355. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  9356. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  9357. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  9358. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  9359. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  9360. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  9361. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  9362. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  9363. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  9364. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  9365. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  9366. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  9367. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  9368. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  9369. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  9370. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  9371. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  9372. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  9373. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  9374. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  9375. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  9376. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  9377. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  9378. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  9379. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  9380. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  9381. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  9382. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  9383. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  9384. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  9385. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  9386. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  9387. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  9388. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  9389. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  9390. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  9391. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  9392. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  9393. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  9394. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  9395. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  9396. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  9397. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  9398. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  9399. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  9400. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  9401. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  9402. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  9403. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  9404. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  9405. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  9406. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  9407. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  9408. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  9409. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  9410. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  9411. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  9412. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  9413. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  9414. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  9415. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  9416. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  9417. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  9418. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  9419. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  9420. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  9421. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  9422. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  9423. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  9424. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  9425. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  9426. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  9427. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  9428. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  9429. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  9430. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  9431. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  9432. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  9433. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  9434. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  9435. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  9436. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  9437. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  9438. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  9439. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  9440. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  9441. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  9442. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  9443. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  9444. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  9445. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  9446. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  9447. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  9448. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  9449. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  9450. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  9451. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  9452. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  9453. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  9454. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  9455. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  9456. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  9457. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  9458. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  9459. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  9460. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  9461. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  9462. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  9463. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  9464. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  9465. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  9466. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  9467. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  9468. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  9469. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  9470. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  9471. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  9472. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  9473. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  9474. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  9475. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  9476. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  9477. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  9478. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  9479. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  9480. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  9481. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  9482. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  9483. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  9484. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  9485. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  9486. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  9487. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  9488. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  9489. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  9490. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  9491. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  9492. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  9493. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  9494. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  9495. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  9496. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  9497. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  9498. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  9499. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  9500. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  9501. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  9502. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  9503. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  9504. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  9505. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  9506. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  9507. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  9508. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  9509. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  9510. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  9511. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  9512. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  9513. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  9514. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  9515. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  9516. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  9517. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  9518. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  9519. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  9520. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  9521. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  9522. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  9523. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  9524. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  9525. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  9526. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  9527. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  9528. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  9529. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  9530. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  9531. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  9532. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  9533. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  9534. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  9535. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  9536. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  9537. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  9538. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  9539. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  9540. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  9541. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  9542. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  9543. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  9544. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  9545. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  9546. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  9547. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  9548. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  9549. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  9550. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  9551. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  9552. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  9553. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  9554. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  9555. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  9556. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  9557. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  9558. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  9559. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  9560. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  9561. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  9562. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  9563. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  9564. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  9565. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  9566. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  9567. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  9568. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  9569. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  9570. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  9571. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  9572. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  9573. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  9574. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  9575. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  9576. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  9577. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  9578. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  9579. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  9580. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  9581. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  9582. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  9583. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  9584. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  9585. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  9586. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  9587. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  9588. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  9589. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  9590. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  9591. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  9592. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  9593. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  9594. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  9595. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  9596. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  9597. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  9598. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  9599. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  9600. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  9601. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  9602. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  9603. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  9604. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  9605. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  9606. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  9607. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  9608. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  9609. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  9610. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  9611. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  9612. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  9613. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  9614. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  9615. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  9616. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  9617. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  9618. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  9619. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  9620. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  9621. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  9622. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  9623. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  9624. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  9625. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  9626. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  9627. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  9628. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  9629. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  9630. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  9631. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  9632. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  9633. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  9634. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  9635. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  9636. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  9637. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  9638. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  9639. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  9640. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  9641. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  9642. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  9643. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  9644. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  9645. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  9646. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  9647. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  9648. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  9649. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  9650. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  9651. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  9652. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  9653. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  9654. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  9655. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  9656. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  9657. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  9658. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  9659. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  9660. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  9661. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  9662. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  9663. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  9664. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  9665. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  9666. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  9667. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  9668. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  9669. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  9670. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  9671. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  9672. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  9673. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  9674. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  9675. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  9676. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  9677. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  9678. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  9679. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  9680. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  9681. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  9682. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  9683. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  9684. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  9685. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  9686. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  9687. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  9688. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  9689. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  9690. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  9691. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  9692. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  9693. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  9694. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  9695. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  9696. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  9697. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  9698. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  9699. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  9700. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  9701. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  9702. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  9703. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  9704. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  9705. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  9706. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  9707. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  9708. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  9709. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  9710. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  9711. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  9712. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  9713. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  9714. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  9715. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  9716. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  9717. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  9718. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  9719. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  9720. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  9721. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  9722. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  9723. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  9724. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  9725. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  9726. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  9727. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  9728. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  9729. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  9730. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  9731. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  9732. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  9733. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  9734. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  9735. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  9736. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  9737. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  9738. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  9739. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  9740. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  9741. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  9742. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  9743. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  9744. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  9745. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  9746. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  9747. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  9748. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  9749. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  9750. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  9751. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  9752. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  9753. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  9754. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  9755. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  9756. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  9757. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  9758. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  9759. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  9760. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  9761. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  9762. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  9763. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  9764. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  9765. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  9766. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  9767. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  9768. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  9769. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  9770. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  9771. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  9772. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  9773. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  9774. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  9775. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  9776. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  9777. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  9778. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  9779. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  9780. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  9781. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  9782. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  9783. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  9784. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  9785. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  9786. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  9787. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  9788. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  9789. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  9790. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  9791. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  9792. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  9793. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  9794. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  9795. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  9796. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  9797. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  9798. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  9799. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  9800. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  9801. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  9802. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  9803. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  9804. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  9805. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  9806. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  9807. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  9808. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  9809. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  9810. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  9811. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  9812. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  9813. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  9814. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  9815. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  9816. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  9817. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  9818. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  9819. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  9820. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  9821. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  9822. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  9823. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  9824. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  9825. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  9826. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  9827. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  9828. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  9829. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  9830. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  9831. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  9832. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  9833. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  9834. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  9835. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  9836. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  9837. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  9838. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  9839. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  9840. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  9841. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  9842. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  9843. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  9844. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  9845. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  9846. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  9847. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  9848. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  9849. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  9850. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  9851. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  9852. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  9853. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  9854. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  9855. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  9856. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  9857. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  9858. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  9859. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  9860. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  9861. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  9862. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  9863. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  9864. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  9865. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  9866. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  9867. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  9868. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  9869. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  9870. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  9871. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  9872. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  9873. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  9874. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  9875. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  9876. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  9877. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  9878. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  9879. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  9880. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  9881. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  9882. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  9883. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  9884. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  9885. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  9886. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  9887. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  9888. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  9889. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  9890. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  9891. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  9892. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  9893. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  9894. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  9895. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  9896. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  9897. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  9898. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  9899. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  9900. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  9901. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  9902. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  9903. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  9904. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  9905. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  9906. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  9907. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  9908. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  9909. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  9910. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  9911. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  9912. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  9913. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  9914. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  9915. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  9916. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  9917. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  9918. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  9919. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  9920. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  9921. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  9922. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  9923. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  9924. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  9925. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  9926. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  9927. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  9928. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  9929. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  9930. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  9931. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  9932. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  9933. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  9934. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  9935. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  9936. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  9937. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  9938. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  9939. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  9940. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  9941. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  9942. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  9943. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  9944. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  9945. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  9946. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  9947. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  9948. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  9949. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  9950. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  9951. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  9952. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  9953. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  9954. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  9955. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  9956. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  9957. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  9958. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  9959. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  9960. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  9961. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  9962. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  9963. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  9964. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  9965. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  9966. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  9967. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  9968. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  9969. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  9970. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  9971. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  9972. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  9973. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  9974. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  9975. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  9976. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  9977. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  9978. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  9979. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  9980. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  9981. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  9982. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  9983. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  9984. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  9985. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  9986. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  9987. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  9988. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  9989. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  9990. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  9991. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  9992. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  9993. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  9994. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  9995. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  9996. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  9997. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  9998. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  9999. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  10000. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  10001. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  10002. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  10003. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  10004. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  10005. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  10006. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  10007. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  10008. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  10009. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  10010. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  10011. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  10012. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  10013. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  10014. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  10015. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  10016. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  10017. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  10018. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  10019. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  10020. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  10021. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  10022. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  10023. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  10024. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  10025. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  10026. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  10027. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  10028. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  10029. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  10030. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  10031. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  10032. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  10033. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  10034. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  10035. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  10036. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  10037. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  10038. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  10039. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  10040. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  10041. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  10042. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  10043. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  10044. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  10045. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  10046. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  10047. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  10048. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  10049. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  10050. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  10051. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  10052. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  10053. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  10054. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  10055. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  10056. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  10057. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  10058. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  10059. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  10060. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  10061. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  10062. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  10063. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  10064. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  10065. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  10066. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  10067. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  10068. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  10069. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  10070. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  10071. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  10072. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  10073. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  10074. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  10075. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  10076. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  10077. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  10078. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  10079. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  10080. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  10081. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  10082. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  10083. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  10084. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  10085. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  10086. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  10087. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  10088. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  10089. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  10090. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  10091. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  10092. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  10093. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  10094. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  10095. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  10096. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  10097. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  10098. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  10099. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  10100. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  10101. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  10102. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  10103. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  10104. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  10105. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  10106. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  10107. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  10108. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  10109. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  10110. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  10111. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  10112. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  10113. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  10114. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  10115. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  10116. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  10117. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  10118. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  10119. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  10120. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  10121. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  10122. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  10123. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  10124. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  10125. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  10126. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  10127. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  10128. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  10129. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  10130. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  10131. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  10132. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  10133. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  10134. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  10135. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  10136. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  10137. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  10138. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  10139. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  10140. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  10141. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  10142. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  10143. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  10144. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  10145. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  10146. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  10147. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  10148. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  10149. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  10150. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  10151. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  10152. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  10153. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  10154. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  10155. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  10156. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  10157. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  10158. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  10159. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  10160. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  10161. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  10162. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  10163. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  10164. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  10165. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  10166. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  10167. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  10168. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  10169. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  10170. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  10171. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  10172. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  10173. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  10174. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  10175. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  10176. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  10177. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  10178. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  10179. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  10180. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  10181. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  10182. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  10183. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  10184. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  10185. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  10186. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  10187. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  10188. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  10189. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  10190. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  10191. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  10192. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  10193. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  10194. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  10195. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  10196. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  10197. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  10198. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  10199. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  10200. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  10201. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  10202. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  10203. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  10204. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  10205. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  10206. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  10207. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  10208. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  10209. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  10210. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  10211. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  10212. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  10213. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  10214. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  10215. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  10216. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  10217. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  10218. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  10219. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  10220. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  10221. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  10222. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  10223. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  10224. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  10225. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  10226. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  10227. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  10228. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  10229. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  10230. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  10231. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  10232. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  10233. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  10234. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  10235. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  10236. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  10237. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  10238. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  10239. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  10240. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  10241. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  10242. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  10243. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  10244. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  10245. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  10246. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  10247. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  10248. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  10249. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  10250. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  10251. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  10252. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  10253. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  10254. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  10255. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  10256. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  10257. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  10258. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  10259. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  10260. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  10261. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  10262. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  10263. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  10264. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  10265. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  10266. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  10267. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  10268. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  10269. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  10270. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  10271. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  10272. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  10273. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  10274. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  10275. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  10276. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  10277. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  10278. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  10279. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  10280. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  10281. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  10282. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  10283. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  10284. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  10285. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  10286. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  10287. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  10288. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  10289. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  10290. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  10291. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  10292. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  10293. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  10294. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  10295. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  10296. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  10297. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  10298. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  10299. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  10300. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  10301. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  10302. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  10303. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  10304. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  10305. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  10306. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  10307. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  10308. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  10309. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  10310. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  10311. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  10312. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  10313. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  10314. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  10315. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  10316. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  10317. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  10318. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  10319. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  10320. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  10321. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  10322. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  10323. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  10324. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  10325. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  10326. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  10327. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  10328. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  10329. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  10330. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  10331. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  10332. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  10333. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  10334. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  10335. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  10336. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  10337. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  10338. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  10339. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  10340. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  10341. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  10342. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  10343. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  10344. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  10345. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  10346. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  10347. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  10348. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  10349. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  10350. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  10351. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  10352. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  10353. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  10354. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  10355. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  10356. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  10357. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  10358. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  10359. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  10360. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  10361. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  10362. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  10363. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  10364. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  10365. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  10366. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  10367. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  10368. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  10369. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  10370. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  10371. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  10372. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  10373. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  10374. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  10375. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  10376. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  10377. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  10378. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  10379. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  10380. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  10381. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  10382. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  10383. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  10384. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  10385. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  10386. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  10387. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  10388. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  10389. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  10390. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  10391. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  10392. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  10393. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  10394. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  10395. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  10396. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  10397. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  10398. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  10399. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  10400. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  10401. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  10402. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  10403. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  10404. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  10405. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  10406. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  10407. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  10408. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  10409. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  10410. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  10411. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  10412. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  10413. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  10414. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  10415. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  10416. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  10417. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  10418. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  10419. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  10420. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  10421. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  10422. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  10423. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  10424. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  10425. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  10426. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  10427. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  10428. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  10429. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  10430. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  10431. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  10432. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  10433. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  10434. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  10435. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  10436. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  10437. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  10438. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  10439. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  10440. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  10441. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  10442. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  10443. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  10444. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  10445. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  10446. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  10447. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  10448. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  10449. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  10450. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  10451. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  10452. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  10453. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  10454. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  10455. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  10456. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  10457. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  10458. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  10459. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  10460. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  10461. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  10462. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  10463. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  10464. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  10465. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  10466. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  10467. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  10468. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  10469. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  10470. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  10471. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  10472. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  10473. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  10474. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  10475. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  10476. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  10477. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  10478. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  10479. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  10480. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  10481. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  10482. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  10483. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  10484. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  10485. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  10486. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  10487. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  10488. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  10489. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  10490. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  10491. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  10492. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  10493. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  10494. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  10495. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  10496. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  10497. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  10498. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  10499. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  10500. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  10501. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  10502. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  10503. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  10504. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  10505. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  10506. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  10507. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  10508. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  10509. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  10510. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  10511. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  10512. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  10513. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  10514. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  10515. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  10516. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  10517. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  10518. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  10519. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  10520. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  10521. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  10522. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  10523. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  10524. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  10525. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  10526. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  10527. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  10528. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  10529. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  10530. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  10531. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  10532. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  10533. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  10534. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  10535. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  10536. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  10537. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  10538. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  10539. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  10540. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  10541. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  10542. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  10543. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  10544. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  10545. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  10546. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  10547. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  10548. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  10549. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  10550. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  10551. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  10552. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  10553. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  10554. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  10555. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  10556. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  10557. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  10558. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  10559. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  10560. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  10561. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  10562. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  10563. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  10564. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  10565. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  10566. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  10567. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  10568. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  10569. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  10570. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  10571. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  10572. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  10573. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  10574. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  10575. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  10576. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  10577. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  10578. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  10579. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  10580. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  10581. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  10582. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  10583. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  10584. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  10585. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  10586. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  10587. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  10588. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  10589. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  10590. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  10591. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  10592. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  10593. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  10594. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  10595. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  10596. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  10597. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  10598. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  10599. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  10600. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  10601. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  10602. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  10603. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  10604. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  10605. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  10606. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  10607. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  10608. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  10609. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  10610. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  10611. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  10612. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  10613. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  10614. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  10615. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  10616. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  10617. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  10618. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  10619. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  10620. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  10621. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  10622. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  10623. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  10624. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  10625. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  10626. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  10627. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  10628. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  10629. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  10630. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  10631. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  10632. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  10633. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  10634. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  10635. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  10636. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  10637. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  10638. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  10639. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  10640. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  10641. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  10642. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  10643. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  10644. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  10645. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  10646. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  10647. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  10648. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  10649. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  10650. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  10651. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  10652. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  10653. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  10654. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  10655. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  10656. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  10657. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  10658. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  10659. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  10660. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  10661. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  10662. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  10663. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  10664. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  10665. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  10666. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  10667. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  10668. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  10669. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  10670. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  10671. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  10672. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  10673. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  10674. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  10675. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  10676. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  10677. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  10678. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  10679. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  10680. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  10681. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  10682. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  10683. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  10684. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  10685. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  10686. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  10687. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  10688. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  10689. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  10690. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  10691. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  10692. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  10693. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  10694. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  10695. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  10696. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  10697. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  10698. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  10699. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  10700. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  10701. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  10702. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  10703. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  10704. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  10705. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  10706. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  10707. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  10708. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  10709. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  10710. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  10711. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  10712. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  10713. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  10714. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  10715. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  10716. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  10717. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  10718. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  10719. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  10720. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  10721. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  10722. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  10723. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  10724. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  10725. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  10726. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  10727. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  10728. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  10729. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  10730. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  10731. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  10732. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  10733. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  10734. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  10735. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  10736. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  10737. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  10738. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  10739. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  10740. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  10741. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  10742. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  10743. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  10744. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  10745. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  10746. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  10747. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  10748. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  10749. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  10750. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  10751. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  10752. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  10753. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  10754. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  10755. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  10756. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  10757. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  10758. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  10759. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  10760. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  10761. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  10762. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  10763. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  10764. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  10765. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  10766. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  10767. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  10768. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  10769. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  10770. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  10771. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  10772. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  10773. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  10774. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  10775. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  10776. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  10777. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  10778. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  10779. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  10780. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  10781. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  10782. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  10783. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  10784. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  10785. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  10786. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  10787. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  10788. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  10789. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  10790. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  10791. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  10792. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  10793. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  10794. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  10795. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  10796. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  10797. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  10798. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  10799. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  10800. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  10801. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  10802. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  10803. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  10804. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  10805. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  10806. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  10807. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  10808. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  10809. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  10810. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  10811. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  10812. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  10813. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  10814. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  10815. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  10816. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  10817. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  10818. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  10819. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  10820. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  10821. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  10822. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  10823. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  10824. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  10825. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  10826. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  10827. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  10828. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  10829. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  10830. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  10831. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  10832. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  10833. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  10834. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  10835. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  10836. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  10837. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  10838. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  10839. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  10840. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  10841. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  10842. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  10843. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  10844. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  10845. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  10846. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  10847. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  10848. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  10849. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  10850. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  10851. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  10852. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  10853. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  10854. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  10855. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  10856. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  10857. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  10858. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  10859. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  10860. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  10861. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  10862. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  10863. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  10864. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  10865. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  10866. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  10867. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  10868. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  10869. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  10870. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  10871. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  10872. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  10873. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  10874. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  10875. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  10876. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  10877. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  10878. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  10879. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  10880. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  10881. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  10882. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  10883. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  10884. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  10885. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  10886. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  10887. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  10888. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  10889. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  10890. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  10891. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  10892. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  10893. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  10894. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  10895. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  10896. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  10897. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  10898. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  10899. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  10900. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  10901. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  10902. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  10903. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  10904. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  10905. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  10906. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  10907. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  10908. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  10909. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  10910. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  10911. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  10912. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  10913. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  10914. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  10915. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  10916. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  10917. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  10918. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  10919. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  10920. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  10921. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  10922. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  10923. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  10924. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  10925. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  10926. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  10927. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  10928. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  10929. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  10930. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  10931. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  10932. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  10933. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  10934. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  10935. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  10936. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  10937. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  10938. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  10939. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  10940. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  10941. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  10942. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  10943. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  10944. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  10945. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  10946. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  10947. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  10948. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  10949. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  10950. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  10951. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  10952. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  10953. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  10954. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  10955. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  10956. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  10957. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  10958. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  10959. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  10960. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  10961. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  10962. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  10963. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  10964. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  10965. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  10966. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  10967. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  10968. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  10969. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  10970. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  10971. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  10972. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  10973. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  10974. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  10975. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  10976. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  10977. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  10978. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  10979. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  10980. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  10981. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  10982. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  10983. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  10984. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  10985. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  10986. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  10987. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  10988. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  10989. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  10990. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  10991. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  10992. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  10993. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  10994. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  10995. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  10996. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  10997. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  10998. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  10999. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  11000. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  11001. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  11002. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  11003. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  11004. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  11005. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  11006. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  11007. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  11008. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  11009. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  11010. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  11011. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  11012. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  11013. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  11014. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  11015. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  11016. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  11017. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  11018. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  11019. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  11020. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  11021. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  11022. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  11023. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  11024. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  11025. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  11026. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  11027. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  11028. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  11029. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  11030. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  11031. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  11032. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  11033. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  11034. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  11035. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  11036. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  11037. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  11038. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  11039. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  11040. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  11041. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  11042. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  11043. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  11044. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  11045. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  11046. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  11047. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  11048. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  11049. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  11050. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  11051. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  11052. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  11053. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  11054. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  11055. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  11056. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  11057. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  11058. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  11059. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  11060. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  11061. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  11062. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  11063. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  11064. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  11065. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  11066. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  11067. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  11068. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  11069. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  11070. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  11071. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  11072. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  11073. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  11074. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  11075. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  11076. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  11077. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  11078. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  11079. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  11080. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  11081. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  11082. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  11083. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  11084. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  11085. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  11086. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  11087. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  11088. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  11089. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  11090. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  11091. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  11092. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  11093. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  11094. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  11095. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  11096. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  11097. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  11098. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  11099. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  11100. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  11101. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  11102. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  11103. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  11104. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  11105. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  11106. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  11107. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  11108. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  11109. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  11110. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  11111. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  11112. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  11113. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  11114. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  11115. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  11116. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  11117. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  11118. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  11119. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  11120. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  11121. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  11122. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  11123. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  11124. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  11125. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  11126. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  11127. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  11128. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  11129. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  11130. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  11131. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  11132. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  11133. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  11134. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  11135. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  11136. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  11137. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  11138. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  11139. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  11140. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  11141. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  11142. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  11143. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  11144. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  11145. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  11146. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  11147. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  11148. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  11149. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  11150. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  11151. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  11152. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  11153. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  11154. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  11155. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  11156. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  11157. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  11158. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  11159. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  11160. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  11161. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  11162. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  11163. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  11164. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  11165. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  11166. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  11167. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  11168. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  11169. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  11170. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  11171. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  11172. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  11173. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  11174. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  11175. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  11176. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  11177. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  11178. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  11179. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  11180. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  11181. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  11182. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  11183. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  11184. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  11185. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  11186. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  11187. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  11188. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  11189. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  11190. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  11191. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  11192. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  11193. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  11194. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  11195. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  11196. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  11197. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  11198. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  11199. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  11200. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  11201. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  11202. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  11203. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  11204. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  11205. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  11206. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  11207. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  11208. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  11209. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  11210. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  11211. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  11212. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  11213. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  11214. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  11215. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  11216. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  11217. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  11218. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  11219. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  11220. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  11221. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  11222. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  11223. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  11224. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  11225. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  11226. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  11227. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  11228. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  11229. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  11230. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  11231. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  11232. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  11233. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  11234. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  11235. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  11236. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  11237. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  11238. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  11239. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  11240. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  11241. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  11242. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  11243. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  11244. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  11245. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  11246. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  11247. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  11248. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  11249. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  11250. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  11251. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  11252. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  11253. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  11254. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  11255. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  11256. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  11257. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  11258. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  11259. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  11260. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  11261. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  11262. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  11263. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  11264. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  11265. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  11266. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  11267. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  11268. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  11269. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  11270. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  11271. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  11272. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  11273. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  11274. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  11275. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  11276. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  11277. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  11278. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  11279. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  11280. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  11281. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  11282. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  11283. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  11284. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  11285. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  11286. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  11287. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  11288. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  11289. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  11290. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  11291. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  11292. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  11293. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  11294. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  11295. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  11296. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  11297. 23446, 62959, 32347],
  11298. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  11299. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  11300. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  11301. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  11302. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  11303. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  11304. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  11305. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  11306. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  11307. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  11308. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  11309. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  11310. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  11311. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  11312. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  11313. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  11314. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  11315. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  11316. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  11317. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  11318. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  11319. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  11320. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  11321. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  11322. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  11323. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  11324. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  11325. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  11326. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  11327. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  11328. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  11329. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  11330. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  11331. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  11332. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  11333. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  11334. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  11335. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  11336. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  11337. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  11338. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  11339. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  11340. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  11341. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  11342. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  11343. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  11344. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  11345. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  11346. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  11347. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  11348. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  11349. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  11350. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  11351. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  11352. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  11353. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  11354. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  11355. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  11356. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  11357. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  11358. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  11359. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  11360. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  11361. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  11362. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  11363. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  11364. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  11365. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  11366. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  11367. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  11368. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  11369. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  11370. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  11371. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  11372. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  11373. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  11374. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  11375. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  11376. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  11377. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  11378. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  11379. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  11380. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  11381. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  11382. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  11383. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  11384. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  11385. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  11386. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  11387. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  11388. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  11389. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  11390. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  11391. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  11392. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  11393. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  11394. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  11395. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  11396. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  11397. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  11398. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  11399. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  11400. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  11401. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  11402. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  11403. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  11404. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  11405. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  11406. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  11407. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  11408. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  11409. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  11410. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  11411. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  11412. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  11413. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  11414. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  11415. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  11416. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  11417. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  11418. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  11419. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  11420. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  11421. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  11422. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  11423. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  11424. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  11425. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  11426. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  11427. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  11428. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  11429. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  11430. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  11431. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  11432. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  11433. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  11434. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  11435. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  11436. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  11437. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  11438. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  11439. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  11440. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  11441. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  11442. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  11443. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  11444. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  11445. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  11446. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  11447. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  11448. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  11449. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  11450. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  11451. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  11452. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  11453. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  11454. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  11455. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  11456. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  11457. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  11458. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  11459. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  11460. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  11461. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  11462. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  11463. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  11464. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  11465. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  11466. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  11467. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  11468. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  11469. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  11470. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  11471. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  11472. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  11473. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  11474. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  11475. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  11476. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  11477. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  11478. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  11479. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  11480. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  11481. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  11482. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  11483. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  11484. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  11485. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  11486. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  11487. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  11488. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  11489. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  11490. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  11491. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  11492. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  11493. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  11494. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  11495. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  11496. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  11497. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  11498. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  11499. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  11500. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  11501. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  11502. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  11503. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  11504. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  11505. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  11506. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  11507. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  11508. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  11509. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  11510. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  11511. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  11512. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  11513. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  11514. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  11515. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  11516. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  11517. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  11518. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  11519. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  11520. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  11521. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  11522. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  11523. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  11524. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  11525. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  11526. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  11527. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  11528. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  11529. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  11530. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  11531. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  11532. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  11533. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  11534. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  11535. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  11536. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  11537. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  11538. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  11539. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  11540. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  11541. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  11542. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  11543. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  11544. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  11545. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  11546. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  11547. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  11548. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  11549. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  11550. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  11551. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  11552. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  11553. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  11554. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  11555. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  11556. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  11557. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  11558. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  11559. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  11560. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  11561. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  11562. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  11563. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  11564. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  11565. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  11566. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  11567. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  11568. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  11569. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  11570. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  11571. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  11572. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  11573. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  11574. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  11575. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  11576. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  11577. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  11578. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  11579. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  11580. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  11581. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  11582. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  11583. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  11584. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  11585. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  11586. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  11587. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  11588. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  11589. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  11590. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  11591. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  11592. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  11593. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  11594. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  11595. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  11596. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  11597. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  11598. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  11599. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  11600. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  11601. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  11602. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  11603. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  11604. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  11605. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  11606. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  11607. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  11608. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  11609. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  11610. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  11611. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  11612. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  11613. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  11614. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  11615. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  11616. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  11617. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  11618. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  11619. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  11620. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  11621. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  11622. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  11623. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  11624. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  11625. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  11626. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  11627. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  11628. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  11629. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  11630. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  11631. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  11632. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  11633. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  11634. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  11635. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  11636. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  11637. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  11638. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  11639. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  11640. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  11641. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  11642. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  11643. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  11644. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  11645. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  11646. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  11647. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  11648. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  11649. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  11650. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  11651. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  11652. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  11653. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  11654. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  11655. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  11656. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  11657. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  11658. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  11659. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  11660. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  11661. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  11662. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  11663. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  11664. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  11665. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  11666. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  11667. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  11668. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  11669. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  11670. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  11671. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  11672. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  11673. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  11674. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  11675. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  11676. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  11677. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  11678. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  11679. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  11680. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  11681. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  11682. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  11683. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  11684. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  11685. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  11686. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  11687. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  11688. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  11689. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  11690. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  11691. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  11692. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  11693. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  11694. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  11695. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  11696. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  11697. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  11698. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  11699. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  11700. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  11701. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  11702. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  11703. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  11704. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  11705. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  11706. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  11707. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  11708. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  11709. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  11710. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  11711. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  11712. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  11713. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  11714. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  11715. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  11716. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  11717. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  11718. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  11719. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  11720. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  11721. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  11722. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  11723. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  11724. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  11725. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  11726. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  11727. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  11728. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  11729. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  11730. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  11731. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  11732. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  11733. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  11734. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  11735. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  11736. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  11737. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  11738. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  11739. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  11740. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  11741. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  11742. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  11743. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  11744. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  11745. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  11746. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  11747. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  11748. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  11749. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  11750. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  11751. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  11752. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  11753. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  11754. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  11755. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  11756. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  11757. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  11758. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  11759. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  11760. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  11761. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  11762. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  11763. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  11764. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  11765. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  11766. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  11767. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  11768. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  11769. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  11770. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  11771. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  11772. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  11773. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  11774. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  11775. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  11776. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  11777. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  11778. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  11779. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  11780. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  11781. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  11782. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  11783. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  11784. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  11785. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  11786. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  11787. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  11788. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  11789. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  11790. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  11791. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  11792. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  11793. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  11794. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  11795. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  11796. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  11797. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  11798. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  11799. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  11800. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  11801. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  11802. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  11803. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  11804. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  11805. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  11806. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  11807. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  11808. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  11809. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  11810. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  11811. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  11812. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  11813. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  11814. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  11815. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  11816. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  11817. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  11818. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  11819. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  11820. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  11821. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  11822. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  11823. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  11824. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  11825. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  11826. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  11827. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  11828. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  11829. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  11830. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  11831. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  11832. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  11833. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  11834. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  11835. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  11836. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  11837. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  11838. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  11839. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  11840. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  11841. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  11842. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  11843. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  11844. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  11845. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  11846. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  11847. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  11848. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  11849. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  11850. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  11851. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  11852. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  11853. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  11854. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  11855. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  11856. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  11857. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  11858. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  11859. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  11860. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  11861. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  11862. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  11863. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  11864. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  11865. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  11866. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  11867. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  11868. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  11869. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  11870. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  11871. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  11872. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  11873. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  11874. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  11875. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  11876. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  11877. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  11878. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  11879. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  11880. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  11881. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  11882. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  11883. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  11884. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  11885. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  11886. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  11887. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  11888. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  11889. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  11890. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  11891. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  11892. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  11893. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  11894. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  11895. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  11896. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  11897. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  11898. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  11899. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  11900. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  11901. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  11902. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  11903. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  11904. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  11905. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  11906. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  11907. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  11908. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  11909. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  11910. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  11911. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  11912. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  11913. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  11914. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  11915. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  11916. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  11917. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  11918. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  11919. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  11920. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  11921. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  11922. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  11923. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  11924. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  11925. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  11926. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  11927. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  11928. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  11929. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  11930. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  11931. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  11932. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  11933. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  11934. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  11935. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  11936. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  11937. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  11938. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  11939. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  11940. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  11941. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  11942. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  11943. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  11944. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  11945. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  11946. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  11947. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  11948. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  11949. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  11950. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  11951. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  11952. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  11953. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  11954. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  11955. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  11956. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  11957. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  11958. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  11959. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  11960. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  11961. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  11962. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  11963. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  11964. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  11965. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  11966. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  11967. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  11968. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  11969. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  11970. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  11971. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  11972. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  11973. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  11974. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  11975. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  11976. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  11977. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  11978. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  11979. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  11980. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  11981. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  11982. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  11983. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  11984. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  11985. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  11986. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  11987. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  11988. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  11989. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  11990. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  11991. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  11992. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  11993. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  11994. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  11995. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  11996. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  11997. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  11998. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  11999. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  12000. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  12001. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  12002. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  12003. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  12004. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  12005. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  12006. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  12007. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  12008. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  12009. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  12010. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  12011. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  12012. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  12013. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  12014. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  12015. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  12016. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  12017. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  12018. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  12019. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  12020. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  12021. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  12022. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  12023. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  12024. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  12025. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  12026. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  12027. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  12028. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  12029. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  12030. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  12031. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  12032. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  12033. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  12034. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  12035. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  12036. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  12037. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  12038. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  12039. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  12040. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  12041. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  12042. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  12043. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  12044. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  12045. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  12046. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  12047. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  12048. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  12049. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  12050. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  12051. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  12052. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  12053. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  12054. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  12055. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  12056. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  12057. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  12058. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  12059. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  12060. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  12061. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  12062. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  12063. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  12064. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  12065. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  12066. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  12067. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  12068. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  12069. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  12070. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  12071. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  12072. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  12073. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  12074. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  12075. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  12076. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  12077. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  12078. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  12079. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  12080. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  12081. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  12082. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  12083. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  12084. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  12085. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  12086. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  12087. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  12088. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  12089. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  12090. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  12091. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  12092. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  12093. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  12094. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  12095. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  12096. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  12097. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  12098. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  12099. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  12100. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  12101. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  12102. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  12103. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  12104. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  12105. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  12106. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  12107. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  12108. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  12109. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  12110. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  12111. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  12112. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  12113. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  12114. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  12115. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  12116. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  12117. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  12118. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  12119. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  12120. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  12121. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  12122. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  12123. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  12124. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  12125. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  12126. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  12127. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  12128. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  12129. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  12130. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  12131. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  12132. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  12133. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  12134. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  12135. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  12136. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  12137. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  12138. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  12139. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  12140. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  12141. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  12142. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  12143. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  12144. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  12145. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  12146. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  12147. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  12148. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  12149. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  12150. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  12151. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  12152. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  12153. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  12154. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  12155. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  12156. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  12157. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  12158. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  12159. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  12160. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  12161. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  12162. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  12163. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  12164. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  12165. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  12166. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  12167. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  12168. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  12169. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  12170. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  12171. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  12172. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  12173. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  12174. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  12175. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  12176. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  12177. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  12178. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  12179. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  12180. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  12181. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  12182. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  12183. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  12184. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  12185. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  12186. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  12187. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  12188. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  12189. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  12190. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  12191. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  12192. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  12193. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  12194. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  12195. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  12196. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  12197. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  12198. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  12199. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  12200. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  12201. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  12202. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  12203. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  12204. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  12205. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  12206. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  12207. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  12208. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  12209. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  12210. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  12211. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  12212. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  12213. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  12214. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  12215. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  12216. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  12217. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  12218. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  12219. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  12220. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  12221. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  12222. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  12223. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  12224. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  12225. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  12226. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  12227. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  12228. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  12229. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  12230. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  12231. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  12232. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  12233. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  12234. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  12235. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  12236. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  12237. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  12238. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  12239. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  12240. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  12241. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  12242. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  12243. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  12244. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  12245. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  12246. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  12247. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  12248. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  12249. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  12250. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  12251. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  12252. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  12253. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  12254. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  12255. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  12256. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  12257. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  12258. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  12259. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  12260. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  12261. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  12262. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  12263. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  12264. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  12265. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  12266. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  12267. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  12268. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  12269. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  12270. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  12271. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  12272. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  12273. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  12274. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  12275. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  12276. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  12277. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  12278. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  12279. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  12280. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  12281. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  12282. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  12283. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  12284. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  12285. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  12286. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  12287. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  12288. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  12289. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  12290. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  12291. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  12292. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  12293. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  12294. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  12295. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  12296. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  12297. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  12298. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  12299. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  12300. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  12301. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  12302. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  12303. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  12304. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  12305. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  12306. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  12307. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  12308. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  12309. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  12310. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  12311. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  12312. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  12313. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  12314. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  12315. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  12316. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  12317. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  12318. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  12319. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  12320. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  12321. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  12322. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  12323. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  12324. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  12325. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  12326. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  12327. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  12328. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  12329. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  12330. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  12331. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  12332. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  12333. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  12334. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  12335. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  12336. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  12337. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  12338. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  12339. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  12340. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  12341. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  12342. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  12343. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  12344. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  12345. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  12346. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  12347. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  12348. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  12349. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  12350. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  12351. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  12352. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  12353. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  12354. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  12355. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  12356. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  12357. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  12358. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  12359. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  12360. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  12361. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  12362. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  12363. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  12364. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  12365. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  12366. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  12367. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  12368. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  12369. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  12370. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  12371. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  12372. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  12373. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  12374. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  12375. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  12376. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  12377. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  12378. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  12379. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  12380. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  12381. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  12382. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  12383. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  12384. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  12385. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  12386. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  12387. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  12388. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  12389. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  12390. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  12391. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  12392. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  12393. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  12394. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  12395. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  12396. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  12397. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  12398. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  12399. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  12400. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  12401. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  12402. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  12403. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  12404. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  12405. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  12406. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  12407. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  12408. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  12409. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  12410. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  12411. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  12412. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  12413. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  12414. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  12415. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  12416. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  12417. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  12418. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  12419. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  12420. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  12421. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  12422. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  12423. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  12424. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  12425. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  12426. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  12427. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  12428. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  12429. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  12430. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  12431. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  12432. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  12433. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  12434. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  12435. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  12436. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  12437. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  12438. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  12439. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  12440. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  12441. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  12442. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  12443. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  12444. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  12445. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  12446. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  12447. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  12448. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  12449. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  12450. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  12451. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  12452. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  12453. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  12454. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  12455. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  12456. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  12457. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  12458. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  12459. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  12460. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  12461. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  12462. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  12463. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  12464. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  12465. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  12466. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  12467. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  12468. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  12469. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  12470. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  12471. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  12472. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  12473. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  12474. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  12475. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  12476. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  12477. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  12478. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  12479. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  12480. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  12481. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  12482. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  12483. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  12484. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  12485. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  12486. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  12487. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  12488. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  12489. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  12490. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  12491. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  12492. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  12493. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  12494. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  12495. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  12496. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  12497. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  12498. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  12499. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  12500. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  12501. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  12502. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  12503. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  12504. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  12505. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  12506. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  12507. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  12508. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  12509. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  12510. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  12511. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  12512. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  12513. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  12514. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  12515. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  12516. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  12517. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  12518. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  12519. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  12520. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  12521. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  12522. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  12523. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  12524. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  12525. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  12526. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  12527. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  12528. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  12529. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  12530. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  12531. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  12532. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  12533. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  12534. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  12535. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  12536. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  12537. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  12538. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  12539. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  12540. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  12541. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  12542. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  12543. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  12544. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  12545. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  12546. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  12547. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  12548. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  12549. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  12550. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  12551. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  12552. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  12553. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  12554. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  12555. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  12556. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  12557. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  12558. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  12559. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  12560. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  12561. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  12562. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  12563. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  12564. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  12565. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  12566. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  12567. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  12568. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  12569. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  12570. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  12571. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  12572. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  12573. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  12574. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  12575. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  12576. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  12577. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  12578. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  12579. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  12580. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  12581. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  12582. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  12583. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  12584. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  12585. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  12586. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  12587. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  12588. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  12589. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  12590. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  12591. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  12592. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  12593. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  12594. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  12595. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  12596. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  12597. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  12598. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  12599. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  12600. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  12601. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  12602. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  12603. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  12604. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  12605. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  12606. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  12607. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  12608. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  12609. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  12610. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  12611. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  12612. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  12613. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  12614. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  12615. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  12616. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  12617. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  12618. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  12619. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  12620. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  12621. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  12622. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  12623. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  12624. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  12625. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  12626. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  12627. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  12628. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  12629. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  12630. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  12631. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  12632. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  12633. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  12634. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  12635. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  12636. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  12637. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  12638. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  12639. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  12640. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  12641. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  12642. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  12643. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  12644. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  12645. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  12646. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  12647. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  12648. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  12649. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  12650. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  12651. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  12652. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  12653. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  12654. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  12655. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  12656. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  12657. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  12658. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  12659. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  12660. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  12661. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  12662. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  12663. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  12664. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  12665. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  12666. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  12667. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  12668. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  12669. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  12670. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  12671. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  12672. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  12673. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  12674. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  12675. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  12676. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  12677. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  12678. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  12679. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  12680. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  12681. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  12682. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  12683. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  12684. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  12685. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  12686. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  12687. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  12688. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  12689. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  12690. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  12691. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  12692. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  12693. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  12694. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  12695. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  12696. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  12697. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  12698. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  12699. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  12700. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  12701. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  12702. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  12703. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  12704. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  12705. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  12706. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  12707. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  12708. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  12709. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  12710. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  12711. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  12712. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  12713. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  12714. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  12715. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  12716. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  12717. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  12718. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  12719. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  12720. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  12721. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  12722. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  12723. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  12724. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  12725. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  12726. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  12727. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  12728. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  12729. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  12730. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  12731. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  12732. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  12733. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  12734. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  12735. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  12736. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  12737. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  12738. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  12739. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  12740. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  12741. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  12742. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  12743. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  12744. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  12745. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  12746. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  12747. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  12748. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  12749. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  12750. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  12751. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  12752. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  12753. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  12754. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  12755. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  12756. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  12757. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  12758. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  12759. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  12760. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  12761. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  12762. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  12763. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  12764. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  12765. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  12766. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  12767. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  12768. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  12769. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  12770. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  12771. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  12772. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  12773. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  12774. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  12775. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  12776. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  12777. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  12778. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  12779. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  12780. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  12781. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  12782. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  12783. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  12784. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  12785. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  12786. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  12787. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  12788. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  12789. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  12790. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  12791. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  12792. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  12793. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  12794. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  12795. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  12796. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  12797. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  12798. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  12799. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  12800. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  12801. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  12802. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  12803. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  12804. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  12805. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  12806. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  12807. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  12808. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  12809. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  12810. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  12811. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  12812. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  12813. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  12814. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  12815. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  12816. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  12817. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  12818. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  12819. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  12820. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  12821. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  12822. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  12823. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  12824. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  12825. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  12826. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  12827. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  12828. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  12829. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  12830. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  12831. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  12832. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  12833. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  12834. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  12835. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  12836. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  12837. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  12838. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  12839. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  12840. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  12841. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  12842. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  12843. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  12844. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  12845. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  12846. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  12847. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  12848. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  12849. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  12850. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  12851. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  12852. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  12853. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  12854. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  12855. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  12856. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  12857. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  12858. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  12859. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  12860. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  12861. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  12862. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  12863. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  12864. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  12865. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  12866. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  12867. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  12868. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  12869. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  12870. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  12871. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  12872. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  12873. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  12874. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  12875. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  12876. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  12877. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  12878. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  12879. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  12880. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  12881. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  12882. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  12883. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  12884. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  12885. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  12886. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  12887. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  12888. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  12889. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  12890. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  12891. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  12892. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  12893. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  12894. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  12895. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  12896. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  12897. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  12898. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  12899. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  12900. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  12901. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  12902. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  12903. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  12904. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  12905. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  12906. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  12907. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  12908. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  12909. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  12910. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  12911. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  12912. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  12913. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  12914. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  12915. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  12916. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  12917. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  12918. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  12919. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  12920. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  12921. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  12922. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  12923. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  12924. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  12925. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  12926. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  12927. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  12928. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  12929. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  12930. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  12931. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  12932. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  12933. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  12934. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  12935. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  12936. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  12937. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  12938. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  12939. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  12940. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  12941. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  12942. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  12943. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  12944. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  12945. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  12946. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  12947. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  12948. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  12949. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  12950. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  12951. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  12952. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  12953. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  12954. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  12955. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  12956. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  12957. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  12958. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  12959. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  12960. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  12961. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  12962. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  12963. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  12964. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  12965. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  12966. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  12967. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  12968. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  12969. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  12970. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  12971. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  12972. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  12973. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  12974. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  12975. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  12976. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  12977. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  12978. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  12979. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  12980. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  12981. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  12982. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  12983. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  12984. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  12985. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  12986. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  12987. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  12988. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  12989. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  12990. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  12991. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  12992. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  12993. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  12994. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  12995. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  12996. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  12997. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  12998. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  12999. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  13000. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  13001. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  13002. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  13003. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  13004. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  13005. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  13006. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  13007. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  13008. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  13009. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  13010. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  13011. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  13012. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  13013. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  13014. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  13015. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  13016. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  13017. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  13018. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  13019. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  13020. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  13021. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  13022. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  13023. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  13024. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  13025. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  13026. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  13027. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  13028. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  13029. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  13030. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  13031. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  13032. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  13033. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  13034. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  13035. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  13036. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  13037. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  13038. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  13039. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  13040. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  13041. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  13042. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  13043. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  13044. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  13045. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  13046. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  13047. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  13048. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  13049. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  13050. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  13051. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  13052. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  13053. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  13054. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  13055. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  13056. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  13057. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  13058. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  13059. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  13060. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  13061. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  13062. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  13063. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  13064. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  13065. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  13066. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  13067. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  13068. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  13069. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  13070. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  13071. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  13072. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  13073. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  13074. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  13075. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  13076. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  13077. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  13078. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  13079. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  13080. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  13081. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  13082. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  13083. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  13084. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  13085. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  13086. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  13087. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  13088. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  13089. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  13090. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  13091. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  13092. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  13093. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  13094. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  13095. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  13096. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  13097. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  13098. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  13099. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  13100. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  13101. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  13102. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  13103. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  13104. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  13105. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  13106. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  13107. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  13108. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  13109. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  13110. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  13111. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  13112. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  13113. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  13114. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  13115. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  13116. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  13117. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  13118. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  13119. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  13120. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  13121. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  13122. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  13123. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  13124. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  13125. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  13126. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  13127. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  13128. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  13129. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  13130. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  13131. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  13132. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  13133. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  13134. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  13135. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  13136. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  13137. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  13138. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  13139. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  13140. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  13141. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  13142. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  13143. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  13144. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  13145. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  13146. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  13147. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  13148. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  13149. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  13150. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  13151. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  13152. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  13153. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  13154. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  13155. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  13156. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  13157. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  13158. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  13159. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  13160. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  13161. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  13162. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  13163. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  13164. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  13165. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  13166. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  13167. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  13168. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  13169. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  13170. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  13171. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  13172. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  13173. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  13174. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  13175. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  13176. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  13177. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  13178. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  13179. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  13180. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  13181. {f: 7, c: 19887}]
  13182. };
  13183. var ARCFourCipher = (function ARCFourCipherClosure() {
  13184. function ARCFourCipher(key) {
  13185. this.a = 0;
  13186. this.b = 0;
  13187. var s = new Uint8Array(256);
  13188. var i, j = 0, tmp, keyLength = key.length;
  13189. for (i = 0; i < 256; ++i) {
  13190. s[i] = i;
  13191. }
  13192. for (i = 0; i < 256; ++i) {
  13193. tmp = s[i];
  13194. j = (j + tmp + key[i % keyLength]) & 0xFF;
  13195. s[i] = s[j];
  13196. s[j] = tmp;
  13197. }
  13198. this.s = s;
  13199. }
  13200. ARCFourCipher.prototype = {
  13201. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  13202. var i, n = data.length, tmp, tmp2;
  13203. var a = this.a, b = this.b, s = this.s;
  13204. var output = new Uint8Array(n);
  13205. for (i = 0; i < n; ++i) {
  13206. a = (a + 1) & 0xFF;
  13207. tmp = s[a];
  13208. b = (b + tmp) & 0xFF;
  13209. tmp2 = s[b];
  13210. s[a] = tmp2;
  13211. s[b] = tmp;
  13212. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  13213. }
  13214. this.a = a;
  13215. this.b = b;
  13216. return output;
  13217. }
  13218. };
  13219. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  13220. return ARCFourCipher;
  13221. })();
  13222. var calculateMD5 = (function calculateMD5Closure() {
  13223. var r = new Uint8Array([
  13224. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  13225. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  13226. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  13227. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  13228. var k = new Int32Array([
  13229. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  13230. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  13231. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  13232. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  13233. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  13234. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  13235. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  13236. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  13237. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  13238. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  13239. -145523070, -1120210379, 718787259, -343485551]);
  13240. function hash(data, offset, length) {
  13241. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  13242. // pre-processing
  13243. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  13244. var padded = new Uint8Array(paddedLength);
  13245. var i, j, n;
  13246. for (i = 0; i < length; ++i) {
  13247. padded[i] = data[offset++];
  13248. }
  13249. padded[i++] = 0x80;
  13250. n = paddedLength - 8;
  13251. while (i < n) {
  13252. padded[i++] = 0;
  13253. }
  13254. padded[i++] = (length << 3) & 0xFF;
  13255. padded[i++] = (length >> 5) & 0xFF;
  13256. padded[i++] = (length >> 13) & 0xFF;
  13257. padded[i++] = (length >> 21) & 0xFF;
  13258. padded[i++] = (length >>> 29) & 0xFF;
  13259. padded[i++] = 0;
  13260. padded[i++] = 0;
  13261. padded[i++] = 0;
  13262. // chunking
  13263. // TODO ArrayBuffer ?
  13264. var w = new Int32Array(16);
  13265. for (i = 0; i < paddedLength;) {
  13266. for (j = 0; j < 16; ++j, i += 4) {
  13267. w[j] = (padded[i] | (padded[i + 1] << 8) |
  13268. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  13269. }
  13270. var a = h0, b = h1, c = h2, d = h3, f, g;
  13271. for (j = 0; j < 64; ++j) {
  13272. if (j < 16) {
  13273. f = (b & c) | ((~b) & d);
  13274. g = j;
  13275. } else if (j < 32) {
  13276. f = (d & b) | ((~d) & c);
  13277. g = (5 * j + 1) & 15;
  13278. } else if (j < 48) {
  13279. f = b ^ c ^ d;
  13280. g = (3 * j + 5) & 15;
  13281. } else {
  13282. f = c ^ (b | (~d));
  13283. g = (7 * j) & 15;
  13284. }
  13285. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  13286. d = c;
  13287. c = b;
  13288. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  13289. a = tmp;
  13290. }
  13291. h0 = (h0 + a) | 0;
  13292. h1 = (h1 + b) | 0;
  13293. h2 = (h2 + c) | 0;
  13294. h3 = (h3 + d) | 0;
  13295. }
  13296. return new Uint8Array([
  13297. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  13298. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  13299. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  13300. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  13301. ]);
  13302. }
  13303. return hash;
  13304. })();
  13305. var NullCipher = (function NullCipherClosure() {
  13306. function NullCipher() {}
  13307. NullCipher.prototype = {
  13308. decryptBlock: function NullCipher_decryptBlock(data) {
  13309. return data;
  13310. }
  13311. };
  13312. return NullCipher;
  13313. })();
  13314. var AES128Cipher = (function AES128CipherClosure() {
  13315. var rcon = new Uint8Array([
  13316. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13317. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13318. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13319. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13320. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  13321. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  13322. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  13323. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  13324. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  13325. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  13326. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  13327. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  13328. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  13329. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  13330. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  13331. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  13332. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  13333. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13334. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13335. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13336. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13337. 0x74, 0xe8, 0xcb, 0x8d]);
  13338. var s = new Uint8Array([
  13339. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  13340. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  13341. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  13342. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  13343. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  13344. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  13345. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  13346. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  13347. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  13348. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  13349. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  13350. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  13351. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  13352. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  13353. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  13354. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  13355. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  13356. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  13357. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  13358. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  13359. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  13360. 0xb0, 0x54, 0xbb, 0x16]);
  13361. var inv_s = new Uint8Array([
  13362. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  13363. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  13364. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  13365. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  13366. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  13367. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  13368. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  13369. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  13370. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  13371. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  13372. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  13373. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  13374. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  13375. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  13376. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  13377. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  13378. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  13379. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13380. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13381. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13382. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13383. 0x55, 0x21, 0x0c, 0x7d]);
  13384. var mix = new Uint32Array([
  13385. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13386. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13387. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13388. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13389. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13390. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13391. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13392. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13393. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13394. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13395. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13396. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13397. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13398. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13399. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13400. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13401. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13402. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13403. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13404. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13405. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13406. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13407. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13408. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13409. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13410. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13411. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13412. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13413. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13414. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13415. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13416. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13417. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13418. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13419. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13420. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13421. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13422. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13423. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13424. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13425. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13426. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13427. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13428. function expandKey128(cipherKey) {
  13429. var b = 176, result = new Uint8Array(b);
  13430. result.set(cipherKey);
  13431. for (var j = 16, i = 1; j < b; ++i) {
  13432. // RotWord
  13433. var t1 = result[j - 3], t2 = result[j - 2],
  13434. t3 = result[j - 1], t4 = result[j - 4];
  13435. // SubWord
  13436. t1 = s[t1]; t2 = s[t2]; t3 = s[t3]; t4 = s[t4];
  13437. // Rcon
  13438. t1 = t1 ^ rcon[i];
  13439. for (var n = 0; n < 4; ++n) {
  13440. result[j] = (t1 ^= result[j - 16]); j++;
  13441. result[j] = (t2 ^= result[j - 16]); j++;
  13442. result[j] = (t3 ^= result[j - 16]); j++;
  13443. result[j] = (t4 ^= result[j - 16]); j++;
  13444. }
  13445. }
  13446. return result;
  13447. }
  13448. function decrypt128(input, key) {
  13449. var state = new Uint8Array(16);
  13450. state.set(input);
  13451. var i, j, k;
  13452. var t, u, v;
  13453. // AddRoundKey
  13454. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13455. state[j] ^= key[k];
  13456. }
  13457. for (i = 9; i >= 1; --i) {
  13458. // InvShiftRows
  13459. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13460. state[5] = state[1]; state[1] = t;
  13461. t = state[14]; u = state[10]; state[14] = state[6];
  13462. state[10] = state[2]; state[6] = t; state[2] = u;
  13463. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13464. state[11] = t; state[7] = u; state[3] = v;
  13465. // InvSubBytes
  13466. for (j = 0; j < 16; ++j) {
  13467. state[j] = inv_s[state[j]];
  13468. }
  13469. // AddRoundKey
  13470. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13471. state[j] ^= key[k];
  13472. }
  13473. // InvMixColumns
  13474. for (j = 0; j < 16; j += 4) {
  13475. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  13476. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  13477. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  13478. (s3 >>> 24) ^ (s3 << 8));
  13479. state[j] = (t >>> 24) & 0xFF;
  13480. state[j + 1] = (t >> 16) & 0xFF;
  13481. state[j + 2] = (t >> 8) & 0xFF;
  13482. state[j + 3] = t & 0xFF;
  13483. }
  13484. }
  13485. // InvShiftRows
  13486. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13487. state[5] = state[1]; state[1] = t;
  13488. t = state[14]; u = state[10]; state[14] = state[6];
  13489. state[10] = state[2]; state[6] = t; state[2] = u;
  13490. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13491. state[11] = t; state[7] = u; state[3] = v;
  13492. for (j = 0; j < 16; ++j) {
  13493. // InvSubBytes
  13494. state[j] = inv_s[state[j]];
  13495. // AddRoundKey
  13496. state[j] ^= key[j];
  13497. }
  13498. return state;
  13499. }
  13500. function AES128Cipher(key) {
  13501. this.key = expandKey128(key);
  13502. this.buffer = new Uint8Array(16);
  13503. this.bufferPosition = 0;
  13504. }
  13505. function decryptBlock2(data, finalize) {
  13506. var i, j, ii, sourceLength = data.length,
  13507. buffer = this.buffer, bufferLength = this.bufferPosition,
  13508. result = [], iv = this.iv;
  13509. for (i = 0; i < sourceLength; ++i) {
  13510. buffer[bufferLength] = data[i];
  13511. ++bufferLength;
  13512. if (bufferLength < 16) {
  13513. continue;
  13514. }
  13515. // buffer is full, decrypting
  13516. var plain = decrypt128(buffer, this.key);
  13517. // xor-ing the IV vector to get plain text
  13518. for (j = 0; j < 16; ++j) {
  13519. plain[j] ^= iv[j];
  13520. }
  13521. iv = buffer;
  13522. result.push(plain);
  13523. buffer = new Uint8Array(16);
  13524. bufferLength = 0;
  13525. }
  13526. // saving incomplete buffer
  13527. this.buffer = buffer;
  13528. this.bufferLength = bufferLength;
  13529. this.iv = iv;
  13530. if (result.length === 0) {
  13531. return new Uint8Array([]);
  13532. }
  13533. // combining plain text blocks into one
  13534. var outputLength = 16 * result.length;
  13535. if (finalize) {
  13536. // undo a padding that is described in RFC 2898
  13537. var lastBlock = result[result.length - 1];
  13538. outputLength -= lastBlock[15];
  13539. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  13540. }
  13541. var output = new Uint8Array(outputLength);
  13542. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  13543. output.set(result[i], j);
  13544. }
  13545. return output;
  13546. }
  13547. AES128Cipher.prototype = {
  13548. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  13549. var i, sourceLength = data.length;
  13550. var buffer = this.buffer, bufferLength = this.bufferPosition;
  13551. // waiting for IV values -- they are at the start of the stream
  13552. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) {
  13553. buffer[bufferLength] = data[i];
  13554. }
  13555. if (bufferLength < 16) {
  13556. // need more data
  13557. this.bufferLength = bufferLength;
  13558. return new Uint8Array([]);
  13559. }
  13560. this.iv = buffer;
  13561. this.buffer = new Uint8Array(16);
  13562. this.bufferLength = 0;
  13563. // starting decryption
  13564. this.decryptBlock = decryptBlock2;
  13565. return this.decryptBlock(data.subarray(16), finalize);
  13566. }
  13567. };
  13568. return AES128Cipher;
  13569. })();
  13570. var CipherTransform = (function CipherTransformClosure() {
  13571. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  13572. this.stringCipherConstructor = stringCipherConstructor;
  13573. this.streamCipherConstructor = streamCipherConstructor;
  13574. }
  13575. CipherTransform.prototype = {
  13576. createStream: function CipherTransform_createStream(stream, length) {
  13577. var cipher = new this.streamCipherConstructor();
  13578. return new DecryptStream(stream, length,
  13579. function cipherTransformDecryptStream(data, finalize) {
  13580. return cipher.decryptBlock(data, finalize);
  13581. }
  13582. );
  13583. },
  13584. decryptString: function CipherTransform_decryptString(s) {
  13585. var cipher = new this.stringCipherConstructor();
  13586. var data = stringToBytes(s);
  13587. data = cipher.decryptBlock(data, true);
  13588. return bytesToString(data);
  13589. }
  13590. };
  13591. return CipherTransform;
  13592. })();
  13593. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  13594. var defaultPasswordBytes = new Uint8Array([
  13595. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  13596. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  13597. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  13598. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  13599. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  13600. flags, revision, keyLength, encryptMetadata) {
  13601. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  13602. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  13603. if (password) {
  13604. n = Math.min(32, password.length);
  13605. for (; i < n; ++i) {
  13606. hashData[i] = password[i];
  13607. }
  13608. }
  13609. j = 0;
  13610. while (i < 32) {
  13611. hashData[i++] = defaultPasswordBytes[j++];
  13612. }
  13613. // as now the padded password in the hashData[0..i]
  13614. for (j = 0, n = ownerPassword.length; j < n; ++j) {
  13615. hashData[i++] = ownerPassword[j];
  13616. }
  13617. hashData[i++] = flags & 0xFF;
  13618. hashData[i++] = (flags >> 8) & 0xFF;
  13619. hashData[i++] = (flags >> 16) & 0xFF;
  13620. hashData[i++] = (flags >>> 24) & 0xFF;
  13621. for (j = 0, n = fileId.length; j < n; ++j) {
  13622. hashData[i++] = fileId[j];
  13623. }
  13624. if (revision >= 4 && !encryptMetadata) {
  13625. hashData[i++] = 0xFF;
  13626. hashData[i++] = 0xFF;
  13627. hashData[i++] = 0xFF;
  13628. hashData[i++] = 0xFF;
  13629. }
  13630. var hash = calculateMD5(hashData, 0, i);
  13631. var keyLengthInBytes = keyLength >> 3;
  13632. if (revision >= 3) {
  13633. for (j = 0; j < 50; ++j) {
  13634. hash = calculateMD5(hash, 0, keyLengthInBytes);
  13635. }
  13636. }
  13637. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  13638. var cipher, checkData;
  13639. if (revision >= 3) {
  13640. for (i = 0; i < 32; ++i) {
  13641. hashData[i] = defaultPasswordBytes[i];
  13642. }
  13643. for (j = 0, n = fileId.length; j < n; ++j) {
  13644. hashData[i++] = fileId[j];
  13645. }
  13646. cipher = new ARCFourCipher(encryptionKey);
  13647. checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  13648. n = encryptionKey.length;
  13649. var derivedKey = new Uint8Array(n), k;
  13650. for (j = 1; j <= 19; ++j) {
  13651. for (k = 0; k < n; ++k) {
  13652. derivedKey[k] = encryptionKey[k] ^ j;
  13653. }
  13654. cipher = new ARCFourCipher(derivedKey);
  13655. checkData = cipher.encryptBlock(checkData);
  13656. }
  13657. for (j = 0, n = checkData.length; j < n; ++j) {
  13658. if (userPassword[j] != checkData[j]) {
  13659. return null;
  13660. }
  13661. }
  13662. } else {
  13663. cipher = new ARCFourCipher(encryptionKey);
  13664. checkData = cipher.encryptBlock(defaultPasswordBytes);
  13665. for (j = 0, n = checkData.length; j < n; ++j) {
  13666. if (userPassword[j] != checkData[j]) {
  13667. return null;
  13668. }
  13669. }
  13670. }
  13671. return encryptionKey;
  13672. }
  13673. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  13674. var hashData = new Uint8Array(32), i = 0, j, n;
  13675. n = Math.min(32, password.length);
  13676. for (; i < n; ++i) {
  13677. hashData[i] = password[i];
  13678. }
  13679. j = 0;
  13680. while (i < 32) {
  13681. hashData[i++] = defaultPasswordBytes[j++];
  13682. }
  13683. var hash = calculateMD5(hashData, 0, i);
  13684. var keyLengthInBytes = keyLength >> 3;
  13685. if (revision >= 3) {
  13686. for (j = 0; j < 50; ++j) {
  13687. hash = calculateMD5(hash, 0, hash.length);
  13688. }
  13689. }
  13690. var cipher, userPassword;
  13691. if (revision >= 3) {
  13692. userPassword = ownerPassword;
  13693. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  13694. for (j = 19; j >= 0; j--) {
  13695. for (k = 0; k < keyLengthInBytes; ++k) {
  13696. derivedKey[k] = hash[k] ^ j;
  13697. }
  13698. cipher = new ARCFourCipher(derivedKey);
  13699. userPassword = cipher.encryptBlock(userPassword);
  13700. }
  13701. } else {
  13702. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  13703. userPassword = cipher.encryptBlock(ownerPassword);
  13704. }
  13705. return userPassword;
  13706. }
  13707. var identityName = Name.get('Identity');
  13708. function CipherTransformFactory(dict, fileId, password) {
  13709. var filter = dict.get('Filter');
  13710. if (!isName(filter) || filter.name != 'Standard') {
  13711. error('unknown encryption method');
  13712. }
  13713. this.dict = dict;
  13714. var algorithm = dict.get('V');
  13715. if (!isInt(algorithm) ||
  13716. (algorithm != 1 && algorithm != 2 && algorithm != 4)) {
  13717. error('unsupported encryption algorithm');
  13718. }
  13719. this.algorithm = algorithm;
  13720. var keyLength = dict.get('Length') || 40;
  13721. if (!isInt(keyLength) ||
  13722. keyLength < 40 || (keyLength % 8) !== 0) {
  13723. error('invalid key length');
  13724. }
  13725. // prepare keys
  13726. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  13727. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  13728. var flags = dict.get('P');
  13729. var revision = dict.get('R');
  13730. var encryptMetadata = (algorithm == 4 && // meaningful when V is 4
  13731. dict.get('EncryptMetadata') !== false); // makes true as default value
  13732. this.encryptMetadata = encryptMetadata;
  13733. var fileIdBytes = stringToBytes(fileId);
  13734. var passwordBytes;
  13735. if (password) {
  13736. passwordBytes = stringToBytes(password);
  13737. }
  13738. var encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  13739. ownerPassword, userPassword, flags,
  13740. revision, keyLength, encryptMetadata);
  13741. if (!encryptionKey && !password) {
  13742. throw new PasswordException('No password given',
  13743. PasswordResponses.NEED_PASSWORD);
  13744. } else if (!encryptionKey && password) {
  13745. // Attempting use the password as an owner password
  13746. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  13747. revision, keyLength);
  13748. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  13749. ownerPassword, userPassword, flags,
  13750. revision, keyLength, encryptMetadata);
  13751. }
  13752. if (!encryptionKey) {
  13753. throw new PasswordException('Incorrect Password',
  13754. PasswordResponses.INCORRECT_PASSWORD);
  13755. }
  13756. this.encryptionKey = encryptionKey;
  13757. if (algorithm == 4) {
  13758. this.cf = dict.get('CF');
  13759. this.stmf = dict.get('StmF') || identityName;
  13760. this.strf = dict.get('StrF') || identityName;
  13761. this.eff = dict.get('EFF') || this.strf;
  13762. }
  13763. }
  13764. function buildObjectKey(num, gen, encryptionKey, isAes) {
  13765. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  13766. for (i = 0, n = encryptionKey.length; i < n; ++i) {
  13767. key[i] = encryptionKey[i];
  13768. }
  13769. key[i++] = num & 0xFF;
  13770. key[i++] = (num >> 8) & 0xFF;
  13771. key[i++] = (num >> 16) & 0xFF;
  13772. key[i++] = gen & 0xFF;
  13773. key[i++] = (gen >> 8) & 0xFF;
  13774. if (isAes) {
  13775. key[i++] = 0x73;
  13776. key[i++] = 0x41;
  13777. key[i++] = 0x6C;
  13778. key[i++] = 0x54;
  13779. }
  13780. var hash = calculateMD5(key, 0, i);
  13781. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  13782. }
  13783. function buildCipherConstructor(cf, name, num, gen, key) {
  13784. var cryptFilter = cf.get(name.name);
  13785. var cfm;
  13786. if (cryptFilter !== null && cryptFilter !== undefined) {
  13787. cfm = cryptFilter.get('CFM');
  13788. }
  13789. if (!cfm || cfm.name == 'None') {
  13790. return function cipherTransformFactoryBuildCipherConstructorNone() {
  13791. return new NullCipher();
  13792. };
  13793. }
  13794. if ('V2' == cfm.name) {
  13795. return function cipherTransformFactoryBuildCipherConstructorV2() {
  13796. return new ARCFourCipher(buildObjectKey(num, gen, key, false));
  13797. };
  13798. }
  13799. if ('AESV2' == cfm.name) {
  13800. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  13801. return new AES128Cipher(buildObjectKey(num, gen, key, true));
  13802. };
  13803. }
  13804. error('Unknown crypto method');
  13805. }
  13806. CipherTransformFactory.prototype = {
  13807. createCipherTransform:
  13808. function CipherTransformFactory_createCipherTransform(num, gen) {
  13809. if (this.algorithm == 4) {
  13810. return new CipherTransform(
  13811. buildCipherConstructor(this.cf, this.stmf,
  13812. num, gen, this.encryptionKey),
  13813. buildCipherConstructor(this.cf, this.strf,
  13814. num, gen, this.encryptionKey));
  13815. }
  13816. // algorithms 1 and 2
  13817. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  13818. var cipherConstructor = function buildCipherCipherConstructor() {
  13819. return new ARCFourCipher(key);
  13820. };
  13821. return new CipherTransform(cipherConstructor, cipherConstructor);
  13822. }
  13823. };
  13824. return CipherTransformFactory;
  13825. })();
  13826. var PatternType = {
  13827. FUNCTION_BASED: 1,
  13828. AXIAL: 2,
  13829. RADIAL: 3,
  13830. FREE_FORM_MESH: 4,
  13831. LATTICE_FORM_MESH: 5,
  13832. COONS_PATCH_MESH: 6,
  13833. TENSOR_PATCH_MESH: 7
  13834. };
  13835. var Pattern = (function PatternClosure() {
  13836. // Constructor should define this.getPattern
  13837. function Pattern() {
  13838. error('should not call Pattern constructor');
  13839. }
  13840. Pattern.prototype = {
  13841. // Input: current Canvas context
  13842. // Output: the appropriate fillStyle or strokeStyle
  13843. getPattern: function Pattern_getPattern(ctx) {
  13844. error('Should not call Pattern.getStyle: ' + ctx);
  13845. }
  13846. };
  13847. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  13848. res) {
  13849. var dict = isStream(shading) ? shading.dict : shading;
  13850. var type = dict.get('ShadingType');
  13851. switch (type) {
  13852. case PatternType.AXIAL:
  13853. case PatternType.RADIAL:
  13854. // Both radial and axial shadings are handled by RadialAxial shading.
  13855. return new Shadings.RadialAxial(dict, matrix, xref, res);
  13856. case PatternType.FREE_FORM_MESH:
  13857. case PatternType.LATTICE_FORM_MESH:
  13858. case PatternType.COONS_PATCH_MESH:
  13859. case PatternType.TENSOR_PATCH_MESH:
  13860. return new Shadings.Mesh(shading, matrix, xref, res);
  13861. default:
  13862. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  13863. return new Shadings.Dummy();
  13864. }
  13865. };
  13866. return Pattern;
  13867. })();
  13868. var Shadings = {};
  13869. // A small number to offset the first/last color stops so we can insert ones to
  13870. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  13871. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  13872. // internally so we have to go bigger.
  13873. Shadings.SMALL_NUMBER = 1e-2;
  13874. // Radial and axial shading have very similar implementations
  13875. // If needed, the implementations can be broken into two classes
  13876. Shadings.RadialAxial = (function RadialAxialClosure() {
  13877. function RadialAxial(dict, matrix, xref, res) {
  13878. this.matrix = matrix;
  13879. this.coordsArr = dict.get('Coords');
  13880. this.shadingType = dict.get('ShadingType');
  13881. this.type = 'Pattern';
  13882. var cs = dict.get('ColorSpace', 'CS');
  13883. cs = ColorSpace.parse(cs, xref, res);
  13884. this.cs = cs;
  13885. var t0 = 0.0, t1 = 1.0;
  13886. if (dict.has('Domain')) {
  13887. var domainArr = dict.get('Domain');
  13888. t0 = domainArr[0];
  13889. t1 = domainArr[1];
  13890. }
  13891. var extendStart = false, extendEnd = false;
  13892. if (dict.has('Extend')) {
  13893. var extendArr = dict.get('Extend');
  13894. extendStart = extendArr[0];
  13895. extendEnd = extendArr[1];
  13896. }
  13897. if (this.shadingType === PatternType.RADIAL &&
  13898. (!extendStart || !extendEnd)) {
  13899. // Radial gradient only currently works if either circle is fully within
  13900. // the other circle.
  13901. var x1 = this.coordsArr[0];
  13902. var y1 = this.coordsArr[1];
  13903. var r1 = this.coordsArr[2];
  13904. var x2 = this.coordsArr[3];
  13905. var y2 = this.coordsArr[4];
  13906. var r2 = this.coordsArr[5];
  13907. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  13908. if (r1 <= r2 + distance &&
  13909. r2 <= r1 + distance) {
  13910. warn('Unsupported radial gradient.');
  13911. }
  13912. }
  13913. this.extendStart = extendStart;
  13914. this.extendEnd = extendEnd;
  13915. var fnObj = dict.get('Function');
  13916. var fn;
  13917. if (isArray(fnObj)) {
  13918. var fnArray = [];
  13919. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  13920. var obj = xref.fetchIfRef(fnObj[j]);
  13921. if (!isPDFFunction(obj)) {
  13922. error('Invalid function');
  13923. }
  13924. fnArray.push(PDFFunction.parse(xref, obj));
  13925. }
  13926. fn = function radialAxialColorFunction(arg) {
  13927. var out = [];
  13928. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  13929. out.push(fnArray[i](arg)[0]);
  13930. }
  13931. return out;
  13932. };
  13933. } else {
  13934. if (!isPDFFunction(fnObj)) {
  13935. error('Invalid function');
  13936. }
  13937. fn = PDFFunction.parse(xref, fnObj);
  13938. }
  13939. // 10 samples seems good enough for now, but probably won't work
  13940. // if there are sharp color changes. Ideally, we would implement
  13941. // the spec faithfully and add lossless optimizations.
  13942. var diff = t1 - t0;
  13943. var step = diff / 10;
  13944. var colorStops = this.colorStops = [];
  13945. // Protect against bad domains so we don't end up in an infinte loop below.
  13946. if (t0 >= t1 || step <= 0) {
  13947. // Acrobat doesn't seem to handle these cases so we'll ignore for
  13948. // now.
  13949. info('Bad shading domain.');
  13950. return;
  13951. }
  13952. var rgbColor;
  13953. for (var i = t0; i <= t1; i += step) {
  13954. rgbColor = cs.getRgb(fn([i]), 0);
  13955. var cssColor = Util.makeCssRgb(rgbColor);
  13956. colorStops.push([(i - t0) / diff, cssColor]);
  13957. }
  13958. var background = 'transparent';
  13959. if (dict.has('Background')) {
  13960. rgbColor = cs.getRgb(dict.get('Background'), 0);
  13961. background = Util.makeCssRgb(rgbColor);
  13962. }
  13963. if (!extendStart) {
  13964. // Insert a color stop at the front and offset the first real color stop
  13965. // so it doesn't conflict with the one we insert.
  13966. colorStops.unshift([0, background]);
  13967. colorStops[1][0] += Shadings.SMALL_NUMBER;
  13968. }
  13969. if (!extendEnd) {
  13970. // Same idea as above in extendStart but for the end.
  13971. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  13972. colorStops.push([1, background]);
  13973. }
  13974. this.colorStops = colorStops;
  13975. }
  13976. RadialAxial.prototype = {
  13977. getIR: function RadialAxial_getIR() {
  13978. var coordsArr = this.coordsArr;
  13979. var shadingType = this.shadingType;
  13980. var type, p0, p1, r0, r1;
  13981. if (shadingType == PatternType.AXIAL) {
  13982. p0 = [coordsArr[0], coordsArr[1]];
  13983. p1 = [coordsArr[2], coordsArr[3]];
  13984. r0 = null;
  13985. r1 = null;
  13986. type = 'axial';
  13987. } else if (shadingType == PatternType.RADIAL) {
  13988. p0 = [coordsArr[0], coordsArr[1]];
  13989. p1 = [coordsArr[3], coordsArr[4]];
  13990. r0 = coordsArr[2];
  13991. r1 = coordsArr[5];
  13992. type = 'radial';
  13993. } else {
  13994. error('getPattern type unknown: ' + shadingType);
  13995. }
  13996. var matrix = this.matrix;
  13997. if (matrix) {
  13998. p0 = Util.applyTransform(p0, matrix);
  13999. p1 = Util.applyTransform(p1, matrix);
  14000. }
  14001. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  14002. }
  14003. };
  14004. return RadialAxial;
  14005. })();
  14006. // All mesh shading. For now, they will be presented as set of the triangles
  14007. // to be drawn on the canvas and rgb color for each vertex.
  14008. Shadings.Mesh = (function MeshClosure() {
  14009. function MeshStreamReader(stream, context) {
  14010. this.stream = stream;
  14011. this.context = context;
  14012. this.buffer = 0;
  14013. this.bufferLength = 0;
  14014. }
  14015. MeshStreamReader.prototype = {
  14016. get hasData() {
  14017. if (this.stream.end) {
  14018. return this.stream.pos < this.stream.end;
  14019. }
  14020. if (this.bufferLength > 0) {
  14021. return true;
  14022. }
  14023. var nextByte = this.stream.getByte();
  14024. if (nextByte < 0) {
  14025. return false;
  14026. }
  14027. this.buffer = nextByte;
  14028. this.bufferLength = 8;
  14029. return true;
  14030. },
  14031. readBits: function MeshStreamReader_readBits(n) {
  14032. var buffer = this.buffer;
  14033. var bufferLength = this.bufferLength;
  14034. if (n === 32) {
  14035. if (bufferLength === 0) {
  14036. return ((this.stream.getByte() << 24) |
  14037. (this.stream.getByte() << 16) | (this.stream.getByte() << 8) |
  14038. this.stream.getByte()) >>> 0;
  14039. }
  14040. buffer = (buffer << 24) | (this.stream.getByte() << 16) |
  14041. (this.stream.getByte() << 8) | this.stream.getByte();
  14042. var nextByte = this.stream.getByte();
  14043. this.buffer = nextByte & ((1 << bufferLength) - 1);
  14044. return ((buffer << (8 - bufferLength)) |
  14045. ((nextByte & 0xFF) >> bufferLength)) >>> 0;
  14046. }
  14047. if (n === 8 && bufferLength === 0) {
  14048. return this.stream.getByte();
  14049. }
  14050. while (bufferLength < n) {
  14051. buffer = (buffer << 8) | this.stream.getByte();
  14052. bufferLength += 8;
  14053. }
  14054. bufferLength -= n;
  14055. this.bufferLength = bufferLength;
  14056. this.buffer = buffer & ((1 << bufferLength) - 1);
  14057. return buffer >> bufferLength;
  14058. },
  14059. align: function MeshStreamReader_align() {
  14060. this.buffer = 0;
  14061. this.bufferLength = 0;
  14062. },
  14063. readFlag: function MeshStreamReader_readFlag() {
  14064. return this.readBits(this.context.bitsPerFlag);
  14065. },
  14066. readCoordinate: function MeshStreamReader_readCoordinate() {
  14067. var bitsPerCoordinate = this.context.bitsPerCoordinate;
  14068. var xi = this.readBits(bitsPerCoordinate);
  14069. var yi = this.readBits(bitsPerCoordinate);
  14070. var decode = this.context.decode;
  14071. var scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) :
  14072. 2.3283064365386963e-10; // 2 ^ -32
  14073. return [
  14074. xi * scale * (decode[1] - decode[0]) + decode[0],
  14075. yi * scale * (decode[3] - decode[2]) + decode[2]
  14076. ];
  14077. },
  14078. readComponents: function MeshStreamReader_readComponents() {
  14079. var numComps = this.context.numComps;
  14080. var bitsPerComponent = this.context.bitsPerComponent;
  14081. var scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) :
  14082. 2.3283064365386963e-10; // 2 ^ -32
  14083. var decode = this.context.decode;
  14084. var components = [];
  14085. for (var i = 0, j = 4; i < numComps; i++, j += 2) {
  14086. var ci = this.readBits(bitsPerComponent);
  14087. components.push(ci * scale * (decode[j + 1] - decode[j]) + decode[j]);
  14088. }
  14089. if (this.context.colorFn) {
  14090. components = this.context.colorFn(components);
  14091. }
  14092. return this.context.colorSpace.getRgb(components, 0);
  14093. }
  14094. };
  14095. function decodeType4Shading(mesh, reader) {
  14096. var coords = mesh.coords;
  14097. var colors = mesh.colors;
  14098. var operators = [];
  14099. var ps = []; // not maintaining cs since that will match ps
  14100. var verticesLeft = 0; // assuming we have all data to start a new triangle
  14101. while (reader.hasData) {
  14102. var f = reader.readFlag();
  14103. var coord = reader.readCoordinate();
  14104. var color = reader.readComponents();
  14105. if (verticesLeft === 0) { // ignoring flags if we started a triangle
  14106. assert(0 <= f && f <= 2, 'Unknown type4 flag');
  14107. switch (f) {
  14108. case 0:
  14109. verticesLeft = 3;
  14110. break;
  14111. case 1:
  14112. ps.push(ps[ps.length - 2], ps[ps.length - 1]);
  14113. verticesLeft = 1;
  14114. break;
  14115. case 2:
  14116. ps.push(ps[ps.length - 3], ps[ps.length - 1]);
  14117. verticesLeft = 1;
  14118. break;
  14119. }
  14120. operators.push(f);
  14121. }
  14122. ps.push(coords.length);
  14123. coords.push(coord);
  14124. colors.push(color);
  14125. verticesLeft--;
  14126. reader.align();
  14127. }
  14128. var psPacked = new Int32Array(ps);
  14129. mesh.figures.push({
  14130. type: 'triangles',
  14131. coords: psPacked,
  14132. colors: psPacked
  14133. });
  14134. }
  14135. function decodeType5Shading(mesh, reader, verticesPerRow) {
  14136. var coords = mesh.coords;
  14137. var colors = mesh.colors;
  14138. var ps = []; // not maintaining cs since that will match ps
  14139. while (reader.hasData) {
  14140. var coord = reader.readCoordinate();
  14141. var color = reader.readComponents();
  14142. ps.push(coords.length);
  14143. coords.push(coord);
  14144. colors.push(color);
  14145. }
  14146. var psPacked = new Int32Array(ps);
  14147. mesh.figures.push({
  14148. type: 'lattice',
  14149. coords: psPacked,
  14150. colors: psPacked,
  14151. verticesPerRow: verticesPerRow
  14152. });
  14153. }
  14154. var MIN_SPLIT_PATCH_CHUNKS_AMOUNT = 3;
  14155. var MAX_SPLIT_PATCH_CHUNKS_AMOUNT = 20;
  14156. var TRIANGLE_DENSITY = 20; // count of triangles per entire mesh bounds
  14157. var getB = (function getBClosure() {
  14158. function buildB(count) {
  14159. var lut = [];
  14160. for (var i = 0; i <= count; i++) {
  14161. var t = i / count, t_ = 1 - t;
  14162. lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_,
  14163. 3 * t * t * t_, t * t * t]));
  14164. }
  14165. return lut;
  14166. }
  14167. var cache = [];
  14168. return function getB(count) {
  14169. if (!cache[count]) {
  14170. cache[count] = buildB(count);
  14171. }
  14172. return cache[count];
  14173. };
  14174. })();
  14175. function buildFigureFromPatch(mesh, index) {
  14176. var figure = mesh.figures[index];
  14177. assert(figure.type === 'patch', 'Unexpected patch mesh figure');
  14178. var coords = mesh.coords, colors = mesh.colors;
  14179. var pi = figure.coords;
  14180. var ci = figure.colors;
  14181. var figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0],
  14182. coords[pi[12]][0], coords[pi[15]][0]);
  14183. var figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1],
  14184. coords[pi[12]][1], coords[pi[15]][1]);
  14185. var figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0],
  14186. coords[pi[12]][0], coords[pi[15]][0]);
  14187. var figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1],
  14188. coords[pi[12]][1], coords[pi[15]][1]);
  14189. var splitXBy = Math.ceil((figureMaxX - figureMinX) * TRIANGLE_DENSITY /
  14190. (mesh.bounds[2] - mesh.bounds[0]));
  14191. splitXBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14192. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy));
  14193. var splitYBy = Math.ceil((figureMaxY - figureMinY) * TRIANGLE_DENSITY /
  14194. (mesh.bounds[3] - mesh.bounds[1]));
  14195. splitYBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  14196. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy));
  14197. var verticesPerRow = splitXBy + 1;
  14198. var figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow);
  14199. var figureColors = new Int32Array((splitYBy + 1) * verticesPerRow);
  14200. var k = 0;
  14201. var cl = new Uint8Array(3), cr = new Uint8Array(3);
  14202. var c0 = colors[ci[0]], c1 = colors[ci[1]],
  14203. c2 = colors[ci[2]], c3 = colors[ci[3]];
  14204. var bRow = getB(splitYBy), bCol = getB(splitXBy);
  14205. for (var row = 0; row <= splitYBy; row++) {
  14206. cl[0] = ((c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy) | 0;
  14207. cl[1] = ((c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy) | 0;
  14208. cl[2] = ((c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy) | 0;
  14209. cr[0] = ((c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy) | 0;
  14210. cr[1] = ((c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy) | 0;
  14211. cr[2] = ((c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy) | 0;
  14212. for (var col = 0; col <= splitXBy; col++, k++) {
  14213. if ((row === 0 || row === splitYBy) &&
  14214. (col === 0 || col === splitXBy)) {
  14215. continue;
  14216. }
  14217. var x = 0, y = 0;
  14218. var q = 0;
  14219. for (var i = 0; i <= 3; i++) {
  14220. for (var j = 0; j <= 3; j++, q++) {
  14221. var m = bRow[row][i] * bCol[col][j];
  14222. x += coords[pi[q]][0] * m;
  14223. y += coords[pi[q]][1] * m;
  14224. }
  14225. }
  14226. figureCoords[k] = coords.length;
  14227. coords.push([x, y]);
  14228. figureColors[k] = colors.length;
  14229. var newColor = new Uint8Array(3);
  14230. newColor[0] = ((cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy) | 0;
  14231. newColor[1] = ((cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy) | 0;
  14232. newColor[2] = ((cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy) | 0;
  14233. colors.push(newColor);
  14234. }
  14235. }
  14236. figureCoords[0] = pi[0];
  14237. figureColors[0] = ci[0];
  14238. figureCoords[splitXBy] = pi[3];
  14239. figureColors[splitXBy] = ci[1];
  14240. figureCoords[verticesPerRow * splitYBy] = pi[12];
  14241. figureColors[verticesPerRow * splitYBy] = ci[2];
  14242. figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15];
  14243. figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3];
  14244. mesh.figures[index] = {
  14245. type: 'lattice',
  14246. coords: figureCoords,
  14247. colors: figureColors,
  14248. verticesPerRow: verticesPerRow
  14249. };
  14250. }
  14251. function decodeType6Shading(mesh, reader) {
  14252. // A special case of Type 7. The p11, p12, p21, p22 automatically filled
  14253. var coords = mesh.coords;
  14254. var colors = mesh.colors;
  14255. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14256. var cs = new Int32Array(4); // c00, c30, c03, c33
  14257. while (reader.hasData) {
  14258. var f = reader.readFlag();
  14259. assert(0 <= f && f <= 3, 'Unknown type6 flag');
  14260. var i, ii;
  14261. var pi = coords.length;
  14262. for (i = 0, ii = (f !== 0 ? 8 : 12); i < ii; i++) {
  14263. coords.push(reader.readCoordinate());
  14264. }
  14265. var ci = colors.length;
  14266. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14267. colors.push(reader.readComponents());
  14268. }
  14269. var tmp1, tmp2, tmp3, tmp4;
  14270. switch (f) {
  14271. case 0:
  14272. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14273. ps[ 8] = pi + 2; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14274. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 8;
  14275. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14276. cs[2] = ci + 1; cs[3] = ci + 2;
  14277. cs[0] = ci; cs[1] = ci + 3;
  14278. break;
  14279. case 1:
  14280. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14281. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14282. ps[ 8] = pi + 6; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 1;
  14283. ps[ 4] = pi + 7; /* calculated below */ ps[ 7] = pi;
  14284. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14285. tmp1 = cs[2]; tmp2 = cs[3];
  14286. cs[2] = ci + 1; cs[3] = ci;
  14287. cs[0] = tmp1; cs[1] = tmp2;
  14288. break;
  14289. case 2:
  14290. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14291. ps[ 8] = ps[11]; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 4;
  14292. ps[ 4] = ps[7]; /* calculated below */ ps[ 7] = pi + 3;
  14293. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14294. cs[2] = cs[3]; cs[3] = ci + 1;
  14295. cs[0] = cs[1]; cs[1] = ci;
  14296. break;
  14297. case 3:
  14298. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14299. ps[ 8] = pi; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  14300. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 6;
  14301. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14302. cs[2] = cs[0]; cs[3] = cs[1];
  14303. cs[0] = ci; cs[1] = ci + 1;
  14304. break;
  14305. }
  14306. // set p11, p12, p21, p22
  14307. ps[5] = coords.length;
  14308. coords.push([
  14309. (-4 * coords[ps[0]][0] - coords[ps[15]][0] +
  14310. 6 * (coords[ps[4]][0] + coords[ps[1]][0]) -
  14311. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14312. 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9,
  14313. (-4 * coords[ps[0]][1] - coords[ps[15]][1] +
  14314. 6 * (coords[ps[4]][1] + coords[ps[1]][1]) -
  14315. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14316. 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9
  14317. ]);
  14318. ps[6] = coords.length;
  14319. coords.push([
  14320. (-4 * coords[ps[3]][0] - coords[ps[12]][0] +
  14321. 6 * (coords[ps[2]][0] + coords[ps[7]][0]) -
  14322. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14323. 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9,
  14324. (-4 * coords[ps[3]][1] - coords[ps[12]][1] +
  14325. 6 * (coords[ps[2]][1] + coords[ps[7]][1]) -
  14326. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14327. 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9
  14328. ]);
  14329. ps[9] = coords.length;
  14330. coords.push([
  14331. (-4 * coords[ps[12]][0] - coords[ps[3]][0] +
  14332. 6 * (coords[ps[8]][0] + coords[ps[13]][0]) -
  14333. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  14334. 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9,
  14335. (-4 * coords[ps[12]][1] - coords[ps[3]][1] +
  14336. 6 * (coords[ps[8]][1] + coords[ps[13]][1]) -
  14337. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  14338. 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9
  14339. ]);
  14340. ps[10] = coords.length;
  14341. coords.push([
  14342. (-4 * coords[ps[15]][0] - coords[ps[0]][0] +
  14343. 6 * (coords[ps[11]][0] + coords[ps[14]][0]) -
  14344. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  14345. 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9,
  14346. (-4 * coords[ps[15]][1] - coords[ps[0]][1] +
  14347. 6 * (coords[ps[11]][1] + coords[ps[14]][1]) -
  14348. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  14349. 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9
  14350. ]);
  14351. mesh.figures.push({
  14352. type: 'patch',
  14353. coords: new Int32Array(ps), // making copies of ps and cs
  14354. colors: new Int32Array(cs)
  14355. });
  14356. }
  14357. }
  14358. function decodeType7Shading(mesh, reader) {
  14359. var coords = mesh.coords;
  14360. var colors = mesh.colors;
  14361. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  14362. var cs = new Int32Array(4); // c00, c30, c03, c33
  14363. while (reader.hasData) {
  14364. var f = reader.readFlag();
  14365. assert(0 <= f && f <= 3, 'Unknown type7 flag');
  14366. var i, ii;
  14367. var pi = coords.length;
  14368. for (i = 0, ii = (f !== 0 ? 12 : 16); i < ii; i++) {
  14369. coords.push(reader.readCoordinate());
  14370. }
  14371. var ci = colors.length;
  14372. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  14373. colors.push(reader.readComponents());
  14374. }
  14375. var tmp1, tmp2, tmp3, tmp4;
  14376. switch (f) {
  14377. case 0:
  14378. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  14379. ps[ 8] = pi + 2; ps[ 9] = pi + 13; ps[10] = pi + 14; ps[11] = pi + 7;
  14380. ps[ 4] = pi + 1; ps[ 5] = pi + 12; ps[ 6] = pi + 15; ps[ 7] = pi + 8;
  14381. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  14382. cs[2] = ci + 1; cs[3] = ci + 2;
  14383. cs[0] = ci; cs[1] = ci + 3;
  14384. break;
  14385. case 1:
  14386. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  14387. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  14388. ps[ 8] = pi + 6; ps[ 9] = pi + 11; ps[10] = pi + 10; ps[11] = pi + 1;
  14389. ps[ 4] = pi + 7; ps[ 5] = pi + 8; ps[ 6] = pi + 9; ps[ 7] = pi;
  14390. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  14391. tmp1 = cs[2]; tmp2 = cs[3];
  14392. cs[2] = ci + 1; cs[3] = ci;
  14393. cs[0] = tmp1; cs[1] = tmp2;
  14394. break;
  14395. case 2:
  14396. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  14397. ps[ 8] = ps[11]; ps[ 9] = pi + 8; ps[10] = pi + 11; ps[11] = pi + 4;
  14398. ps[ 4] = ps[7]; ps[ 5] = pi + 9; ps[ 6] = pi + 10; ps[ 7] = pi + 3;
  14399. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  14400. cs[2] = cs[3]; cs[3] = ci + 1;
  14401. cs[0] = cs[1]; cs[1] = ci;
  14402. break;
  14403. case 3:
  14404. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  14405. ps[ 8] = pi; ps[ 9] = pi + 9; ps[10] = pi + 8; ps[11] = pi + 7;
  14406. ps[ 4] = pi + 1; ps[ 5] = pi + 10; ps[ 6] = pi + 11; ps[ 7] = pi + 6;
  14407. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  14408. cs[2] = cs[0]; cs[3] = cs[1];
  14409. cs[0] = ci; cs[1] = ci + 1;
  14410. break;
  14411. }
  14412. mesh.figures.push({
  14413. type: 'patch',
  14414. coords: new Int32Array(ps), // making copies of ps and cs
  14415. colors: new Int32Array(cs)
  14416. });
  14417. }
  14418. }
  14419. function updateBounds(mesh) {
  14420. var minX = mesh.coords[0][0], minY = mesh.coords[0][1],
  14421. maxX = minX, maxY = minY;
  14422. for (var i = 1, ii = mesh.coords.length; i < ii; i++) {
  14423. var x = mesh.coords[i][0], y = mesh.coords[i][1];
  14424. minX = minX > x ? x : minX;
  14425. minY = minY > y ? y : minY;
  14426. maxX = maxX < x ? x : maxX;
  14427. maxY = maxY < y ? y : maxY;
  14428. }
  14429. mesh.bounds = [minX, minY, maxX, maxY];
  14430. }
  14431. function packData(mesh) {
  14432. var i, ii, j, jj;
  14433. var coords = mesh.coords;
  14434. var coordsPacked = new Float32Array(coords.length * 2);
  14435. for (i = 0, j = 0, ii = coords.length; i < ii; i++) {
  14436. var xy = coords[i];
  14437. coordsPacked[j++] = xy[0];
  14438. coordsPacked[j++] = xy[1];
  14439. }
  14440. mesh.coords = coordsPacked;
  14441. var colors = mesh.colors;
  14442. var colorsPacked = new Uint8Array(colors.length * 3);
  14443. for (i = 0, j = 0, ii = colors.length; i < ii; i++) {
  14444. var c = colors[i];
  14445. colorsPacked[j++] = c[0];
  14446. colorsPacked[j++] = c[1];
  14447. colorsPacked[j++] = c[2];
  14448. }
  14449. mesh.colors = colorsPacked;
  14450. var figures = mesh.figures;
  14451. for (i = 0, ii = figures.length; i < ii; i++) {
  14452. var figure = figures[i], ps = figure.coords, cs = figure.colors;
  14453. for (j = 0, jj = ps.length; j < jj; j++) {
  14454. ps[j] *= 2;
  14455. cs[j] *= 3;
  14456. }
  14457. }
  14458. }
  14459. function Mesh(stream, matrix, xref, res) {
  14460. assert(isStream(stream), 'Mesh data is not a stream');
  14461. var dict = stream.dict;
  14462. this.matrix = matrix;
  14463. this.shadingType = dict.get('ShadingType');
  14464. this.type = 'Pattern';
  14465. this.bbox = dict.get('BBox');
  14466. var cs = dict.get('ColorSpace', 'CS');
  14467. cs = ColorSpace.parse(cs, xref, res);
  14468. this.cs = cs;
  14469. this.background = dict.has('Background') ?
  14470. cs.getRgb(dict.get('Background'), 0) : null;
  14471. var fnObj = dict.get('Function');
  14472. var fn;
  14473. if (!fnObj) {
  14474. fn = null;
  14475. } else if (isArray(fnObj)) {
  14476. var fnArray = [];
  14477. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  14478. var obj = xref.fetchIfRef(fnObj[j]);
  14479. if (!isPDFFunction(obj)) {
  14480. error('Invalid function');
  14481. }
  14482. fnArray.push(PDFFunction.parse(xref, obj));
  14483. }
  14484. fn = function radialAxialColorFunction(arg) {
  14485. var out = [];
  14486. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  14487. out.push(fnArray[i](arg)[0]);
  14488. }
  14489. return out;
  14490. };
  14491. } else {
  14492. if (!isPDFFunction(fnObj)) {
  14493. error('Invalid function');
  14494. }
  14495. fn = PDFFunction.parse(xref, fnObj);
  14496. }
  14497. this.coords = [];
  14498. this.colors = [];
  14499. this.figures = [];
  14500. var decodeContext = {
  14501. bitsPerCoordinate: dict.get('BitsPerCoordinate'),
  14502. bitsPerComponent: dict.get('BitsPerComponent'),
  14503. bitsPerFlag: dict.get('BitsPerFlag'),
  14504. decode: dict.get('Decode'),
  14505. colorFn: fn,
  14506. colorSpace: cs,
  14507. numComps: fn ? 1 : cs.numComps
  14508. };
  14509. var reader = new MeshStreamReader(stream, decodeContext);
  14510. var patchMesh = false;
  14511. switch (this.shadingType) {
  14512. case PatternType.FREE_FORM_MESH:
  14513. decodeType4Shading(this, reader);
  14514. break;
  14515. case PatternType.LATTICE_FORM_MESH:
  14516. var verticesPerRow = dict.get('VerticesPerRow') | 0;
  14517. assert(verticesPerRow >= 2, 'Invalid VerticesPerRow');
  14518. decodeType5Shading(this, reader, verticesPerRow);
  14519. break;
  14520. case PatternType.COONS_PATCH_MESH:
  14521. decodeType6Shading(this, reader);
  14522. patchMesh = true;
  14523. break;
  14524. case PatternType.TENSOR_PATCH_MESH:
  14525. decodeType7Shading(this, reader);
  14526. patchMesh = true;
  14527. break;
  14528. default:
  14529. error('Unsupported mesh type.');
  14530. break;
  14531. }
  14532. if (patchMesh) {
  14533. // dirty bounds calculation for determining, how dense shall be triangles
  14534. updateBounds(this);
  14535. for (var i = 0, ii = this.figures.length; i < ii; i++) {
  14536. buildFigureFromPatch(this, i);
  14537. }
  14538. }
  14539. // calculate bounds
  14540. updateBounds(this);
  14541. packData(this);
  14542. }
  14543. Mesh.prototype = {
  14544. getIR: function Mesh_getIR() {
  14545. return ['Mesh', this.shadingType, this.coords, this.colors, this.figures,
  14546. this.bounds, this.matrix, this.bbox, this.background];
  14547. }
  14548. };
  14549. return Mesh;
  14550. })();
  14551. Shadings.Dummy = (function DummyClosure() {
  14552. function Dummy() {
  14553. this.type = 'Pattern';
  14554. }
  14555. Dummy.prototype = {
  14556. getIR: function Dummy_getIR() {
  14557. return ['Dummy'];
  14558. }
  14559. };
  14560. return Dummy;
  14561. })();
  14562. function getTilingPatternIR(operatorList, dict, args) {
  14563. var matrix = dict.get('Matrix');
  14564. var bbox = dict.get('BBox');
  14565. var xstep = dict.get('XStep');
  14566. var ystep = dict.get('YStep');
  14567. var paintType = dict.get('PaintType');
  14568. var tilingType = dict.get('TilingType');
  14569. return [
  14570. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  14571. paintType, tilingType
  14572. ];
  14573. }
  14574. var PartialEvaluator = (function PartialEvaluatorClosure() {
  14575. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  14576. uniquePrefix, idCounters, fontCache) {
  14577. this.pdfManager = pdfManager;
  14578. this.xref = xref;
  14579. this.handler = handler;
  14580. this.pageIndex = pageIndex;
  14581. this.uniquePrefix = uniquePrefix;
  14582. this.idCounters = idCounters;
  14583. this.fontCache = fontCache;
  14584. }
  14585. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  14586. PartialEvaluator.prototype = {
  14587. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  14588. if (!isDict(resources)) {
  14589. return false;
  14590. }
  14591. var processed = Object.create(null);
  14592. if (resources.objId) {
  14593. processed[resources.objId] = true;
  14594. }
  14595. var nodes = [resources];
  14596. while (nodes.length) {
  14597. var key;
  14598. var node = nodes.shift();
  14599. // First check the current resources for blend modes.
  14600. var graphicStates = node.get('ExtGState');
  14601. if (isDict(graphicStates)) {
  14602. graphicStates = graphicStates.getAll();
  14603. for (key in graphicStates) {
  14604. var graphicState = graphicStates[key];
  14605. var bm = graphicState['BM'];
  14606. if (isName(bm) && bm.name !== 'Normal') {
  14607. return true;
  14608. }
  14609. }
  14610. }
  14611. // Descend into the XObjects to look for more resources and blend modes.
  14612. var xObjects = node.get('XObject');
  14613. if (!isDict(xObjects)) {
  14614. continue;
  14615. }
  14616. xObjects = xObjects.getAll();
  14617. for (key in xObjects) {
  14618. var xObject = xObjects[key];
  14619. if (!isStream(xObject)) {
  14620. continue;
  14621. }
  14622. var xResources = xObject.dict.get('Resources');
  14623. // Checking objId to detect an infinite loop.
  14624. if (isDict(xResources) &&
  14625. (!xResources.objId || !processed[xResources.objId])) {
  14626. nodes.push(xResources);
  14627. if (xResources.objId) {
  14628. processed[xResources.objId] = true;
  14629. }
  14630. }
  14631. }
  14632. }
  14633. return false;
  14634. },
  14635. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  14636. xobj, smask,
  14637. operatorList,
  14638. initialState) {
  14639. var matrix = xobj.dict.get('Matrix');
  14640. var bbox = xobj.dict.get('BBox');
  14641. var group = xobj.dict.get('Group');
  14642. if (group) {
  14643. var groupOptions = {
  14644. matrix: matrix,
  14645. bbox: bbox,
  14646. smask: smask,
  14647. isolated: false,
  14648. knockout: false
  14649. };
  14650. var groupSubtype = group.get('S');
  14651. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  14652. groupOptions.isolated = (group.get('I') || false);
  14653. groupOptions.knockout = (group.get('K') || false);
  14654. var colorSpace = group.get('CS');
  14655. groupOptions.colorSpace = (colorSpace ?
  14656. ColorSpace.parseToIR(colorSpace, this.xref, resources) : null);
  14657. }
  14658. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  14659. }
  14660. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  14661. this.getOperatorList(xobj, (xobj.dict.get('Resources') || resources),
  14662. operatorList, initialState);
  14663. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  14664. if (group) {
  14665. operatorList.addOp(OPS.endGroup, [groupOptions]);
  14666. }
  14667. },
  14668. buildPaintImageXObject:
  14669. function PartialEvaluator_buildPaintImageXObject(resources, image,
  14670. inline, operatorList,
  14671. cacheKey, cache) {
  14672. var self = this;
  14673. var dict = image.dict;
  14674. var w = dict.get('Width', 'W');
  14675. var h = dict.get('Height', 'H');
  14676. if (!(w && isNum(w)) || !(h && isNum(h))) {
  14677. warn('Image dimensions are missing, or not numbers.');
  14678. return;
  14679. }
  14680. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  14681. warn('Image exceeded maximum allowed size and was removed.');
  14682. return;
  14683. }
  14684. var imageMask = (dict.get('ImageMask', 'IM') || false);
  14685. var imgData, args;
  14686. if (imageMask) {
  14687. // This depends on a tmpCanvas being filled with the
  14688. // current fillStyle, such that processing the pixel
  14689. // data can't be done here. Instead of creating a
  14690. // complete PDFImage, only read the information needed
  14691. // for later.
  14692. var width = dict.get('Width', 'W');
  14693. var height = dict.get('Height', 'H');
  14694. var bitStrideLength = (width + 7) >> 3;
  14695. var imgArray = image.getBytes(bitStrideLength * height);
  14696. var decode = dict.get('Decode', 'D');
  14697. var canTransfer = image instanceof DecodeStream;
  14698. var inverseDecode = (!!decode && decode[0] > 0);
  14699. imgData = PDFImage.createMask(imgArray, width, height,
  14700. canTransfer, inverseDecode);
  14701. imgData.cached = true;
  14702. args = [imgData];
  14703. operatorList.addOp(OPS.paintImageMaskXObject, args);
  14704. if (cacheKey) {
  14705. cache.key = cacheKey;
  14706. cache.fn = OPS.paintImageMaskXObject;
  14707. cache.args = args;
  14708. }
  14709. return;
  14710. }
  14711. var softMask = (dict.get('SMask', 'SM') || false);
  14712. var mask = (dict.get('Mask') || false);
  14713. var SMALL_IMAGE_DIMENSIONS = 200;
  14714. // Inlining small images into the queue as RGB data
  14715. if (inline && !softMask && !mask && !(image instanceof JpegStream) &&
  14716. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  14717. var imageObj = new PDFImage(this.xref, resources, image,
  14718. inline, null, null);
  14719. // We force the use of RGBA_32BPP images here, because we can't handle
  14720. // any other kind.
  14721. imgData = imageObj.createImageData(/* forceRGBA = */ true);
  14722. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  14723. return;
  14724. }
  14725. // If there is no imageMask, create the PDFImage and a lot
  14726. // of image processing can be done here.
  14727. var uniquePrefix = (this.uniquePrefix || '');
  14728. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  14729. operatorList.addDependency(objId);
  14730. args = [objId, w, h];
  14731. if (!softMask && !mask && image instanceof JpegStream &&
  14732. image.isNativelySupported(this.xref, resources)) {
  14733. // These JPEGs don't need any more processing so we can just send it.
  14734. operatorList.addOp(OPS.paintJpegXObject, args);
  14735. this.handler.send('obj',
  14736. [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  14737. return;
  14738. }
  14739. PDFImage.buildImage(self.handler, self.xref, resources, image, inline).
  14740. then(function(imageObj) {
  14741. var imgData = imageObj.createImageData(/* forceRGBA = */ false);
  14742. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  14743. null, [imgData.data.buffer]);
  14744. }).then(null, function (reason) {
  14745. warn('Unable to decode image: ' + reason);
  14746. self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
  14747. });
  14748. operatorList.addOp(OPS.paintImageXObject, args);
  14749. if (cacheKey) {
  14750. cache.key = cacheKey;
  14751. cache.fn = OPS.paintImageXObject;
  14752. cache.args = args;
  14753. }
  14754. },
  14755. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  14756. operatorList,
  14757. stateManager) {
  14758. var smaskContent = smask.get('G');
  14759. var smaskOptions = {
  14760. subtype: smask.get('S').name,
  14761. backdrop: smask.get('BC')
  14762. };
  14763. this.buildFormXObject(resources, smaskContent, smaskOptions,
  14764. operatorList, stateManager.state.clone());
  14765. },
  14766. handleTilingType:
  14767. function PartialEvaluator_handleTilingType(fn, args, resources,
  14768. pattern, patternDict,
  14769. operatorList) {
  14770. // Create an IR of the pattern code.
  14771. var tilingOpList = this.getOperatorList(pattern,
  14772. (patternDict.get('Resources') || resources));
  14773. // Add the dependencies to the parent operator list so they are resolved
  14774. // before sub operator list is executed synchronously.
  14775. operatorList.addDependencies(tilingOpList.dependencies);
  14776. operatorList.addOp(fn, getTilingPatternIR({
  14777. fnArray: tilingOpList.fnArray,
  14778. argsArray: tilingOpList.argsArray
  14779. }, patternDict, args));
  14780. },
  14781. handleSetFont:
  14782. function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,
  14783. operatorList, state) {
  14784. // TODO(mack): Not needed?
  14785. var fontName;
  14786. if (fontArgs) {
  14787. fontArgs = fontArgs.slice();
  14788. fontName = fontArgs[0].name;
  14789. }
  14790. var self = this;
  14791. var font = this.loadFont(fontName, fontRef, this.xref, resources,
  14792. operatorList);
  14793. state.font = font;
  14794. var loadedName = font.loadedName;
  14795. if (!font.sent) {
  14796. var fontData = font.translated.exportData();
  14797. self.handler.send('commonobj', [
  14798. loadedName,
  14799. 'Font',
  14800. fontData
  14801. ]);
  14802. font.sent = true;
  14803. }
  14804. return loadedName;
  14805. },
  14806. handleText: function PartialEvaluator_handleText(chars, state) {
  14807. var font = state.font.translated;
  14808. var glyphs = font.charsToGlyphs(chars);
  14809. var isAddToPathSet = !!(state.textRenderingMode &
  14810. TextRenderingMode.ADD_TO_PATH_FLAG);
  14811. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  14812. for (var i = 0; i < glyphs.length; i++) {
  14813. if (glyphs[i] === null) {
  14814. continue;
  14815. }
  14816. var fontChar = glyphs[i].fontChar;
  14817. if (!font.renderer.hasBuiltPath(fontChar)) {
  14818. var path = font.renderer.getPathJs(fontChar);
  14819. this.handler.send('commonobj', [
  14820. font.loadedName + '_path_' + fontChar,
  14821. 'FontPath',
  14822. path
  14823. ]);
  14824. }
  14825. }
  14826. }
  14827. return glyphs;
  14828. },
  14829. setGState: function PartialEvaluator_setGState(resources, gState,
  14830. operatorList, xref,
  14831. stateManager) {
  14832. var self = this;
  14833. // TODO(mack): This should be rewritten so that this function returns
  14834. // what should be added to the queue during each iteration
  14835. function setGStateForKey(gStateObj, key, value) {
  14836. switch (key) {
  14837. case 'Type':
  14838. break;
  14839. case 'LW':
  14840. case 'LC':
  14841. case 'LJ':
  14842. case 'ML':
  14843. case 'D':
  14844. case 'RI':
  14845. case 'FL':
  14846. case 'CA':
  14847. case 'ca':
  14848. gStateObj.push([key, value]);
  14849. break;
  14850. case 'Font':
  14851. var loadedName = self.handleSetFont(resources, null, value[0],
  14852. operatorList,
  14853. stateManager.state);
  14854. operatorList.addDependency(loadedName);
  14855. gStateObj.push([key, [loadedName, value[1]]]);
  14856. break;
  14857. case 'BM':
  14858. gStateObj.push([key, value]);
  14859. break;
  14860. case 'SMask':
  14861. if (isName(value) && value.name === 'None') {
  14862. gStateObj.push([key, false]);
  14863. break;
  14864. }
  14865. var dict = xref.fetchIfRef(value);
  14866. if (isDict(dict)) {
  14867. self.handleSMask(dict, resources, operatorList, stateManager);
  14868. gStateObj.push([key, true]);
  14869. } else {
  14870. warn('Unsupported SMask type');
  14871. }
  14872. break;
  14873. // Only generate info log messages for the following since
  14874. // they are unlikey to have a big impact on the rendering.
  14875. case 'OP':
  14876. case 'op':
  14877. case 'OPM':
  14878. case 'BG':
  14879. case 'BG2':
  14880. case 'UCR':
  14881. case 'UCR2':
  14882. case 'TR':
  14883. case 'TR2':
  14884. case 'HT':
  14885. case 'SM':
  14886. case 'SA':
  14887. case 'AIS':
  14888. case 'TK':
  14889. // TODO implement these operators.
  14890. info('graphic state operator ' + key);
  14891. break;
  14892. default:
  14893. info('Unknown graphic state operator ' + key);
  14894. break;
  14895. }
  14896. }
  14897. // This array holds the converted/processed state data.
  14898. var gStateObj = [];
  14899. var gStateMap = gState.map;
  14900. for (var key in gStateMap) {
  14901. var value = gStateMap[key];
  14902. setGStateForKey(gStateObj, key, value);
  14903. }
  14904. operatorList.addOp(OPS.setGState, [gStateObj]);
  14905. },
  14906. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  14907. resources,
  14908. parentOperatorList) {
  14909. function errorFont() {
  14910. return {
  14911. translated: new ErrorFont('Font ' + fontName + ' is not available'),
  14912. loadedName: 'g_font_error'
  14913. };
  14914. }
  14915. var fontRef;
  14916. if (font) { // Loading by ref.
  14917. assert(isRef(font));
  14918. fontRef = font;
  14919. } else { // Loading by name.
  14920. var fontRes = resources.get('Font');
  14921. if (fontRes) {
  14922. fontRef = fontRes.getRaw(fontName);
  14923. } else {
  14924. warn('fontRes not available');
  14925. return errorFont();
  14926. }
  14927. }
  14928. if (this.fontCache.has(fontRef)) {
  14929. return this.fontCache.get(fontRef);
  14930. }
  14931. font = xref.fetchIfRef(fontRef);
  14932. if (!isDict(font)) {
  14933. return errorFont();
  14934. }
  14935. var preEvaluatedFont = this.preEvaluateFont(font, xref);
  14936. var descriptor = preEvaluatedFont.descriptor;
  14937. var fontID = fontRef.num + '_' + fontRef.gen;
  14938. if (isDict(descriptor)) {
  14939. if (!descriptor.fontAliases) {
  14940. descriptor.fontAliases = Object.create(null);
  14941. }
  14942. var fontAliases = descriptor.fontAliases;
  14943. var hash = preEvaluatedFont.hash;
  14944. if (fontAliases[hash]) {
  14945. var aliasFontRef = fontAliases[hash].aliasRef;
  14946. if (aliasFontRef && this.fontCache.has(aliasFontRef)) {
  14947. this.fontCache.putAlias(fontRef, aliasFontRef);
  14948. var cachedFont = this.fontCache.get(fontRef);
  14949. return cachedFont;
  14950. }
  14951. }
  14952. if (!fontAliases[hash]) {
  14953. fontAliases[hash] = {
  14954. fontID: Font.getFontID()
  14955. };
  14956. }
  14957. fontAliases[hash].aliasRef = fontRef;
  14958. fontID = fontAliases[hash].fontID;
  14959. }
  14960. // Workaround for bad PDF generators that don't reference fonts
  14961. // properly, i.e. by not using an object identifier.
  14962. // Check if the fontRef is a Dict (as opposed to a standard object),
  14963. // in which case we don't cache the font and instead reference it by
  14964. // fontName in font.loadedName below.
  14965. var fontRefIsDict = isDict(fontRef);
  14966. if (!fontRefIsDict) {
  14967. this.fontCache.put(fontRef, font);
  14968. }
  14969. // Keep track of each font we translated so the caller can
  14970. // load them asynchronously before calling display on a page.
  14971. font.loadedName = 'g_font_' + (fontRefIsDict ?
  14972. fontName.replace(/\W/g, '') : fontID);
  14973. if (!font.translated) {
  14974. var translated;
  14975. try {
  14976. translated = this.translateFont(preEvaluatedFont, xref);
  14977. } catch (e) {
  14978. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  14979. translated = new ErrorFont(e instanceof Error ? e.message : e);
  14980. }
  14981. font.translated = translated;
  14982. }
  14983. if (font.translated.loadCharProcs) {
  14984. var charProcs = font.get('CharProcs').getAll();
  14985. var fontResources = (font.get('Resources') || resources);
  14986. var charProcKeys = Object.keys(charProcs);
  14987. var charProcOperatorList = {};
  14988. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  14989. var key = charProcKeys[i];
  14990. var glyphStream = charProcs[key];
  14991. var operatorList = this.getOperatorList(glyphStream, fontResources);
  14992. charProcOperatorList[key] = operatorList.getIR();
  14993. if (!parentOperatorList) {
  14994. continue;
  14995. }
  14996. // Add the dependencies to the parent operator list so they are
  14997. // resolved before sub operator list is executed synchronously.
  14998. parentOperatorList.addDependencies(charProcOperatorList.dependencies);
  14999. }
  15000. font.translated.charProcOperatorList = charProcOperatorList;
  15001. }
  15002. font.loaded = true;
  15003. return font;
  15004. },
  15005. getOperatorList: function PartialEvaluator_getOperatorList(stream,
  15006. resources,
  15007. operatorList,
  15008. initialState) {
  15009. var self = this;
  15010. var xref = this.xref;
  15011. var imageCache = {};
  15012. operatorList = (operatorList || new OperatorList());
  15013. resources = (resources || Dict.empty);
  15014. var xobjs = (resources.get('XObject') || Dict.empty);
  15015. var patterns = (resources.get('Pattern') || Dict.empty);
  15016. var stateManager = new StateManager(initialState || new EvalState());
  15017. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15018. var operation, i, ii;
  15019. while ((operation = preprocessor.read())) {
  15020. var args = operation.args;
  15021. var fn = operation.fn;
  15022. var shading;
  15023. switch (fn) {
  15024. case OPS.setStrokeColorN:
  15025. case OPS.setFillColorN:
  15026. if (args[args.length - 1].code) {
  15027. break;
  15028. }
  15029. // compile tiling patterns
  15030. var patternName = args[args.length - 1];
  15031. // SCN/scn applies patterns along with normal colors
  15032. var pattern;
  15033. if (isName(patternName) &&
  15034. (pattern = patterns.get(patternName.name))) {
  15035. var dict = (isStream(pattern) ? pattern.dict : pattern);
  15036. var typeNum = dict.get('PatternType');
  15037. if (typeNum == TILING_PATTERN) {
  15038. self.handleTilingType(fn, args, resources, pattern, dict,
  15039. operatorList);
  15040. args = [];
  15041. continue;
  15042. } else if (typeNum == SHADING_PATTERN) {
  15043. shading = dict.get('Shading');
  15044. var matrix = dict.get('Matrix');
  15045. pattern = Pattern.parseShading(shading, matrix, xref,
  15046. resources);
  15047. args = pattern.getIR();
  15048. } else {
  15049. error('Unkown PatternType ' + typeNum);
  15050. }
  15051. }
  15052. break;
  15053. case OPS.paintXObject:
  15054. if (args[0].code) {
  15055. break;
  15056. }
  15057. // eagerly compile XForm objects
  15058. var name = args[0].name;
  15059. if (imageCache.key === name) {
  15060. operatorList.addOp(imageCache.fn, imageCache.args);
  15061. args = [];
  15062. continue;
  15063. }
  15064. var xobj = xobjs.get(name);
  15065. if (xobj) {
  15066. assert(isStream(xobj), 'XObject should be a stream');
  15067. var type = xobj.dict.get('Subtype');
  15068. assert(isName(type),
  15069. 'XObject should have a Name subtype');
  15070. if ('Form' == type.name) {
  15071. stateManager.save();
  15072. self.buildFormXObject(resources, xobj, null, operatorList,
  15073. stateManager.state.clone());
  15074. args = [];
  15075. stateManager.restore();
  15076. continue;
  15077. } else if ('Image' == type.name) {
  15078. self.buildPaintImageXObject(resources, xobj, false,
  15079. operatorList, name, imageCache);
  15080. args = [];
  15081. continue;
  15082. } else {
  15083. error('Unhandled XObject subtype ' + type.name);
  15084. }
  15085. }
  15086. break;
  15087. case OPS.setFont:
  15088. // eagerly collect all fonts
  15089. var loadedName = self.handleSetFont(resources, args, null,
  15090. operatorList,
  15091. stateManager.state);
  15092. operatorList.addDependency(loadedName);
  15093. args[0] = loadedName;
  15094. break;
  15095. case OPS.endInlineImage:
  15096. var cacheKey = args[0].cacheKey;
  15097. if (cacheKey && imageCache.key === cacheKey) {
  15098. operatorList.addOp(imageCache.fn, imageCache.args);
  15099. args = [];
  15100. continue;
  15101. }
  15102. self.buildPaintImageXObject(resources, args[0], true,
  15103. operatorList, cacheKey, imageCache);
  15104. args = [];
  15105. continue;
  15106. case OPS.showText:
  15107. args[0] = this.handleText(args[0], stateManager.state);
  15108. break;
  15109. case OPS.showSpacedText:
  15110. var arr = args[0];
  15111. var arrLength = arr.length;
  15112. for (i = 0; i < arrLength; ++i) {
  15113. if (isString(arr[i])) {
  15114. arr[i] = this.handleText(arr[i], stateManager.state);
  15115. }
  15116. }
  15117. break;
  15118. case OPS.nextLineShowText:
  15119. args[0] = this.handleText(args[0], stateManager.state);
  15120. break;
  15121. case OPS.nextLineSetSpacingShowText:
  15122. args[2] = this.handleText(args[2], stateManager.state);
  15123. break;
  15124. case OPS.setTextRenderingMode:
  15125. stateManager.state.textRenderingMode = args[0];
  15126. break;
  15127. // Parse the ColorSpace data to a raw format.
  15128. case OPS.setFillColorSpace:
  15129. case OPS.setStrokeColorSpace:
  15130. args = [ColorSpace.parseToIR(args[0], xref, resources)];
  15131. break;
  15132. case OPS.shadingFill:
  15133. var shadingRes = resources.get('Shading');
  15134. if (!shadingRes) {
  15135. error('No shading resource found');
  15136. }
  15137. shading = shadingRes.get(args[0].name);
  15138. if (!shading) {
  15139. error('No shading object found');
  15140. }
  15141. var shadingFill = Pattern.parseShading(shading, null, xref,
  15142. resources);
  15143. var patternIR = shadingFill.getIR();
  15144. args = [patternIR];
  15145. fn = OPS.shadingFill;
  15146. break;
  15147. case OPS.setGState:
  15148. var dictName = args[0];
  15149. var extGState = resources.get('ExtGState');
  15150. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15151. break;
  15152. }
  15153. var gState = extGState.get(dictName.name);
  15154. self.setGState(resources, gState, operatorList, xref,
  15155. stateManager);
  15156. args = [];
  15157. continue;
  15158. }
  15159. operatorList.addOp(fn, args);
  15160. }
  15161. // Some PDFs don't close all restores inside object/form.
  15162. // Closing those for them.
  15163. for (i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  15164. operatorList.addOp(OPS.restore, []);
  15165. }
  15166. return operatorList;
  15167. },
  15168. getTextContent: function PartialEvaluator_getTextContent(stream, resources,
  15169. stateManager) {
  15170. stateManager = (stateManager || new StateManager(new TextState()));
  15171. var textContent = {
  15172. items: [],
  15173. styles: Object.create(null)
  15174. };
  15175. var bidiTexts = textContent.items;
  15176. var SPACE_FACTOR = 0.35;
  15177. var MULTI_SPACE_FACTOR = 1.5;
  15178. var self = this;
  15179. var xref = this.xref;
  15180. resources = (xref.fetchIfRef(resources) || Dict.empty);
  15181. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  15182. var xobjs = null;
  15183. var xobjsCache = {};
  15184. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  15185. var operation;
  15186. var textState;
  15187. function newTextChunk() {
  15188. var font = textState.font;
  15189. if (!(font.loadedName in textContent.styles)) {
  15190. textContent.styles[font.loadedName] = {
  15191. fontFamily: font.fallbackName,
  15192. ascent: font.ascent,
  15193. descent: font.descent,
  15194. vertical: font.vertical
  15195. };
  15196. }
  15197. return {
  15198. str: '',
  15199. dir: null,
  15200. width: 0,
  15201. height: 0,
  15202. transform: null,
  15203. fontName: font.loadedName
  15204. };
  15205. }
  15206. function runBidi(textChunk) {
  15207. var bidiResult = PDFJS.bidi(textChunk.str, -1, textState.font.vertical);
  15208. textChunk.str = bidiResult.str;
  15209. textChunk.dir = bidiResult.dir;
  15210. return textChunk;
  15211. }
  15212. function handleSetFont(fontName, fontRef) {
  15213. var font = textState.font = self.loadFont(fontName, fontRef, xref,
  15214. resources, null).translated;
  15215. textState.fontMatrix = font.fontMatrix ? font.fontMatrix :
  15216. FONT_IDENTITY_MATRIX;
  15217. }
  15218. function buildTextGeometry(chars, textChunk) {
  15219. var font = textState.font;
  15220. textChunk = textChunk || newTextChunk();
  15221. if (!textChunk.transform) {
  15222. // 9.4.4 Text Space Details
  15223. var tsm = [textState.fontSize * textState.textHScale, 0,
  15224. 0, textState.fontSize,
  15225. 0, textState.textRise];
  15226. var trm = textChunk.transform = Util.transform(textState.ctm,
  15227. Util.transform(textState.textMatrix, tsm));
  15228. if (!font.vertical) {
  15229. textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);
  15230. } else {
  15231. textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);
  15232. }
  15233. }
  15234. var width = 0;
  15235. var height = 0;
  15236. var glyphs = font.charsToGlyphs(chars);
  15237. var defaultVMetrics = font.defaultVMetrics;
  15238. for (var i = 0; i < glyphs.length; i++) {
  15239. var glyph = glyphs[i];
  15240. if (!glyph) { // Previous glyph was a space.
  15241. width += textState.wordSpacing * textState.textHScale;
  15242. continue;
  15243. }
  15244. var vMetricX = null;
  15245. var vMetricY = null;
  15246. var glyphWidth = null;
  15247. if (font.vertical) {
  15248. if (glyph.vmetric) {
  15249. glyphWidth = glyph.vmetric[0];
  15250. vMetricX = glyph.vmetric[1];
  15251. vMetricY = glyph.vmetric[2];
  15252. } else {
  15253. glyphWidth = glyph.width;
  15254. vMetricX = glyph.width * 0.5;
  15255. vMetricY = defaultVMetrics[2];
  15256. }
  15257. } else {
  15258. glyphWidth = glyph.width;
  15259. }
  15260. var glyphUnicode = glyph.unicode;
  15261. if (glyphUnicode in NormalizedUnicodes) {
  15262. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  15263. }
  15264. glyphUnicode = reverseIfRtl(glyphUnicode);
  15265. // The following will calculate the x and y of the individual glyphs.
  15266. // if (font.vertical) {
  15267. // tsm[4] -= vMetricX * Math.abs(textState.fontSize) *
  15268. // textState.fontMatrix[0];
  15269. // tsm[5] -= vMetricY * textState.fontSize *
  15270. // textState.fontMatrix[0];
  15271. // }
  15272. // var trm = Util.transform(textState.textMatrix, tsm);
  15273. // var pt = Util.applyTransform([trm[4], trm[5]], textState.ctm);
  15274. // var x = pt[0];
  15275. // var y = pt[1];
  15276. var tx = 0;
  15277. var ty = 0;
  15278. if (!font.vertical) {
  15279. var w0 = glyphWidth * textState.fontMatrix[0];
  15280. tx = (w0 * textState.fontSize + textState.charSpacing) *
  15281. textState.textHScale;
  15282. width += tx;
  15283. } else {
  15284. var w1 = glyphWidth * textState.fontMatrix[0];
  15285. ty = w1 * textState.fontSize + textState.charSpacing;
  15286. height += ty;
  15287. }
  15288. textState.translateTextMatrix(tx, ty);
  15289. textChunk.str += glyphUnicode;
  15290. }
  15291. var a = textState.textLineMatrix[0];
  15292. var b = textState.textLineMatrix[1];
  15293. var scaleLineX = Math.sqrt(a * a + b * b);
  15294. a = textState.ctm[0];
  15295. b = textState.ctm[1];
  15296. var scaleCtmX = Math.sqrt(a * a + b * b);
  15297. if (!font.vertical) {
  15298. textChunk.width += width * scaleCtmX * scaleLineX;
  15299. } else {
  15300. textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);
  15301. }
  15302. return textChunk;
  15303. }
  15304. while ((operation = preprocessor.read())) {
  15305. textState = stateManager.state;
  15306. var fn = operation.fn;
  15307. var args = operation.args;
  15308. switch (fn) {
  15309. case OPS.setFont:
  15310. handleSetFont(args[0].name);
  15311. textState.fontSize = args[1];
  15312. break;
  15313. case OPS.setTextRise:
  15314. textState.textRise = args[0];
  15315. break;
  15316. case OPS.setHScale:
  15317. textState.textHScale = args[0] / 100;
  15318. break;
  15319. case OPS.setLeading:
  15320. textState.leading = args[0];
  15321. break;
  15322. case OPS.moveText:
  15323. textState.translateTextLineMatrix(args[0], args[1]);
  15324. textState.textMatrix = textState.textLineMatrix.slice();
  15325. break;
  15326. case OPS.setLeadingMoveText:
  15327. textState.leading = -args[1];
  15328. textState.translateTextLineMatrix(args[0], args[1]);
  15329. textState.textMatrix = textState.textLineMatrix.slice();
  15330. break;
  15331. case OPS.nextLine:
  15332. textState.carriageReturn();
  15333. break;
  15334. case OPS.setTextMatrix:
  15335. textState.setTextMatrix(args[0], args[1], args[2], args[3],
  15336. args[4], args[5]);
  15337. textState.setTextLineMatrix(args[0], args[1], args[2], args[3],
  15338. args[4], args[5]);
  15339. break;
  15340. case OPS.setCharSpacing:
  15341. textState.charSpacing = args[0];
  15342. break;
  15343. case OPS.setWordSpacing:
  15344. textState.wordSpacing = args[0];
  15345. break;
  15346. case OPS.beginText:
  15347. textState.textMatrix = IDENTITY_MATRIX.slice();
  15348. textState.textLineMatrix = IDENTITY_MATRIX.slice();
  15349. break;
  15350. case OPS.showSpacedText:
  15351. var items = args[0];
  15352. var textChunk = newTextChunk();
  15353. var offset;
  15354. for (var j = 0, jj = items.length; j < jj; j++) {
  15355. if (typeof items[j] === 'string') {
  15356. buildTextGeometry(items[j], textChunk);
  15357. } else {
  15358. var val = items[j] / 1000;
  15359. if (!textState.font.vertical) {
  15360. offset = -val * textState.fontSize * textState.textHScale *
  15361. textState.textMatrix[0];
  15362. textState.translateTextMatrix(offset, 0);
  15363. textChunk.width += offset;
  15364. } else {
  15365. offset = -val * textState.fontSize * textState.textMatrix[3];
  15366. textState.translateTextMatrix(0, offset);
  15367. textChunk.height += offset;
  15368. }
  15369. if (items[j] < 0 && textState.font.spaceWidth > 0) {
  15370. var fakeSpaces = -items[j] / textState.font.spaceWidth;
  15371. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  15372. fakeSpaces = Math.round(fakeSpaces);
  15373. while (fakeSpaces--) {
  15374. textChunk.str += ' ';
  15375. }
  15376. } else if (fakeSpaces > SPACE_FACTOR) {
  15377. textChunk.str += ' ';
  15378. }
  15379. }
  15380. }
  15381. }
  15382. bidiTexts.push(runBidi(textChunk));
  15383. break;
  15384. case OPS.showText:
  15385. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15386. break;
  15387. case OPS.nextLineShowText:
  15388. textState.carriageReturn();
  15389. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  15390. break;
  15391. case OPS.nextLineSetSpacingShowText:
  15392. textState.wordSpacing = args[0];
  15393. textState.charSpacing = args[1];
  15394. textState.carriageReturn();
  15395. bidiTexts.push(runBidi(buildTextGeometry(args[2])));
  15396. break;
  15397. case OPS.paintXObject:
  15398. if (args[0].code) {
  15399. break;
  15400. }
  15401. if (!xobjs) {
  15402. xobjs = (resources.get('XObject') || Dict.empty);
  15403. }
  15404. var name = args[0].name;
  15405. if (xobjsCache.key === name) {
  15406. if (xobjsCache.texts) {
  15407. Util.concatenateToArray(bidiTexts, xobjsCache.texts.items);
  15408. Util.extendObj(textContent.styles, xobjsCache.texts.styles);
  15409. }
  15410. break;
  15411. }
  15412. var xobj = xobjs.get(name);
  15413. if (!xobj) {
  15414. break;
  15415. }
  15416. assert(isStream(xobj), 'XObject should be a stream');
  15417. var type = xobj.dict.get('Subtype');
  15418. assert(isName(type),
  15419. 'XObject should have a Name subtype');
  15420. if ('Form' !== type.name) {
  15421. xobjsCache.key = name;
  15422. xobjsCache.texts = null;
  15423. break;
  15424. }
  15425. stateManager.save();
  15426. var matrix = xobj.dict.get('Matrix');
  15427. if (isArray(matrix) && matrix.length === 6) {
  15428. stateManager.transform(matrix);
  15429. }
  15430. var formTextContent = this.getTextContent(
  15431. xobj,
  15432. xobj.dict.get('Resources') || resources,
  15433. stateManager
  15434. );
  15435. Util.concatenateToArray(bidiTexts, formTextContent.items);
  15436. Util.extendObj(textContent.styles, formTextContent.styles);
  15437. stateManager.restore();
  15438. xobjsCache.key = name;
  15439. xobjsCache.texts = formTextContent;
  15440. break;
  15441. case OPS.setGState:
  15442. var dictName = args[0];
  15443. var extGState = resources.get('ExtGState');
  15444. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  15445. break;
  15446. }
  15447. var gsState = extGState.get(dictName.name);
  15448. for (var i = 0; i < gsState.length; i++) {
  15449. if (gsState[i] === 'Font') {
  15450. handleSetFont(args[0].name);
  15451. }
  15452. }
  15453. break;
  15454. } // switch
  15455. } // while
  15456. return textContent;
  15457. },
  15458. extractDataStructures: function
  15459. partialEvaluatorExtractDataStructures(dict, baseDict,
  15460. xref, properties) {
  15461. // 9.10.2
  15462. var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode'));
  15463. if (toUnicode) {
  15464. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  15465. }
  15466. if (properties.composite) {
  15467. // CIDSystemInfo helps to match CID to glyphs
  15468. var cidSystemInfo = dict.get('CIDSystemInfo');
  15469. if (isDict(cidSystemInfo)) {
  15470. properties.cidSystemInfo = {
  15471. registry: cidSystemInfo.get('Registry'),
  15472. ordering: cidSystemInfo.get('Ordering'),
  15473. supplement: cidSystemInfo.get('Supplement')
  15474. };
  15475. }
  15476. var cidToGidMap = dict.get('CIDToGIDMap');
  15477. if (isStream(cidToGidMap)) {
  15478. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  15479. }
  15480. }
  15481. // Based on 9.6.6 of the spec the encoding can come from multiple places
  15482. // and depends on the font type. The base encoding and differences are
  15483. // read here, but the encoding that is actually used is chosen during
  15484. // glyph mapping in the font.
  15485. // TODO: Loading the built in encoding in the font would allow the
  15486. // differences to be merged in here not require us to hold on to it.
  15487. var differences = [];
  15488. var baseEncodingName = null;
  15489. var encoding;
  15490. if (dict.has('Encoding')) {
  15491. encoding = dict.get('Encoding');
  15492. if (isDict(encoding)) {
  15493. baseEncodingName = encoding.get('BaseEncoding');
  15494. baseEncodingName = (isName(baseEncodingName) ?
  15495. baseEncodingName.name : null);
  15496. // Load the differences between the base and original
  15497. if (encoding.has('Differences')) {
  15498. var diffEncoding = encoding.get('Differences');
  15499. var index = 0;
  15500. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  15501. var data = diffEncoding[j];
  15502. if (isNum(data)) {
  15503. index = data;
  15504. } else {
  15505. differences[index++] = data.name;
  15506. }
  15507. }
  15508. }
  15509. } else if (isName(encoding)) {
  15510. baseEncodingName = encoding.name;
  15511. } else {
  15512. error('Encoding is not a Name nor a Dict');
  15513. }
  15514. // According to table 114 if the encoding is a named encoding it must be
  15515. // one of these predefined encodings.
  15516. if ((baseEncodingName !== 'MacRomanEncoding' &&
  15517. baseEncodingName !== 'MacExpertEncoding' &&
  15518. baseEncodingName !== 'WinAnsiEncoding')) {
  15519. baseEncodingName = null;
  15520. }
  15521. }
  15522. if (baseEncodingName) {
  15523. properties.defaultEncoding = Encodings[baseEncodingName].slice();
  15524. } else {
  15525. encoding = (properties.type === 'TrueType' ?
  15526. Encodings.WinAnsiEncoding : Encodings.StandardEncoding);
  15527. // The Symbolic attribute can be misused for regular fonts
  15528. // Heuristic: we have to check if the font is a standard one also
  15529. if (!!(properties.flags & FontFlags.Symbolic)) {
  15530. encoding = (!properties.file && /Symbol/i.test(properties.name) ?
  15531. Encodings.SymbolSetEncoding :
  15532. Encodings.MacRomanEncoding);
  15533. }
  15534. properties.defaultEncoding = encoding;
  15535. }
  15536. properties.differences = differences;
  15537. properties.baseEncodingName = baseEncodingName;
  15538. properties.dict = dict;
  15539. },
  15540. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) {
  15541. var cmapObj = toUnicode;
  15542. if (isName(cmapObj)) {
  15543. return CMapFactory.create(cmapObj).map;
  15544. } else if (isStream(cmapObj)) {
  15545. var cmap = CMapFactory.create(cmapObj).map;
  15546. // Convert UTF-16BE
  15547. // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
  15548. // to iterate over all keys.
  15549. cmap.forEach(function(token, i) {
  15550. var str = [];
  15551. for (var k = 0; k < token.length; k += 2) {
  15552. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15553. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  15554. str.push(w1);
  15555. continue;
  15556. }
  15557. k += 2;
  15558. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  15559. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  15560. }
  15561. cmap[i] = String.fromCharCode.apply(String, str);
  15562. });
  15563. return cmap;
  15564. }
  15565. return null;
  15566. },
  15567. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  15568. // Extract the encoding from the CIDToGIDMap
  15569. var glyphsData = cidToGidStream.getBytes();
  15570. // Set encoding 0 to later verify the font has an encoding
  15571. var result = [];
  15572. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  15573. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  15574. if (glyphID === 0) {
  15575. continue;
  15576. }
  15577. var code = j >> 1;
  15578. result[code] = glyphID;
  15579. }
  15580. return result;
  15581. },
  15582. extractWidths: function PartialEvaluator_extractWidths(dict, xref,
  15583. descriptor,
  15584. properties) {
  15585. var glyphsWidths = [];
  15586. var defaultWidth = 0;
  15587. var glyphsVMetrics = [];
  15588. var defaultVMetrics;
  15589. var i, ii, j, jj, start, code, widths;
  15590. if (properties.composite) {
  15591. defaultWidth = dict.get('DW') || 1000;
  15592. widths = dict.get('W');
  15593. if (widths) {
  15594. for (i = 0, ii = widths.length; i < ii; i++) {
  15595. start = widths[i++];
  15596. code = xref.fetchIfRef(widths[i]);
  15597. if (isArray(code)) {
  15598. for (j = 0, jj = code.length; j < jj; j++) {
  15599. glyphsWidths[start++] = code[j];
  15600. }
  15601. } else {
  15602. var width = widths[++i];
  15603. for (j = start; j <= code; j++) {
  15604. glyphsWidths[j] = width;
  15605. }
  15606. }
  15607. }
  15608. }
  15609. if (properties.vertical) {
  15610. var vmetrics = (dict.get('DW2') || [880, -1000]);
  15611. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  15612. vmetrics = dict.get('W2');
  15613. if (vmetrics) {
  15614. for (i = 0, ii = vmetrics.length; i < ii; i++) {
  15615. start = vmetrics[i++];
  15616. code = xref.fetchIfRef(vmetrics[i]);
  15617. if (isArray(code)) {
  15618. for (j = 0, jj = code.length; j < jj; j++) {
  15619. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  15620. }
  15621. } else {
  15622. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  15623. for (j = start; j <= code; j++) {
  15624. glyphsVMetrics[j] = vmetric;
  15625. }
  15626. }
  15627. }
  15628. }
  15629. }
  15630. } else {
  15631. var firstChar = properties.firstChar;
  15632. widths = dict.get('Widths');
  15633. if (widths) {
  15634. j = firstChar;
  15635. for (i = 0, ii = widths.length; i < ii; i++) {
  15636. glyphsWidths[j++] = widths[i];
  15637. }
  15638. defaultWidth = (parseFloat(descriptor.get('MissingWidth')) || 0);
  15639. } else {
  15640. // Trying get the BaseFont metrics (see comment above).
  15641. var baseFontName = dict.get('BaseFont');
  15642. if (isName(baseFontName)) {
  15643. var metrics = this.getBaseFontMetrics(baseFontName.name);
  15644. glyphsWidths = this.buildCharCodeToWidth(metrics.widths,
  15645. properties);
  15646. defaultWidth = metrics.defaultWidth;
  15647. }
  15648. }
  15649. }
  15650. // Heuristic: detection of monospace font by checking all non-zero widths
  15651. var isMonospace = true;
  15652. var firstWidth = defaultWidth;
  15653. for (var glyph in glyphsWidths) {
  15654. var glyphWidth = glyphsWidths[glyph];
  15655. if (!glyphWidth) {
  15656. continue;
  15657. }
  15658. if (!firstWidth) {
  15659. firstWidth = glyphWidth;
  15660. continue;
  15661. }
  15662. if (firstWidth != glyphWidth) {
  15663. isMonospace = false;
  15664. break;
  15665. }
  15666. }
  15667. if (isMonospace) {
  15668. properties.flags |= FontFlags.FixedPitch;
  15669. }
  15670. properties.defaultWidth = defaultWidth;
  15671. properties.widths = glyphsWidths;
  15672. properties.defaultVMetrics = defaultVMetrics;
  15673. properties.vmetrics = glyphsVMetrics;
  15674. },
  15675. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  15676. // Simulating descriptor flags attribute
  15677. var fontNameWoStyle = baseFontName.split('-')[0];
  15678. return (fontNameWoStyle in serifFonts) ||
  15679. (fontNameWoStyle.search(/serif/gi) !== -1);
  15680. },
  15681. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  15682. var defaultWidth = 0;
  15683. var widths = [];
  15684. var monospace = false;
  15685. var lookupName = (stdFontMap[name] || name);
  15686. if (!(lookupName in Metrics)) {
  15687. // Use default fonts for looking up font metrics if the passed
  15688. // font is not a base font
  15689. if (this.isSerifFont(name)) {
  15690. lookupName = 'Times-Roman';
  15691. } else {
  15692. lookupName = 'Helvetica';
  15693. }
  15694. }
  15695. var glyphWidths = Metrics[lookupName];
  15696. if (isNum(glyphWidths)) {
  15697. defaultWidth = glyphWidths;
  15698. monospace = true;
  15699. } else {
  15700. widths = glyphWidths;
  15701. }
  15702. return {
  15703. defaultWidth: defaultWidth,
  15704. monospace: monospace,
  15705. widths: widths
  15706. };
  15707. },
  15708. buildCharCodeToWidth:
  15709. function PartialEvaluator_bulildCharCodeToWidth(widthsByGlyphName,
  15710. properties) {
  15711. var widths = Object.create(null);
  15712. var differences = properties.differences;
  15713. var encoding = properties.defaultEncoding;
  15714. for (var charCode = 0; charCode < 256; charCode++) {
  15715. if (charCode in differences &&
  15716. widthsByGlyphName[differences[charCode]]) {
  15717. widths[charCode] = widthsByGlyphName[differences[charCode]];
  15718. continue;
  15719. }
  15720. if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) {
  15721. widths[charCode] = widthsByGlyphName[encoding[charCode]];
  15722. continue;
  15723. }
  15724. }
  15725. return widths;
  15726. },
  15727. preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict, xref) {
  15728. var baseDict = dict;
  15729. var type = dict.get('Subtype');
  15730. assert(isName(type), 'invalid font Subtype');
  15731. var composite = false;
  15732. var uint8array;
  15733. if (type.name == 'Type0') {
  15734. // If font is a composite
  15735. // - get the descendant font
  15736. // - set the type according to the descendant font
  15737. // - get the FontDescriptor from the descendant font
  15738. var df = dict.get('DescendantFonts');
  15739. if (!df) {
  15740. error('Descendant fonts are not specified');
  15741. }
  15742. dict = (isArray(df) ? xref.fetchIfRef(df[0]) : df);
  15743. type = dict.get('Subtype');
  15744. assert(isName(type), 'invalid font Subtype');
  15745. composite = true;
  15746. }
  15747. var descriptor = dict.get('FontDescriptor');
  15748. if (descriptor) {
  15749. var hash = new MurmurHash3_64();
  15750. var encoding = baseDict.getRaw('Encoding');
  15751. if (isName(encoding)) {
  15752. hash.update(encoding.name);
  15753. } else if (isRef(encoding)) {
  15754. hash.update(encoding.num + '_' + encoding.gen);
  15755. }
  15756. var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode');
  15757. if (isStream(toUnicode)) {
  15758. var stream = toUnicode.str || toUnicode;
  15759. uint8array = stream.buffer ?
  15760. new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) :
  15761. new Uint8Array(stream.bytes.buffer,
  15762. stream.start, stream.end - stream.start);
  15763. hash.update(uint8array);
  15764. } else if (isName(toUnicode)) {
  15765. hash.update(toUnicode.name);
  15766. }
  15767. var widths = dict.get('Widths') || baseDict.get('Widths');
  15768. if (widths) {
  15769. uint8array = new Uint8Array(new Uint32Array(widths).buffer);
  15770. hash.update(uint8array);
  15771. }
  15772. }
  15773. return {
  15774. descriptor: descriptor,
  15775. dict: dict,
  15776. baseDict: baseDict,
  15777. composite: composite,
  15778. hash: hash ? hash.hexdigest() : ''
  15779. };
  15780. },
  15781. translateFont: function PartialEvaluator_translateFont(preEvaluatedFont,
  15782. xref) {
  15783. var baseDict = preEvaluatedFont.baseDict;
  15784. var dict = preEvaluatedFont.dict;
  15785. var composite = preEvaluatedFont.composite;
  15786. var descriptor = preEvaluatedFont.descriptor;
  15787. var type = dict.get('Subtype');
  15788. var maxCharIndex = (composite ? 0xFFFF : 0xFF);
  15789. var properties;
  15790. if (!descriptor) {
  15791. if (type.name == 'Type3') {
  15792. // FontDescriptor is only required for Type3 fonts when the document
  15793. // is a tagged pdf. Create a barbebones one to get by.
  15794. descriptor = new Dict(null);
  15795. descriptor.set('FontName', Name.get(type.name));
  15796. } else {
  15797. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  15798. // FontDescriptor was not required.
  15799. // This case is here for compatibility.
  15800. var baseFontName = dict.get('BaseFont');
  15801. if (!isName(baseFontName)) {
  15802. error('Base font is not specified');
  15803. }
  15804. // Using base font name as a font name.
  15805. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  15806. var metrics = this.getBaseFontMetrics(baseFontName);
  15807. // Simulating descriptor flags attribute
  15808. var fontNameWoStyle = baseFontName.split('-')[0];
  15809. var flags =
  15810. (this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  15811. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  15812. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  15813. FontFlags.Nonsymbolic);
  15814. properties = {
  15815. type: type.name,
  15816. name: baseFontName,
  15817. widths: metrics.widths,
  15818. defaultWidth: metrics.defaultWidth,
  15819. flags: flags,
  15820. firstChar: 0,
  15821. lastChar: maxCharIndex
  15822. };
  15823. this.extractDataStructures(dict, dict, xref, properties);
  15824. properties.widths = this.buildCharCodeToWidth(metrics.widths,
  15825. properties);
  15826. return new Font(baseFontName, null, properties);
  15827. }
  15828. }
  15829. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  15830. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  15831. // to ignore this rule when a variant of a standart font is used.
  15832. // TODO Fill the width array depending on which of the base font this is
  15833. // a variant.
  15834. var firstChar = (dict.get('FirstChar') || 0);
  15835. var lastChar = (dict.get('LastChar') || maxCharIndex);
  15836. var fontName = descriptor.get('FontName');
  15837. var baseFont = dict.get('BaseFont');
  15838. // Some bad PDFs have a string as the font name.
  15839. if (isString(fontName)) {
  15840. fontName = Name.get(fontName);
  15841. }
  15842. if (isString(baseFont)) {
  15843. baseFont = Name.get(baseFont);
  15844. }
  15845. if (type.name !== 'Type3') {
  15846. var fontNameStr = fontName && fontName.name;
  15847. var baseFontStr = baseFont && baseFont.name;
  15848. if (fontNameStr !== baseFontStr) {
  15849. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  15850. '" but should be the same as the Font\'s BaseFont "' +
  15851. baseFontStr + '"');
  15852. // Workaround for cases where e.g. fontNameStr = 'Arial' and
  15853. // baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
  15854. if (fontNameStr && baseFontStr &&
  15855. baseFontStr.search(fontNameStr) === 0) {
  15856. fontName = baseFont;
  15857. }
  15858. }
  15859. }
  15860. fontName = (fontName || baseFont);
  15861. assert(isName(fontName), 'invalid font name');
  15862. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  15863. if (fontFile) {
  15864. if (fontFile.dict) {
  15865. var subtype = fontFile.dict.get('Subtype');
  15866. if (subtype) {
  15867. subtype = subtype.name;
  15868. }
  15869. var length1 = fontFile.dict.get('Length1');
  15870. var length2 = fontFile.dict.get('Length2');
  15871. }
  15872. }
  15873. properties = {
  15874. type: type.name,
  15875. name: fontName.name,
  15876. subtype: subtype,
  15877. file: fontFile,
  15878. length1: length1,
  15879. length2: length2,
  15880. loadedName: baseDict.loadedName,
  15881. composite: composite,
  15882. wideChars: composite,
  15883. fixedPitch: false,
  15884. fontMatrix: (dict.get('FontMatrix') || FONT_IDENTITY_MATRIX),
  15885. firstChar: firstChar || 0,
  15886. lastChar: (lastChar || maxCharIndex),
  15887. bbox: descriptor.get('FontBBox'),
  15888. ascent: descriptor.get('Ascent'),
  15889. descent: descriptor.get('Descent'),
  15890. xHeight: descriptor.get('XHeight'),
  15891. capHeight: descriptor.get('CapHeight'),
  15892. flags: descriptor.get('Flags'),
  15893. italicAngle: descriptor.get('ItalicAngle'),
  15894. coded: false
  15895. };
  15896. if (composite) {
  15897. var cidEncoding = baseDict.get('Encoding');
  15898. if (isName(cidEncoding)) {
  15899. properties.cidEncoding = cidEncoding.name;
  15900. }
  15901. properties.cMap = CMapFactory.create(cidEncoding,
  15902. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  15903. properties.vertical = properties.cMap.vertical;
  15904. }
  15905. this.extractDataStructures(dict, baseDict, xref, properties);
  15906. this.extractWidths(dict, xref, descriptor, properties);
  15907. if (type.name === 'Type3') {
  15908. properties.coded = true;
  15909. }
  15910. return new Font(fontName.name, fontFile, properties);
  15911. }
  15912. };
  15913. return PartialEvaluator;
  15914. })();
  15915. var OperatorList = (function OperatorListClosure() {
  15916. var CHUNK_SIZE = 1000;
  15917. var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
  15918. function getTransfers(queue) {
  15919. var transfers = [];
  15920. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  15921. for (var i = 0, ii = queue.length; i < ii; i++) {
  15922. switch (fnArray[i]) {
  15923. case OPS.paintInlineImageXObject:
  15924. case OPS.paintInlineImageXObjectGroup:
  15925. case OPS.paintImageMaskXObject:
  15926. var arg = argsArray[i][0]; // first param in imgData
  15927. if (!arg.cached) {
  15928. transfers.push(arg.data.buffer);
  15929. }
  15930. break;
  15931. }
  15932. }
  15933. return transfers;
  15934. }
  15935. function OperatorList(intent, messageHandler, pageIndex) {
  15936. this.messageHandler = messageHandler;
  15937. this.fnArray = [];
  15938. this.argsArray = [];
  15939. this.dependencies = {};
  15940. this.pageIndex = pageIndex;
  15941. this.intent = intent;
  15942. }
  15943. OperatorList.prototype = {
  15944. get length() {
  15945. return this.argsArray.length;
  15946. },
  15947. addOp: function(fn, args) {
  15948. this.fnArray.push(fn);
  15949. this.argsArray.push(args);
  15950. if (this.messageHandler) {
  15951. if (this.fnArray.length >= CHUNK_SIZE) {
  15952. this.flush();
  15953. } else if (this.fnArray.length >= CHUNK_SIZE_ABOUT &&
  15954. (fn === OPS.restore || fn === OPS.endText)) {
  15955. // heuristic to flush on boundary of restore or endText
  15956. this.flush();
  15957. }
  15958. }
  15959. },
  15960. addDependency: function(dependency) {
  15961. if (dependency in this.dependencies) {
  15962. return;
  15963. }
  15964. this.dependencies[dependency] = true;
  15965. this.addOp(OPS.dependency, [dependency]);
  15966. },
  15967. addDependencies: function(dependencies) {
  15968. for (var key in dependencies) {
  15969. this.addDependency(key);
  15970. }
  15971. },
  15972. addOpList: function(opList) {
  15973. Util.extendObj(this.dependencies, opList.dependencies);
  15974. for (var i = 0, ii = opList.length; i < ii; i++) {
  15975. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  15976. }
  15977. },
  15978. getIR: function() {
  15979. return {
  15980. fnArray: this.fnArray,
  15981. argsArray: this.argsArray,
  15982. length: this.length
  15983. };
  15984. },
  15985. flush: function(lastChunk) {
  15986. new QueueOptimizer().optimize(this);
  15987. var transfers = getTransfers(this);
  15988. this.messageHandler.send('RenderPageChunk', {
  15989. operatorList: {
  15990. fnArray: this.fnArray,
  15991. argsArray: this.argsArray,
  15992. lastChunk: lastChunk,
  15993. length: this.length
  15994. },
  15995. pageIndex: this.pageIndex,
  15996. intent: this.intent
  15997. }, null, transfers);
  15998. this.dependencies = {};
  15999. this.fnArray.length = 0;
  16000. this.argsArray.length = 0;
  16001. }
  16002. };
  16003. return OperatorList;
  16004. })();
  16005. var StateManager = (function StateManagerClosure() {
  16006. function StateManager(initialState) {
  16007. this.state = initialState;
  16008. this.stateStack = [];
  16009. }
  16010. StateManager.prototype = {
  16011. save: function () {
  16012. var old = this.state;
  16013. this.stateStack.push(this.state);
  16014. this.state = old.clone();
  16015. },
  16016. restore: function () {
  16017. var prev = this.stateStack.pop();
  16018. if (prev) {
  16019. this.state = prev;
  16020. }
  16021. },
  16022. transform: function (args) {
  16023. this.state.ctm = Util.transform(this.state.ctm, args);
  16024. }
  16025. };
  16026. return StateManager;
  16027. })();
  16028. var TextState = (function TextStateClosure() {
  16029. function TextState() {
  16030. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16031. this.fontSize = 0;
  16032. this.font = null;
  16033. this.fontMatrix = FONT_IDENTITY_MATRIX;
  16034. this.textMatrix = IDENTITY_MATRIX.slice();
  16035. this.textLineMatrix = IDENTITY_MATRIX.slice();
  16036. this.charSpacing = 0;
  16037. this.wordSpacing = 0;
  16038. this.leading = 0;
  16039. this.textHScale = 1;
  16040. this.textRise = 0;
  16041. }
  16042. TextState.prototype = {
  16043. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16044. var m = this.textMatrix;
  16045. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16046. },
  16047. setTextLineMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  16048. var m = this.textLineMatrix;
  16049. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  16050. },
  16051. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  16052. var m = this.textMatrix;
  16053. m[4] = m[0] * x + m[2] * y + m[4];
  16054. m[5] = m[1] * x + m[3] * y + m[5];
  16055. },
  16056. translateTextLineMatrix: function TextState_translateTextMatrix(x, y) {
  16057. var m = this.textLineMatrix;
  16058. m[4] = m[0] * x + m[2] * y + m[4];
  16059. m[5] = m[1] * x + m[3] * y + m[5];
  16060. },
  16061. calcRenderMatrix: function TextState_calcRendeMatrix(ctm) {
  16062. // 9.4.4 Text Space Details
  16063. var tsm = [this.fontSize * this.textHScale, 0,
  16064. 0, this.fontSize,
  16065. 0, this.textRise];
  16066. return Util.transform(ctm, Util.transform(this.textMatrix, tsm));
  16067. },
  16068. carriageReturn: function TextState_carriageReturn() {
  16069. this.translateTextLineMatrix(0, -this.leading);
  16070. this.textMatrix = this.textLineMatrix.slice();
  16071. },
  16072. clone: function TextState_clone() {
  16073. var clone = Object.create(this);
  16074. clone.textMatrix = this.textMatrix.slice();
  16075. clone.textLineMatrix = this.textLineMatrix.slice();
  16076. clone.fontMatrix = this.fontMatrix.slice();
  16077. return clone;
  16078. }
  16079. };
  16080. return TextState;
  16081. })();
  16082. var EvalState = (function EvalStateClosure() {
  16083. function EvalState() {
  16084. this.ctm = new Float32Array(IDENTITY_MATRIX);
  16085. this.font = null;
  16086. this.textRenderingMode = TextRenderingMode.FILL;
  16087. }
  16088. EvalState.prototype = {
  16089. clone: function CanvasExtraState_clone() {
  16090. return Object.create(this);
  16091. },
  16092. };
  16093. return EvalState;
  16094. })();
  16095. var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
  16096. // Specifies properties for each command
  16097. //
  16098. // If variableArgs === true: [0, `numArgs`] expected
  16099. // If variableArgs === false: exactly `numArgs` expected
  16100. var OP_MAP = {
  16101. // Graphic state
  16102. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  16103. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  16104. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  16105. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  16106. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  16107. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  16108. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  16109. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  16110. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  16111. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  16112. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  16113. // Path
  16114. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  16115. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  16116. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  16117. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  16118. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  16119. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  16120. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  16121. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  16122. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  16123. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16124. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  16125. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  16126. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  16127. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  16128. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  16129. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  16130. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  16131. // Clipping
  16132. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  16133. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  16134. // Text
  16135. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  16136. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  16137. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  16138. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  16139. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  16140. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  16141. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  16142. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  16143. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  16144. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  16145. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  16146. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  16147. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  16148. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  16149. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  16150. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  16151. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  16152. variableArgs: false },
  16153. // Type3 fonts
  16154. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  16155. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  16156. // Color
  16157. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  16158. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  16159. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  16160. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  16161. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  16162. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  16163. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  16164. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  16165. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  16166. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  16167. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  16168. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  16169. // Shading
  16170. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  16171. // Images
  16172. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  16173. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  16174. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  16175. // XObjects
  16176. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  16177. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  16178. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  16179. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  16180. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  16181. variableArgs: false },
  16182. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  16183. // Compatibility
  16184. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  16185. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  16186. // (reserved partial commands for the lexer)
  16187. BM: null,
  16188. BD: null,
  16189. 'true': null,
  16190. fa: null,
  16191. fal: null,
  16192. fals: null,
  16193. 'false': null,
  16194. nu: null,
  16195. nul: null,
  16196. 'null': null
  16197. };
  16198. function EvaluatorPreprocessor(stream, xref, stateManager) {
  16199. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  16200. // dictionary
  16201. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  16202. this.stateManager = stateManager;
  16203. }
  16204. EvaluatorPreprocessor.prototype = {
  16205. get savedStatesDepth() {
  16206. return this.stateManager.stateStack.length;
  16207. },
  16208. read: function EvaluatorPreprocessor_read() {
  16209. var args = [];
  16210. while (true) {
  16211. var obj = this.parser.getObj();
  16212. if (isEOF(obj)) {
  16213. return null; // no more commands
  16214. }
  16215. if (!isCmd(obj)) {
  16216. // argument
  16217. if (obj !== null && obj !== undefined) {
  16218. args.push((obj instanceof Dict ? obj.getAll() : obj));
  16219. assert(args.length <= 33, 'Too many arguments');
  16220. }
  16221. continue;
  16222. }
  16223. var cmd = obj.cmd;
  16224. // Check that the command is valid
  16225. var opSpec = OP_MAP[cmd];
  16226. if (!opSpec) {
  16227. warn('Unknown command "' + cmd + '"');
  16228. continue;
  16229. }
  16230. var fn = opSpec.id;
  16231. // Validate the number of arguments for the command
  16232. if (opSpec.variableArgs) {
  16233. if (args.length > opSpec.numArgs) {
  16234. info('Command ' + fn + ': expected [0,' + opSpec.numArgs +
  16235. '] args, but received ' + args.length + ' args');
  16236. }
  16237. } else {
  16238. if (args.length < opSpec.numArgs) {
  16239. // If we receive too few args, it's not possible to possible
  16240. // to execute the command, so skip the command
  16241. info('Command ' + fn + ': because expected ' +
  16242. opSpec.numArgs + ' args, but received ' + args.length +
  16243. ' args; skipping');
  16244. args = [];
  16245. continue;
  16246. } else if (args.length > opSpec.numArgs) {
  16247. info('Command ' + fn + ': expected ' + opSpec.numArgs +
  16248. ' args, but received ' + args.length + ' args');
  16249. }
  16250. }
  16251. // TODO figure out how to type-check vararg functions
  16252. this.preprocessCommand(fn, args);
  16253. return { fn: fn, args: args };
  16254. }
  16255. },
  16256. preprocessCommand:
  16257. function EvaluatorPreprocessor_preprocessCommand(fn, args) {
  16258. switch (fn | 0) {
  16259. case OPS.save:
  16260. this.stateManager.save();
  16261. break;
  16262. case OPS.restore:
  16263. this.stateManager.restore();
  16264. break;
  16265. case OPS.transform:
  16266. this.stateManager.transform(args);
  16267. break;
  16268. }
  16269. }
  16270. };
  16271. return EvaluatorPreprocessor;
  16272. })();
  16273. var QueueOptimizer = (function QueueOptimizerClosure() {
  16274. function addState(parentState, pattern, fn) {
  16275. var state = parentState;
  16276. for (var i = 0, ii = pattern.length - 1; i < ii; i++) {
  16277. var item = pattern[i];
  16278. state = (state[item] || (state[item] = []));
  16279. }
  16280. state[pattern[pattern.length - 1]] = fn;
  16281. }
  16282. function handlePaintSolidColorImageMask(index, count, fnArray, argsArray) {
  16283. // Handles special case of mainly LaTeX documents which
  16284. // use image masks to draw lines with the current fill style.
  16285. // 'count' groups of (save, transform, paintImageMaskXObject, restore)+
  16286. // have been found at index.
  16287. for (var i = 0; i < count; i++) {
  16288. var arg = argsArray[index + 4 * i + 2];
  16289. var imageMask = arg.length == 1 && arg[0];
  16290. if (imageMask && imageMask.width == 1 && imageMask.height == 1 &&
  16291. (!imageMask.data.length || (imageMask.data.length == 1 &&
  16292. imageMask.data[0] === 0))) {
  16293. fnArray[index + 4 * i + 2] = OPS.paintSolidColorImageMask;
  16294. continue;
  16295. }
  16296. break;
  16297. }
  16298. return count - i;
  16299. }
  16300. var InitialState = [];
  16301. addState(InitialState,
  16302. [OPS.save, OPS.transform, OPS.paintInlineImageXObject, OPS.restore],
  16303. function foundInlineImageGroup(context) {
  16304. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  16305. // searching for (save, transform, paintInlineImageXObject, restore)+
  16306. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  16307. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  16308. var MAX_WIDTH = 1000;
  16309. var IMAGE_PADDING = 1;
  16310. var fnArray = context.fnArray, argsArray = context.argsArray;
  16311. var j = context.currentOperation - 3, i = j + 4;
  16312. var ii = fnArray.length;
  16313. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16314. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  16315. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  16316. context.currentOperation = i - 1;
  16317. return;
  16318. }
  16319. // assuming that heights of those image is too small (~1 pixel)
  16320. // packing as much as possible by lines
  16321. var maxX = 0;
  16322. var map = [], maxLineHeight = 0;
  16323. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  16324. var q;
  16325. for (q = 0; q < count; q++) {
  16326. var transform = argsArray[j + (q << 2) + 1];
  16327. var img = argsArray[j + (q << 2) + 2][0];
  16328. if (currentX + img.width > MAX_WIDTH) {
  16329. // starting new line
  16330. maxX = Math.max(maxX, currentX);
  16331. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  16332. currentX = 0;
  16333. maxLineHeight = 0;
  16334. }
  16335. map.push({
  16336. transform: transform,
  16337. x: currentX, y: currentY,
  16338. w: img.width, h: img.height
  16339. });
  16340. currentX += img.width + 2 * IMAGE_PADDING;
  16341. maxLineHeight = Math.max(maxLineHeight, img.height);
  16342. }
  16343. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  16344. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  16345. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  16346. var imgRowSize = imgWidth << 2;
  16347. for (q = 0; q < count; q++) {
  16348. var data = argsArray[j + (q << 2) + 2][0].data;
  16349. // copy image by lines and extends pixels into padding
  16350. var rowSize = map[q].w << 2;
  16351. var dataOffset = 0;
  16352. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  16353. imgData.set(data.subarray(0, rowSize), offset - imgRowSize);
  16354. for (var k = 0, kk = map[q].h; k < kk; k++) {
  16355. imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset);
  16356. dataOffset += rowSize;
  16357. offset += imgRowSize;
  16358. }
  16359. imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset);
  16360. while (offset >= 0) {
  16361. data[offset - 4] = data[offset];
  16362. data[offset - 3] = data[offset + 1];
  16363. data[offset - 2] = data[offset + 2];
  16364. data[offset - 1] = data[offset + 3];
  16365. data[offset + rowSize] = data[offset + rowSize - 4];
  16366. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  16367. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  16368. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  16369. offset -= imgRowSize;
  16370. }
  16371. }
  16372. // replacing queue items
  16373. fnArray.splice(j, count * 4, OPS.paintInlineImageXObjectGroup);
  16374. argsArray.splice(j, count * 4,
  16375. [{ width: imgWidth, height: imgHeight, kind: ImageKind.RGBA_32BPP,
  16376. data: imgData }, map]);
  16377. context.currentOperation = j;
  16378. });
  16379. addState(InitialState,
  16380. [OPS.save, OPS.transform, OPS.paintImageMaskXObject, OPS.restore],
  16381. function foundImageMaskGroup(context) {
  16382. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  16383. // searching for (save, transform, paintImageMaskXObject, restore)+
  16384. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  16385. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  16386. var MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000;
  16387. var fnArray = context.fnArray, argsArray = context.argsArray;
  16388. var j = context.currentOperation - 3, i = j + 4;
  16389. var ii = fnArray.length, q;
  16390. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  16391. var count = (i - j) >> 2;
  16392. count = handlePaintSolidColorImageMask(j, count, fnArray, argsArray);
  16393. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  16394. context.currentOperation = i - 1;
  16395. return;
  16396. }
  16397. var isSameImage = false;
  16398. var transformArgs;
  16399. if (argsArray[j + 1][1] === 0 && argsArray[j + 1][2] === 0) {
  16400. i = j + 4;
  16401. isSameImage = true;
  16402. for (q = 1; q < count; q++, i += 4) {
  16403. var prevTransformArgs = argsArray[i - 3];
  16404. transformArgs = argsArray[i + 1];
  16405. if (argsArray[i - 2][0] !== argsArray[i + 2][0] ||
  16406. prevTransformArgs[0] !== transformArgs[0] ||
  16407. prevTransformArgs[1] !== transformArgs[1] ||
  16408. prevTransformArgs[2] !== transformArgs[2] ||
  16409. prevTransformArgs[3] !== transformArgs[3]) {
  16410. if (q < MIN_IMAGES_IN_MASKS_BLOCK) {
  16411. isSameImage = false;
  16412. } else {
  16413. count = q;
  16414. }
  16415. break; // different image or transform
  16416. }
  16417. }
  16418. }
  16419. if (isSameImage) {
  16420. count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK);
  16421. var positions = new Float32Array(count * 2);
  16422. i = j + 1;
  16423. for (q = 0; q < count; q++) {
  16424. transformArgs = argsArray[i];
  16425. positions[(q << 1)] = transformArgs[4];
  16426. positions[(q << 1) + 1] = transformArgs[5];
  16427. i += 4;
  16428. }
  16429. // replacing queue items
  16430. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectRepeat);
  16431. argsArray.splice(j, count * 4, [argsArray[j + 2][0],
  16432. argsArray[j + 1][0], argsArray[j + 1][3], positions]);
  16433. context.currentOperation = j;
  16434. } else {
  16435. count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK);
  16436. var images = [];
  16437. for (q = 0; q < count; q++) {
  16438. transformArgs = argsArray[j + (q << 2) + 1];
  16439. var maskParams = argsArray[j + (q << 2) + 2][0];
  16440. images.push({ data: maskParams.data, width: maskParams.width,
  16441. height: maskParams.height,
  16442. transform: transformArgs });
  16443. }
  16444. // replacing queue items
  16445. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectGroup);
  16446. argsArray.splice(j, count * 4, [images]);
  16447. context.currentOperation = j;
  16448. }
  16449. });
  16450. addState(InitialState,
  16451. [OPS.save, OPS.transform, OPS.paintImageXObject, OPS.restore],
  16452. function (context) {
  16453. var MIN_IMAGES_IN_BLOCK = 3;
  16454. var MAX_IMAGES_IN_BLOCK = 1000;
  16455. var fnArray = context.fnArray, argsArray = context.argsArray;
  16456. var j = context.currentOperation - 3, i = j + 4;
  16457. if (argsArray[j + 1][1] !== 0 || argsArray[j + 1][2] !== 0) {
  16458. return;
  16459. }
  16460. var ii = fnArray.length;
  16461. var transformArgs;
  16462. for (; i + 3 < ii && fnArray[i - 4] === fnArray[i]; i += 4) {
  16463. if (fnArray[i - 3] !== fnArray[i + 1] ||
  16464. fnArray[i - 2] !== fnArray[i + 2] ||
  16465. fnArray[i - 1] !== fnArray[i + 3]) {
  16466. break;
  16467. }
  16468. if (argsArray[i - 2][0] !== argsArray[i + 2][0]) {
  16469. break; // different image
  16470. }
  16471. var prevTransformArgs = argsArray[i - 3];
  16472. transformArgs = argsArray[i + 1];
  16473. if (prevTransformArgs[0] !== transformArgs[0] ||
  16474. prevTransformArgs[1] !== transformArgs[1] ||
  16475. prevTransformArgs[2] !== transformArgs[2] ||
  16476. prevTransformArgs[3] !== transformArgs[3]) {
  16477. break; // different transform
  16478. }
  16479. }
  16480. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_BLOCK);
  16481. if (count < MIN_IMAGES_IN_BLOCK) {
  16482. context.currentOperation = i - 1;
  16483. return;
  16484. }
  16485. var positions = new Float32Array(count * 2);
  16486. i = j + 1;
  16487. for (var q = 0; q < count; q++) {
  16488. transformArgs = argsArray[i];
  16489. positions[(q << 1)] = transformArgs[4];
  16490. positions[(q << 1) + 1] = transformArgs[5];
  16491. i += 4;
  16492. }
  16493. var args = [argsArray[j + 2][0], argsArray[j + 1][0],
  16494. argsArray[j + 1][3], positions];
  16495. // replacing queue items
  16496. fnArray.splice(j, count * 4, OPS.paintImageXObjectRepeat);
  16497. argsArray.splice(j, count * 4, args);
  16498. context.currentOperation = j;
  16499. });
  16500. addState(InitialState,
  16501. [OPS.beginText, OPS.setFont, OPS.setTextMatrix, OPS.showText, OPS.endText],
  16502. function (context) {
  16503. // moving single chars with same font into beginText/endText groups
  16504. // searching for (beginText, setFont, setTextMatrix, showText, endText)+
  16505. var MIN_CHARS_IN_BLOCK = 3;
  16506. var MAX_CHARS_IN_BLOCK = 1000;
  16507. var fnArray = context.fnArray, argsArray = context.argsArray;
  16508. var j = context.currentOperation - 4, i = j + 5;
  16509. var ii = fnArray.length;
  16510. for (; i < ii && fnArray[i - 5] === fnArray[i]; i++) {
  16511. if (fnArray[i] === OPS.setFont) {
  16512. if (argsArray[i - 5][0] !== argsArray[i][0] ||
  16513. argsArray[i - 5][1] !== argsArray[i][1]) {
  16514. break;
  16515. }
  16516. }
  16517. }
  16518. var count = Math.min(((i - j) / 5) | 0, MAX_CHARS_IN_BLOCK);
  16519. if (count < MIN_CHARS_IN_BLOCK) {
  16520. context.currentOperation = i - 1;
  16521. return;
  16522. }
  16523. if (j >= 4 && fnArray[j - 4] === fnArray[j + 1] &&
  16524. fnArray[j - 3] === fnArray[j + 2] &&
  16525. fnArray[j - 2] === fnArray[j + 3] &&
  16526. fnArray[j - 1] === fnArray[j + 4] &&
  16527. argsArray[j - 4][0] === argsArray[j + 1][0] &&
  16528. argsArray[j - 4][1] === argsArray[j + 1][1]) {
  16529. // extending one block ahead (very first block might have 'dependency')
  16530. count++;
  16531. j -= 5;
  16532. }
  16533. var k = j + 7;
  16534. i = j + 4;
  16535. for (var q = 1; q < count; q++) {
  16536. fnArray[i] = fnArray[k];
  16537. argsArray[i] = argsArray[k];
  16538. fnArray[i + 1] = fnArray[k + 1];
  16539. argsArray[i + 1] = argsArray[k + 1];
  16540. i += 2;
  16541. k += 5;
  16542. }
  16543. var removed = (count - 1) * 3;
  16544. fnArray.splice(i, removed);
  16545. argsArray.splice(i, removed);
  16546. context.currentOperation = i;
  16547. });
  16548. function QueueOptimizer() {}
  16549. QueueOptimizer.prototype = {
  16550. optimize: function QueueOptimizer_optimize(queue) {
  16551. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  16552. var context = {
  16553. currentOperation: 0,
  16554. fnArray: fnArray,
  16555. argsArray: argsArray
  16556. };
  16557. var i, ii = argsArray.length;
  16558. var state;
  16559. for (i = 0; i < ii; i++) {
  16560. state = (state || InitialState)[fnArray[i]];
  16561. if (typeof state === 'function') { // we found some handler
  16562. context.currentOperation = i;
  16563. state = state(context);
  16564. i = context.currentOperation;
  16565. ii = context.fnArray.length;
  16566. }
  16567. }
  16568. }
  16569. };
  16570. return QueueOptimizer;
  16571. })();
  16572. var BUILT_IN_CMAPS = [
  16573. // << Start unicode maps.
  16574. 'Adobe-GB1-UCS2',
  16575. 'Adobe-CNS1-UCS2',
  16576. 'Adobe-Japan1-UCS2',
  16577. 'Adobe-Korea1-UCS2',
  16578. // >> End unicode maps.
  16579. '78-EUC-H',
  16580. '78-EUC-V',
  16581. '78-H',
  16582. '78-RKSJ-H',
  16583. '78-RKSJ-V',
  16584. '78-V',
  16585. '78ms-RKSJ-H',
  16586. '78ms-RKSJ-V',
  16587. '83pv-RKSJ-H',
  16588. '90ms-RKSJ-H',
  16589. '90ms-RKSJ-V',
  16590. '90msp-RKSJ-H',
  16591. '90msp-RKSJ-V',
  16592. '90pv-RKSJ-H',
  16593. '90pv-RKSJ-V',
  16594. 'Add-H',
  16595. 'Add-RKSJ-H',
  16596. 'Add-RKSJ-V',
  16597. 'Add-V',
  16598. 'Adobe-CNS1-0',
  16599. 'Adobe-CNS1-1',
  16600. 'Adobe-CNS1-2',
  16601. 'Adobe-CNS1-3',
  16602. 'Adobe-CNS1-4',
  16603. 'Adobe-CNS1-5',
  16604. 'Adobe-CNS1-6',
  16605. 'Adobe-GB1-0',
  16606. 'Adobe-GB1-1',
  16607. 'Adobe-GB1-2',
  16608. 'Adobe-GB1-3',
  16609. 'Adobe-GB1-4',
  16610. 'Adobe-GB1-5',
  16611. 'Adobe-Japan1-0',
  16612. 'Adobe-Japan1-1',
  16613. 'Adobe-Japan1-2',
  16614. 'Adobe-Japan1-3',
  16615. 'Adobe-Japan1-4',
  16616. 'Adobe-Japan1-5',
  16617. 'Adobe-Japan1-6',
  16618. 'Adobe-Korea1-0',
  16619. 'Adobe-Korea1-1',
  16620. 'Adobe-Korea1-2',
  16621. 'B5-H',
  16622. 'B5-V',
  16623. 'B5pc-H',
  16624. 'B5pc-V',
  16625. 'CNS-EUC-H',
  16626. 'CNS-EUC-V',
  16627. 'CNS1-H',
  16628. 'CNS1-V',
  16629. 'CNS2-H',
  16630. 'CNS2-V',
  16631. 'ETHK-B5-H',
  16632. 'ETHK-B5-V',
  16633. 'ETen-B5-H',
  16634. 'ETen-B5-V',
  16635. 'ETenms-B5-H',
  16636. 'ETenms-B5-V',
  16637. 'EUC-H',
  16638. 'EUC-V',
  16639. 'Ext-H',
  16640. 'Ext-RKSJ-H',
  16641. 'Ext-RKSJ-V',
  16642. 'Ext-V',
  16643. 'GB-EUC-H',
  16644. 'GB-EUC-V',
  16645. 'GB-H',
  16646. 'GB-V',
  16647. 'GBK-EUC-H',
  16648. 'GBK-EUC-V',
  16649. 'GBK2K-H',
  16650. 'GBK2K-V',
  16651. 'GBKp-EUC-H',
  16652. 'GBKp-EUC-V',
  16653. 'GBT-EUC-H',
  16654. 'GBT-EUC-V',
  16655. 'GBT-H',
  16656. 'GBT-V',
  16657. 'GBTpc-EUC-H',
  16658. 'GBTpc-EUC-V',
  16659. 'GBpc-EUC-H',
  16660. 'GBpc-EUC-V',
  16661. 'H',
  16662. 'HKdla-B5-H',
  16663. 'HKdla-B5-V',
  16664. 'HKdlb-B5-H',
  16665. 'HKdlb-B5-V',
  16666. 'HKgccs-B5-H',
  16667. 'HKgccs-B5-V',
  16668. 'HKm314-B5-H',
  16669. 'HKm314-B5-V',
  16670. 'HKm471-B5-H',
  16671. 'HKm471-B5-V',
  16672. 'HKscs-B5-H',
  16673. 'HKscs-B5-V',
  16674. 'Hankaku',
  16675. 'Hiragana',
  16676. 'KSC-EUC-H',
  16677. 'KSC-EUC-V',
  16678. 'KSC-H',
  16679. 'KSC-Johab-H',
  16680. 'KSC-Johab-V',
  16681. 'KSC-V',
  16682. 'KSCms-UHC-H',
  16683. 'KSCms-UHC-HW-H',
  16684. 'KSCms-UHC-HW-V',
  16685. 'KSCms-UHC-V',
  16686. 'KSCpc-EUC-H',
  16687. 'KSCpc-EUC-V',
  16688. 'Katakana',
  16689. 'NWP-H',
  16690. 'NWP-V',
  16691. 'RKSJ-H',
  16692. 'RKSJ-V',
  16693. 'Roman',
  16694. 'UniCNS-UCS2-H',
  16695. 'UniCNS-UCS2-V',
  16696. 'UniCNS-UTF16-H',
  16697. 'UniCNS-UTF16-V',
  16698. 'UniCNS-UTF32-H',
  16699. 'UniCNS-UTF32-V',
  16700. 'UniCNS-UTF8-H',
  16701. 'UniCNS-UTF8-V',
  16702. 'UniGB-UCS2-H',
  16703. 'UniGB-UCS2-V',
  16704. 'UniGB-UTF16-H',
  16705. 'UniGB-UTF16-V',
  16706. 'UniGB-UTF32-H',
  16707. 'UniGB-UTF32-V',
  16708. 'UniGB-UTF8-H',
  16709. 'UniGB-UTF8-V',
  16710. 'UniJIS-UCS2-H',
  16711. 'UniJIS-UCS2-HW-H',
  16712. 'UniJIS-UCS2-HW-V',
  16713. 'UniJIS-UCS2-V',
  16714. 'UniJIS-UTF16-H',
  16715. 'UniJIS-UTF16-V',
  16716. 'UniJIS-UTF32-H',
  16717. 'UniJIS-UTF32-V',
  16718. 'UniJIS-UTF8-H',
  16719. 'UniJIS-UTF8-V',
  16720. 'UniJIS2004-UTF16-H',
  16721. 'UniJIS2004-UTF16-V',
  16722. 'UniJIS2004-UTF32-H',
  16723. 'UniJIS2004-UTF32-V',
  16724. 'UniJIS2004-UTF8-H',
  16725. 'UniJIS2004-UTF8-V',
  16726. 'UniJISPro-UCS2-HW-V',
  16727. 'UniJISPro-UCS2-V',
  16728. 'UniJISPro-UTF8-V',
  16729. 'UniJISX0213-UTF32-H',
  16730. 'UniJISX0213-UTF32-V',
  16731. 'UniJISX02132004-UTF32-H',
  16732. 'UniJISX02132004-UTF32-V',
  16733. 'UniKS-UCS2-H',
  16734. 'UniKS-UCS2-V',
  16735. 'UniKS-UTF16-H',
  16736. 'UniKS-UTF16-V',
  16737. 'UniKS-UTF32-H',
  16738. 'UniKS-UTF32-V',
  16739. 'UniKS-UTF8-H',
  16740. 'UniKS-UTF8-V',
  16741. 'V',
  16742. 'WP-Symbol'];
  16743. // CMap, not to be confused with TrueType's cmap.
  16744. var CMap = (function CMapClosure() {
  16745. function CMap(builtInCMap) {
  16746. // Codespace ranges are stored as follows:
  16747. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  16748. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  16749. this.codespaceRanges = [[], [], [], []];
  16750. this.numCodespaceRanges = 0;
  16751. this.map = [];
  16752. this.vertical = false;
  16753. this.useCMap = null;
  16754. this.builtInCMap = builtInCMap;
  16755. }
  16756. CMap.prototype = {
  16757. addCodespaceRange: function(n, low, high) {
  16758. this.codespaceRanges[n - 1].push(low, high);
  16759. this.numCodespaceRanges++;
  16760. },
  16761. mapRange: function(low, high, dstLow) {
  16762. var lastByte = dstLow.length - 1;
  16763. while (low <= high) {
  16764. this.map[low] = dstLow;
  16765. // Only the last byte has to be incremented.
  16766. dstLow = dstLow.substr(0, lastByte) +
  16767. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  16768. ++low;
  16769. }
  16770. },
  16771. mapRangeToArray: function(low, high, array) {
  16772. var i = 0;
  16773. while (low <= high) {
  16774. this.map[low] = array[i++];
  16775. ++low;
  16776. }
  16777. },
  16778. mapOne: function(src, dst) {
  16779. this.map[src] = dst;
  16780. },
  16781. lookup: function(code) {
  16782. return this.map[code];
  16783. },
  16784. readCharCode: function(str, offset) {
  16785. var c = 0;
  16786. var codespaceRanges = this.codespaceRanges;
  16787. var codespaceRangesLen = this.codespaceRanges.length;
  16788. // 9.7.6.2 CMap Mapping
  16789. // The code length is at most 4.
  16790. for (var n = 0; n < codespaceRangesLen; n++) {
  16791. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  16792. // Check each codespace range to see if it falls within.
  16793. var codespaceRange = codespaceRanges[n];
  16794. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  16795. var low = codespaceRange[k++];
  16796. var high = codespaceRange[k++];
  16797. if (c >= low && c <= high) {
  16798. return [c, n + 1];
  16799. }
  16800. }
  16801. }
  16802. return [0, 1];
  16803. }
  16804. };
  16805. return CMap;
  16806. })();
  16807. var IdentityCMap = (function IdentityCMapClosure() {
  16808. function IdentityCMap(vertical, n) {
  16809. CMap.call(this);
  16810. this.vertical = vertical;
  16811. this.addCodespaceRange(n, 0, 0xffff);
  16812. this.mapRange(0, 0xffff, '\u0000');
  16813. }
  16814. Util.inherit(IdentityCMap, CMap, {});
  16815. return IdentityCMap;
  16816. })();
  16817. var BinaryCMapReader = (function BinaryCMapReaderClosure() {
  16818. function fetchBinaryData(url) {
  16819. var nonBinaryRequest = PDFJS.disableWorker;
  16820. var request = new XMLHttpRequest();
  16821. request.open('GET', url, false);
  16822. if (!nonBinaryRequest) {
  16823. try {
  16824. request.responseType = 'arraybuffer';
  16825. nonBinaryRequest = request.responseType !== 'arraybuffer';
  16826. } catch (e) {
  16827. nonBinaryRequest = true;
  16828. }
  16829. }
  16830. if (nonBinaryRequest && request.overrideMimeType) {
  16831. request.overrideMimeType('text/plain; charset=x-user-defined');
  16832. }
  16833. request.send(null);
  16834. if (request.status === 0 && /^https?:/i.test(url)) {
  16835. error('Unable to get binary cMap at: ' + url);
  16836. }
  16837. if (nonBinaryRequest) {
  16838. var data = Array.prototype.map.call(request.responseText, function (ch) {
  16839. return ch.charCodeAt(0) & 255;
  16840. });
  16841. return new Uint8Array(data);
  16842. }
  16843. return new Uint8Array(request.response);
  16844. }
  16845. function hexToInt(a, size) {
  16846. var n = 0;
  16847. for (var i = 0; i <= size; i++) {
  16848. n = (n << 8) | a[i];
  16849. }
  16850. return n >>> 0;
  16851. }
  16852. function hexToStr(a, size) {
  16853. return String.fromCharCode.apply(null, a.subarray(0, size + 1));
  16854. }
  16855. function addHex(a, b, size) {
  16856. var c = 0;
  16857. for (var i = size; i >= 0; i--) {
  16858. c += a[i] + b[i];
  16859. a[i] = c & 255;
  16860. c >>= 8;
  16861. }
  16862. }
  16863. function incHex(a, size) {
  16864. var c = 1;
  16865. for (var i = size; i >= 0 && c > 0; i--) {
  16866. c += a[i];
  16867. a[i] = c & 255;
  16868. c >>= 8;
  16869. }
  16870. }
  16871. var MAX_NUM_SIZE = 16;
  16872. var MAX_ENCODED_NUM_SIZE = 19; // ceil(MAX_NUM_SIZE * 7 / 8)
  16873. function BinaryCMapStream(data) {
  16874. this.buffer = data;
  16875. this.pos = 0;
  16876. this.end = data.length;
  16877. this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
  16878. }
  16879. BinaryCMapStream.prototype = {
  16880. readByte: function () {
  16881. if (this.pos >= this.end) {
  16882. return -1;
  16883. }
  16884. return this.buffer[this.pos++];
  16885. },
  16886. readNumber: function () {
  16887. var n = 0;
  16888. var last;
  16889. do {
  16890. var b = this.readByte();
  16891. if (b < 0) {
  16892. error('unexpected EOF in bcmap');
  16893. }
  16894. last = !(b & 0x80);
  16895. n = (n << 7) | (b & 0x7F);
  16896. } while (!last);
  16897. return n;
  16898. },
  16899. readSigned: function () {
  16900. var n = this.readNumber();
  16901. return (n & 1) ? ~(n >>> 1) : n >>> 1;
  16902. },
  16903. readHex: function (num, size) {
  16904. num.set(this.buffer.subarray(this.pos,
  16905. this.pos + size + 1));
  16906. this.pos += size + 1;
  16907. },
  16908. readHexNumber: function (num, size) {
  16909. var last;
  16910. var stack = this.tmpBuf, sp = 0;
  16911. do {
  16912. var b = this.readByte();
  16913. if (b < 0) {
  16914. error('unexpected EOF in bcmap');
  16915. }
  16916. last = !(b & 0x80);
  16917. stack[sp++] = b & 0x7F;
  16918. } while (!last);
  16919. var i = size, buffer = 0, bufferSize = 0;
  16920. while (i >= 0) {
  16921. while (bufferSize < 8 && stack.length > 0) {
  16922. buffer = (stack[--sp] << bufferSize) | buffer;
  16923. bufferSize += 7;
  16924. }
  16925. num[i] = buffer & 255;
  16926. i--;
  16927. buffer >>= 8;
  16928. bufferSize -= 8;
  16929. }
  16930. },
  16931. readHexSigned: function (num, size) {
  16932. this.readHexNumber(num, size);
  16933. var sign = num[size] & 1 ? 255 : 0;
  16934. var c = 0;
  16935. for (var i = 0; i <= size; i++) {
  16936. c = ((c & 1) << 8) | num[i];
  16937. num[i] = (c >> 1) ^ sign;
  16938. }
  16939. },
  16940. readString: function () {
  16941. var len = this.readNumber();
  16942. var s = '';
  16943. for (var i = 0; i < len; i++) {
  16944. s += String.fromCharCode(this.readNumber());
  16945. }
  16946. return s;
  16947. }
  16948. };
  16949. function processBinaryCMap(url, cMap, extend) {
  16950. var data = fetchBinaryData(url);
  16951. var stream = new BinaryCMapStream(data);
  16952. var header = stream.readByte();
  16953. cMap.vertical = !!(header & 1);
  16954. var useCMap = null;
  16955. var start = new Uint8Array(MAX_NUM_SIZE);
  16956. var end = new Uint8Array(MAX_NUM_SIZE);
  16957. var char = new Uint8Array(MAX_NUM_SIZE);
  16958. var charCode = new Uint8Array(MAX_NUM_SIZE);
  16959. var tmp = new Uint8Array(MAX_NUM_SIZE);
  16960. var code;
  16961. var b;
  16962. while ((b = stream.readByte()) >= 0) {
  16963. var type = b >> 5;
  16964. if (type === 7) { // metadata, e.g. comment or usecmap
  16965. switch (b & 0x1F) {
  16966. case 0:
  16967. stream.readString(); // skipping comment
  16968. break;
  16969. case 1:
  16970. useCMap = stream.readString();
  16971. break;
  16972. }
  16973. continue;
  16974. }
  16975. var sequence = !!(b & 0x10);
  16976. var dataSize = b & 15;
  16977. assert(dataSize + 1 <= MAX_NUM_SIZE);
  16978. var ucs2DataSize = 1;
  16979. var subitemsCount = stream.readNumber();
  16980. var i;
  16981. switch (type) {
  16982. case 0: // codespacerange
  16983. stream.readHex(start, dataSize);
  16984. stream.readHexNumber(end, dataSize);
  16985. addHex(end, start, dataSize);
  16986. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  16987. hexToInt(end, dataSize));
  16988. for (i = 1; i < subitemsCount; i++) {
  16989. incHex(end, dataSize);
  16990. stream.readHexNumber(start, dataSize);
  16991. addHex(start, end, dataSize);
  16992. stream.readHexNumber(end, dataSize);
  16993. addHex(end, start, dataSize);
  16994. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  16995. hexToInt(end, dataSize));
  16996. }
  16997. break;
  16998. case 1: // notdefrange
  16999. stream.readHex(start, dataSize);
  17000. stream.readHexNumber(end, dataSize);
  17001. addHex(end, start, dataSize);
  17002. code = stream.readNumber();
  17003. // undefined range, skipping
  17004. for (i = 1; i < subitemsCount; i++) {
  17005. incHex(end, dataSize);
  17006. stream.readHexNumber(start, dataSize);
  17007. addHex(start, end, dataSize);
  17008. stream.readHexNumber(end, dataSize);
  17009. addHex(end, start, dataSize);
  17010. code = stream.readNumber();
  17011. // nop
  17012. }
  17013. break;
  17014. case 2: // cidchar
  17015. stream.readHex(char, dataSize);
  17016. code = stream.readNumber();
  17017. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17018. for (i = 1; i < subitemsCount; i++) {
  17019. incHex(char, dataSize);
  17020. if (!sequence) {
  17021. stream.readHexNumber(tmp, dataSize);
  17022. addHex(char, tmp, dataSize);
  17023. }
  17024. code = stream.readSigned() + (code + 1);
  17025. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  17026. }
  17027. break;
  17028. case 3: // cidrange
  17029. stream.readHex(start, dataSize);
  17030. stream.readHexNumber(end, dataSize);
  17031. addHex(end, start, dataSize);
  17032. code = stream.readNumber();
  17033. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17034. String.fromCharCode(code));
  17035. for (i = 1; i < subitemsCount; i++) {
  17036. incHex(end, dataSize);
  17037. if (!sequence) {
  17038. stream.readHexNumber(start, dataSize);
  17039. addHex(start, end, dataSize);
  17040. } else {
  17041. start.set(end);
  17042. }
  17043. stream.readHexNumber(end, dataSize);
  17044. addHex(end, start, dataSize);
  17045. code = stream.readNumber();
  17046. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  17047. String.fromCharCode(code));
  17048. }
  17049. break;
  17050. case 4: // bfchar
  17051. stream.readHex(char, ucs2DataSize);
  17052. stream.readHex(charCode, dataSize);
  17053. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17054. hexToStr(charCode, dataSize));
  17055. for (i = 1; i < subitemsCount; i++) {
  17056. incHex(char, ucs2DataSize);
  17057. if (!sequence) {
  17058. stream.readHexNumber(tmp, ucs2DataSize);
  17059. addHex(char, tmp, ucs2DataSize);
  17060. }
  17061. incHex(charCode, dataSize);
  17062. stream.readHexSigned(tmp, dataSize);
  17063. addHex(charCode, tmp, dataSize);
  17064. cMap.mapOne(hexToInt(char, ucs2DataSize),
  17065. hexToStr(charCode, dataSize));
  17066. }
  17067. break;
  17068. case 5: // bfrange
  17069. stream.readHex(start, ucs2DataSize);
  17070. stream.readHexNumber(end, ucs2DataSize);
  17071. addHex(end, start, ucs2DataSize);
  17072. stream.readHex(charCode, dataSize);
  17073. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17074. hexToInt(end, ucs2DataSize),
  17075. hexToStr(charCode, dataSize));
  17076. for (i = 1; i < subitemsCount; i++) {
  17077. incHex(end, ucs2DataSize);
  17078. if (!sequence) {
  17079. stream.readHexNumber(start, ucs2DataSize);
  17080. addHex(start, end, ucs2DataSize);
  17081. } else {
  17082. start.set(end);
  17083. }
  17084. stream.readHexNumber(end, ucs2DataSize);
  17085. addHex(end, start, ucs2DataSize);
  17086. stream.readHex(charCode, dataSize);
  17087. cMap.mapRange(hexToInt(start, ucs2DataSize),
  17088. hexToInt(end, ucs2DataSize),
  17089. hexToStr(charCode, dataSize));
  17090. }
  17091. break;
  17092. default:
  17093. error('Unknown type: ' + type);
  17094. break;
  17095. }
  17096. }
  17097. if (useCMap) {
  17098. extend(useCMap);
  17099. }
  17100. return cMap;
  17101. }
  17102. function BinaryCMapReader() {}
  17103. BinaryCMapReader.prototype = {
  17104. read: processBinaryCMap
  17105. };
  17106. return BinaryCMapReader;
  17107. })();
  17108. var CMapFactory = (function CMapFactoryClosure() {
  17109. function strToInt(str) {
  17110. var a = 0;
  17111. for (var i = 0; i < str.length; i++) {
  17112. a = (a << 8) | str.charCodeAt(i);
  17113. }
  17114. return a >>> 0;
  17115. }
  17116. function expectString(obj) {
  17117. if (!isString(obj)) {
  17118. error('Malformed CMap: expected string.');
  17119. }
  17120. }
  17121. function expectInt(obj) {
  17122. if (!isInt(obj)) {
  17123. error('Malformed CMap: expected int.');
  17124. }
  17125. }
  17126. function parseBfChar(cMap, lexer) {
  17127. while (true) {
  17128. var obj = lexer.getObj();
  17129. if (isEOF(obj)) {
  17130. break;
  17131. }
  17132. if (isCmd(obj, 'endbfchar')) {
  17133. return;
  17134. }
  17135. expectString(obj);
  17136. var src = strToInt(obj);
  17137. obj = lexer.getObj();
  17138. // TODO are /dstName used?
  17139. expectString(obj);
  17140. var dst = obj;
  17141. cMap.mapOne(src, dst);
  17142. }
  17143. }
  17144. function parseBfRange(cMap, lexer) {
  17145. while (true) {
  17146. var obj = lexer.getObj();
  17147. if (isEOF(obj)) {
  17148. break;
  17149. }
  17150. if (isCmd(obj, 'endbfrange')) {
  17151. return;
  17152. }
  17153. expectString(obj);
  17154. var low = strToInt(obj);
  17155. obj = lexer.getObj();
  17156. expectString(obj);
  17157. var high = strToInt(obj);
  17158. obj = lexer.getObj();
  17159. if (isInt(obj) || isString(obj)) {
  17160. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  17161. cMap.mapRange(low, high, dstLow);
  17162. } else if (isCmd(obj, '[')) {
  17163. obj = lexer.getObj();
  17164. var array = [];
  17165. while (!isCmd(obj, ']') && !isEOF(obj)) {
  17166. array.push(obj);
  17167. obj = lexer.getObj();
  17168. }
  17169. cMap.mapRangeToArray(low, high, array);
  17170. } else {
  17171. break;
  17172. }
  17173. }
  17174. error('Invalid bf range.');
  17175. }
  17176. function parseCidChar(cMap, lexer) {
  17177. while (true) {
  17178. var obj = lexer.getObj();
  17179. if (isEOF(obj)) {
  17180. break;
  17181. }
  17182. if (isCmd(obj, 'endcidchar')) {
  17183. return;
  17184. }
  17185. expectString(obj);
  17186. var src = strToInt(obj);
  17187. obj = lexer.getObj();
  17188. expectInt(obj);
  17189. var dst = String.fromCharCode(obj);
  17190. cMap.mapOne(src, dst);
  17191. }
  17192. }
  17193. function parseCidRange(cMap, lexer) {
  17194. while (true) {
  17195. var obj = lexer.getObj();
  17196. if (isEOF(obj)) {
  17197. break;
  17198. }
  17199. if (isCmd(obj, 'endcidrange')) {
  17200. return;
  17201. }
  17202. expectString(obj);
  17203. var low = strToInt(obj);
  17204. obj = lexer.getObj();
  17205. expectString(obj);
  17206. var high = strToInt(obj);
  17207. obj = lexer.getObj();
  17208. expectInt(obj);
  17209. var dstLow = String.fromCharCode(obj);
  17210. cMap.mapRange(low, high, dstLow);
  17211. }
  17212. }
  17213. function parseCodespaceRange(cMap, lexer) {
  17214. while (true) {
  17215. var obj = lexer.getObj();
  17216. if (isEOF(obj)) {
  17217. break;
  17218. }
  17219. if (isCmd(obj, 'endcodespacerange')) {
  17220. return;
  17221. }
  17222. if (!isString(obj)) {
  17223. break;
  17224. }
  17225. var low = strToInt(obj);
  17226. obj = lexer.getObj();
  17227. if (!isString(obj)) {
  17228. break;
  17229. }
  17230. var high = strToInt(obj);
  17231. cMap.addCodespaceRange(obj.length, low, high);
  17232. }
  17233. error('Invalid codespace range.');
  17234. }
  17235. function parseWMode(cMap, lexer) {
  17236. var obj = lexer.getObj();
  17237. if (isInt(obj)) {
  17238. cMap.vertical = !!obj;
  17239. }
  17240. }
  17241. function parseCMap(cMap, lexer, builtInCMapParams, useCMap) {
  17242. var previous;
  17243. var embededUseCMap;
  17244. objLoop: while (true) {
  17245. var obj = lexer.getObj();
  17246. if (isEOF(obj)) {
  17247. break;
  17248. } else if (isName(obj)) {
  17249. if (obj.name === 'WMode') {
  17250. parseWMode(cMap, lexer);
  17251. }
  17252. previous = obj;
  17253. } else if (isCmd(obj)) {
  17254. switch (obj.cmd) {
  17255. case 'endcmap':
  17256. break objLoop;
  17257. case 'usecmap':
  17258. if (isName(previous)) {
  17259. embededUseCMap = previous.name;
  17260. }
  17261. break;
  17262. case 'begincodespacerange':
  17263. parseCodespaceRange(cMap, lexer);
  17264. break;
  17265. case 'beginbfchar':
  17266. parseBfChar(cMap, lexer);
  17267. break;
  17268. case 'begincidchar':
  17269. parseCidChar(cMap, lexer);
  17270. break;
  17271. case 'beginbfrange':
  17272. parseBfRange(cMap, lexer);
  17273. break;
  17274. case 'begincidrange':
  17275. parseCidRange(cMap, lexer);
  17276. break;
  17277. }
  17278. }
  17279. }
  17280. if (!useCMap && embededUseCMap) {
  17281. // Load the usecmap definition from the file only if there wasn't one
  17282. // specified.
  17283. useCMap = embededUseCMap;
  17284. }
  17285. if (useCMap) {
  17286. extendCMap(cMap, builtInCMapParams, useCMap);
  17287. }
  17288. }
  17289. function extendCMap(cMap, builtInCMapParams, useCMap) {
  17290. cMap.useCMap = createBuiltInCMap(useCMap, builtInCMapParams);
  17291. // If there aren't any code space ranges defined clone all the parent ones
  17292. // into this cMap.
  17293. if (cMap.numCodespaceRanges === 0) {
  17294. var useCodespaceRanges = cMap.useCMap.codespaceRanges;
  17295. for (var i = 0; i < useCodespaceRanges.length; i++) {
  17296. cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
  17297. }
  17298. cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
  17299. }
  17300. // Merge the map into the current one, making sure not to override
  17301. // any previously defined entries.
  17302. for (var key in cMap.useCMap.map) {
  17303. if (key in cMap.map) {
  17304. continue;
  17305. }
  17306. cMap.map[key] = cMap.useCMap.map[key];
  17307. }
  17308. }
  17309. function parseBinaryCMap(name, builtInCMapParams) {
  17310. var url = builtInCMapParams.url + name + '.bcmap';
  17311. var cMap = new CMap(true);
  17312. new BinaryCMapReader().read(url, cMap, function (useCMap) {
  17313. extendCMap(cMap, builtInCMapParams, useCMap);
  17314. });
  17315. return cMap;
  17316. }
  17317. function createBuiltInCMap(name, builtInCMapParams) {
  17318. if (name === 'Identity-H') {
  17319. return new IdentityCMap(false, 2);
  17320. } else if (name === 'Identity-V') {
  17321. return new IdentityCMap(true, 2);
  17322. }
  17323. if (BUILT_IN_CMAPS.indexOf(name) === -1) {
  17324. error('Unknown cMap name: ' + name);
  17325. }
  17326. assert (builtInCMapParams, 'buildin cmap parameters are not provided');
  17327. if (builtInCMapParams.packed) {
  17328. return parseBinaryCMap(name, builtInCMapParams);
  17329. }
  17330. var request = new XMLHttpRequest();
  17331. var url = builtInCMapParams.url + name;
  17332. request.open('GET', url, false);
  17333. request.send(null);
  17334. if (request.status === 0 && /^https?:/i.test(url)) {
  17335. error('Unable to get cMap at: ' + url);
  17336. }
  17337. var cMap = new CMap(true);
  17338. var lexer = new Lexer(new StringStream(request.responseText));
  17339. parseCMap(cMap, lexer, builtInCMapParams, null);
  17340. return cMap;
  17341. }
  17342. return {
  17343. create: function (encoding, builtInCMapParams, useCMap) {
  17344. if (isName(encoding)) {
  17345. return createBuiltInCMap(encoding.name, builtInCMapParams);
  17346. } else if (isStream(encoding)) {
  17347. var cMap = new CMap();
  17348. var lexer = new Lexer(encoding);
  17349. try {
  17350. parseCMap(cMap, lexer, builtInCMapParams, useCMap);
  17351. } catch (e) {
  17352. warn('Invalid CMap data. ' + e);
  17353. }
  17354. return cMap;
  17355. }
  17356. error('Encoding required.');
  17357. }
  17358. };
  17359. })();
  17360. // Unicode Private Use Area
  17361. var PRIVATE_USE_OFFSET_START = 0xE000;
  17362. var PRIVATE_USE_OFFSET_END = 0xF8FF;
  17363. var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
  17364. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  17365. // except for Type 3 fonts
  17366. var PDF_GLYPH_SPACE_UNITS = 1000;
  17367. // Hinting is currently disabled due to unknown problems on windows
  17368. // in tracemonkey and various other pdfs with type1 fonts.
  17369. var HINTING_ENABLED = false;
  17370. // Accented charactars are not displayed properly on windows, using this flag
  17371. // to control analysis of seac charstrings.
  17372. var SEAC_ANALYSIS_ENABLED = false;
  17373. var FontFlags = {
  17374. FixedPitch: 1,
  17375. Serif: 2,
  17376. Symbolic: 4,
  17377. Script: 8,
  17378. Nonsymbolic: 32,
  17379. Italic: 64,
  17380. AllCap: 65536,
  17381. SmallCap: 131072,
  17382. ForceBold: 262144
  17383. };
  17384. var Encodings = {
  17385. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17386. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17387. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  17388. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  17389. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  17390. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  17391. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  17392. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  17393. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  17394. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  17395. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  17396. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  17397. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  17398. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  17399. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  17400. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  17401. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  17402. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  17403. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  17404. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17405. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  17406. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  17407. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  17408. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  17409. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  17410. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  17411. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  17412. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  17413. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  17414. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  17415. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  17416. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  17417. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  17418. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  17419. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  17420. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  17421. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  17422. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  17423. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  17424. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  17425. 'Ydieresissmall'],
  17426. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17427. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17428. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  17429. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  17430. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  17431. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  17432. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  17433. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  17434. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  17435. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  17436. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  17437. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  17438. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  17439. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  17440. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  17441. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  17442. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  17443. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  17444. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  17445. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  17446. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  17447. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  17448. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  17449. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  17450. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  17451. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  17452. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  17453. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  17454. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  17455. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  17456. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  17457. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  17458. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  17459. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  17460. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  17461. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  17462. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  17463. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  17464. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  17465. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  17466. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17467. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17468. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17469. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17470. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17471. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17472. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17473. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17474. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17475. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17476. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17477. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  17478. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  17479. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  17480. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  17481. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  17482. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  17483. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  17484. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  17485. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  17486. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  17487. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  17488. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  17489. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  17490. 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE',
  17491. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  17492. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  17493. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  17494. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  17495. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  17496. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  17497. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  17498. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  17499. 'ogonek', 'caron'],
  17500. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17501. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17502. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17503. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  17504. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17505. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17506. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17507. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17508. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17509. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  17510. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  17511. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17512. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17513. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  17514. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  17515. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  17516. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  17517. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  17518. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  17519. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  17520. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  17521. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  17522. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  17523. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  17524. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  17525. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17526. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17527. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  17528. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  17529. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  17530. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  17531. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  17532. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  17533. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  17534. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  17535. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  17536. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  17537. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  17538. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  17539. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  17540. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  17541. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  17542. 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling',
  17543. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  17544. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  17545. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  17546. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  17547. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  17548. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  17549. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  17550. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  17551. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  17552. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  17553. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  17554. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  17555. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  17556. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  17557. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  17558. 'ydieresis'],
  17559. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17560. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17561. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  17562. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  17563. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  17564. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  17565. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  17566. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  17567. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  17568. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  17569. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  17570. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  17571. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  17572. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  17573. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  17574. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17575. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  17576. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  17577. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  17578. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  17579. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  17580. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  17581. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  17582. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  17583. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  17584. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  17585. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  17586. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  17587. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  17588. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  17589. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  17590. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  17591. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  17592. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  17593. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  17594. 'bracerightbt'],
  17595. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17596. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17597. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  17598. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  17599. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  17600. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  17601. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  17602. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  17603. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  17604. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  17605. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  17606. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17607. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  17608. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  17609. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  17610. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  17611. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  17612. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  17613. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  17614. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  17615. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  17616. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  17617. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  17618. 'a188', 'a189', 'a190', 'a191']
  17619. };
  17620. /**
  17621. * Hold a map of decoded fonts and of the standard fourteen Type1
  17622. * fonts and their acronyms.
  17623. */
  17624. var stdFontMap = {
  17625. 'ArialNarrow': 'Helvetica',
  17626. 'ArialNarrow-Bold': 'Helvetica-Bold',
  17627. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  17628. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  17629. 'ArialBlack': 'Helvetica',
  17630. 'ArialBlack-Bold': 'Helvetica-Bold',
  17631. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  17632. 'ArialBlack-Italic': 'Helvetica-Oblique',
  17633. 'Arial': 'Helvetica',
  17634. 'Arial-Bold': 'Helvetica-Bold',
  17635. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  17636. 'Arial-Italic': 'Helvetica-Oblique',
  17637. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  17638. 'Arial-BoldMT': 'Helvetica-Bold',
  17639. 'Arial-ItalicMT': 'Helvetica-Oblique',
  17640. 'ArialMT': 'Helvetica',
  17641. 'Courier-Bold': 'Courier-Bold',
  17642. 'Courier-BoldItalic': 'Courier-BoldOblique',
  17643. 'Courier-Italic': 'Courier-Oblique',
  17644. 'CourierNew': 'Courier',
  17645. 'CourierNew-Bold': 'Courier-Bold',
  17646. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  17647. 'CourierNew-Italic': 'Courier-Oblique',
  17648. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  17649. 'CourierNewPS-BoldMT': 'Courier-Bold',
  17650. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  17651. 'CourierNewPSMT': 'Courier',
  17652. 'Helvetica-Bold': 'Helvetica-Bold',
  17653. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  17654. 'Helvetica-Italic': 'Helvetica-Oblique',
  17655. 'Symbol-Bold': 'Symbol',
  17656. 'Symbol-BoldItalic': 'Symbol',
  17657. 'Symbol-Italic': 'Symbol',
  17658. 'TimesNewRoman': 'Times-Roman',
  17659. 'TimesNewRoman-Bold': 'Times-Bold',
  17660. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  17661. 'TimesNewRoman-Italic': 'Times-Italic',
  17662. 'TimesNewRomanPS': 'Times-Roman',
  17663. 'TimesNewRomanPS-Bold': 'Times-Bold',
  17664. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  17665. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  17666. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  17667. 'TimesNewRomanPS-Italic': 'Times-Italic',
  17668. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  17669. 'TimesNewRomanPSMT': 'Times-Roman',
  17670. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  17671. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  17672. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  17673. };
  17674. /**
  17675. * Holds the map of the non-standard fonts that might be included as a standard
  17676. * fonts without glyph data.
  17677. */
  17678. var nonStdFontMap = {
  17679. 'ComicSansMS': 'Comic Sans MS',
  17680. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  17681. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  17682. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  17683. 'LucidaConsole': 'Courier',
  17684. 'LucidaConsole-Bold': 'Courier-Bold',
  17685. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  17686. 'LucidaConsole-Italic': 'Courier-Oblique',
  17687. 'MS-Gothic': 'MS Gothic',
  17688. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  17689. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  17690. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  17691. 'MS-Mincho': 'MS Mincho',
  17692. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  17693. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  17694. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  17695. 'MS-PGothic': 'MS PGothic',
  17696. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  17697. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  17698. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  17699. 'MS-PMincho': 'MS PMincho',
  17700. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  17701. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  17702. 'MS-PMincho-Italic': 'MS PMincho-Italic'
  17703. };
  17704. var serifFonts = {
  17705. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  17706. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  17707. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  17708. 'Arno': true, 'Aster': true, 'Aurora': true,
  17709. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  17710. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  17711. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  17712. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  17713. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  17714. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  17715. 'Cartier': true, 'Caslon': true, 'Catull': true,
  17716. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  17717. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  17718. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  17719. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  17720. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  17721. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  17722. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  17723. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  17724. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  17725. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  17726. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  17727. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  17728. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  17729. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  17730. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  17731. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  17732. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  17733. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  17734. 'Miller': true, 'Minion': true, 'Modern': true,
  17735. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  17736. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  17737. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  17738. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  17739. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  17740. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  17741. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  17742. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  17743. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  17744. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  17745. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  17746. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  17747. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  17748. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  17749. };
  17750. var symbolsFonts = {
  17751. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  17752. };
  17753. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  17754. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  17755. // glyphs, but common for some set of the standard fonts.
  17756. var GlyphMapForStandardFonts = {
  17757. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  17758. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 173,
  17759. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  17760. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  17761. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  17762. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  17763. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  17764. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  17765. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  17766. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  17767. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  17768. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  17769. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  17770. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  17771. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  17772. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  17773. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  17774. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  17775. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  17776. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  17777. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  17778. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  17779. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  17780. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  17781. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  17782. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '305': 963,
  17783. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  17784. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  17785. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  17786. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  17787. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  17788. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  17789. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  17790. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  17791. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  17792. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  17793. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  17794. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  17795. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  17796. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  17797. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  17798. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  17799. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  17800. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  17801. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  17802. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  17803. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  17804. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  17805. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  17806. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  17807. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  17808. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  17809. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  17810. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  17811. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  17812. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  17813. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  17814. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  17815. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  17816. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  17817. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  17818. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  17819. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  17820. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  17821. };
  17822. // Some characters, e.g. copyrightserif, mapped to the private use area and
  17823. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  17824. // to the similar equivalents in the normal characters range.
  17825. function mapSpecialUnicodeValues(code) {
  17826. if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials unicode block.
  17827. return 0;
  17828. }
  17829. switch (code) {
  17830. case 0xF8E9: // copyrightsans
  17831. case 0xF6D9: // copyrightserif
  17832. return 0x00A9; // copyright
  17833. case 0xF8E8: // registersans
  17834. case 0xF6DA: // registerserif
  17835. return 0x00AE; // registered
  17836. case 0xF8EA: // trademarksans
  17837. case 0xF6DB: // trademarkserif
  17838. return 0x2122; // trademark
  17839. default:
  17840. return code;
  17841. }
  17842. }
  17843. var UnicodeRanges = [
  17844. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  17845. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  17846. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  17847. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  17848. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  17849. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  17850. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  17851. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  17852. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  17853. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  17854. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  17855. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  17856. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  17857. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  17858. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  17859. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  17860. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  17861. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  17862. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  17863. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  17864. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  17865. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  17866. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  17867. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  17868. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  17869. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  17870. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  17871. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  17872. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  17873. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  17874. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  17875. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  17876. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  17877. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  17878. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  17879. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  17880. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  17881. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  17882. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  17883. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  17884. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  17885. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  17886. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  17887. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  17888. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  17889. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  17890. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  17891. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  17892. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  17893. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  17894. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  17895. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  17896. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  17897. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  17898. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  17899. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  17900. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  17901. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  17902. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  17903. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  17904. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  17905. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  17906. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  17907. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  17908. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  17909. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  17910. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  17911. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  17912. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  17913. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  17914. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  17915. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  17916. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  17917. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  17918. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  17919. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  17920. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  17921. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  17922. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  17923. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  17924. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  17925. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  17926. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  17927. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  17928. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  17929. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  17930. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  17931. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  17932. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  17933. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  17934. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  17935. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  17936. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  17937. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  17938. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  17939. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  17940. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  17941. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  17942. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  17943. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  17944. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  17945. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  17946. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  17947. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  17948. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  17949. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  17950. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  17951. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  17952. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  17953. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  17954. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  17955. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  17956. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  17957. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  17958. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  17959. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  17960. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  17961. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  17962. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  17963. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  17964. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  17965. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  17966. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  17967. ];
  17968. var MacStandardGlyphOrdering = [
  17969. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  17970. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  17971. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  17972. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  17973. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  17974. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  17975. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  17976. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  17977. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  17978. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  17979. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  17980. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  17981. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  17982. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  17983. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  17984. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  17985. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  17986. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  17987. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  17988. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  17989. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  17990. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  17991. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  17992. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  17993. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  17994. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  17995. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  17996. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  17997. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  17998. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  17999. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  18000. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  18001. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  18002. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  18003. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  18004. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  18005. function getUnicodeRangeFor(value) {
  18006. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  18007. var range = UnicodeRanges[i];
  18008. if (value >= range.begin && value < range.end) {
  18009. return i;
  18010. }
  18011. }
  18012. return -1;
  18013. }
  18014. function isRTLRangeFor(value) {
  18015. var range = UnicodeRanges[13];
  18016. if (value >= range.begin && value < range.end) {
  18017. return true;
  18018. }
  18019. range = UnicodeRanges[11];
  18020. if (value >= range.begin && value < range.end) {
  18021. return true;
  18022. }
  18023. return false;
  18024. }
  18025. // The normalization table is obtained by filtering the Unicode characters
  18026. // database with <compat> entries.
  18027. var NormalizedUnicodes = {
  18028. '\u00A8': '\u0020\u0308',
  18029. '\u00AF': '\u0020\u0304',
  18030. '\u00B4': '\u0020\u0301',
  18031. '\u00B5': '\u03BC',
  18032. '\u00B8': '\u0020\u0327',
  18033. '\u0132': '\u0049\u004A',
  18034. '\u0133': '\u0069\u006A',
  18035. '\u013F': '\u004C\u00B7',
  18036. '\u0140': '\u006C\u00B7',
  18037. '\u0149': '\u02BC\u006E',
  18038. '\u017F': '\u0073',
  18039. '\u01C4': '\u0044\u017D',
  18040. '\u01C5': '\u0044\u017E',
  18041. '\u01C6': '\u0064\u017E',
  18042. '\u01C7': '\u004C\u004A',
  18043. '\u01C8': '\u004C\u006A',
  18044. '\u01C9': '\u006C\u006A',
  18045. '\u01CA': '\u004E\u004A',
  18046. '\u01CB': '\u004E\u006A',
  18047. '\u01CC': '\u006E\u006A',
  18048. '\u01F1': '\u0044\u005A',
  18049. '\u01F2': '\u0044\u007A',
  18050. '\u01F3': '\u0064\u007A',
  18051. '\u02D8': '\u0020\u0306',
  18052. '\u02D9': '\u0020\u0307',
  18053. '\u02DA': '\u0020\u030A',
  18054. '\u02DB': '\u0020\u0328',
  18055. '\u02DC': '\u0020\u0303',
  18056. '\u02DD': '\u0020\u030B',
  18057. '\u037A': '\u0020\u0345',
  18058. '\u0384': '\u0020\u0301',
  18059. '\u03D0': '\u03B2',
  18060. '\u03D1': '\u03B8',
  18061. '\u03D2': '\u03A5',
  18062. '\u03D5': '\u03C6',
  18063. '\u03D6': '\u03C0',
  18064. '\u03F0': '\u03BA',
  18065. '\u03F1': '\u03C1',
  18066. '\u03F2': '\u03C2',
  18067. '\u03F4': '\u0398',
  18068. '\u03F5': '\u03B5',
  18069. '\u03F9': '\u03A3',
  18070. '\u0587': '\u0565\u0582',
  18071. '\u0675': '\u0627\u0674',
  18072. '\u0676': '\u0648\u0674',
  18073. '\u0677': '\u06C7\u0674',
  18074. '\u0678': '\u064A\u0674',
  18075. '\u0E33': '\u0E4D\u0E32',
  18076. '\u0EB3': '\u0ECD\u0EB2',
  18077. '\u0EDC': '\u0EAB\u0E99',
  18078. '\u0EDD': '\u0EAB\u0EA1',
  18079. '\u0F77': '\u0FB2\u0F81',
  18080. '\u0F79': '\u0FB3\u0F81',
  18081. '\u1E9A': '\u0061\u02BE',
  18082. '\u1FBD': '\u0020\u0313',
  18083. '\u1FBF': '\u0020\u0313',
  18084. '\u1FC0': '\u0020\u0342',
  18085. '\u1FFE': '\u0020\u0314',
  18086. '\u2002': '\u0020',
  18087. '\u2003': '\u0020',
  18088. '\u2004': '\u0020',
  18089. '\u2005': '\u0020',
  18090. '\u2006': '\u0020',
  18091. '\u2008': '\u0020',
  18092. '\u2009': '\u0020',
  18093. '\u200A': '\u0020',
  18094. '\u2017': '\u0020\u0333',
  18095. '\u2024': '\u002E',
  18096. '\u2025': '\u002E\u002E',
  18097. '\u2026': '\u002E\u002E\u002E',
  18098. '\u2033': '\u2032\u2032',
  18099. '\u2034': '\u2032\u2032\u2032',
  18100. '\u2036': '\u2035\u2035',
  18101. '\u2037': '\u2035\u2035\u2035',
  18102. '\u203C': '\u0021\u0021',
  18103. '\u203E': '\u0020\u0305',
  18104. '\u2047': '\u003F\u003F',
  18105. '\u2048': '\u003F\u0021',
  18106. '\u2049': '\u0021\u003F',
  18107. '\u2057': '\u2032\u2032\u2032\u2032',
  18108. '\u205F': '\u0020',
  18109. '\u20A8': '\u0052\u0073',
  18110. '\u2100': '\u0061\u002F\u0063',
  18111. '\u2101': '\u0061\u002F\u0073',
  18112. '\u2103': '\u00B0\u0043',
  18113. '\u2105': '\u0063\u002F\u006F',
  18114. '\u2106': '\u0063\u002F\u0075',
  18115. '\u2107': '\u0190',
  18116. '\u2109': '\u00B0\u0046',
  18117. '\u2116': '\u004E\u006F',
  18118. '\u2121': '\u0054\u0045\u004C',
  18119. '\u2135': '\u05D0',
  18120. '\u2136': '\u05D1',
  18121. '\u2137': '\u05D2',
  18122. '\u2138': '\u05D3',
  18123. '\u213B': '\u0046\u0041\u0058',
  18124. '\u2160': '\u0049',
  18125. '\u2161': '\u0049\u0049',
  18126. '\u2162': '\u0049\u0049\u0049',
  18127. '\u2163': '\u0049\u0056',
  18128. '\u2164': '\u0056',
  18129. '\u2165': '\u0056\u0049',
  18130. '\u2166': '\u0056\u0049\u0049',
  18131. '\u2167': '\u0056\u0049\u0049\u0049',
  18132. '\u2168': '\u0049\u0058',
  18133. '\u2169': '\u0058',
  18134. '\u216A': '\u0058\u0049',
  18135. '\u216B': '\u0058\u0049\u0049',
  18136. '\u216C': '\u004C',
  18137. '\u216D': '\u0043',
  18138. '\u216E': '\u0044',
  18139. '\u216F': '\u004D',
  18140. '\u2170': '\u0069',
  18141. '\u2171': '\u0069\u0069',
  18142. '\u2172': '\u0069\u0069\u0069',
  18143. '\u2173': '\u0069\u0076',
  18144. '\u2174': '\u0076',
  18145. '\u2175': '\u0076\u0069',
  18146. '\u2176': '\u0076\u0069\u0069',
  18147. '\u2177': '\u0076\u0069\u0069\u0069',
  18148. '\u2178': '\u0069\u0078',
  18149. '\u2179': '\u0078',
  18150. '\u217A': '\u0078\u0069',
  18151. '\u217B': '\u0078\u0069\u0069',
  18152. '\u217C': '\u006C',
  18153. '\u217D': '\u0063',
  18154. '\u217E': '\u0064',
  18155. '\u217F': '\u006D',
  18156. '\u222C': '\u222B\u222B',
  18157. '\u222D': '\u222B\u222B\u222B',
  18158. '\u222F': '\u222E\u222E',
  18159. '\u2230': '\u222E\u222E\u222E',
  18160. '\u2474': '\u0028\u0031\u0029',
  18161. '\u2475': '\u0028\u0032\u0029',
  18162. '\u2476': '\u0028\u0033\u0029',
  18163. '\u2477': '\u0028\u0034\u0029',
  18164. '\u2478': '\u0028\u0035\u0029',
  18165. '\u2479': '\u0028\u0036\u0029',
  18166. '\u247A': '\u0028\u0037\u0029',
  18167. '\u247B': '\u0028\u0038\u0029',
  18168. '\u247C': '\u0028\u0039\u0029',
  18169. '\u247D': '\u0028\u0031\u0030\u0029',
  18170. '\u247E': '\u0028\u0031\u0031\u0029',
  18171. '\u247F': '\u0028\u0031\u0032\u0029',
  18172. '\u2480': '\u0028\u0031\u0033\u0029',
  18173. '\u2481': '\u0028\u0031\u0034\u0029',
  18174. '\u2482': '\u0028\u0031\u0035\u0029',
  18175. '\u2483': '\u0028\u0031\u0036\u0029',
  18176. '\u2484': '\u0028\u0031\u0037\u0029',
  18177. '\u2485': '\u0028\u0031\u0038\u0029',
  18178. '\u2486': '\u0028\u0031\u0039\u0029',
  18179. '\u2487': '\u0028\u0032\u0030\u0029',
  18180. '\u2488': '\u0031\u002E',
  18181. '\u2489': '\u0032\u002E',
  18182. '\u248A': '\u0033\u002E',
  18183. '\u248B': '\u0034\u002E',
  18184. '\u248C': '\u0035\u002E',
  18185. '\u248D': '\u0036\u002E',
  18186. '\u248E': '\u0037\u002E',
  18187. '\u248F': '\u0038\u002E',
  18188. '\u2490': '\u0039\u002E',
  18189. '\u2491': '\u0031\u0030\u002E',
  18190. '\u2492': '\u0031\u0031\u002E',
  18191. '\u2493': '\u0031\u0032\u002E',
  18192. '\u2494': '\u0031\u0033\u002E',
  18193. '\u2495': '\u0031\u0034\u002E',
  18194. '\u2496': '\u0031\u0035\u002E',
  18195. '\u2497': '\u0031\u0036\u002E',
  18196. '\u2498': '\u0031\u0037\u002E',
  18197. '\u2499': '\u0031\u0038\u002E',
  18198. '\u249A': '\u0031\u0039\u002E',
  18199. '\u249B': '\u0032\u0030\u002E',
  18200. '\u249C': '\u0028\u0061\u0029',
  18201. '\u249D': '\u0028\u0062\u0029',
  18202. '\u249E': '\u0028\u0063\u0029',
  18203. '\u249F': '\u0028\u0064\u0029',
  18204. '\u24A0': '\u0028\u0065\u0029',
  18205. '\u24A1': '\u0028\u0066\u0029',
  18206. '\u24A2': '\u0028\u0067\u0029',
  18207. '\u24A3': '\u0028\u0068\u0029',
  18208. '\u24A4': '\u0028\u0069\u0029',
  18209. '\u24A5': '\u0028\u006A\u0029',
  18210. '\u24A6': '\u0028\u006B\u0029',
  18211. '\u24A7': '\u0028\u006C\u0029',
  18212. '\u24A8': '\u0028\u006D\u0029',
  18213. '\u24A9': '\u0028\u006E\u0029',
  18214. '\u24AA': '\u0028\u006F\u0029',
  18215. '\u24AB': '\u0028\u0070\u0029',
  18216. '\u24AC': '\u0028\u0071\u0029',
  18217. '\u24AD': '\u0028\u0072\u0029',
  18218. '\u24AE': '\u0028\u0073\u0029',
  18219. '\u24AF': '\u0028\u0074\u0029',
  18220. '\u24B0': '\u0028\u0075\u0029',
  18221. '\u24B1': '\u0028\u0076\u0029',
  18222. '\u24B2': '\u0028\u0077\u0029',
  18223. '\u24B3': '\u0028\u0078\u0029',
  18224. '\u24B4': '\u0028\u0079\u0029',
  18225. '\u24B5': '\u0028\u007A\u0029',
  18226. '\u2A0C': '\u222B\u222B\u222B\u222B',
  18227. '\u2A74': '\u003A\u003A\u003D',
  18228. '\u2A75': '\u003D\u003D',
  18229. '\u2A76': '\u003D\u003D\u003D',
  18230. '\u2E9F': '\u6BCD',
  18231. '\u2EF3': '\u9F9F',
  18232. '\u2F00': '\u4E00',
  18233. '\u2F01': '\u4E28',
  18234. '\u2F02': '\u4E36',
  18235. '\u2F03': '\u4E3F',
  18236. '\u2F04': '\u4E59',
  18237. '\u2F05': '\u4E85',
  18238. '\u2F06': '\u4E8C',
  18239. '\u2F07': '\u4EA0',
  18240. '\u2F08': '\u4EBA',
  18241. '\u2F09': '\u513F',
  18242. '\u2F0A': '\u5165',
  18243. '\u2F0B': '\u516B',
  18244. '\u2F0C': '\u5182',
  18245. '\u2F0D': '\u5196',
  18246. '\u2F0E': '\u51AB',
  18247. '\u2F0F': '\u51E0',
  18248. '\u2F10': '\u51F5',
  18249. '\u2F11': '\u5200',
  18250. '\u2F12': '\u529B',
  18251. '\u2F13': '\u52F9',
  18252. '\u2F14': '\u5315',
  18253. '\u2F15': '\u531A',
  18254. '\u2F16': '\u5338',
  18255. '\u2F17': '\u5341',
  18256. '\u2F18': '\u535C',
  18257. '\u2F19': '\u5369',
  18258. '\u2F1A': '\u5382',
  18259. '\u2F1B': '\u53B6',
  18260. '\u2F1C': '\u53C8',
  18261. '\u2F1D': '\u53E3',
  18262. '\u2F1E': '\u56D7',
  18263. '\u2F1F': '\u571F',
  18264. '\u2F20': '\u58EB',
  18265. '\u2F21': '\u5902',
  18266. '\u2F22': '\u590A',
  18267. '\u2F23': '\u5915',
  18268. '\u2F24': '\u5927',
  18269. '\u2F25': '\u5973',
  18270. '\u2F26': '\u5B50',
  18271. '\u2F27': '\u5B80',
  18272. '\u2F28': '\u5BF8',
  18273. '\u2F29': '\u5C0F',
  18274. '\u2F2A': '\u5C22',
  18275. '\u2F2B': '\u5C38',
  18276. '\u2F2C': '\u5C6E',
  18277. '\u2F2D': '\u5C71',
  18278. '\u2F2E': '\u5DDB',
  18279. '\u2F2F': '\u5DE5',
  18280. '\u2F30': '\u5DF1',
  18281. '\u2F31': '\u5DFE',
  18282. '\u2F32': '\u5E72',
  18283. '\u2F33': '\u5E7A',
  18284. '\u2F34': '\u5E7F',
  18285. '\u2F35': '\u5EF4',
  18286. '\u2F36': '\u5EFE',
  18287. '\u2F37': '\u5F0B',
  18288. '\u2F38': '\u5F13',
  18289. '\u2F39': '\u5F50',
  18290. '\u2F3A': '\u5F61',
  18291. '\u2F3B': '\u5F73',
  18292. '\u2F3C': '\u5FC3',
  18293. '\u2F3D': '\u6208',
  18294. '\u2F3E': '\u6236',
  18295. '\u2F3F': '\u624B',
  18296. '\u2F40': '\u652F',
  18297. '\u2F41': '\u6534',
  18298. '\u2F42': '\u6587',
  18299. '\u2F43': '\u6597',
  18300. '\u2F44': '\u65A4',
  18301. '\u2F45': '\u65B9',
  18302. '\u2F46': '\u65E0',
  18303. '\u2F47': '\u65E5',
  18304. '\u2F48': '\u66F0',
  18305. '\u2F49': '\u6708',
  18306. '\u2F4A': '\u6728',
  18307. '\u2F4B': '\u6B20',
  18308. '\u2F4C': '\u6B62',
  18309. '\u2F4D': '\u6B79',
  18310. '\u2F4E': '\u6BB3',
  18311. '\u2F4F': '\u6BCB',
  18312. '\u2F50': '\u6BD4',
  18313. '\u2F51': '\u6BDB',
  18314. '\u2F52': '\u6C0F',
  18315. '\u2F53': '\u6C14',
  18316. '\u2F54': '\u6C34',
  18317. '\u2F55': '\u706B',
  18318. '\u2F56': '\u722A',
  18319. '\u2F57': '\u7236',
  18320. '\u2F58': '\u723B',
  18321. '\u2F59': '\u723F',
  18322. '\u2F5A': '\u7247',
  18323. '\u2F5B': '\u7259',
  18324. '\u2F5C': '\u725B',
  18325. '\u2F5D': '\u72AC',
  18326. '\u2F5E': '\u7384',
  18327. '\u2F5F': '\u7389',
  18328. '\u2F60': '\u74DC',
  18329. '\u2F61': '\u74E6',
  18330. '\u2F62': '\u7518',
  18331. '\u2F63': '\u751F',
  18332. '\u2F64': '\u7528',
  18333. '\u2F65': '\u7530',
  18334. '\u2F66': '\u758B',
  18335. '\u2F67': '\u7592',
  18336. '\u2F68': '\u7676',
  18337. '\u2F69': '\u767D',
  18338. '\u2F6A': '\u76AE',
  18339. '\u2F6B': '\u76BF',
  18340. '\u2F6C': '\u76EE',
  18341. '\u2F6D': '\u77DB',
  18342. '\u2F6E': '\u77E2',
  18343. '\u2F6F': '\u77F3',
  18344. '\u2F70': '\u793A',
  18345. '\u2F71': '\u79B8',
  18346. '\u2F72': '\u79BE',
  18347. '\u2F73': '\u7A74',
  18348. '\u2F74': '\u7ACB',
  18349. '\u2F75': '\u7AF9',
  18350. '\u2F76': '\u7C73',
  18351. '\u2F77': '\u7CF8',
  18352. '\u2F78': '\u7F36',
  18353. '\u2F79': '\u7F51',
  18354. '\u2F7A': '\u7F8A',
  18355. '\u2F7B': '\u7FBD',
  18356. '\u2F7C': '\u8001',
  18357. '\u2F7D': '\u800C',
  18358. '\u2F7E': '\u8012',
  18359. '\u2F7F': '\u8033',
  18360. '\u2F80': '\u807F',
  18361. '\u2F81': '\u8089',
  18362. '\u2F82': '\u81E3',
  18363. '\u2F83': '\u81EA',
  18364. '\u2F84': '\u81F3',
  18365. '\u2F85': '\u81FC',
  18366. '\u2F86': '\u820C',
  18367. '\u2F87': '\u821B',
  18368. '\u2F88': '\u821F',
  18369. '\u2F89': '\u826E',
  18370. '\u2F8A': '\u8272',
  18371. '\u2F8B': '\u8278',
  18372. '\u2F8C': '\u864D',
  18373. '\u2F8D': '\u866B',
  18374. '\u2F8E': '\u8840',
  18375. '\u2F8F': '\u884C',
  18376. '\u2F90': '\u8863',
  18377. '\u2F91': '\u897E',
  18378. '\u2F92': '\u898B',
  18379. '\u2F93': '\u89D2',
  18380. '\u2F94': '\u8A00',
  18381. '\u2F95': '\u8C37',
  18382. '\u2F96': '\u8C46',
  18383. '\u2F97': '\u8C55',
  18384. '\u2F98': '\u8C78',
  18385. '\u2F99': '\u8C9D',
  18386. '\u2F9A': '\u8D64',
  18387. '\u2F9B': '\u8D70',
  18388. '\u2F9C': '\u8DB3',
  18389. '\u2F9D': '\u8EAB',
  18390. '\u2F9E': '\u8ECA',
  18391. '\u2F9F': '\u8F9B',
  18392. '\u2FA0': '\u8FB0',
  18393. '\u2FA1': '\u8FB5',
  18394. '\u2FA2': '\u9091',
  18395. '\u2FA3': '\u9149',
  18396. '\u2FA4': '\u91C6',
  18397. '\u2FA5': '\u91CC',
  18398. '\u2FA6': '\u91D1',
  18399. '\u2FA7': '\u9577',
  18400. '\u2FA8': '\u9580',
  18401. '\u2FA9': '\u961C',
  18402. '\u2FAA': '\u96B6',
  18403. '\u2FAB': '\u96B9',
  18404. '\u2FAC': '\u96E8',
  18405. '\u2FAD': '\u9751',
  18406. '\u2FAE': '\u975E',
  18407. '\u2FAF': '\u9762',
  18408. '\u2FB0': '\u9769',
  18409. '\u2FB1': '\u97CB',
  18410. '\u2FB2': '\u97ED',
  18411. '\u2FB3': '\u97F3',
  18412. '\u2FB4': '\u9801',
  18413. '\u2FB5': '\u98A8',
  18414. '\u2FB6': '\u98DB',
  18415. '\u2FB7': '\u98DF',
  18416. '\u2FB8': '\u9996',
  18417. '\u2FB9': '\u9999',
  18418. '\u2FBA': '\u99AC',
  18419. '\u2FBB': '\u9AA8',
  18420. '\u2FBC': '\u9AD8',
  18421. '\u2FBD': '\u9ADF',
  18422. '\u2FBE': '\u9B25',
  18423. '\u2FBF': '\u9B2F',
  18424. '\u2FC0': '\u9B32',
  18425. '\u2FC1': '\u9B3C',
  18426. '\u2FC2': '\u9B5A',
  18427. '\u2FC3': '\u9CE5',
  18428. '\u2FC4': '\u9E75',
  18429. '\u2FC5': '\u9E7F',
  18430. '\u2FC6': '\u9EA5',
  18431. '\u2FC7': '\u9EBB',
  18432. '\u2FC8': '\u9EC3',
  18433. '\u2FC9': '\u9ECD',
  18434. '\u2FCA': '\u9ED1',
  18435. '\u2FCB': '\u9EF9',
  18436. '\u2FCC': '\u9EFD',
  18437. '\u2FCD': '\u9F0E',
  18438. '\u2FCE': '\u9F13',
  18439. '\u2FCF': '\u9F20',
  18440. '\u2FD0': '\u9F3B',
  18441. '\u2FD1': '\u9F4A',
  18442. '\u2FD2': '\u9F52',
  18443. '\u2FD3': '\u9F8D',
  18444. '\u2FD4': '\u9F9C',
  18445. '\u2FD5': '\u9FA0',
  18446. '\u3036': '\u3012',
  18447. '\u3038': '\u5341',
  18448. '\u3039': '\u5344',
  18449. '\u303A': '\u5345',
  18450. '\u309B': '\u0020\u3099',
  18451. '\u309C': '\u0020\u309A',
  18452. '\u3131': '\u1100',
  18453. '\u3132': '\u1101',
  18454. '\u3133': '\u11AA',
  18455. '\u3134': '\u1102',
  18456. '\u3135': '\u11AC',
  18457. '\u3136': '\u11AD',
  18458. '\u3137': '\u1103',
  18459. '\u3138': '\u1104',
  18460. '\u3139': '\u1105',
  18461. '\u313A': '\u11B0',
  18462. '\u313B': '\u11B1',
  18463. '\u313C': '\u11B2',
  18464. '\u313D': '\u11B3',
  18465. '\u313E': '\u11B4',
  18466. '\u313F': '\u11B5',
  18467. '\u3140': '\u111A',
  18468. '\u3141': '\u1106',
  18469. '\u3142': '\u1107',
  18470. '\u3143': '\u1108',
  18471. '\u3144': '\u1121',
  18472. '\u3145': '\u1109',
  18473. '\u3146': '\u110A',
  18474. '\u3147': '\u110B',
  18475. '\u3148': '\u110C',
  18476. '\u3149': '\u110D',
  18477. '\u314A': '\u110E',
  18478. '\u314B': '\u110F',
  18479. '\u314C': '\u1110',
  18480. '\u314D': '\u1111',
  18481. '\u314E': '\u1112',
  18482. '\u314F': '\u1161',
  18483. '\u3150': '\u1162',
  18484. '\u3151': '\u1163',
  18485. '\u3152': '\u1164',
  18486. '\u3153': '\u1165',
  18487. '\u3154': '\u1166',
  18488. '\u3155': '\u1167',
  18489. '\u3156': '\u1168',
  18490. '\u3157': '\u1169',
  18491. '\u3158': '\u116A',
  18492. '\u3159': '\u116B',
  18493. '\u315A': '\u116C',
  18494. '\u315B': '\u116D',
  18495. '\u315C': '\u116E',
  18496. '\u315D': '\u116F',
  18497. '\u315E': '\u1170',
  18498. '\u315F': '\u1171',
  18499. '\u3160': '\u1172',
  18500. '\u3161': '\u1173',
  18501. '\u3162': '\u1174',
  18502. '\u3163': '\u1175',
  18503. '\u3164': '\u1160',
  18504. '\u3165': '\u1114',
  18505. '\u3166': '\u1115',
  18506. '\u3167': '\u11C7',
  18507. '\u3168': '\u11C8',
  18508. '\u3169': '\u11CC',
  18509. '\u316A': '\u11CE',
  18510. '\u316B': '\u11D3',
  18511. '\u316C': '\u11D7',
  18512. '\u316D': '\u11D9',
  18513. '\u316E': '\u111C',
  18514. '\u316F': '\u11DD',
  18515. '\u3170': '\u11DF',
  18516. '\u3171': '\u111D',
  18517. '\u3172': '\u111E',
  18518. '\u3173': '\u1120',
  18519. '\u3174': '\u1122',
  18520. '\u3175': '\u1123',
  18521. '\u3176': '\u1127',
  18522. '\u3177': '\u1129',
  18523. '\u3178': '\u112B',
  18524. '\u3179': '\u112C',
  18525. '\u317A': '\u112D',
  18526. '\u317B': '\u112E',
  18527. '\u317C': '\u112F',
  18528. '\u317D': '\u1132',
  18529. '\u317E': '\u1136',
  18530. '\u317F': '\u1140',
  18531. '\u3180': '\u1147',
  18532. '\u3181': '\u114C',
  18533. '\u3182': '\u11F1',
  18534. '\u3183': '\u11F2',
  18535. '\u3184': '\u1157',
  18536. '\u3185': '\u1158',
  18537. '\u3186': '\u1159',
  18538. '\u3187': '\u1184',
  18539. '\u3188': '\u1185',
  18540. '\u3189': '\u1188',
  18541. '\u318A': '\u1191',
  18542. '\u318B': '\u1192',
  18543. '\u318C': '\u1194',
  18544. '\u318D': '\u119E',
  18545. '\u318E': '\u11A1',
  18546. '\u3200': '\u0028\u1100\u0029',
  18547. '\u3201': '\u0028\u1102\u0029',
  18548. '\u3202': '\u0028\u1103\u0029',
  18549. '\u3203': '\u0028\u1105\u0029',
  18550. '\u3204': '\u0028\u1106\u0029',
  18551. '\u3205': '\u0028\u1107\u0029',
  18552. '\u3206': '\u0028\u1109\u0029',
  18553. '\u3207': '\u0028\u110B\u0029',
  18554. '\u3208': '\u0028\u110C\u0029',
  18555. '\u3209': '\u0028\u110E\u0029',
  18556. '\u320A': '\u0028\u110F\u0029',
  18557. '\u320B': '\u0028\u1110\u0029',
  18558. '\u320C': '\u0028\u1111\u0029',
  18559. '\u320D': '\u0028\u1112\u0029',
  18560. '\u320E': '\u0028\u1100\u1161\u0029',
  18561. '\u320F': '\u0028\u1102\u1161\u0029',
  18562. '\u3210': '\u0028\u1103\u1161\u0029',
  18563. '\u3211': '\u0028\u1105\u1161\u0029',
  18564. '\u3212': '\u0028\u1106\u1161\u0029',
  18565. '\u3213': '\u0028\u1107\u1161\u0029',
  18566. '\u3214': '\u0028\u1109\u1161\u0029',
  18567. '\u3215': '\u0028\u110B\u1161\u0029',
  18568. '\u3216': '\u0028\u110C\u1161\u0029',
  18569. '\u3217': '\u0028\u110E\u1161\u0029',
  18570. '\u3218': '\u0028\u110F\u1161\u0029',
  18571. '\u3219': '\u0028\u1110\u1161\u0029',
  18572. '\u321A': '\u0028\u1111\u1161\u0029',
  18573. '\u321B': '\u0028\u1112\u1161\u0029',
  18574. '\u321C': '\u0028\u110C\u116E\u0029',
  18575. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  18576. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  18577. '\u3220': '\u0028\u4E00\u0029',
  18578. '\u3221': '\u0028\u4E8C\u0029',
  18579. '\u3222': '\u0028\u4E09\u0029',
  18580. '\u3223': '\u0028\u56DB\u0029',
  18581. '\u3224': '\u0028\u4E94\u0029',
  18582. '\u3225': '\u0028\u516D\u0029',
  18583. '\u3226': '\u0028\u4E03\u0029',
  18584. '\u3227': '\u0028\u516B\u0029',
  18585. '\u3228': '\u0028\u4E5D\u0029',
  18586. '\u3229': '\u0028\u5341\u0029',
  18587. '\u322A': '\u0028\u6708\u0029',
  18588. '\u322B': '\u0028\u706B\u0029',
  18589. '\u322C': '\u0028\u6C34\u0029',
  18590. '\u322D': '\u0028\u6728\u0029',
  18591. '\u322E': '\u0028\u91D1\u0029',
  18592. '\u322F': '\u0028\u571F\u0029',
  18593. '\u3230': '\u0028\u65E5\u0029',
  18594. '\u3231': '\u0028\u682A\u0029',
  18595. '\u3232': '\u0028\u6709\u0029',
  18596. '\u3233': '\u0028\u793E\u0029',
  18597. '\u3234': '\u0028\u540D\u0029',
  18598. '\u3235': '\u0028\u7279\u0029',
  18599. '\u3236': '\u0028\u8CA1\u0029',
  18600. '\u3237': '\u0028\u795D\u0029',
  18601. '\u3238': '\u0028\u52B4\u0029',
  18602. '\u3239': '\u0028\u4EE3\u0029',
  18603. '\u323A': '\u0028\u547C\u0029',
  18604. '\u323B': '\u0028\u5B66\u0029',
  18605. '\u323C': '\u0028\u76E3\u0029',
  18606. '\u323D': '\u0028\u4F01\u0029',
  18607. '\u323E': '\u0028\u8CC7\u0029',
  18608. '\u323F': '\u0028\u5354\u0029',
  18609. '\u3240': '\u0028\u796D\u0029',
  18610. '\u3241': '\u0028\u4F11\u0029',
  18611. '\u3242': '\u0028\u81EA\u0029',
  18612. '\u3243': '\u0028\u81F3\u0029',
  18613. '\u32C0': '\u0031\u6708',
  18614. '\u32C1': '\u0032\u6708',
  18615. '\u32C2': '\u0033\u6708',
  18616. '\u32C3': '\u0034\u6708',
  18617. '\u32C4': '\u0035\u6708',
  18618. '\u32C5': '\u0036\u6708',
  18619. '\u32C6': '\u0037\u6708',
  18620. '\u32C7': '\u0038\u6708',
  18621. '\u32C8': '\u0039\u6708',
  18622. '\u32C9': '\u0031\u0030\u6708',
  18623. '\u32CA': '\u0031\u0031\u6708',
  18624. '\u32CB': '\u0031\u0032\u6708',
  18625. '\u3358': '\u0030\u70B9',
  18626. '\u3359': '\u0031\u70B9',
  18627. '\u335A': '\u0032\u70B9',
  18628. '\u335B': '\u0033\u70B9',
  18629. '\u335C': '\u0034\u70B9',
  18630. '\u335D': '\u0035\u70B9',
  18631. '\u335E': '\u0036\u70B9',
  18632. '\u335F': '\u0037\u70B9',
  18633. '\u3360': '\u0038\u70B9',
  18634. '\u3361': '\u0039\u70B9',
  18635. '\u3362': '\u0031\u0030\u70B9',
  18636. '\u3363': '\u0031\u0031\u70B9',
  18637. '\u3364': '\u0031\u0032\u70B9',
  18638. '\u3365': '\u0031\u0033\u70B9',
  18639. '\u3366': '\u0031\u0034\u70B9',
  18640. '\u3367': '\u0031\u0035\u70B9',
  18641. '\u3368': '\u0031\u0036\u70B9',
  18642. '\u3369': '\u0031\u0037\u70B9',
  18643. '\u336A': '\u0031\u0038\u70B9',
  18644. '\u336B': '\u0031\u0039\u70B9',
  18645. '\u336C': '\u0032\u0030\u70B9',
  18646. '\u336D': '\u0032\u0031\u70B9',
  18647. '\u336E': '\u0032\u0032\u70B9',
  18648. '\u336F': '\u0032\u0033\u70B9',
  18649. '\u3370': '\u0032\u0034\u70B9',
  18650. '\u33E0': '\u0031\u65E5',
  18651. '\u33E1': '\u0032\u65E5',
  18652. '\u33E2': '\u0033\u65E5',
  18653. '\u33E3': '\u0034\u65E5',
  18654. '\u33E4': '\u0035\u65E5',
  18655. '\u33E5': '\u0036\u65E5',
  18656. '\u33E6': '\u0037\u65E5',
  18657. '\u33E7': '\u0038\u65E5',
  18658. '\u33E8': '\u0039\u65E5',
  18659. '\u33E9': '\u0031\u0030\u65E5',
  18660. '\u33EA': '\u0031\u0031\u65E5',
  18661. '\u33EB': '\u0031\u0032\u65E5',
  18662. '\u33EC': '\u0031\u0033\u65E5',
  18663. '\u33ED': '\u0031\u0034\u65E5',
  18664. '\u33EE': '\u0031\u0035\u65E5',
  18665. '\u33EF': '\u0031\u0036\u65E5',
  18666. '\u33F0': '\u0031\u0037\u65E5',
  18667. '\u33F1': '\u0031\u0038\u65E5',
  18668. '\u33F2': '\u0031\u0039\u65E5',
  18669. '\u33F3': '\u0032\u0030\u65E5',
  18670. '\u33F4': '\u0032\u0031\u65E5',
  18671. '\u33F5': '\u0032\u0032\u65E5',
  18672. '\u33F6': '\u0032\u0033\u65E5',
  18673. '\u33F7': '\u0032\u0034\u65E5',
  18674. '\u33F8': '\u0032\u0035\u65E5',
  18675. '\u33F9': '\u0032\u0036\u65E5',
  18676. '\u33FA': '\u0032\u0037\u65E5',
  18677. '\u33FB': '\u0032\u0038\u65E5',
  18678. '\u33FC': '\u0032\u0039\u65E5',
  18679. '\u33FD': '\u0033\u0030\u65E5',
  18680. '\u33FE': '\u0033\u0031\u65E5',
  18681. '\uFB00': '\u0066\u0066',
  18682. '\uFB01': '\u0066\u0069',
  18683. '\uFB02': '\u0066\u006C',
  18684. '\uFB03': '\u0066\u0066\u0069',
  18685. '\uFB04': '\u0066\u0066\u006C',
  18686. '\uFB05': '\u017F\u0074',
  18687. '\uFB06': '\u0073\u0074',
  18688. '\uFB13': '\u0574\u0576',
  18689. '\uFB14': '\u0574\u0565',
  18690. '\uFB15': '\u0574\u056B',
  18691. '\uFB16': '\u057E\u0576',
  18692. '\uFB17': '\u0574\u056D',
  18693. '\uFB4F': '\u05D0\u05DC',
  18694. '\uFB50': '\u0671',
  18695. '\uFB51': '\u0671',
  18696. '\uFB52': '\u067B',
  18697. '\uFB53': '\u067B',
  18698. '\uFB54': '\u067B',
  18699. '\uFB55': '\u067B',
  18700. '\uFB56': '\u067E',
  18701. '\uFB57': '\u067E',
  18702. '\uFB58': '\u067E',
  18703. '\uFB59': '\u067E',
  18704. '\uFB5A': '\u0680',
  18705. '\uFB5B': '\u0680',
  18706. '\uFB5C': '\u0680',
  18707. '\uFB5D': '\u0680',
  18708. '\uFB5E': '\u067A',
  18709. '\uFB5F': '\u067A',
  18710. '\uFB60': '\u067A',
  18711. '\uFB61': '\u067A',
  18712. '\uFB62': '\u067F',
  18713. '\uFB63': '\u067F',
  18714. '\uFB64': '\u067F',
  18715. '\uFB65': '\u067F',
  18716. '\uFB66': '\u0679',
  18717. '\uFB67': '\u0679',
  18718. '\uFB68': '\u0679',
  18719. '\uFB69': '\u0679',
  18720. '\uFB6A': '\u06A4',
  18721. '\uFB6B': '\u06A4',
  18722. '\uFB6C': '\u06A4',
  18723. '\uFB6D': '\u06A4',
  18724. '\uFB6E': '\u06A6',
  18725. '\uFB6F': '\u06A6',
  18726. '\uFB70': '\u06A6',
  18727. '\uFB71': '\u06A6',
  18728. '\uFB72': '\u0684',
  18729. '\uFB73': '\u0684',
  18730. '\uFB74': '\u0684',
  18731. '\uFB75': '\u0684',
  18732. '\uFB76': '\u0683',
  18733. '\uFB77': '\u0683',
  18734. '\uFB78': '\u0683',
  18735. '\uFB79': '\u0683',
  18736. '\uFB7A': '\u0686',
  18737. '\uFB7B': '\u0686',
  18738. '\uFB7C': '\u0686',
  18739. '\uFB7D': '\u0686',
  18740. '\uFB7E': '\u0687',
  18741. '\uFB7F': '\u0687',
  18742. '\uFB80': '\u0687',
  18743. '\uFB81': '\u0687',
  18744. '\uFB82': '\u068D',
  18745. '\uFB83': '\u068D',
  18746. '\uFB84': '\u068C',
  18747. '\uFB85': '\u068C',
  18748. '\uFB86': '\u068E',
  18749. '\uFB87': '\u068E',
  18750. '\uFB88': '\u0688',
  18751. '\uFB89': '\u0688',
  18752. '\uFB8A': '\u0698',
  18753. '\uFB8B': '\u0698',
  18754. '\uFB8C': '\u0691',
  18755. '\uFB8D': '\u0691',
  18756. '\uFB8E': '\u06A9',
  18757. '\uFB8F': '\u06A9',
  18758. '\uFB90': '\u06A9',
  18759. '\uFB91': '\u06A9',
  18760. '\uFB92': '\u06AF',
  18761. '\uFB93': '\u06AF',
  18762. '\uFB94': '\u06AF',
  18763. '\uFB95': '\u06AF',
  18764. '\uFB96': '\u06B3',
  18765. '\uFB97': '\u06B3',
  18766. '\uFB98': '\u06B3',
  18767. '\uFB99': '\u06B3',
  18768. '\uFB9A': '\u06B1',
  18769. '\uFB9B': '\u06B1',
  18770. '\uFB9C': '\u06B1',
  18771. '\uFB9D': '\u06B1',
  18772. '\uFB9E': '\u06BA',
  18773. '\uFB9F': '\u06BA',
  18774. '\uFBA0': '\u06BB',
  18775. '\uFBA1': '\u06BB',
  18776. '\uFBA2': '\u06BB',
  18777. '\uFBA3': '\u06BB',
  18778. '\uFBA4': '\u06C0',
  18779. '\uFBA5': '\u06C0',
  18780. '\uFBA6': '\u06C1',
  18781. '\uFBA7': '\u06C1',
  18782. '\uFBA8': '\u06C1',
  18783. '\uFBA9': '\u06C1',
  18784. '\uFBAA': '\u06BE',
  18785. '\uFBAB': '\u06BE',
  18786. '\uFBAC': '\u06BE',
  18787. '\uFBAD': '\u06BE',
  18788. '\uFBAE': '\u06D2',
  18789. '\uFBAF': '\u06D2',
  18790. '\uFBB0': '\u06D3',
  18791. '\uFBB1': '\u06D3',
  18792. '\uFBD3': '\u06AD',
  18793. '\uFBD4': '\u06AD',
  18794. '\uFBD5': '\u06AD',
  18795. '\uFBD6': '\u06AD',
  18796. '\uFBD7': '\u06C7',
  18797. '\uFBD8': '\u06C7',
  18798. '\uFBD9': '\u06C6',
  18799. '\uFBDA': '\u06C6',
  18800. '\uFBDB': '\u06C8',
  18801. '\uFBDC': '\u06C8',
  18802. '\uFBDD': '\u0677',
  18803. '\uFBDE': '\u06CB',
  18804. '\uFBDF': '\u06CB',
  18805. '\uFBE0': '\u06C5',
  18806. '\uFBE1': '\u06C5',
  18807. '\uFBE2': '\u06C9',
  18808. '\uFBE3': '\u06C9',
  18809. '\uFBE4': '\u06D0',
  18810. '\uFBE5': '\u06D0',
  18811. '\uFBE6': '\u06D0',
  18812. '\uFBE7': '\u06D0',
  18813. '\uFBE8': '\u0649',
  18814. '\uFBE9': '\u0649',
  18815. '\uFBEA': '\u0626\u0627',
  18816. '\uFBEB': '\u0626\u0627',
  18817. '\uFBEC': '\u0626\u06D5',
  18818. '\uFBED': '\u0626\u06D5',
  18819. '\uFBEE': '\u0626\u0648',
  18820. '\uFBEF': '\u0626\u0648',
  18821. '\uFBF0': '\u0626\u06C7',
  18822. '\uFBF1': '\u0626\u06C7',
  18823. '\uFBF2': '\u0626\u06C6',
  18824. '\uFBF3': '\u0626\u06C6',
  18825. '\uFBF4': '\u0626\u06C8',
  18826. '\uFBF5': '\u0626\u06C8',
  18827. '\uFBF6': '\u0626\u06D0',
  18828. '\uFBF7': '\u0626\u06D0',
  18829. '\uFBF8': '\u0626\u06D0',
  18830. '\uFBF9': '\u0626\u0649',
  18831. '\uFBFA': '\u0626\u0649',
  18832. '\uFBFB': '\u0626\u0649',
  18833. '\uFBFC': '\u06CC',
  18834. '\uFBFD': '\u06CC',
  18835. '\uFBFE': '\u06CC',
  18836. '\uFBFF': '\u06CC',
  18837. '\uFC00': '\u0626\u062C',
  18838. '\uFC01': '\u0626\u062D',
  18839. '\uFC02': '\u0626\u0645',
  18840. '\uFC03': '\u0626\u0649',
  18841. '\uFC04': '\u0626\u064A',
  18842. '\uFC05': '\u0628\u062C',
  18843. '\uFC06': '\u0628\u062D',
  18844. '\uFC07': '\u0628\u062E',
  18845. '\uFC08': '\u0628\u0645',
  18846. '\uFC09': '\u0628\u0649',
  18847. '\uFC0A': '\u0628\u064A',
  18848. '\uFC0B': '\u062A\u062C',
  18849. '\uFC0C': '\u062A\u062D',
  18850. '\uFC0D': '\u062A\u062E',
  18851. '\uFC0E': '\u062A\u0645',
  18852. '\uFC0F': '\u062A\u0649',
  18853. '\uFC10': '\u062A\u064A',
  18854. '\uFC11': '\u062B\u062C',
  18855. '\uFC12': '\u062B\u0645',
  18856. '\uFC13': '\u062B\u0649',
  18857. '\uFC14': '\u062B\u064A',
  18858. '\uFC15': '\u062C\u062D',
  18859. '\uFC16': '\u062C\u0645',
  18860. '\uFC17': '\u062D\u062C',
  18861. '\uFC18': '\u062D\u0645',
  18862. '\uFC19': '\u062E\u062C',
  18863. '\uFC1A': '\u062E\u062D',
  18864. '\uFC1B': '\u062E\u0645',
  18865. '\uFC1C': '\u0633\u062C',
  18866. '\uFC1D': '\u0633\u062D',
  18867. '\uFC1E': '\u0633\u062E',
  18868. '\uFC1F': '\u0633\u0645',
  18869. '\uFC20': '\u0635\u062D',
  18870. '\uFC21': '\u0635\u0645',
  18871. '\uFC22': '\u0636\u062C',
  18872. '\uFC23': '\u0636\u062D',
  18873. '\uFC24': '\u0636\u062E',
  18874. '\uFC25': '\u0636\u0645',
  18875. '\uFC26': '\u0637\u062D',
  18876. '\uFC27': '\u0637\u0645',
  18877. '\uFC28': '\u0638\u0645',
  18878. '\uFC29': '\u0639\u062C',
  18879. '\uFC2A': '\u0639\u0645',
  18880. '\uFC2B': '\u063A\u062C',
  18881. '\uFC2C': '\u063A\u0645',
  18882. '\uFC2D': '\u0641\u062C',
  18883. '\uFC2E': '\u0641\u062D',
  18884. '\uFC2F': '\u0641\u062E',
  18885. '\uFC30': '\u0641\u0645',
  18886. '\uFC31': '\u0641\u0649',
  18887. '\uFC32': '\u0641\u064A',
  18888. '\uFC33': '\u0642\u062D',
  18889. '\uFC34': '\u0642\u0645',
  18890. '\uFC35': '\u0642\u0649',
  18891. '\uFC36': '\u0642\u064A',
  18892. '\uFC37': '\u0643\u0627',
  18893. '\uFC38': '\u0643\u062C',
  18894. '\uFC39': '\u0643\u062D',
  18895. '\uFC3A': '\u0643\u062E',
  18896. '\uFC3B': '\u0643\u0644',
  18897. '\uFC3C': '\u0643\u0645',
  18898. '\uFC3D': '\u0643\u0649',
  18899. '\uFC3E': '\u0643\u064A',
  18900. '\uFC3F': '\u0644\u062C',
  18901. '\uFC40': '\u0644\u062D',
  18902. '\uFC41': '\u0644\u062E',
  18903. '\uFC42': '\u0644\u0645',
  18904. '\uFC43': '\u0644\u0649',
  18905. '\uFC44': '\u0644\u064A',
  18906. '\uFC45': '\u0645\u062C',
  18907. '\uFC46': '\u0645\u062D',
  18908. '\uFC47': '\u0645\u062E',
  18909. '\uFC48': '\u0645\u0645',
  18910. '\uFC49': '\u0645\u0649',
  18911. '\uFC4A': '\u0645\u064A',
  18912. '\uFC4B': '\u0646\u062C',
  18913. '\uFC4C': '\u0646\u062D',
  18914. '\uFC4D': '\u0646\u062E',
  18915. '\uFC4E': '\u0646\u0645',
  18916. '\uFC4F': '\u0646\u0649',
  18917. '\uFC50': '\u0646\u064A',
  18918. '\uFC51': '\u0647\u062C',
  18919. '\uFC52': '\u0647\u0645',
  18920. '\uFC53': '\u0647\u0649',
  18921. '\uFC54': '\u0647\u064A',
  18922. '\uFC55': '\u064A\u062C',
  18923. '\uFC56': '\u064A\u062D',
  18924. '\uFC57': '\u064A\u062E',
  18925. '\uFC58': '\u064A\u0645',
  18926. '\uFC59': '\u064A\u0649',
  18927. '\uFC5A': '\u064A\u064A',
  18928. '\uFC5B': '\u0630\u0670',
  18929. '\uFC5C': '\u0631\u0670',
  18930. '\uFC5D': '\u0649\u0670',
  18931. '\uFC5E': '\u0020\u064C\u0651',
  18932. '\uFC5F': '\u0020\u064D\u0651',
  18933. '\uFC60': '\u0020\u064E\u0651',
  18934. '\uFC61': '\u0020\u064F\u0651',
  18935. '\uFC62': '\u0020\u0650\u0651',
  18936. '\uFC63': '\u0020\u0651\u0670',
  18937. '\uFC64': '\u0626\u0631',
  18938. '\uFC65': '\u0626\u0632',
  18939. '\uFC66': '\u0626\u0645',
  18940. '\uFC67': '\u0626\u0646',
  18941. '\uFC68': '\u0626\u0649',
  18942. '\uFC69': '\u0626\u064A',
  18943. '\uFC6A': '\u0628\u0631',
  18944. '\uFC6B': '\u0628\u0632',
  18945. '\uFC6C': '\u0628\u0645',
  18946. '\uFC6D': '\u0628\u0646',
  18947. '\uFC6E': '\u0628\u0649',
  18948. '\uFC6F': '\u0628\u064A',
  18949. '\uFC70': '\u062A\u0631',
  18950. '\uFC71': '\u062A\u0632',
  18951. '\uFC72': '\u062A\u0645',
  18952. '\uFC73': '\u062A\u0646',
  18953. '\uFC74': '\u062A\u0649',
  18954. '\uFC75': '\u062A\u064A',
  18955. '\uFC76': '\u062B\u0631',
  18956. '\uFC77': '\u062B\u0632',
  18957. '\uFC78': '\u062B\u0645',
  18958. '\uFC79': '\u062B\u0646',
  18959. '\uFC7A': '\u062B\u0649',
  18960. '\uFC7B': '\u062B\u064A',
  18961. '\uFC7C': '\u0641\u0649',
  18962. '\uFC7D': '\u0641\u064A',
  18963. '\uFC7E': '\u0642\u0649',
  18964. '\uFC7F': '\u0642\u064A',
  18965. '\uFC80': '\u0643\u0627',
  18966. '\uFC81': '\u0643\u0644',
  18967. '\uFC82': '\u0643\u0645',
  18968. '\uFC83': '\u0643\u0649',
  18969. '\uFC84': '\u0643\u064A',
  18970. '\uFC85': '\u0644\u0645',
  18971. '\uFC86': '\u0644\u0649',
  18972. '\uFC87': '\u0644\u064A',
  18973. '\uFC88': '\u0645\u0627',
  18974. '\uFC89': '\u0645\u0645',
  18975. '\uFC8A': '\u0646\u0631',
  18976. '\uFC8B': '\u0646\u0632',
  18977. '\uFC8C': '\u0646\u0645',
  18978. '\uFC8D': '\u0646\u0646',
  18979. '\uFC8E': '\u0646\u0649',
  18980. '\uFC8F': '\u0646\u064A',
  18981. '\uFC90': '\u0649\u0670',
  18982. '\uFC91': '\u064A\u0631',
  18983. '\uFC92': '\u064A\u0632',
  18984. '\uFC93': '\u064A\u0645',
  18985. '\uFC94': '\u064A\u0646',
  18986. '\uFC95': '\u064A\u0649',
  18987. '\uFC96': '\u064A\u064A',
  18988. '\uFC97': '\u0626\u062C',
  18989. '\uFC98': '\u0626\u062D',
  18990. '\uFC99': '\u0626\u062E',
  18991. '\uFC9A': '\u0626\u0645',
  18992. '\uFC9B': '\u0626\u0647',
  18993. '\uFC9C': '\u0628\u062C',
  18994. '\uFC9D': '\u0628\u062D',
  18995. '\uFC9E': '\u0628\u062E',
  18996. '\uFC9F': '\u0628\u0645',
  18997. '\uFCA0': '\u0628\u0647',
  18998. '\uFCA1': '\u062A\u062C',
  18999. '\uFCA2': '\u062A\u062D',
  19000. '\uFCA3': '\u062A\u062E',
  19001. '\uFCA4': '\u062A\u0645',
  19002. '\uFCA5': '\u062A\u0647',
  19003. '\uFCA6': '\u062B\u0645',
  19004. '\uFCA7': '\u062C\u062D',
  19005. '\uFCA8': '\u062C\u0645',
  19006. '\uFCA9': '\u062D\u062C',
  19007. '\uFCAA': '\u062D\u0645',
  19008. '\uFCAB': '\u062E\u062C',
  19009. '\uFCAC': '\u062E\u0645',
  19010. '\uFCAD': '\u0633\u062C',
  19011. '\uFCAE': '\u0633\u062D',
  19012. '\uFCAF': '\u0633\u062E',
  19013. '\uFCB0': '\u0633\u0645',
  19014. '\uFCB1': '\u0635\u062D',
  19015. '\uFCB2': '\u0635\u062E',
  19016. '\uFCB3': '\u0635\u0645',
  19017. '\uFCB4': '\u0636\u062C',
  19018. '\uFCB5': '\u0636\u062D',
  19019. '\uFCB6': '\u0636\u062E',
  19020. '\uFCB7': '\u0636\u0645',
  19021. '\uFCB8': '\u0637\u062D',
  19022. '\uFCB9': '\u0638\u0645',
  19023. '\uFCBA': '\u0639\u062C',
  19024. '\uFCBB': '\u0639\u0645',
  19025. '\uFCBC': '\u063A\u062C',
  19026. '\uFCBD': '\u063A\u0645',
  19027. '\uFCBE': '\u0641\u062C',
  19028. '\uFCBF': '\u0641\u062D',
  19029. '\uFCC0': '\u0641\u062E',
  19030. '\uFCC1': '\u0641\u0645',
  19031. '\uFCC2': '\u0642\u062D',
  19032. '\uFCC3': '\u0642\u0645',
  19033. '\uFCC4': '\u0643\u062C',
  19034. '\uFCC5': '\u0643\u062D',
  19035. '\uFCC6': '\u0643\u062E',
  19036. '\uFCC7': '\u0643\u0644',
  19037. '\uFCC8': '\u0643\u0645',
  19038. '\uFCC9': '\u0644\u062C',
  19039. '\uFCCA': '\u0644\u062D',
  19040. '\uFCCB': '\u0644\u062E',
  19041. '\uFCCC': '\u0644\u0645',
  19042. '\uFCCD': '\u0644\u0647',
  19043. '\uFCCE': '\u0645\u062C',
  19044. '\uFCCF': '\u0645\u062D',
  19045. '\uFCD0': '\u0645\u062E',
  19046. '\uFCD1': '\u0645\u0645',
  19047. '\uFCD2': '\u0646\u062C',
  19048. '\uFCD3': '\u0646\u062D',
  19049. '\uFCD4': '\u0646\u062E',
  19050. '\uFCD5': '\u0646\u0645',
  19051. '\uFCD6': '\u0646\u0647',
  19052. '\uFCD7': '\u0647\u062C',
  19053. '\uFCD8': '\u0647\u0645',
  19054. '\uFCD9': '\u0647\u0670',
  19055. '\uFCDA': '\u064A\u062C',
  19056. '\uFCDB': '\u064A\u062D',
  19057. '\uFCDC': '\u064A\u062E',
  19058. '\uFCDD': '\u064A\u0645',
  19059. '\uFCDE': '\u064A\u0647',
  19060. '\uFCDF': '\u0626\u0645',
  19061. '\uFCE0': '\u0626\u0647',
  19062. '\uFCE1': '\u0628\u0645',
  19063. '\uFCE2': '\u0628\u0647',
  19064. '\uFCE3': '\u062A\u0645',
  19065. '\uFCE4': '\u062A\u0647',
  19066. '\uFCE5': '\u062B\u0645',
  19067. '\uFCE6': '\u062B\u0647',
  19068. '\uFCE7': '\u0633\u0645',
  19069. '\uFCE8': '\u0633\u0647',
  19070. '\uFCE9': '\u0634\u0645',
  19071. '\uFCEA': '\u0634\u0647',
  19072. '\uFCEB': '\u0643\u0644',
  19073. '\uFCEC': '\u0643\u0645',
  19074. '\uFCED': '\u0644\u0645',
  19075. '\uFCEE': '\u0646\u0645',
  19076. '\uFCEF': '\u0646\u0647',
  19077. '\uFCF0': '\u064A\u0645',
  19078. '\uFCF1': '\u064A\u0647',
  19079. '\uFCF2': '\u0640\u064E\u0651',
  19080. '\uFCF3': '\u0640\u064F\u0651',
  19081. '\uFCF4': '\u0640\u0650\u0651',
  19082. '\uFCF5': '\u0637\u0649',
  19083. '\uFCF6': '\u0637\u064A',
  19084. '\uFCF7': '\u0639\u0649',
  19085. '\uFCF8': '\u0639\u064A',
  19086. '\uFCF9': '\u063A\u0649',
  19087. '\uFCFA': '\u063A\u064A',
  19088. '\uFCFB': '\u0633\u0649',
  19089. '\uFCFC': '\u0633\u064A',
  19090. '\uFCFD': '\u0634\u0649',
  19091. '\uFCFE': '\u0634\u064A',
  19092. '\uFCFF': '\u062D\u0649',
  19093. '\uFD00': '\u062D\u064A',
  19094. '\uFD01': '\u062C\u0649',
  19095. '\uFD02': '\u062C\u064A',
  19096. '\uFD03': '\u062E\u0649',
  19097. '\uFD04': '\u062E\u064A',
  19098. '\uFD05': '\u0635\u0649',
  19099. '\uFD06': '\u0635\u064A',
  19100. '\uFD07': '\u0636\u0649',
  19101. '\uFD08': '\u0636\u064A',
  19102. '\uFD09': '\u0634\u062C',
  19103. '\uFD0A': '\u0634\u062D',
  19104. '\uFD0B': '\u0634\u062E',
  19105. '\uFD0C': '\u0634\u0645',
  19106. '\uFD0D': '\u0634\u0631',
  19107. '\uFD0E': '\u0633\u0631',
  19108. '\uFD0F': '\u0635\u0631',
  19109. '\uFD10': '\u0636\u0631',
  19110. '\uFD11': '\u0637\u0649',
  19111. '\uFD12': '\u0637\u064A',
  19112. '\uFD13': '\u0639\u0649',
  19113. '\uFD14': '\u0639\u064A',
  19114. '\uFD15': '\u063A\u0649',
  19115. '\uFD16': '\u063A\u064A',
  19116. '\uFD17': '\u0633\u0649',
  19117. '\uFD18': '\u0633\u064A',
  19118. '\uFD19': '\u0634\u0649',
  19119. '\uFD1A': '\u0634\u064A',
  19120. '\uFD1B': '\u062D\u0649',
  19121. '\uFD1C': '\u062D\u064A',
  19122. '\uFD1D': '\u062C\u0649',
  19123. '\uFD1E': '\u062C\u064A',
  19124. '\uFD1F': '\u062E\u0649',
  19125. '\uFD20': '\u062E\u064A',
  19126. '\uFD21': '\u0635\u0649',
  19127. '\uFD22': '\u0635\u064A',
  19128. '\uFD23': '\u0636\u0649',
  19129. '\uFD24': '\u0636\u064A',
  19130. '\uFD25': '\u0634\u062C',
  19131. '\uFD26': '\u0634\u062D',
  19132. '\uFD27': '\u0634\u062E',
  19133. '\uFD28': '\u0634\u0645',
  19134. '\uFD29': '\u0634\u0631',
  19135. '\uFD2A': '\u0633\u0631',
  19136. '\uFD2B': '\u0635\u0631',
  19137. '\uFD2C': '\u0636\u0631',
  19138. '\uFD2D': '\u0634\u062C',
  19139. '\uFD2E': '\u0634\u062D',
  19140. '\uFD2F': '\u0634\u062E',
  19141. '\uFD30': '\u0634\u0645',
  19142. '\uFD31': '\u0633\u0647',
  19143. '\uFD32': '\u0634\u0647',
  19144. '\uFD33': '\u0637\u0645',
  19145. '\uFD34': '\u0633\u062C',
  19146. '\uFD35': '\u0633\u062D',
  19147. '\uFD36': '\u0633\u062E',
  19148. '\uFD37': '\u0634\u062C',
  19149. '\uFD38': '\u0634\u062D',
  19150. '\uFD39': '\u0634\u062E',
  19151. '\uFD3A': '\u0637\u0645',
  19152. '\uFD3B': '\u0638\u0645',
  19153. '\uFD3C': '\u0627\u064B',
  19154. '\uFD3D': '\u0627\u064B',
  19155. '\uFD50': '\u062A\u062C\u0645',
  19156. '\uFD51': '\u062A\u062D\u062C',
  19157. '\uFD52': '\u062A\u062D\u062C',
  19158. '\uFD53': '\u062A\u062D\u0645',
  19159. '\uFD54': '\u062A\u062E\u0645',
  19160. '\uFD55': '\u062A\u0645\u062C',
  19161. '\uFD56': '\u062A\u0645\u062D',
  19162. '\uFD57': '\u062A\u0645\u062E',
  19163. '\uFD58': '\u062C\u0645\u062D',
  19164. '\uFD59': '\u062C\u0645\u062D',
  19165. '\uFD5A': '\u062D\u0645\u064A',
  19166. '\uFD5B': '\u062D\u0645\u0649',
  19167. '\uFD5C': '\u0633\u062D\u062C',
  19168. '\uFD5D': '\u0633\u062C\u062D',
  19169. '\uFD5E': '\u0633\u062C\u0649',
  19170. '\uFD5F': '\u0633\u0645\u062D',
  19171. '\uFD60': '\u0633\u0645\u062D',
  19172. '\uFD61': '\u0633\u0645\u062C',
  19173. '\uFD62': '\u0633\u0645\u0645',
  19174. '\uFD63': '\u0633\u0645\u0645',
  19175. '\uFD64': '\u0635\u062D\u062D',
  19176. '\uFD65': '\u0635\u062D\u062D',
  19177. '\uFD66': '\u0635\u0645\u0645',
  19178. '\uFD67': '\u0634\u062D\u0645',
  19179. '\uFD68': '\u0634\u062D\u0645',
  19180. '\uFD69': '\u0634\u062C\u064A',
  19181. '\uFD6A': '\u0634\u0645\u062E',
  19182. '\uFD6B': '\u0634\u0645\u062E',
  19183. '\uFD6C': '\u0634\u0645\u0645',
  19184. '\uFD6D': '\u0634\u0645\u0645',
  19185. '\uFD6E': '\u0636\u062D\u0649',
  19186. '\uFD6F': '\u0636\u062E\u0645',
  19187. '\uFD70': '\u0636\u062E\u0645',
  19188. '\uFD71': '\u0637\u0645\u062D',
  19189. '\uFD72': '\u0637\u0645\u062D',
  19190. '\uFD73': '\u0637\u0645\u0645',
  19191. '\uFD74': '\u0637\u0645\u064A',
  19192. '\uFD75': '\u0639\u062C\u0645',
  19193. '\uFD76': '\u0639\u0645\u0645',
  19194. '\uFD77': '\u0639\u0645\u0645',
  19195. '\uFD78': '\u0639\u0645\u0649',
  19196. '\uFD79': '\u063A\u0645\u0645',
  19197. '\uFD7A': '\u063A\u0645\u064A',
  19198. '\uFD7B': '\u063A\u0645\u0649',
  19199. '\uFD7C': '\u0641\u062E\u0645',
  19200. '\uFD7D': '\u0641\u062E\u0645',
  19201. '\uFD7E': '\u0642\u0645\u062D',
  19202. '\uFD7F': '\u0642\u0645\u0645',
  19203. '\uFD80': '\u0644\u062D\u0645',
  19204. '\uFD81': '\u0644\u062D\u064A',
  19205. '\uFD82': '\u0644\u062D\u0649',
  19206. '\uFD83': '\u0644\u062C\u062C',
  19207. '\uFD84': '\u0644\u062C\u062C',
  19208. '\uFD85': '\u0644\u062E\u0645',
  19209. '\uFD86': '\u0644\u062E\u0645',
  19210. '\uFD87': '\u0644\u0645\u062D',
  19211. '\uFD88': '\u0644\u0645\u062D',
  19212. '\uFD89': '\u0645\u062D\u062C',
  19213. '\uFD8A': '\u0645\u062D\u0645',
  19214. '\uFD8B': '\u0645\u062D\u064A',
  19215. '\uFD8C': '\u0645\u062C\u062D',
  19216. '\uFD8D': '\u0645\u062C\u0645',
  19217. '\uFD8E': '\u0645\u062E\u062C',
  19218. '\uFD8F': '\u0645\u062E\u0645',
  19219. '\uFD92': '\u0645\u062C\u062E',
  19220. '\uFD93': '\u0647\u0645\u062C',
  19221. '\uFD94': '\u0647\u0645\u0645',
  19222. '\uFD95': '\u0646\u062D\u0645',
  19223. '\uFD96': '\u0646\u062D\u0649',
  19224. '\uFD97': '\u0646\u062C\u0645',
  19225. '\uFD98': '\u0646\u062C\u0645',
  19226. '\uFD99': '\u0646\u062C\u0649',
  19227. '\uFD9A': '\u0646\u0645\u064A',
  19228. '\uFD9B': '\u0646\u0645\u0649',
  19229. '\uFD9C': '\u064A\u0645\u0645',
  19230. '\uFD9D': '\u064A\u0645\u0645',
  19231. '\uFD9E': '\u0628\u062E\u064A',
  19232. '\uFD9F': '\u062A\u062C\u064A',
  19233. '\uFDA0': '\u062A\u062C\u0649',
  19234. '\uFDA1': '\u062A\u062E\u064A',
  19235. '\uFDA2': '\u062A\u062E\u0649',
  19236. '\uFDA3': '\u062A\u0645\u064A',
  19237. '\uFDA4': '\u062A\u0645\u0649',
  19238. '\uFDA5': '\u062C\u0645\u064A',
  19239. '\uFDA6': '\u062C\u062D\u0649',
  19240. '\uFDA7': '\u062C\u0645\u0649',
  19241. '\uFDA8': '\u0633\u062E\u0649',
  19242. '\uFDA9': '\u0635\u062D\u064A',
  19243. '\uFDAA': '\u0634\u062D\u064A',
  19244. '\uFDAB': '\u0636\u062D\u064A',
  19245. '\uFDAC': '\u0644\u062C\u064A',
  19246. '\uFDAD': '\u0644\u0645\u064A',
  19247. '\uFDAE': '\u064A\u062D\u064A',
  19248. '\uFDAF': '\u064A\u062C\u064A',
  19249. '\uFDB0': '\u064A\u0645\u064A',
  19250. '\uFDB1': '\u0645\u0645\u064A',
  19251. '\uFDB2': '\u0642\u0645\u064A',
  19252. '\uFDB3': '\u0646\u062D\u064A',
  19253. '\uFDB4': '\u0642\u0645\u062D',
  19254. '\uFDB5': '\u0644\u062D\u0645',
  19255. '\uFDB6': '\u0639\u0645\u064A',
  19256. '\uFDB7': '\u0643\u0645\u064A',
  19257. '\uFDB8': '\u0646\u062C\u062D',
  19258. '\uFDB9': '\u0645\u062E\u064A',
  19259. '\uFDBA': '\u0644\u062C\u0645',
  19260. '\uFDBB': '\u0643\u0645\u0645',
  19261. '\uFDBC': '\u0644\u062C\u0645',
  19262. '\uFDBD': '\u0646\u062C\u062D',
  19263. '\uFDBE': '\u062C\u062D\u064A',
  19264. '\uFDBF': '\u062D\u062C\u064A',
  19265. '\uFDC0': '\u0645\u062C\u064A',
  19266. '\uFDC1': '\u0641\u0645\u064A',
  19267. '\uFDC2': '\u0628\u062D\u064A',
  19268. '\uFDC3': '\u0643\u0645\u0645',
  19269. '\uFDC4': '\u0639\u062C\u0645',
  19270. '\uFDC5': '\u0635\u0645\u0645',
  19271. '\uFDC6': '\u0633\u062E\u064A',
  19272. '\uFDC7': '\u0646\u062C\u064A',
  19273. '\uFE49': '\u203E',
  19274. '\uFE4A': '\u203E',
  19275. '\uFE4B': '\u203E',
  19276. '\uFE4C': '\u203E',
  19277. '\uFE4D': '\u005F',
  19278. '\uFE4E': '\u005F',
  19279. '\uFE4F': '\u005F',
  19280. '\uFE80': '\u0621',
  19281. '\uFE81': '\u0622',
  19282. '\uFE82': '\u0622',
  19283. '\uFE83': '\u0623',
  19284. '\uFE84': '\u0623',
  19285. '\uFE85': '\u0624',
  19286. '\uFE86': '\u0624',
  19287. '\uFE87': '\u0625',
  19288. '\uFE88': '\u0625',
  19289. '\uFE89': '\u0626',
  19290. '\uFE8A': '\u0626',
  19291. '\uFE8B': '\u0626',
  19292. '\uFE8C': '\u0626',
  19293. '\uFE8D': '\u0627',
  19294. '\uFE8E': '\u0627',
  19295. '\uFE8F': '\u0628',
  19296. '\uFE90': '\u0628',
  19297. '\uFE91': '\u0628',
  19298. '\uFE92': '\u0628',
  19299. '\uFE93': '\u0629',
  19300. '\uFE94': '\u0629',
  19301. '\uFE95': '\u062A',
  19302. '\uFE96': '\u062A',
  19303. '\uFE97': '\u062A',
  19304. '\uFE98': '\u062A',
  19305. '\uFE99': '\u062B',
  19306. '\uFE9A': '\u062B',
  19307. '\uFE9B': '\u062B',
  19308. '\uFE9C': '\u062B',
  19309. '\uFE9D': '\u062C',
  19310. '\uFE9E': '\u062C',
  19311. '\uFE9F': '\u062C',
  19312. '\uFEA0': '\u062C',
  19313. '\uFEA1': '\u062D',
  19314. '\uFEA2': '\u062D',
  19315. '\uFEA3': '\u062D',
  19316. '\uFEA4': '\u062D',
  19317. '\uFEA5': '\u062E',
  19318. '\uFEA6': '\u062E',
  19319. '\uFEA7': '\u062E',
  19320. '\uFEA8': '\u062E',
  19321. '\uFEA9': '\u062F',
  19322. '\uFEAA': '\u062F',
  19323. '\uFEAB': '\u0630',
  19324. '\uFEAC': '\u0630',
  19325. '\uFEAD': '\u0631',
  19326. '\uFEAE': '\u0631',
  19327. '\uFEAF': '\u0632',
  19328. '\uFEB0': '\u0632',
  19329. '\uFEB1': '\u0633',
  19330. '\uFEB2': '\u0633',
  19331. '\uFEB3': '\u0633',
  19332. '\uFEB4': '\u0633',
  19333. '\uFEB5': '\u0634',
  19334. '\uFEB6': '\u0634',
  19335. '\uFEB7': '\u0634',
  19336. '\uFEB8': '\u0634',
  19337. '\uFEB9': '\u0635',
  19338. '\uFEBA': '\u0635',
  19339. '\uFEBB': '\u0635',
  19340. '\uFEBC': '\u0635',
  19341. '\uFEBD': '\u0636',
  19342. '\uFEBE': '\u0636',
  19343. '\uFEBF': '\u0636',
  19344. '\uFEC0': '\u0636',
  19345. '\uFEC1': '\u0637',
  19346. '\uFEC2': '\u0637',
  19347. '\uFEC3': '\u0637',
  19348. '\uFEC4': '\u0637',
  19349. '\uFEC5': '\u0638',
  19350. '\uFEC6': '\u0638',
  19351. '\uFEC7': '\u0638',
  19352. '\uFEC8': '\u0638',
  19353. '\uFEC9': '\u0639',
  19354. '\uFECA': '\u0639',
  19355. '\uFECB': '\u0639',
  19356. '\uFECC': '\u0639',
  19357. '\uFECD': '\u063A',
  19358. '\uFECE': '\u063A',
  19359. '\uFECF': '\u063A',
  19360. '\uFED0': '\u063A',
  19361. '\uFED1': '\u0641',
  19362. '\uFED2': '\u0641',
  19363. '\uFED3': '\u0641',
  19364. '\uFED4': '\u0641',
  19365. '\uFED5': '\u0642',
  19366. '\uFED6': '\u0642',
  19367. '\uFED7': '\u0642',
  19368. '\uFED8': '\u0642',
  19369. '\uFED9': '\u0643',
  19370. '\uFEDA': '\u0643',
  19371. '\uFEDB': '\u0643',
  19372. '\uFEDC': '\u0643',
  19373. '\uFEDD': '\u0644',
  19374. '\uFEDE': '\u0644',
  19375. '\uFEDF': '\u0644',
  19376. '\uFEE0': '\u0644',
  19377. '\uFEE1': '\u0645',
  19378. '\uFEE2': '\u0645',
  19379. '\uFEE3': '\u0645',
  19380. '\uFEE4': '\u0645',
  19381. '\uFEE5': '\u0646',
  19382. '\uFEE6': '\u0646',
  19383. '\uFEE7': '\u0646',
  19384. '\uFEE8': '\u0646',
  19385. '\uFEE9': '\u0647',
  19386. '\uFEEA': '\u0647',
  19387. '\uFEEB': '\u0647',
  19388. '\uFEEC': '\u0647',
  19389. '\uFEED': '\u0648',
  19390. '\uFEEE': '\u0648',
  19391. '\uFEEF': '\u0649',
  19392. '\uFEF0': '\u0649',
  19393. '\uFEF1': '\u064A',
  19394. '\uFEF2': '\u064A',
  19395. '\uFEF3': '\u064A',
  19396. '\uFEF4': '\u064A',
  19397. '\uFEF5': '\u0644\u0622',
  19398. '\uFEF6': '\u0644\u0622',
  19399. '\uFEF7': '\u0644\u0623',
  19400. '\uFEF8': '\u0644\u0623',
  19401. '\uFEF9': '\u0644\u0625',
  19402. '\uFEFA': '\u0644\u0625',
  19403. '\uFEFB': '\u0644\u0627',
  19404. '\uFEFC': '\u0644\u0627'
  19405. };
  19406. function reverseIfRtl(chars) {
  19407. var charsLength = chars.length;
  19408. //reverse an arabic ligature
  19409. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) {
  19410. return chars;
  19411. }
  19412. var s = '';
  19413. for (var ii = charsLength - 1; ii >= 0; ii--) {
  19414. s += chars[ii];
  19415. }
  19416. return s;
  19417. }
  19418. function adjustWidths(properties) {
  19419. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  19420. return;
  19421. }
  19422. // adjusting width to fontMatrix scale
  19423. var scale = 0.001 / properties.fontMatrix[0];
  19424. var glyphsWidths = properties.widths;
  19425. for (var glyph in glyphsWidths) {
  19426. glyphsWidths[glyph] *= scale;
  19427. }
  19428. properties.defaultWidth *= scale;
  19429. }
  19430. var Glyph = (function GlyphClosure() {
  19431. function Glyph(fontChar, unicode, accent, width, vmetric, operatorList) {
  19432. this.fontChar = fontChar;
  19433. this.unicode = unicode;
  19434. this.accent = accent;
  19435. this.width = width;
  19436. this.vmetric = vmetric;
  19437. this.operatorList = operatorList;
  19438. }
  19439. Glyph.prototype.matchesForCache =
  19440. function(fontChar, unicode, accent, width, vmetric, operatorList) {
  19441. return this.fontChar === fontChar &&
  19442. this.unicode === unicode &&
  19443. this.accent === accent &&
  19444. this.width === width &&
  19445. this.vmetric === vmetric &&
  19446. this.operatorList === operatorList;
  19447. };
  19448. return Glyph;
  19449. })();
  19450. /**
  19451. * 'Font' is the class the outside world should use, it encapsulate all the font
  19452. * decoding logics whatever type it is (assuming the font type is supported).
  19453. *
  19454. * For example to read a Type1 font and to attach it to the document:
  19455. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  19456. * type1Font.bind();
  19457. */
  19458. var Font = (function FontClosure() {
  19459. function Font(name, file, properties) {
  19460. var charCode;
  19461. this.name = name;
  19462. this.loadedName = properties.loadedName;
  19463. this.coded = properties.coded;
  19464. this.loadCharProcs = properties.coded;
  19465. this.sizes = [];
  19466. this.glyphCache = {};
  19467. var names = name.split('+');
  19468. names = names.length > 1 ? names[1] : names[0];
  19469. names = names.split(/[-,_]/g)[0];
  19470. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  19471. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  19472. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  19473. var type = properties.type;
  19474. this.type = type;
  19475. this.fallbackName = (this.isMonospace ? 'monospace' :
  19476. (this.isSerifFont ? 'serif' : 'sans-serif'));
  19477. this.differences = properties.differences;
  19478. this.widths = properties.widths;
  19479. this.defaultWidth = properties.defaultWidth;
  19480. this.composite = properties.composite;
  19481. this.wideChars = properties.wideChars;
  19482. this.cMap = properties.cMap;
  19483. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  19484. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  19485. this.fontMatrix = properties.fontMatrix;
  19486. var unicode = this.buildToUnicode(properties);
  19487. this.toUnicode = properties.toUnicode = unicode.toUnicode;
  19488. this.isIdentityUnicode = properties.isIdentityUnicode = unicode.isIdentity;
  19489. this.toFontChar = [];
  19490. if (properties.type == 'Type3') {
  19491. for (charCode = 0; charCode < 256; charCode++) {
  19492. this.toFontChar[charCode] = (this.differences[charCode] ||
  19493. properties.defaultEncoding[charCode]);
  19494. }
  19495. return;
  19496. }
  19497. this.cidEncoding = properties.cidEncoding;
  19498. this.vertical = properties.vertical;
  19499. if (this.vertical) {
  19500. this.vmetrics = properties.vmetrics;
  19501. this.defaultVMetrics = properties.defaultVMetrics;
  19502. }
  19503. if (!file) {
  19504. this.missingFile = true;
  19505. // The file data is not specified. Trying to fix the font name
  19506. // to be used with the canvas.font.
  19507. var fontName = name.replace(/[,_]/g, '-');
  19508. var isStandardFont = fontName in stdFontMap;
  19509. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  19510. this.bold = (fontName.search(/bold/gi) != -1);
  19511. this.italic = ((fontName.search(/oblique/gi) != -1) ||
  19512. (fontName.search(/italic/gi) != -1));
  19513. // Use 'name' instead of 'fontName' here because the original
  19514. // name ArialBlack for example will be replaced by Helvetica.
  19515. this.black = (name.search(/Black/g) != -1);
  19516. // if at least one width is present, remeasure all chars when exists
  19517. this.remeasure = Object.keys(this.widths).length > 0;
  19518. if (isStandardFont && type === 'CIDFontType2' &&
  19519. properties.cidEncoding.indexOf('Identity-') === 0) {
  19520. // Standard fonts might be embedded as CID font without glyph mapping.
  19521. // Building one based on GlyphMapForStandardFonts.
  19522. var map = [];
  19523. for (var code in GlyphMapForStandardFonts) {
  19524. map[+code] = GlyphMapForStandardFonts[code];
  19525. }
  19526. this.toFontChar = map;
  19527. this.toUnicode = map;
  19528. } else if (/Symbol/i.test(fontName)) {
  19529. var symbols = Encodings.SymbolSetEncoding;
  19530. for (charCode in symbols) {
  19531. var fontChar = GlyphsUnicode[symbols[charCode]];
  19532. if (!fontChar) {
  19533. continue;
  19534. }
  19535. this.toFontChar[charCode] = fontChar;
  19536. }
  19537. } else if (isStandardFont) {
  19538. this.toFontChar = [];
  19539. for (charCode in properties.defaultEncoding) {
  19540. var glyphName = properties.differences[charCode] ||
  19541. properties.defaultEncoding[charCode];
  19542. this.toFontChar[charCode] = GlyphsUnicode[glyphName];
  19543. }
  19544. } else {
  19545. for (charCode in this.toUnicode) {
  19546. this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);
  19547. }
  19548. }
  19549. this.loadedName = fontName.split('-')[0];
  19550. this.loading = false;
  19551. return;
  19552. }
  19553. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  19554. var subtype = properties.subtype;
  19555. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1')) {
  19556. // Some TrueType fonts by mistake claim Type1C
  19557. if (isTrueTypeFile(file)) {
  19558. subtype = 'TrueType';
  19559. } else {
  19560. type = 'Type1';
  19561. }
  19562. }
  19563. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') {
  19564. type = 'CIDFontType0';
  19565. }
  19566. // XXX: Temporarily change the type for open type so we trigger a warning.
  19567. // This should be removed when we add support for open type.
  19568. if (subtype === 'OpenType') {
  19569. type = 'OpenType';
  19570. }
  19571. var data;
  19572. switch (type) {
  19573. case 'Type1':
  19574. case 'CIDFontType0':
  19575. this.mimetype = 'font/opentype';
  19576. var cff = (subtype == 'Type1C' || subtype == 'CIDFontType0C') ?
  19577. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  19578. adjustWidths(properties);
  19579. // Wrap the CFF data inside an OTF font file
  19580. data = this.convert(name, cff, properties);
  19581. break;
  19582. case 'OpenType':
  19583. case 'TrueType':
  19584. case 'CIDFontType2':
  19585. this.mimetype = 'font/opentype';
  19586. // Repair the TrueType file. It is can be damaged in the point of
  19587. // view of the sanitizer
  19588. data = this.checkAndRepair(name, file, properties);
  19589. break;
  19590. default:
  19591. error('Font ' + type + ' is not supported');
  19592. break;
  19593. }
  19594. this.data = data;
  19595. // Transfer some properties again that could change during font conversion
  19596. this.fontMatrix = properties.fontMatrix;
  19597. this.widths = properties.widths;
  19598. this.defaultWidth = properties.defaultWidth;
  19599. this.encoding = properties.baseEncoding;
  19600. this.seacMap = properties.seacMap;
  19601. this.loading = true;
  19602. }
  19603. Font.getFontID = (function () {
  19604. var ID = 1;
  19605. return function Font_getFontID() {
  19606. return String(ID++);
  19607. };
  19608. })();
  19609. function int16(b0, b1) {
  19610. return (b0 << 8) + b1;
  19611. }
  19612. function int32(b0, b1, b2, b3) {
  19613. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  19614. }
  19615. function getMaxPower2(number) {
  19616. var maxPower = 0;
  19617. var value = number;
  19618. while (value >= 2) {
  19619. value /= 2;
  19620. maxPower++;
  19621. }
  19622. value = 2;
  19623. for (var i = 1; i < maxPower; i++) {
  19624. value *= 2;
  19625. }
  19626. return value;
  19627. }
  19628. function string16(value) {
  19629. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19630. }
  19631. function safeString16(value) {
  19632. // clamp value to the 16-bit int range
  19633. value = (value > 0x7FFF ? 0x7FFF : (value < -0x8000 ? -0x8000 : value));
  19634. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  19635. }
  19636. function createOpenTypeHeader(sfnt, file, numTables) {
  19637. // Windows hates the Mac TrueType sfnt version number
  19638. if (sfnt == 'true') {
  19639. sfnt = string32(0x00010000);
  19640. }
  19641. // sfnt version (4 bytes)
  19642. var header = sfnt;
  19643. // numTables (2 bytes)
  19644. header += string16(numTables);
  19645. // searchRange (2 bytes)
  19646. var tablesMaxPower2 = getMaxPower2(numTables);
  19647. var searchRange = tablesMaxPower2 * 16;
  19648. header += string16(searchRange);
  19649. // entrySelector (2 bytes)
  19650. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  19651. // rangeShift (2 bytes)
  19652. header += string16(numTables * 16 - searchRange);
  19653. file.file += header;
  19654. file.virtualOffset += header.length;
  19655. }
  19656. function createTableEntry(file, tag, data) {
  19657. // offset
  19658. var offset = file.virtualOffset;
  19659. // length
  19660. var length = data.length;
  19661. // Per spec tables must be 4-bytes align so add padding as needed
  19662. while (data.length & 3) {
  19663. data.push(0x00);
  19664. }
  19665. while (file.virtualOffset & 3) {
  19666. file.virtualOffset++;
  19667. }
  19668. // checksum
  19669. var checksum = 0, n = data.length;
  19670. for (var i = 0; i < n; i += 4) {
  19671. checksum = (checksum + int32(data[i], data[i + 1], data[i + 2],
  19672. data[i + 3])) | 0;
  19673. }
  19674. var tableEntry = (tag + string32(checksum) +
  19675. string32(offset) + string32(length));
  19676. file.file += tableEntry;
  19677. file.virtualOffset += data.length;
  19678. }
  19679. function isTrueTypeFile(file) {
  19680. var header = file.peekBytes(4);
  19681. return readUint32(header, 0) === 0x00010000;
  19682. }
  19683. /**
  19684. * Rebuilds the char code to glyph ID map by trying to replace the char codes
  19685. * with their unicode value. It also moves char codes that are in known
  19686. * problematic locations.
  19687. * @return {Object} Two properties:
  19688. * 'toFontChar' - maps original char codes(the value that will be read
  19689. * from commands such as show text) to the char codes that will be used in the
  19690. * font that we build
  19691. * 'charCodeToGlyphId' - maps the new font char codes to glyph ids
  19692. */
  19693. function adjustMapping(charCodeToGlyphId, properties) {
  19694. var toUnicode = properties.toUnicode;
  19695. var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
  19696. var isIdentityUnicode = properties.isIdentityUnicode;
  19697. var newMap = Object.create(null);
  19698. var toFontChar = [];
  19699. var usedFontCharCodes = [];
  19700. var nextAvailableFontCharCode = PRIVATE_USE_OFFSET_START;
  19701. for (var originalCharCode in charCodeToGlyphId) {
  19702. originalCharCode |= 0;
  19703. var glyphId = charCodeToGlyphId[originalCharCode];
  19704. var fontCharCode = originalCharCode;
  19705. // First try to map the value to a unicode position if a non identity map
  19706. // was created.
  19707. if (!isIdentityUnicode && originalCharCode in toUnicode) {
  19708. var unicode = toUnicode[fontCharCode];
  19709. // TODO: Try to map ligatures to the correct spot.
  19710. if (unicode.length === 1) {
  19711. fontCharCode = unicode.charCodeAt(0);
  19712. }
  19713. }
  19714. // Try to move control characters, special characters and already mapped
  19715. // characters to the private use area since they will not be drawn by
  19716. // canvas if left in their current position. Also, move characters if the
  19717. // font was symbolic and there is only an identity unicode map since the
  19718. // characters probably aren't in the correct position (fixes an issue
  19719. // with firefox and thuluthfont).
  19720. if ((fontCharCode in usedFontCharCodes ||
  19721. fontCharCode <= 0x1f || // Control chars
  19722. fontCharCode === 0x7F || // Control char
  19723. fontCharCode === 0xAD || // Soft hyphen
  19724. (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
  19725. // Prevent drawing characters in the specials unicode block.
  19726. (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
  19727. (isSymbolic && isIdentityUnicode)) &&
  19728. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
  19729. // Loop to try and find a free spot in the private use area.
  19730. do {
  19731. fontCharCode = nextAvailableFontCharCode++;
  19732. if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
  19733. fontCharCode = 0xF020;
  19734. nextAvailableFontCharCode = fontCharCode + 1;
  19735. }
  19736. } while (fontCharCode in usedFontCharCodes &&
  19737. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END);
  19738. }
  19739. newMap[fontCharCode] = glyphId;
  19740. toFontChar[originalCharCode] = fontCharCode;
  19741. usedFontCharCodes[fontCharCode] = true;
  19742. }
  19743. return {
  19744. toFontChar: toFontChar,
  19745. charCodeToGlyphId: newMap,
  19746. nextAvailableFontCharCode: nextAvailableFontCharCode
  19747. };
  19748. }
  19749. function getRanges(glyphs) {
  19750. // Array.sort() sorts by characters, not numerically, so convert to an
  19751. // array of characters.
  19752. var codes = [];
  19753. for (var charCode in glyphs) {
  19754. codes.push({ fontCharCode: charCode | 0, glyphId: glyphs[charCode] });
  19755. }
  19756. codes.sort(function fontGetRangesSort(a, b) {
  19757. return a.fontCharCode - b.fontCharCode;
  19758. });
  19759. // Split the sorted codes into ranges.
  19760. var ranges = [];
  19761. var length = codes.length;
  19762. for (var n = 0; n < length; ) {
  19763. var start = codes[n].fontCharCode;
  19764. var codeIndices = [codes[n].glyphId];
  19765. ++n;
  19766. var end = start;
  19767. while (n < length && end + 1 == codes[n].fontCharCode) {
  19768. codeIndices.push(codes[n].glyphId);
  19769. ++end;
  19770. ++n;
  19771. if (end === 0xFFFF) {
  19772. break;
  19773. }
  19774. }
  19775. ranges.push([start, end, codeIndices]);
  19776. }
  19777. return ranges;
  19778. }
  19779. function createCmapTable(glyphs) {
  19780. var ranges = getRanges(glyphs);
  19781. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  19782. var cmap = '\x00\x00' + // version
  19783. string16(numTables) + // numTables
  19784. '\x00\x03' + // platformID
  19785. '\x00\x01' + // encodingID
  19786. string32(4 + numTables * 8); // start of the table record
  19787. var i, ii, j, jj;
  19788. for (i = ranges.length - 1; i >= 0; --i) {
  19789. if (ranges[i][0] <= 0xFFFF) { break; }
  19790. }
  19791. var bmpLength = i + 1;
  19792. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  19793. ranges[i][1] = 0xFFFE;
  19794. }
  19795. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  19796. var segCount = bmpLength + trailingRangesCount;
  19797. var segCount2 = segCount * 2;
  19798. var searchRange = getMaxPower2(segCount) * 2;
  19799. var searchEntry = Math.log(segCount) / Math.log(2);
  19800. var rangeShift = 2 * segCount - searchRange;
  19801. // Fill up the 4 parallel arrays describing the segments.
  19802. var startCount = '';
  19803. var endCount = '';
  19804. var idDeltas = '';
  19805. var idRangeOffsets = '';
  19806. var glyphsIds = '';
  19807. var bias = 0;
  19808. var range, start, end, codes;
  19809. for (i = 0, ii = bmpLength; i < ii; i++) {
  19810. range = ranges[i];
  19811. start = range[0];
  19812. end = range[1];
  19813. startCount += string16(start);
  19814. endCount += string16(end);
  19815. codes = range[2];
  19816. var contiguous = true;
  19817. for (j = 1, jj = codes.length; j < jj; ++j) {
  19818. if (codes[j] !== codes[j - 1] + 1) {
  19819. contiguous = false;
  19820. break;
  19821. }
  19822. }
  19823. if (!contiguous) {
  19824. var offset = (segCount - i) * 2 + bias * 2;
  19825. bias += (end - start + 1);
  19826. idDeltas += string16(0);
  19827. idRangeOffsets += string16(offset);
  19828. for (j = 0, jj = codes.length; j < jj; ++j) {
  19829. glyphsIds += string16(codes[j]);
  19830. }
  19831. } else {
  19832. var startCode = codes[0];
  19833. idDeltas += string16((startCode - start) & 0xFFFF);
  19834. idRangeOffsets += string16(0);
  19835. }
  19836. }
  19837. if (trailingRangesCount > 0) {
  19838. endCount += '\xFF\xFF';
  19839. startCount += '\xFF\xFF';
  19840. idDeltas += '\x00\x01';
  19841. idRangeOffsets += '\x00\x00';
  19842. }
  19843. var format314 = '\x00\x00' + // language
  19844. string16(segCount2) +
  19845. string16(searchRange) +
  19846. string16(searchEntry) +
  19847. string16(rangeShift) +
  19848. endCount + '\x00\x00' + startCount +
  19849. idDeltas + idRangeOffsets + glyphsIds;
  19850. var format31012 = '';
  19851. var header31012 = '';
  19852. if (numTables > 1) {
  19853. cmap += '\x00\x03' + // platformID
  19854. '\x00\x0A' + // encodingID
  19855. string32(4 + numTables * 8 +
  19856. 4 + format314.length); // start of the table record
  19857. format31012 = '';
  19858. for (i = 0, ii = ranges.length; i < ii; i++) {
  19859. range = ranges[i];
  19860. start = range[0];
  19861. codes = range[2];
  19862. var code = codes[0];
  19863. for (j = 1, jj = codes.length; j < jj; ++j) {
  19864. if (codes[j] !== codes[j - 1] + 1) {
  19865. end = range[0] + j - 1;
  19866. format31012 += string32(start) + // startCharCode
  19867. string32(end) + // endCharCode
  19868. string32(code); // startGlyphID
  19869. start = end + 1;
  19870. code = codes[j];
  19871. }
  19872. }
  19873. format31012 += string32(start) + // startCharCode
  19874. string32(range[1]) + // endCharCode
  19875. string32(code); // startGlyphID
  19876. }
  19877. header31012 = '\x00\x0C' + // format
  19878. '\x00\x00' + // reserved
  19879. string32(format31012.length + 16) + // length
  19880. '\x00\x00\x00\x00' + // language
  19881. string32(format31012.length / 12); // nGroups
  19882. }
  19883. return stringToArray(cmap +
  19884. '\x00\x04' + // format
  19885. string16(format314.length + 4) + // length
  19886. format314 + header31012 + format31012);
  19887. }
  19888. function validateOS2Table(os2) {
  19889. var stream = new Stream(os2.data);
  19890. var version = stream.getUint16();
  19891. // TODO verify all OS/2 tables fields, but currently we validate only those
  19892. // that give us issues
  19893. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  19894. var selection = stream.getUint16();
  19895. if (version < 4 && (selection & 0x0300)) {
  19896. return false;
  19897. }
  19898. var firstChar = stream.getUint16();
  19899. var lastChar = stream.getUint16();
  19900. if (firstChar > lastChar) {
  19901. return false;
  19902. }
  19903. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  19904. var usWinAscent = stream.getUint16();
  19905. if (usWinAscent === 0) { // makes font unreadable by windows
  19906. return false;
  19907. }
  19908. // OS/2 appears to be valid, resetting some fields
  19909. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  19910. return true;
  19911. }
  19912. function createOS2Table(properties, charstrings, override) {
  19913. override = override || {
  19914. unitsPerEm: 0,
  19915. yMax: 0,
  19916. yMin: 0,
  19917. ascent: 0,
  19918. descent: 0
  19919. };
  19920. var ulUnicodeRange1 = 0;
  19921. var ulUnicodeRange2 = 0;
  19922. var ulUnicodeRange3 = 0;
  19923. var ulUnicodeRange4 = 0;
  19924. var firstCharIndex = null;
  19925. var lastCharIndex = 0;
  19926. if (charstrings) {
  19927. for (var code in charstrings) {
  19928. code |= 0;
  19929. if (firstCharIndex > code || !firstCharIndex) {
  19930. firstCharIndex = code;
  19931. }
  19932. if (lastCharIndex < code) {
  19933. lastCharIndex = code;
  19934. }
  19935. var position = getUnicodeRangeFor(code);
  19936. if (position < 32) {
  19937. ulUnicodeRange1 |= 1 << position;
  19938. } else if (position < 64) {
  19939. ulUnicodeRange2 |= 1 << position - 32;
  19940. } else if (position < 96) {
  19941. ulUnicodeRange3 |= 1 << position - 64;
  19942. } else if (position < 123) {
  19943. ulUnicodeRange4 |= 1 << position - 96;
  19944. } else {
  19945. error('Unicode ranges Bits > 123 are reserved for internal usage');
  19946. }
  19947. }
  19948. } else {
  19949. // TODO
  19950. firstCharIndex = 0;
  19951. lastCharIndex = 255;
  19952. }
  19953. var bbox = properties.bbox || [0, 0, 0, 0];
  19954. var unitsPerEm = (override.unitsPerEm ||
  19955. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0]);
  19956. // if the font units differ to the PDF glyph space units
  19957. // then scale up the values
  19958. var scale = (properties.ascentScaled ? 1.0 :
  19959. unitsPerEm / PDF_GLYPH_SPACE_UNITS);
  19960. var typoAscent = (override.ascent ||
  19961. Math.round(scale * (properties.ascent || bbox[3])));
  19962. var typoDescent = (override.descent ||
  19963. Math.round(scale * (properties.descent || bbox[1])));
  19964. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  19965. typoDescent = -typoDescent; // fixing incorrect descent
  19966. }
  19967. var winAscent = override.yMax || typoAscent;
  19968. var winDescent = -override.yMin || -typoDescent;
  19969. return '\x00\x03' + // version
  19970. '\x02\x24' + // xAvgCharWidth
  19971. '\x01\xF4' + // usWeightClass
  19972. '\x00\x05' + // usWidthClass
  19973. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  19974. '\x02\x8A' + // ySubscriptXSize
  19975. '\x02\xBB' + // ySubscriptYSize
  19976. '\x00\x00' + // ySubscriptXOffset
  19977. '\x00\x8C' + // ySubscriptYOffset
  19978. '\x02\x8A' + // ySuperScriptXSize
  19979. '\x02\xBB' + // ySuperScriptYSize
  19980. '\x00\x00' + // ySuperScriptXOffset
  19981. '\x01\xDF' + // ySuperScriptYOffset
  19982. '\x00\x31' + // yStrikeOutSize
  19983. '\x01\x02' + // yStrikeOutPosition
  19984. '\x00\x00' + // sFamilyClass
  19985. '\x00\x00\x06' +
  19986. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  19987. '\x00\x00\x00\x00\x00\x00' + // Panose
  19988. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  19989. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  19990. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  19991. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  19992. '\x2A\x32\x31\x2A' + // achVendID
  19993. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  19994. string16(firstCharIndex ||
  19995. properties.firstChar) + // usFirstCharIndex
  19996. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  19997. string16(typoAscent) + // sTypoAscender
  19998. string16(typoDescent) + // sTypoDescender
  19999. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  20000. string16(winAscent) + // usWinAscent
  20001. string16(winDescent) + // usWinDescent
  20002. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  20003. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  20004. string16(properties.xHeight) + // sxHeight
  20005. string16(properties.capHeight) + // sCapHeight
  20006. string16(0) + // usDefaultChar
  20007. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  20008. '\x00\x03'; // usMaxContext
  20009. }
  20010. function createPostTable(properties) {
  20011. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  20012. return ('\x00\x03\x00\x00' + // Version number
  20013. string32(angle) + // italicAngle
  20014. '\x00\x00' + // underlinePosition
  20015. '\x00\x00' + // underlineThickness
  20016. string32(properties.fixedPitch) + // isFixedPitch
  20017. '\x00\x00\x00\x00' + // minMemType42
  20018. '\x00\x00\x00\x00' + // maxMemType42
  20019. '\x00\x00\x00\x00' + // minMemType1
  20020. '\x00\x00\x00\x00'); // maxMemType1
  20021. }
  20022. function createNameTable(name, proto) {
  20023. if (!proto) {
  20024. proto = [[], []]; // no strings and unicode strings
  20025. }
  20026. var strings = [
  20027. proto[0][0] || 'Original licence', // 0.Copyright
  20028. proto[0][1] || name, // 1.Font family
  20029. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  20030. proto[0][3] || 'uniqueID', // 3.Unique ID
  20031. proto[0][4] || name, // 4.Full font name
  20032. proto[0][5] || 'Version 0.11', // 5.Version
  20033. proto[0][6] || '', // 6.Postscript name
  20034. proto[0][7] || 'Unknown', // 7.Trademark
  20035. proto[0][8] || 'Unknown', // 8.Manufacturer
  20036. proto[0][9] || 'Unknown' // 9.Designer
  20037. ];
  20038. // Mac want 1-byte per character strings while Windows want
  20039. // 2-bytes per character, so duplicate the names table
  20040. var stringsUnicode = [];
  20041. var i, ii, j, jj, str;
  20042. for (i = 0, ii = strings.length; i < ii; i++) {
  20043. str = proto[1][i] || strings[i];
  20044. var strBufUnicode = [];
  20045. for (j = 0, jj = str.length; j < jj; j++) {
  20046. strBufUnicode.push(string16(str.charCodeAt(j)));
  20047. }
  20048. stringsUnicode.push(strBufUnicode.join(''));
  20049. }
  20050. var names = [strings, stringsUnicode];
  20051. var platforms = ['\x00\x01', '\x00\x03'];
  20052. var encodings = ['\x00\x00', '\x00\x01'];
  20053. var languages = ['\x00\x00', '\x04\x09'];
  20054. var namesRecordCount = strings.length * platforms.length;
  20055. var nameTable =
  20056. '\x00\x00' + // format
  20057. string16(namesRecordCount) + // Number of names Record
  20058. string16(namesRecordCount * 12 + 6); // Storage
  20059. // Build the name records field
  20060. var strOffset = 0;
  20061. for (i = 0, ii = platforms.length; i < ii; i++) {
  20062. var strs = names[i];
  20063. for (j = 0, jj = strs.length; j < jj; j++) {
  20064. str = strs[j];
  20065. var nameRecord =
  20066. platforms[i] + // platform ID
  20067. encodings[i] + // encoding ID
  20068. languages[i] + // language ID
  20069. string16(j) + // name ID
  20070. string16(str.length) +
  20071. string16(strOffset);
  20072. nameTable += nameRecord;
  20073. strOffset += str.length;
  20074. }
  20075. }
  20076. nameTable += strings.join('') + stringsUnicode.join('');
  20077. return nameTable;
  20078. }
  20079. Font.prototype = {
  20080. name: null,
  20081. font: null,
  20082. mimetype: null,
  20083. encoding: null,
  20084. get renderer() {
  20085. var renderer = FontRendererFactory.create(this);
  20086. return shadow(this, 'renderer', renderer);
  20087. },
  20088. exportData: function Font_exportData() {
  20089. var data = {};
  20090. for (var i in this) {
  20091. if (this.hasOwnProperty(i)) {
  20092. data[i] = this[i];
  20093. }
  20094. }
  20095. return data;
  20096. },
  20097. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  20098. function readTableEntry(file) {
  20099. var tag = bytesToString(file.getBytes(4));
  20100. var checksum = file.getInt32();
  20101. var offset = file.getInt32() >>> 0;
  20102. var length = file.getInt32() >>> 0;
  20103. // Read the table associated data
  20104. var previousPosition = file.pos;
  20105. file.pos = file.start ? file.start : 0;
  20106. file.skip(offset);
  20107. var data = file.getBytes(length);
  20108. file.pos = previousPosition;
  20109. if (tag == 'head') {
  20110. // clearing checksum adjustment
  20111. data[8] = data[9] = data[10] = data[11] = 0;
  20112. data[17] |= 0x20; //Set font optimized for cleartype flag
  20113. }
  20114. return {
  20115. tag: tag,
  20116. checksum: checksum,
  20117. length: length,
  20118. offset: offset,
  20119. data: data
  20120. };
  20121. }
  20122. function readOpenTypeHeader(ttf) {
  20123. return {
  20124. version: bytesToString(ttf.getBytes(4)),
  20125. numTables: ttf.getUint16(),
  20126. searchRange: ttf.getUint16(),
  20127. entrySelector: ttf.getUint16(),
  20128. rangeShift: ttf.getUint16()
  20129. };
  20130. }
  20131. /**
  20132. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  20133. * PDF spec
  20134. */
  20135. function readCmapTable(cmap, font, isSymbolicFont) {
  20136. var segment;
  20137. var start = (font.start ? font.start : 0) + cmap.offset;
  20138. font.pos = start;
  20139. var version = font.getUint16();
  20140. var numTables = font.getUint16();
  20141. var potentialTable;
  20142. var canBreak = false;
  20143. // There's an order of preference in terms of which cmap subtable to
  20144. // use:
  20145. // - non-symbolic fonts the preference is a 3,1 table then a 1,0 table
  20146. // - symbolic fonts the preference is a 3,0 table then a 1,0 table
  20147. // The following takes advantage of the fact that the tables are sorted
  20148. // to work.
  20149. for (var i = 0; i < numTables; i++) {
  20150. var platformId = font.getUint16();
  20151. var encodingId = font.getUint16();
  20152. var offset = font.getInt32() >>> 0;
  20153. var useTable = false;
  20154. if (platformId == 1 && encodingId === 0) {
  20155. useTable = true;
  20156. // Continue the loop since there still may be a higher priority
  20157. // table.
  20158. } else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
  20159. useTable = true;
  20160. canBreak = true;
  20161. } else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  20162. useTable = true;
  20163. canBreak = true;
  20164. }
  20165. if (useTable) {
  20166. potentialTable = {
  20167. platformId: platformId,
  20168. encodingId: encodingId,
  20169. offset: offset
  20170. };
  20171. }
  20172. if (canBreak) {
  20173. break;
  20174. }
  20175. }
  20176. if (!potentialTable) {
  20177. warn('Could not find a preferred cmap table.');
  20178. return [];
  20179. }
  20180. font.pos = start + potentialTable.offset;
  20181. var format = font.getUint16();
  20182. var length = font.getUint16();
  20183. var language = font.getUint16();
  20184. var hasShortCmap = false;
  20185. var mappings = [];
  20186. var j, glyphId;
  20187. // TODO(mack): refactor this cmap subtable reading logic out
  20188. if (format === 0) {
  20189. for (j = 0; j < 256; j++) {
  20190. var index = font.getByte();
  20191. if (!index) {
  20192. continue;
  20193. }
  20194. mappings.push({
  20195. charCode: j,
  20196. glyphId: index
  20197. });
  20198. }
  20199. hasShortCmap = true;
  20200. } else if (format === 4) {
  20201. // re-creating the table in format 4 since the encoding
  20202. // might be changed
  20203. var segCount = (font.getUint16() >> 1);
  20204. font.getBytes(6); // skipping range fields
  20205. var segIndex, segments = [];
  20206. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20207. segments.push({ end: font.getUint16() });
  20208. }
  20209. font.getUint16();
  20210. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20211. segments[segIndex].start = font.getUint16();
  20212. }
  20213. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20214. segments[segIndex].delta = font.getUint16();
  20215. }
  20216. var offsetsCount = 0;
  20217. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20218. segment = segments[segIndex];
  20219. var rangeOffset = font.getUint16();
  20220. if (!rangeOffset) {
  20221. segment.offsetIndex = -1;
  20222. continue;
  20223. }
  20224. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  20225. segment.offsetIndex = offsetIndex;
  20226. offsetsCount = Math.max(offsetsCount, offsetIndex +
  20227. segment.end - segment.start + 1);
  20228. }
  20229. var offsets = [];
  20230. for (j = 0; j < offsetsCount; j++) {
  20231. offsets.push(font.getUint16());
  20232. }
  20233. for (segIndex = 0; segIndex < segCount; segIndex++) {
  20234. segment = segments[segIndex];
  20235. start = segment.start;
  20236. var end = segment.end;
  20237. var delta = segment.delta;
  20238. offsetIndex = segment.offsetIndex;
  20239. for (j = start; j <= end; j++) {
  20240. if (j == 0xFFFF) {
  20241. continue;
  20242. }
  20243. glyphId = (offsetIndex < 0 ?
  20244. j : offsets[offsetIndex + j - start]);
  20245. glyphId = (glyphId + delta) & 0xFFFF;
  20246. if (glyphId === 0) {
  20247. continue;
  20248. }
  20249. mappings.push({
  20250. charCode: j,
  20251. glyphId: glyphId
  20252. });
  20253. }
  20254. }
  20255. } else if (format == 6) {
  20256. // Format 6 is a 2-bytes dense mapping, which means the font data
  20257. // lives glue together even if they are pretty far in the unicode
  20258. // table. (This looks weird, so I can have missed something), this
  20259. // works on Linux but seems to fails on Mac so let's rewrite the
  20260. // cmap table to a 3-1-4 style
  20261. var firstCode = font.getUint16();
  20262. var entryCount = font.getUint16();
  20263. for (j = 0; j < entryCount; j++) {
  20264. glyphId = font.getUint16();
  20265. var charCode = firstCode + j;
  20266. mappings.push({
  20267. charCode: charCode,
  20268. glyphId: glyphId
  20269. });
  20270. }
  20271. } else {
  20272. error('cmap table has unsupported format: ' + format);
  20273. }
  20274. // removing duplicate entries
  20275. mappings.sort(function (a, b) {
  20276. return a.charCode - b.charCode;
  20277. });
  20278. for (i = 1; i < mappings.length; i++) {
  20279. if (mappings[i - 1].charCode === mappings[i].charCode) {
  20280. mappings.splice(i, 1);
  20281. i--;
  20282. }
  20283. }
  20284. return {
  20285. platformId: potentialTable.platformId,
  20286. encodingId: potentialTable.encodingId,
  20287. mappings: mappings,
  20288. hasShortCmap: hasShortCmap
  20289. };
  20290. }
  20291. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  20292. if (!header) {
  20293. if (metrics) {
  20294. metrics.data = null;
  20295. }
  20296. return;
  20297. }
  20298. font.pos = (font.start ? font.start : 0) + header.offset;
  20299. font.pos += header.length - 2;
  20300. var numOfMetrics = font.getUint16();
  20301. if (numOfMetrics > numGlyphs) {
  20302. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  20303. 'greater than the numGlyphs (' + numGlyphs + ')');
  20304. // Reduce numOfMetrics if it is greater than numGlyphs
  20305. numOfMetrics = numGlyphs;
  20306. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  20307. header.data[35] = numOfMetrics & 0x00ff;
  20308. }
  20309. var numOfSidebearings = numGlyphs - numOfMetrics;
  20310. var numMissing = numOfSidebearings -
  20311. ((metrics.length - numOfMetrics * 4) >> 1);
  20312. var i, ii;
  20313. if (numMissing > 0) {
  20314. font.pos = (font.start ? font.start : 0) + metrics.offset;
  20315. var entries = '';
  20316. for (i = 0, ii = metrics.length; i < ii; i++) {
  20317. entries += String.fromCharCode(font.getByte());
  20318. }
  20319. for (i = 0; i < numMissing; i++) {
  20320. entries += '\x00\x00';
  20321. }
  20322. metrics.data = stringToArray(entries);
  20323. }
  20324. }
  20325. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  20326. hintsValid) {
  20327. if (sourceEnd - sourceStart <= 12) {
  20328. // glyph with data less than 12 is invalid one
  20329. return 0;
  20330. }
  20331. var glyf = source.subarray(sourceStart, sourceEnd);
  20332. var contoursCount = (glyf[0] << 8) | glyf[1];
  20333. if (contoursCount & 0x8000) {
  20334. // complex glyph, writing as is
  20335. dest.set(glyf, destStart);
  20336. return glyf.length;
  20337. }
  20338. var i, j = 10, flagsCount = 0;
  20339. for (i = 0; i < contoursCount; i++) {
  20340. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  20341. flagsCount = endPoint + 1;
  20342. j += 2;
  20343. }
  20344. // skipping instructions
  20345. var instructionsStart = j;
  20346. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  20347. j += 2 + instructionsLength;
  20348. var instructionsEnd = j;
  20349. // validating flags
  20350. var coordinatesLength = 0;
  20351. for (i = 0; i < flagsCount; i++) {
  20352. var flag = glyf[j++];
  20353. if (flag & 0xC0) {
  20354. // reserved flags must be zero, cleaning up
  20355. glyf[j - 1] = flag & 0x3F;
  20356. }
  20357. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  20358. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  20359. coordinatesLength += xyLength;
  20360. if (flag & 8) {
  20361. var repeat = glyf[j++];
  20362. i += repeat;
  20363. coordinatesLength += repeat * xyLength;
  20364. }
  20365. }
  20366. // glyph without coordinates will be rejected
  20367. if (coordinatesLength === 0) {
  20368. return 0;
  20369. }
  20370. var glyphDataLength = j + coordinatesLength;
  20371. if (glyphDataLength > glyf.length) {
  20372. // not enough data for coordinates
  20373. return 0;
  20374. }
  20375. if (!hintsValid && instructionsLength > 0) {
  20376. dest.set(glyf.subarray(0, instructionsStart), destStart);
  20377. dest.set([0, 0], destStart + instructionsStart);
  20378. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  20379. destStart + instructionsStart + 2);
  20380. glyphDataLength -= instructionsLength;
  20381. if (glyf.length - glyphDataLength > 3) {
  20382. glyphDataLength = (glyphDataLength + 3) & ~3;
  20383. }
  20384. return glyphDataLength;
  20385. }
  20386. if (glyf.length - glyphDataLength > 3) {
  20387. // truncating and aligning to 4 bytes the long glyph data
  20388. glyphDataLength = (glyphDataLength + 3) & ~3;
  20389. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  20390. return glyphDataLength;
  20391. }
  20392. // glyph data is fine
  20393. dest.set(glyf, destStart);
  20394. return glyf.length;
  20395. }
  20396. function sanitizeHead(head, numGlyphs, locaLength) {
  20397. var data = head.data;
  20398. // Validate version:
  20399. // Should always be 0x00010000
  20400. var version = int32(data[0], data[1], data[2], data[3]);
  20401. if (version >> 16 !== 1) {
  20402. info('Attempting to fix invalid version in head table: ' + version);
  20403. data[0] = 0;
  20404. data[1] = 1;
  20405. data[2] = 0;
  20406. data[3] = 0;
  20407. }
  20408. var indexToLocFormat = int16(data[50], data[51]);
  20409. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  20410. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  20411. indexToLocFormat);
  20412. // The value of indexToLocFormat should be 0 if the loca table
  20413. // consists of short offsets, and should be 1 if the loca table
  20414. // consists of long offsets.
  20415. //
  20416. // The number of entries in the loca table should be numGlyphs + 1.
  20417. //
  20418. // Using this information, we can work backwards to deduce if the
  20419. // size of each offset in the loca table, and thus figure out the
  20420. // appropriate value for indexToLocFormat.
  20421. var numGlyphsPlusOne = numGlyphs + 1;
  20422. if (locaLength === numGlyphsPlusOne << 1) {
  20423. // 0x0000 indicates the loca table consists of short offsets
  20424. data[50] = 0;
  20425. data[51] = 0;
  20426. } else if (locaLength === numGlyphsPlusOne << 2) {
  20427. // 0x0001 indicates the loca table consists of long offsets
  20428. data[50] = 0;
  20429. data[51] = 1;
  20430. } else {
  20431. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  20432. }
  20433. }
  20434. }
  20435. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  20436. isGlyphLocationsLong, hintsValid,
  20437. dupFirstEntry) {
  20438. var itemSize, itemDecode, itemEncode;
  20439. if (isGlyphLocationsLong) {
  20440. itemSize = 4;
  20441. itemDecode = function fontItemDecodeLong(data, offset) {
  20442. return (data[offset] << 24) | (data[offset + 1] << 16) |
  20443. (data[offset + 2] << 8) | data[offset + 3];
  20444. };
  20445. itemEncode = function fontItemEncodeLong(data, offset, value) {
  20446. data[offset] = (value >>> 24) & 0xFF;
  20447. data[offset + 1] = (value >> 16) & 0xFF;
  20448. data[offset + 2] = (value >> 8) & 0xFF;
  20449. data[offset + 3] = value & 0xFF;
  20450. };
  20451. } else {
  20452. itemSize = 2;
  20453. itemDecode = function fontItemDecode(data, offset) {
  20454. return (data[offset] << 9) | (data[offset + 1] << 1);
  20455. };
  20456. itemEncode = function fontItemEncode(data, offset, value) {
  20457. data[offset] = (value >> 9) & 0xFF;
  20458. data[offset + 1] = (value >> 1) & 0xFF;
  20459. };
  20460. }
  20461. var locaData = loca.data;
  20462. var locaDataSize = itemSize * (1 + numGlyphs);
  20463. // is loca.data too short or long?
  20464. if (locaData.length !== locaDataSize) {
  20465. locaData = new Uint8Array(locaDataSize);
  20466. locaData.set(loca.data.subarray(0, locaDataSize));
  20467. loca.data = locaData;
  20468. }
  20469. // removing the invalid glyphs
  20470. var oldGlyfData = glyf.data;
  20471. var oldGlyfDataLength = oldGlyfData.length;
  20472. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  20473. var startOffset = itemDecode(locaData, 0);
  20474. var writeOffset = 0;
  20475. itemEncode(locaData, 0, writeOffset);
  20476. var i, j;
  20477. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20478. var endOffset = itemDecode(locaData, j);
  20479. if (endOffset > oldGlyfDataLength &&
  20480. ((oldGlyfDataLength + 3) & ~3) === endOffset) {
  20481. // Aspose breaks fonts by aligning the glyphs to the qword, but not
  20482. // the glyf table size, which makes last glyph out of range.
  20483. endOffset = oldGlyfDataLength;
  20484. }
  20485. if (endOffset > oldGlyfDataLength) {
  20486. // glyph end offset points outside glyf data, rejecting the glyph
  20487. itemEncode(locaData, j, writeOffset);
  20488. startOffset = endOffset;
  20489. continue;
  20490. }
  20491. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  20492. newGlyfData, writeOffset, hintsValid);
  20493. writeOffset += newLength;
  20494. itemEncode(locaData, j, writeOffset);
  20495. startOffset = endOffset;
  20496. }
  20497. if (writeOffset === 0) {
  20498. // glyf table cannot be empty -- redoing the glyf and loca tables
  20499. // to have single glyph with one point
  20500. var simpleGlyph = new Uint8Array(
  20501. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  20502. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  20503. itemEncode(locaData, j, simpleGlyph.length);
  20504. }
  20505. glyf.data = simpleGlyph;
  20506. return;
  20507. }
  20508. if (dupFirstEntry) {
  20509. var firstEntryLength = itemDecode(locaData, itemSize);
  20510. if (newGlyfData.length > firstEntryLength + writeOffset) {
  20511. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  20512. } else {
  20513. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  20514. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  20515. }
  20516. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  20517. itemEncode(loca.data, locaData.length - itemSize,
  20518. writeOffset + firstEntryLength);
  20519. } else {
  20520. glyf.data = newGlyfData.subarray(0, writeOffset);
  20521. }
  20522. }
  20523. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  20524. var start = (font.start ? font.start : 0) + post.offset;
  20525. font.pos = start;
  20526. var length = post.length, end = start + length;
  20527. var version = font.getInt32();
  20528. // skip rest to the tables
  20529. font.getBytes(28);
  20530. var glyphNames;
  20531. var valid = true;
  20532. var i;
  20533. switch (version) {
  20534. case 0x00010000:
  20535. glyphNames = MacStandardGlyphOrdering;
  20536. break;
  20537. case 0x00020000:
  20538. var numGlyphs = font.getUint16();
  20539. if (numGlyphs != maxpNumGlyphs) {
  20540. valid = false;
  20541. break;
  20542. }
  20543. var glyphNameIndexes = [];
  20544. for (i = 0; i < numGlyphs; ++i) {
  20545. var index = font.getUint16();
  20546. if (index >= 32768) {
  20547. valid = false;
  20548. break;
  20549. }
  20550. glyphNameIndexes.push(index);
  20551. }
  20552. if (!valid) {
  20553. break;
  20554. }
  20555. var customNames = [];
  20556. while (font.pos < end) {
  20557. var stringLength = font.getByte();
  20558. var string = '';
  20559. for (i = 0; i < stringLength; ++i) {
  20560. string += String.fromCharCode(font.getByte());
  20561. }
  20562. customNames.push(string);
  20563. }
  20564. glyphNames = [];
  20565. for (i = 0; i < numGlyphs; ++i) {
  20566. var j = glyphNameIndexes[i];
  20567. if (j < 258) {
  20568. glyphNames.push(MacStandardGlyphOrdering[j]);
  20569. continue;
  20570. }
  20571. glyphNames.push(customNames[j - 258]);
  20572. }
  20573. break;
  20574. case 0x00030000:
  20575. break;
  20576. default:
  20577. warn('Unknown/unsupported post table version ' + version);
  20578. valid = false;
  20579. break;
  20580. }
  20581. properties.glyphNames = glyphNames;
  20582. return valid;
  20583. }
  20584. function readNameTable(nameTable) {
  20585. var start = (font.start ? font.start : 0) + nameTable.offset;
  20586. font.pos = start;
  20587. var names = [[], []];
  20588. var length = nameTable.length, end = start + length;
  20589. var format = font.getUint16();
  20590. var FORMAT_0_HEADER_LENGTH = 6;
  20591. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  20592. // unsupported name table format or table "too" small
  20593. return names;
  20594. }
  20595. var numRecords = font.getUint16();
  20596. var stringsStart = font.getUint16();
  20597. var records = [];
  20598. var NAME_RECORD_LENGTH = 12;
  20599. var i, ii;
  20600. for (i = 0; i < numRecords &&
  20601. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  20602. var r = {
  20603. platform: font.getUint16(),
  20604. encoding: font.getUint16(),
  20605. language: font.getUint16(),
  20606. name: font.getUint16(),
  20607. length: font.getUint16(),
  20608. offset: font.getUint16()
  20609. };
  20610. // using only Macintosh and Windows platform/encoding names
  20611. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  20612. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  20613. records.push(r);
  20614. }
  20615. }
  20616. for (i = 0, ii = records.length; i < ii; i++) {
  20617. var record = records[i];
  20618. var pos = start + stringsStart + record.offset;
  20619. if (pos + record.length > end) {
  20620. continue; // outside of name table, ignoring
  20621. }
  20622. font.pos = pos;
  20623. var nameIndex = record.name;
  20624. if (record.encoding) {
  20625. // unicode
  20626. var str = '';
  20627. for (var j = 0, jj = record.length; j < jj; j += 2) {
  20628. str += String.fromCharCode(font.getUint16());
  20629. }
  20630. names[1][nameIndex] = str;
  20631. } else {
  20632. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  20633. }
  20634. }
  20635. return names;
  20636. }
  20637. var TTOpsStackDeltas = [
  20638. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  20639. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  20640. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  20641. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  20642. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  20643. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  20644. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  20645. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  20646. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  20647. // 0xC0-DF == -1 and 0xE0-FF == -2
  20648. function sanitizeTTProgram(table, ttContext) {
  20649. var data = table.data;
  20650. var i = 0, j, n, b, funcId, pc, lastEndf = 0, lastDeff = 0;
  20651. var stack = [];
  20652. var callstack = [];
  20653. var functionsCalled = [];
  20654. var tooComplexToFollowFunctions =
  20655. ttContext.tooComplexToFollowFunctions;
  20656. var inFDEF = false, ifLevel = 0, inELSE = 0;
  20657. for (var ii = data.length; i < ii;) {
  20658. var op = data[i++];
  20659. // The TrueType instruction set docs can be found at
  20660. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  20661. if (op === 0x40) { // NPUSHB - pushes n bytes
  20662. n = data[i++];
  20663. if (inFDEF || inELSE) {
  20664. i += n;
  20665. } else {
  20666. for (j = 0; j < n; j++) {
  20667. stack.push(data[i++]);
  20668. }
  20669. }
  20670. } else if (op === 0x41) { // NPUSHW - pushes n words
  20671. n = data[i++];
  20672. if (inFDEF || inELSE) {
  20673. i += n * 2;
  20674. } else {
  20675. for (j = 0; j < n; j++) {
  20676. b = data[i++];
  20677. stack.push((b << 8) | data[i++]);
  20678. }
  20679. }
  20680. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  20681. n = op - 0xB0 + 1;
  20682. if (inFDEF || inELSE) {
  20683. i += n;
  20684. } else {
  20685. for (j = 0; j < n; j++) {
  20686. stack.push(data[i++]);
  20687. }
  20688. }
  20689. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  20690. n = op - 0xB8 + 1;
  20691. if (inFDEF || inELSE) {
  20692. i += n * 2;
  20693. } else {
  20694. for (j = 0; j < n; j++) {
  20695. b = data[i++];
  20696. stack.push((b << 8) | data[i++]);
  20697. }
  20698. }
  20699. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  20700. if (!inFDEF && !inELSE) {
  20701. // collecting inforamtion about which functions are used
  20702. funcId = stack[stack.length - 1];
  20703. ttContext.functionsUsed[funcId] = true;
  20704. if (funcId in ttContext.functionsStackDeltas) {
  20705. stack.length += ttContext.functionsStackDeltas[funcId];
  20706. } else if (funcId in ttContext.functionsDefined &&
  20707. functionsCalled.indexOf(funcId) < 0) {
  20708. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  20709. functionsCalled.push(funcId);
  20710. pc = ttContext.functionsDefined[funcId];
  20711. if (!pc) {
  20712. warn('TT: CALL non-existent function');
  20713. ttContext.hintsValid = false;
  20714. return;
  20715. }
  20716. data = pc.data;
  20717. i = pc.i;
  20718. }
  20719. }
  20720. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  20721. if (inFDEF || inELSE) {
  20722. warn('TT: nested FDEFs not allowed');
  20723. tooComplexToFollowFunctions = true;
  20724. }
  20725. inFDEF = true;
  20726. // collecting inforamtion about which functions are defined
  20727. lastDeff = i;
  20728. funcId = stack.pop();
  20729. ttContext.functionsDefined[funcId] = {data: data, i: i};
  20730. } else if (op === 0x2D) { // ENDF - end of function
  20731. if (inFDEF) {
  20732. inFDEF = false;
  20733. lastEndf = i;
  20734. } else {
  20735. pc = callstack.pop();
  20736. if (!pc) {
  20737. warn('TT: ENDF bad stack');
  20738. ttContext.hintsValid = false;
  20739. return;
  20740. }
  20741. funcId = functionsCalled.pop();
  20742. data = pc.data;
  20743. i = pc.i;
  20744. ttContext.functionsStackDeltas[funcId] =
  20745. stack.length - pc.stackTop;
  20746. }
  20747. } else if (op === 0x89) { // IDEF - instruction definition
  20748. if (inFDEF || inELSE) {
  20749. warn('TT: nested IDEFs not allowed');
  20750. tooComplexToFollowFunctions = true;
  20751. }
  20752. inFDEF = true;
  20753. // recording it as a function to track ENDF
  20754. lastDeff = i;
  20755. } else if (op === 0x58) { // IF
  20756. ++ifLevel;
  20757. } else if (op === 0x1B) { // ELSE
  20758. inELSE = ifLevel;
  20759. } else if (op === 0x59) { // EIF
  20760. if (inELSE === ifLevel) {
  20761. inELSE = 0;
  20762. }
  20763. --ifLevel;
  20764. } else if (op === 0x1C) { // JMPR
  20765. if (!inFDEF && !inELSE) {
  20766. var offset = stack[stack.length - 1];
  20767. // only jumping forward to prevent infinite loop
  20768. if (offset > 0) {
  20769. i += offset - 1;
  20770. }
  20771. }
  20772. }
  20773. // Adjusting stack not extactly, but just enough to get function id
  20774. if (!inFDEF && !inELSE) {
  20775. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  20776. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  20777. if (op >= 0x71 && op <= 0x75) {
  20778. n = stack.pop();
  20779. if (n === n) {
  20780. stackDelta = -n * 2;
  20781. }
  20782. }
  20783. while (stackDelta < 0 && stack.length > 0) {
  20784. stack.pop();
  20785. stackDelta++;
  20786. }
  20787. while (stackDelta > 0) {
  20788. stack.push(NaN); // pushing any number into stack
  20789. stackDelta--;
  20790. }
  20791. }
  20792. }
  20793. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  20794. var content = [data];
  20795. if (i > data.length) {
  20796. content.push(new Uint8Array(i - data.length));
  20797. }
  20798. if (lastDeff > lastEndf) {
  20799. warn('TT: complementing a missing function tail');
  20800. // new function definition started, but not finished
  20801. // complete function by [CLEAR, ENDF]
  20802. content.push(new Uint8Array([0x22, 0x2D]));
  20803. }
  20804. foldTTTable(table, content);
  20805. }
  20806. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  20807. if (ttContext.tooComplexToFollowFunctions) {
  20808. return;
  20809. }
  20810. if (ttContext.functionsDefined.length > maxFunctionDefs) {
  20811. warn('TT: more functions defined than expected');
  20812. ttContext.hintsValid = false;
  20813. return;
  20814. }
  20815. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  20816. if (j > maxFunctionDefs) {
  20817. warn('TT: invalid function id: ' + j);
  20818. ttContext.hintsValid = false;
  20819. return;
  20820. }
  20821. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  20822. warn('TT: undefined function: ' + j);
  20823. ttContext.hintsValid = false;
  20824. return;
  20825. }
  20826. }
  20827. }
  20828. function foldTTTable(table, content) {
  20829. if (content.length > 1) {
  20830. // concatenating the content items
  20831. var newLength = 0;
  20832. var j, jj;
  20833. for (j = 0, jj = content.length; j < jj; j++) {
  20834. newLength += content[j].length;
  20835. }
  20836. newLength = (newLength + 3) & ~3;
  20837. var result = new Uint8Array(newLength);
  20838. var pos = 0;
  20839. for (j = 0, jj = content.length; j < jj; j++) {
  20840. result.set(content[j], pos);
  20841. pos += content[j].length;
  20842. }
  20843. table.data = result;
  20844. table.length = newLength;
  20845. }
  20846. }
  20847. function sanitizeTTPrograms(fpgm, prep, cvt) {
  20848. var ttContext = {
  20849. functionsDefined: [],
  20850. functionsUsed: [],
  20851. functionsStackDeltas: [],
  20852. tooComplexToFollowFunctions: false,
  20853. hintsValid: true
  20854. };
  20855. if (fpgm) {
  20856. sanitizeTTProgram(fpgm, ttContext);
  20857. }
  20858. if (prep) {
  20859. sanitizeTTProgram(prep, ttContext);
  20860. }
  20861. if (fpgm) {
  20862. checkInvalidFunctions(ttContext, maxFunctionDefs);
  20863. }
  20864. if (cvt && (cvt.length & 1)) {
  20865. var cvtData = new Uint8Array(cvt.length + 1);
  20866. cvtData.set(cvt.data);
  20867. cvt.data = cvtData;
  20868. }
  20869. return ttContext.hintsValid;
  20870. }
  20871. // The following steps modify the original font data, making copy
  20872. font = new Stream(new Uint8Array(font.getBytes()));
  20873. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  20874. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  20875. var header = readOpenTypeHeader(font);
  20876. var numTables = header.numTables;
  20877. var cff, cffFile;
  20878. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  20879. hmtx: null, maxp: null, name: null, post: null };
  20880. var table, tableData;
  20881. for (var i = 0; i < numTables; i++) {
  20882. table = readTableEntry(font);
  20883. if (VALID_TABLES.indexOf(table.tag) < 0) {
  20884. continue; // skipping table if it's not a required or optional table
  20885. }
  20886. if (table.length === 0) {
  20887. continue; // skipping empty tables
  20888. }
  20889. tables[table.tag] = table;
  20890. }
  20891. var isTrueType = !tables['CFF '];
  20892. if (!isTrueType) {
  20893. // OpenType font
  20894. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  20895. // no major tables: throwing everything at CFFFont
  20896. cffFile = new Stream(tables['CFF '].data);
  20897. cff = new CFFFont(cffFile, properties);
  20898. return this.convert(name, cff, properties);
  20899. }
  20900. delete tables.glyf;
  20901. delete tables.loca;
  20902. delete tables.fpgm;
  20903. delete tables.prep;
  20904. delete tables['cvt '];
  20905. } else {
  20906. if (!tables.glyf || !tables.loca) {
  20907. error('Required "glyf" or "loca" tables are not found');
  20908. }
  20909. }
  20910. if (!tables.maxp) {
  20911. error('Required "maxp" table is not found');
  20912. }
  20913. font.pos = (font.start || 0) + tables.maxp.offset;
  20914. var version = font.getInt32();
  20915. var numGlyphs = font.getUint16();
  20916. var maxFunctionDefs = 0;
  20917. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  20918. // maxZones can be invalid
  20919. font.pos += 8;
  20920. var maxZones = font.getUint16();
  20921. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  20922. tables.maxp.data[14] = 0;
  20923. tables.maxp.data[15] = 2;
  20924. }
  20925. font.pos += 4;
  20926. maxFunctionDefs = font.getUint16();
  20927. }
  20928. var dupFirstEntry = false;
  20929. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  20930. properties.toUnicode[0] > '\u0000') {
  20931. // oracle's defect (see 3427), duplicating first entry
  20932. dupFirstEntry = true;
  20933. numGlyphs++;
  20934. tables.maxp.data[4] = numGlyphs >> 8;
  20935. tables.maxp.data[5] = numGlyphs & 255;
  20936. }
  20937. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  20938. tables['cvt '], maxFunctionDefs);
  20939. if (!hintsValid) {
  20940. delete tables.fpgm;
  20941. delete tables.prep;
  20942. delete tables['cvt '];
  20943. }
  20944. // Tables needs to be written by ascendant alphabetic order
  20945. var tablesNames = Object.keys(tables);
  20946. tablesNames.sort();
  20947. numTables = tablesNames.length;
  20948. // header and new offsets. Table entry information is appended to the
  20949. // end of file. The virtualOffset represents where to put the actual
  20950. // data of a particular table;
  20951. var ttf = {
  20952. file: '',
  20953. virtualOffset: numTables * (4 * 4)
  20954. };
  20955. // The new numbers of tables will be the last one plus the num
  20956. // of missing tables
  20957. createOpenTypeHeader(header.version, ttf, numTables);
  20958. // Ensure the hmtx table contains the advance width and
  20959. // sidebearings information for numGlyphs in the maxp table
  20960. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  20961. if (!tables.head) {
  20962. error('Required "head" table is not found');
  20963. }
  20964. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  20965. if (isTrueType) {
  20966. var isGlyphLocationsLong = int16(tables.head.data[50],
  20967. tables.head.data[51]);
  20968. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  20969. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  20970. }
  20971. if (!tables.hhea) {
  20972. error('Required "hhea" table is not found');
  20973. }
  20974. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  20975. // Sometimes it's 0. That needs to be fixed
  20976. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  20977. tables.hhea.data[10] = 0xFF;
  20978. tables.hhea.data[11] = 0xFF;
  20979. }
  20980. // The 'post' table has glyphs names.
  20981. if (tables.post) {
  20982. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  20983. if (!valid) {
  20984. tables.post = null;
  20985. }
  20986. }
  20987. var charCodeToGlyphId = [], charCode;
  20988. if (properties.type == 'CIDFontType2') {
  20989. var cidToGidMap = properties.cidToGidMap || [];
  20990. var cMap = properties.cMap.map;
  20991. for (charCode in cMap) {
  20992. charCode |= 0;
  20993. var cid = cMap[charCode];
  20994. assert(cid.length === 1, 'Max size of CID is 65,535');
  20995. cid = cid.charCodeAt(0);
  20996. var glyphId = -1;
  20997. if (cidToGidMap.length === 0) {
  20998. glyphId = charCode;
  20999. } else if (cid in cidToGidMap) {
  21000. glyphId = cidToGidMap[cid];
  21001. }
  21002. if (glyphId >= 0 && glyphId < numGlyphs) {
  21003. charCodeToGlyphId[charCode] = glyphId;
  21004. }
  21005. }
  21006. if (dupFirstEntry) {
  21007. charCodeToGlyphId[0] = numGlyphs - 1;
  21008. }
  21009. } else {
  21010. // Most of the following logic in this code branch is based on the
  21011. // 9.6.6.4 of the PDF spec.
  21012. var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);
  21013. var cmapPlatformId = cmapTable.platformId;
  21014. var cmapEncodingId = cmapTable.encodingId;
  21015. var cmapMappings = cmapTable.mappings;
  21016. var cmapMappingsLength = cmapMappings.length;
  21017. var hasEncoding = properties.differences.length ||
  21018. !!properties.baseEncodingName;
  21019. // The spec seems to imply that if the font is symbolic the encoding
  21020. // should be ignored, this doesn't appear to work for 'preistabelle.pdf'
  21021. // where the the font is symbolic and it has an encoding.
  21022. if (hasEncoding &&
  21023. (cmapPlatformId === 3 && cmapEncodingId === 1 ||
  21024. cmapPlatformId === 1 && cmapEncodingId === 0)) {
  21025. var baseEncoding = [];
  21026. if (properties.baseEncodingName === 'MacRomanEncoding' ||
  21027. properties.baseEncodingName === 'WinAnsiEncoding') {
  21028. baseEncoding = Encodings[properties.baseEncodingName];
  21029. }
  21030. for (charCode = 0; charCode < 256; charCode++) {
  21031. var glyphName;
  21032. if (this.differences && charCode in this.differences) {
  21033. glyphName = this.differences[charCode];
  21034. } else if (charCode in baseEncoding &&
  21035. baseEncoding[charCode] !== '') {
  21036. glyphName = baseEncoding[charCode];
  21037. } else {
  21038. glyphName = Encodings.StandardEncoding[charCode];
  21039. }
  21040. if (!glyphName) {
  21041. continue;
  21042. }
  21043. var unicodeOrCharCode;
  21044. if (cmapPlatformId === 3 && cmapEncodingId === 1) {
  21045. unicodeOrCharCode = GlyphsUnicode[glyphName];
  21046. } else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
  21047. // TODO: the encoding needs to be updated with mac os table.
  21048. unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);
  21049. }
  21050. var found = false;
  21051. for (i = 0; i < cmapMappingsLength; ++i) {
  21052. if (cmapMappings[i].charCode === unicodeOrCharCode) {
  21053. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21054. found = true;
  21055. break;
  21056. }
  21057. }
  21058. if (!found && properties.glyphNames) {
  21059. // Try to map using the post table. There are currently no known
  21060. // pdfs that this fixes.
  21061. glyphId = properties.glyphNames.indexOf(glyphName);
  21062. if (glyphId > 0) {
  21063. charCodeToGlyphId[charCode] = glyphId;
  21064. }
  21065. }
  21066. }
  21067. } else {
  21068. // For (3, 0) cmap tables:
  21069. // The charcode key being stored in charCodeToGlyphId is the lower
  21070. // byte of the two-byte charcodes of the cmap table since according to
  21071. // the spec: 'each byte from the string shall be prepended with the
  21072. // high byte of the range [of charcodes in the cmap table], to form
  21073. // a two-byte character, which shall be used to select the
  21074. // associated glyph description from the subtable'.
  21075. //
  21076. // For (1, 0) cmap tables:
  21077. // 'single bytes from the string shall be used to look up the
  21078. // associated glyph descriptions from the subtable'. This means
  21079. // charcodes in the cmap will be single bytes, so no-op since
  21080. // glyph.charCode & 0xFF === glyph.charCode
  21081. for (i = 0; i < cmapMappingsLength; ++i) {
  21082. charCode = cmapMappings[i].charCode & 0xFF;
  21083. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  21084. }
  21085. }
  21086. }
  21087. if (charCodeToGlyphId.length === 0) {
  21088. // defines at least one glyph
  21089. charCodeToGlyphId[0] = 0;
  21090. }
  21091. // Converting glyphs and ids into font's cmap table
  21092. var newMapping = adjustMapping(charCodeToGlyphId, properties);
  21093. this.toFontChar = newMapping.toFontChar;
  21094. tables.cmap = {
  21095. tag: 'cmap',
  21096. data: createCmapTable(newMapping.charCodeToGlyphId)
  21097. };
  21098. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  21099. // extract some more font properties from the OpenType head and
  21100. // hhea tables; yMin and descent value are always negative
  21101. var override = {
  21102. unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),
  21103. yMax: int16(tables.head.data[42], tables.head.data[43]),
  21104. yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,
  21105. ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),
  21106. descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000
  21107. };
  21108. tables['OS/2'] = {
  21109. tag: 'OS/2',
  21110. data: stringToArray(createOS2Table(properties,
  21111. newMapping.charCodeToGlyphId,
  21112. override))
  21113. };
  21114. }
  21115. // Rewrite the 'post' table if needed
  21116. if (!tables.post) {
  21117. tables.post = {
  21118. tag: 'post',
  21119. data: stringToArray(createPostTable(properties))
  21120. };
  21121. }
  21122. if (!isTrueType) {
  21123. try {
  21124. // Trying to repair CFF file
  21125. cffFile = new Stream(tables['CFF '].data);
  21126. var parser = new CFFParser(cffFile, properties);
  21127. cff = parser.parse();
  21128. var compiler = new CFFCompiler(cff);
  21129. tables['CFF '].data = compiler.compile();
  21130. } catch (e) {
  21131. warn('Failed to compile font ' + properties.loadedName);
  21132. }
  21133. }
  21134. // Re-creating 'name' table
  21135. if (!tables.name) {
  21136. tables.name = {
  21137. tag: 'name',
  21138. data: stringToArray(createNameTable(this.name))
  21139. };
  21140. } else {
  21141. // ... using existing 'name' table as prototype
  21142. var namePrototype = readNameTable(tables.name);
  21143. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  21144. }
  21145. // rewrite the tables but tweak offsets
  21146. for (i = 0; i < numTables; i++) {
  21147. table = tables[tablesNames[i]];
  21148. var data = [];
  21149. tableData = table.data;
  21150. for (var j = 0, jj = tableData.length; j < jj; j++) {
  21151. data.push(tableData[j]);
  21152. }
  21153. createTableEntry(ttf, table.tag, data);
  21154. }
  21155. // Add the table datas
  21156. for (i = 0; i < numTables; i++) {
  21157. table = tables[tablesNames[i]];
  21158. tableData = table.data;
  21159. ttf.file += bytesToString(new Uint8Array(tableData));
  21160. // 4-byte aligned data
  21161. while (ttf.file.length & 3) {
  21162. ttf.file += String.fromCharCode(0);
  21163. }
  21164. }
  21165. return stringToArray(ttf.file);
  21166. },
  21167. convert: function Font_convert(fontName, font, properties) {
  21168. // The offsets object holds at the same time a representation of where
  21169. // to write the table entry information about a table and another offset
  21170. // representing the offset where to draw the actual data of a particular
  21171. // table
  21172. var otf = {
  21173. file: '',
  21174. virtualOffset: 9 * (4 * 4)
  21175. };
  21176. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  21177. // TODO: Check the charstring widths to determine this.
  21178. properties.fixedPitch = false;
  21179. var mapping = font.getGlyphMapping(properties);
  21180. var newMapping = adjustMapping(mapping, properties);
  21181. this.toFontChar = newMapping.toFontChar;
  21182. var numGlyphs = font.numGlyphs;
  21183. function getCharCode(charCodeToGlyphId, glyphId, addMap) {
  21184. for (var charCode in charCodeToGlyphId) {
  21185. if (glyphId === charCodeToGlyphId[charCode]) {
  21186. return charCode | 0;
  21187. }
  21188. }
  21189. if (addMap) {
  21190. newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
  21191. glyphId;
  21192. return newMapping.nextAvailableFontCharCode++;
  21193. }
  21194. return null;
  21195. }
  21196. var seacs = font.seacs;
  21197. if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
  21198. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  21199. var charset = font.getCharset();
  21200. var seacMap = Object.create(null);
  21201. for (var glyphId in seacs) {
  21202. glyphId |= 0;
  21203. var seac = seacs[glyphId];
  21204. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  21205. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  21206. var baseGlyphId = charset.indexOf(baseGlyphName);
  21207. var accentGlyphId = charset.indexOf(accentGlyphName);
  21208. if (baseGlyphId < 0 || accentGlyphId < 0) {
  21209. continue;
  21210. }
  21211. var accentOffset = {
  21212. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  21213. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  21214. };
  21215. var charCode = getCharCode(mapping, glyphId);
  21216. if (charCode === null) {
  21217. // There's no point in mapping it if the char code was never mapped
  21218. // to begin with.
  21219. continue;
  21220. }
  21221. // Find a fontCharCode that maps to the base and accent glyphs. If one
  21222. // doesn't exists, create it.
  21223. var charCodeToGlyphId = newMapping.charCodeToGlyphId;
  21224. var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId,
  21225. true);
  21226. var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId,
  21227. true);
  21228. seacMap[charCode] = {
  21229. baseFontCharCode: baseFontCharCode,
  21230. accentFontCharCode: accentFontCharCode,
  21231. accentOffset: accentOffset
  21232. };
  21233. }
  21234. properties.seacMap = seacMap;
  21235. }
  21236. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  21237. var fields = {
  21238. // PostScript Font Program
  21239. 'CFF ': font.data,
  21240. // OS/2 and Windows Specific metrics
  21241. 'OS/2': stringToArray(createOS2Table(properties,
  21242. newMapping.charCodeToGlyphId)),
  21243. // Character to glyphs mapping
  21244. 'cmap': createCmapTable(newMapping.charCodeToGlyphId),
  21245. // Font header
  21246. 'head': (function fontFieldsHead() {
  21247. return stringToArray(
  21248. '\x00\x01\x00\x00' + // Version number
  21249. '\x00\x00\x10\x00' + // fontRevision
  21250. '\x00\x00\x00\x00' + // checksumAdjustement
  21251. '\x5F\x0F\x3C\xF5' + // magicNumber
  21252. '\x00\x00' + // Flags
  21253. safeString16(unitsPerEm) + // unitsPerEM
  21254. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  21255. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  21256. '\x00\x00' + // xMin
  21257. safeString16(properties.descent) + // yMin
  21258. '\x0F\xFF' + // xMax
  21259. safeString16(properties.ascent) + // yMax
  21260. string16(properties.italicAngle ? 2 : 0) + // macStyle
  21261. '\x00\x11' + // lowestRecPPEM
  21262. '\x00\x00' + // fontDirectionHint
  21263. '\x00\x00' + // indexToLocFormat
  21264. '\x00\x00'); // glyphDataFormat
  21265. })(),
  21266. // Horizontal header
  21267. 'hhea': (function fontFieldsHhea() {
  21268. return stringToArray(
  21269. '\x00\x01\x00\x00' + // Version number
  21270. safeString16(properties.ascent) + // Typographic Ascent
  21271. safeString16(properties.descent) + // Typographic Descent
  21272. '\x00\x00' + // Line Gap
  21273. '\xFF\xFF' + // advanceWidthMax
  21274. '\x00\x00' + // minLeftSidebearing
  21275. '\x00\x00' + // minRightSidebearing
  21276. '\x00\x00' + // xMaxExtent
  21277. safeString16(properties.capHeight) + // caretSlopeRise
  21278. safeString16(Math.tan(properties.italicAngle) *
  21279. properties.xHeight) + // caretSlopeRun
  21280. '\x00\x00' + // caretOffset
  21281. '\x00\x00' + // -reserved-
  21282. '\x00\x00' + // -reserved-
  21283. '\x00\x00' + // -reserved-
  21284. '\x00\x00' + // -reserved-
  21285. '\x00\x00' + // metricDataFormat
  21286. string16(numGlyphs)); // Number of HMetrics
  21287. })(),
  21288. // Horizontal metrics
  21289. 'hmtx': (function fontFieldsHmtx() {
  21290. var charstrings = font.charstrings;
  21291. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  21292. for (var i = 1, ii = numGlyphs; i < ii; i++) {
  21293. // TODO: For CFF fonts the width should technically match th x in
  21294. // the glyph, but it doesn't seem to matter.
  21295. var charstring = charstrings ? charstrings[i - 1] : {};
  21296. var width = 'width' in charstring ? charstring.width : 0;
  21297. hmtx += string16(width) + string16(0);
  21298. }
  21299. return stringToArray(hmtx);
  21300. })(),
  21301. // Maximum profile
  21302. 'maxp': (function fontFieldsMaxp() {
  21303. return stringToArray(
  21304. '\x00\x00\x50\x00' + // Version number
  21305. string16(numGlyphs)); // Num of glyphs
  21306. })(),
  21307. // Naming tables
  21308. 'name': stringToArray(createNameTable(fontName)),
  21309. // PostScript informations
  21310. 'post': stringToArray(createPostTable(properties))
  21311. };
  21312. var field;
  21313. for (field in fields) {
  21314. createTableEntry(otf, field, fields[field]);
  21315. }
  21316. for (field in fields) {
  21317. var table = fields[field];
  21318. otf.file += bytesToString(new Uint8Array(table));
  21319. }
  21320. return stringToArray(otf.file);
  21321. },
  21322. /**
  21323. * Builds a char code to unicode map based on section 9.10 of the spec.
  21324. * @param {Object} properties Font properties object.
  21325. * @return {Object} Has two properties: 'toUnicode' which maps char codes to
  21326. * unicode (string) values and 'isIdentity' which is true if an identity map
  21327. * is used.
  21328. */
  21329. buildToUnicode: function Font_buildToUnicode(properties) {
  21330. var map = {
  21331. isIdentity: false,
  21332. toUnicode: null
  21333. };
  21334. // Section 9.10.2 Mapping Character Codes to Unicode Values
  21335. if (properties.toUnicode && properties.toUnicode.length !== 0) {
  21336. map.toUnicode = properties.toUnicode;
  21337. return map;
  21338. }
  21339. // According to the spec if the font is a simple font we should only map
  21340. // to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
  21341. // the differences array only contains adobe standard or symbol set names,
  21342. // in pratice it seems better to always try to create a toUnicode
  21343. // map based of the default encoding.
  21344. var toUnicode, charcode;
  21345. if (!properties.composite /* is simple font */) {
  21346. toUnicode = [];
  21347. var encoding = properties.defaultEncoding.slice();
  21348. // Merge in the differences array.
  21349. var differences = properties.differences;
  21350. for (charcode in differences) {
  21351. encoding[charcode] = differences[charcode];
  21352. }
  21353. for (charcode in encoding) {
  21354. // a) Map the character code to a character name.
  21355. var glyphName = encoding[charcode];
  21356. // b) Look up the character name in the Adobe Glyph List (see the
  21357. // Bibliography) to obtain the corresponding Unicode value.
  21358. if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
  21359. // (undocumented) c) Few heuristics to recognize unknown glyphs
  21360. // NOTE: Adobe Reader does not do this step, but OSX Preview does
  21361. var code;
  21362. // Gxx glyph
  21363. if (glyphName.length === 3 &&
  21364. glyphName[0] === 'G' &&
  21365. (code = parseInt(glyphName.substr(1), 16))) {
  21366. toUnicode[charcode] = String.fromCharCode(code);
  21367. }
  21368. // Cddd glyph
  21369. if (glyphName.length >= 3 &&
  21370. glyphName[0] === 'C' &&
  21371. (code = +glyphName.substr(1))) {
  21372. toUnicode[charcode] = String.fromCharCode(code);
  21373. }
  21374. continue;
  21375. }
  21376. toUnicode[charcode] = String.fromCharCode(GlyphsUnicode[glyphName]);
  21377. }
  21378. map.toUnicode = toUnicode;
  21379. return map;
  21380. }
  21381. // If the font is a composite font that uses one of the predefined CMaps
  21382. // listed in Table 118 (except Identity–H and Identity–V) or whose
  21383. // descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1, or
  21384. // Adobe-Korea1 character collection:
  21385. if (properties.composite && (
  21386. (properties.cMap.builtInCMap &&
  21387. !(properties.cMap instanceof IdentityCMap)) ||
  21388. (properties.cidSystemInfo.registry === 'Adobe' &&
  21389. (properties.cidSystemInfo.ordering === 'GB1' ||
  21390. properties.cidSystemInfo.ordering === 'CNS1' ||
  21391. properties.cidSystemInfo.ordering === 'Japan1' ||
  21392. properties.cidSystemInfo.ordering === 'Korea1')))) {
  21393. // Then:
  21394. // a) Map the character code to a character identifier (CID) according
  21395. // to the font’s CMap.
  21396. // b) Obtain the registry and ordering of the character collection used
  21397. // by the font’s CMap (for example, Adobe and Japan1) from its
  21398. // CIDSystemInfo dictionary.
  21399. var registry = properties.cidSystemInfo.registry;
  21400. var ordering = properties.cidSystemInfo.ordering;
  21401. // c) Construct a second CMap name by concatenating the registry and
  21402. // ordering obtained in step (b) in the format registry–ordering–UCS2
  21403. // (for example, Adobe–Japan1–UCS2).
  21404. var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
  21405. // d) Obtain the CMap with the name constructed in step (c) (available
  21406. // from the ASN Web site; see the Bibliography).
  21407. var ucs2CMap = CMapFactory.create(ucs2CMapName,
  21408. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  21409. var cMap = properties.cMap;
  21410. toUnicode = [];
  21411. for (charcode in cMap.map) {
  21412. var cid = cMap.map[charcode];
  21413. assert(cid.length === 1, 'Max size of CID is 65,535');
  21414. // e) Map the CID obtained in step (a) according to the CMap obtained
  21415. // in step (d), producing a Unicode value.
  21416. var ucs2 = ucs2CMap.map[cid.charCodeAt(0)];
  21417. if (!ucs2) {
  21418. continue;
  21419. }
  21420. toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) +
  21421. ucs2.charCodeAt(1));
  21422. }
  21423. map.toUnicode = toUnicode;
  21424. return map;
  21425. }
  21426. // The viewer's choice, just use an identity map.
  21427. toUnicode = [];
  21428. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  21429. for (var i = firstChar; i <= lastChar; i++) {
  21430. toUnicode[i] = String.fromCharCode(i);
  21431. }
  21432. map.isIdentity = true;
  21433. map.toUnicode = toUnicode;
  21434. return map;
  21435. },
  21436. get spaceWidth() {
  21437. if ('_shadowWidth' in this) {
  21438. return this._shadowWidth;
  21439. }
  21440. // trying to estimate space character width
  21441. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  21442. var width;
  21443. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  21444. var glyphName = possibleSpaceReplacements[i];
  21445. // if possible, getting width by glyph name
  21446. if (glyphName in this.widths) {
  21447. width = this.widths[glyphName];
  21448. break;
  21449. }
  21450. var glyphUnicode = GlyphsUnicode[glyphName];
  21451. // finding the charcode via unicodeToCID map
  21452. var charcode = 0;
  21453. if (this.composite) {
  21454. if (glyphUnicode in this.cMap.map) {
  21455. charcode = this.cMap.lookup(glyphUnicode).charCodeAt(0);
  21456. }
  21457. }
  21458. // ... via toUnicode map
  21459. if (!charcode && 'toUnicode' in this) {
  21460. charcode = this.toUnicode.indexOf(glyphUnicode);
  21461. }
  21462. // setting it to unicode if negative or undefined
  21463. if (charcode <= 0) {
  21464. charcode = glyphUnicode;
  21465. }
  21466. // trying to get width via charcode
  21467. width = this.widths[charcode];
  21468. if (width) {
  21469. break; // the non-zero width found
  21470. }
  21471. }
  21472. width = width || this.defaultWidth;
  21473. // Do not shadow the property here. See discussion:
  21474. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  21475. this._shadowWidth = width;
  21476. return width;
  21477. },
  21478. charToGlyph: function Font_charToGlyph(charcode) {
  21479. var fontCharCode, width, operatorList;
  21480. var widthCode = charcode;
  21481. if (this.cMap && charcode in this.cMap.map) {
  21482. widthCode = this.cMap.map[charcode].charCodeAt(0);
  21483. }
  21484. width = this.widths[widthCode];
  21485. width = isNum(width) ? width : this.defaultWidth;
  21486. var vmetric = this.vmetrics && this.vmetrics[widthCode];
  21487. var unicode = this.toUnicode[charcode] || charcode;
  21488. if (typeof unicode === 'number') {
  21489. unicode = String.fromCharCode(unicode);
  21490. }
  21491. // First try the toFontChar map, if it's not there then try falling
  21492. // back to the char code.
  21493. fontCharCode = this.toFontChar[charcode] || charcode;
  21494. if (this.missingFile) {
  21495. fontCharCode = mapSpecialUnicodeValues(fontCharCode);
  21496. }
  21497. if (this.type === 'Type3') {
  21498. // Font char code in this case is actually a glyph name.
  21499. operatorList = this.charProcOperatorList[fontCharCode];
  21500. }
  21501. var accent = null;
  21502. if (this.seacMap && this.seacMap[charcode]) {
  21503. var seac = this.seacMap[charcode];
  21504. fontCharCode = seac.baseFontCharCode;
  21505. accent = {
  21506. fontChar: String.fromCharCode(seac.accentFontCharCode),
  21507. offset: seac.accentOffset
  21508. };
  21509. }
  21510. var fontChar = String.fromCharCode(fontCharCode);
  21511. var glyph = this.glyphCache[charcode];
  21512. if (!glyph ||
  21513. !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,
  21514. operatorList)) {
  21515. glyph = new Glyph(fontChar, unicode, accent, width, vmetric,
  21516. operatorList);
  21517. this.glyphCache[charcode] = glyph;
  21518. }
  21519. return glyph;
  21520. },
  21521. charsToGlyphs: function Font_charsToGlyphs(chars) {
  21522. var charsCache = this.charsCache;
  21523. var glyphs, glyph, charcode;
  21524. // if we translated this string before, just grab it from the cache
  21525. if (charsCache) {
  21526. glyphs = charsCache[chars];
  21527. if (glyphs) {
  21528. return glyphs;
  21529. }
  21530. }
  21531. // lazily create the translation cache
  21532. if (!charsCache) {
  21533. charsCache = this.charsCache = Object.create(null);
  21534. }
  21535. glyphs = [];
  21536. var charsCacheKey = chars;
  21537. var i = 0, ii;
  21538. if (this.cMap) {
  21539. // composite fonts have multi-byte strings convert the string from
  21540. // single-byte to multi-byte
  21541. while (i < chars.length) {
  21542. var c = this.cMap.readCharCode(chars, i);
  21543. charcode = c[0];
  21544. var length = c[1];
  21545. i += length;
  21546. glyph = this.charToGlyph(charcode);
  21547. glyphs.push(glyph);
  21548. // placing null after each word break charcode (ASCII SPACE)
  21549. // Ignore occurences of 0x20 in multiple-byte codes.
  21550. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  21551. glyphs.push(null);
  21552. }
  21553. }
  21554. } else {
  21555. for (i = 0, ii = chars.length; i < ii; ++i) {
  21556. charcode = chars.charCodeAt(i);
  21557. glyph = this.charToGlyph(charcode);
  21558. glyphs.push(glyph);
  21559. if (charcode == 0x20) {
  21560. glyphs.push(null);
  21561. }
  21562. }
  21563. }
  21564. // Enter the translated string into the cache
  21565. return (charsCache[charsCacheKey] = glyphs);
  21566. }
  21567. };
  21568. return Font;
  21569. })();
  21570. var ErrorFont = (function ErrorFontClosure() {
  21571. function ErrorFont(error) {
  21572. this.error = error;
  21573. }
  21574. ErrorFont.prototype = {
  21575. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  21576. return [];
  21577. },
  21578. exportData: function ErrorFont_exportData() {
  21579. return {error: this.error};
  21580. }
  21581. };
  21582. return ErrorFont;
  21583. })();
  21584. /**
  21585. * Shared logic for building a char code to glyph id mapping for Type1 and
  21586. * simple CFF fonts. See section 9.6.6.2 of the spec.
  21587. * @param {Object} properties Font properties object.
  21588. * @param {Object} builtInEncoding The encoding contained within the actual font
  21589. * data.
  21590. * @param {Array} Array of glyph names where the index is the glyph ID.
  21591. * @returns {Object} A char code to glyph ID map.
  21592. */
  21593. function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
  21594. var charCodeToGlyphId = Object.create(null);
  21595. var glyphId, charCode, baseEncoding;
  21596. if (properties.baseEncodingName) {
  21597. // If a valid base encoding name was used, the mapping is initialized with
  21598. // that.
  21599. baseEncoding = Encodings[properties.baseEncodingName];
  21600. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21601. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21602. if (glyphId >= 0) {
  21603. charCodeToGlyphId[charCode] = glyphId;
  21604. }
  21605. }
  21606. } else if (!!(properties.flags & FontFlags.Symbolic)) {
  21607. // For a symbolic font the encoding should be the fonts built-in
  21608. // encoding.
  21609. for (charCode in builtInEncoding) {
  21610. charCodeToGlyphId[charCode] = builtInEncoding[charCode];
  21611. }
  21612. } else {
  21613. // For non-symbolic fonts that don't have a base encoding the standard
  21614. // encoding should be used.
  21615. baseEncoding = Encodings.StandardEncoding;
  21616. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  21617. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  21618. if (glyphId >= 0) {
  21619. charCodeToGlyphId[charCode] = glyphId;
  21620. }
  21621. }
  21622. }
  21623. // Lastly, merge in the differences.
  21624. var differences = properties.differences;
  21625. if (differences) {
  21626. for (charCode in differences) {
  21627. var glyphName = differences[charCode];
  21628. glyphId = glyphNames.indexOf(glyphName);
  21629. if (glyphId >= 0) {
  21630. charCodeToGlyphId[charCode] = glyphId;
  21631. }
  21632. }
  21633. }
  21634. return charCodeToGlyphId;
  21635. }
  21636. /*
  21637. * CharStrings are encoded following the the CharString Encoding sequence
  21638. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  21639. * The value in a byte indicates a command, a number, or subsequent bytes
  21640. * that are to be interpreted in a special way.
  21641. *
  21642. * CharString Number Encoding:
  21643. * A CharString byte containing the values from 32 through 255 inclusive
  21644. * indicate an integer. These values are decoded in four ranges.
  21645. *
  21646. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  21647. * indicate the integer v - 139. Thus, the integer values from -107 through
  21648. * 107 inclusive may be encoded in single byte.
  21649. *
  21650. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  21651. * indicates an integer involving the next byte, w, according to the formula:
  21652. * [(v - 247) x 256] + w + 108
  21653. *
  21654. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  21655. * indicates an integer involving the next byte, w, according to the formula:
  21656. * -[(v - 251) * 256] - w - 108
  21657. *
  21658. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  21659. * are a two complement signed integer. The first of these bytes contains the
  21660. * highest order bits, the second byte contains the next higher order bits
  21661. * and the fourth byte contain the lowest order bits.
  21662. *
  21663. *
  21664. * CharString Command Encoding:
  21665. * CharStrings commands are encoded in 1 or 2 bytes.
  21666. *
  21667. * Single byte commands are encoded in 1 byte that contains a value between
  21668. * 0 and 31 inclusive.
  21669. * If a command byte contains the value 12, then the value in the next byte
  21670. * indicates a command. This "escape" mechanism allows many extra commands
  21671. * to be encoded and this encoding technique helps to minimize the length of
  21672. * the charStrings.
  21673. */
  21674. var Type1CharString = (function Type1CharStringClosure() {
  21675. var COMMAND_MAP = {
  21676. 'hstem': [1],
  21677. 'vstem': [3],
  21678. 'vmoveto': [4],
  21679. 'rlineto': [5],
  21680. 'hlineto': [6],
  21681. 'vlineto': [7],
  21682. 'rrcurveto': [8],
  21683. 'callsubr': [10],
  21684. 'flex': [12, 35],
  21685. 'drop' : [12, 18],
  21686. 'endchar': [14],
  21687. 'rmoveto': [21],
  21688. 'hmoveto': [22],
  21689. 'vhcurveto': [30],
  21690. 'hvcurveto': [31]
  21691. };
  21692. function Type1CharString() {
  21693. this.width = 0;
  21694. this.lsb = 0;
  21695. this.flexing = false;
  21696. this.output = [];
  21697. this.stack = [];
  21698. }
  21699. Type1CharString.prototype = {
  21700. convert: function Type1CharString_convert(encoded, subrs) {
  21701. var count = encoded.length;
  21702. var error = false;
  21703. var wx, sbx, subrNumber;
  21704. for (var i = 0; i < count; i++) {
  21705. var value = encoded[i];
  21706. if (value < 32) {
  21707. if (value === 12) {
  21708. value = (value << 8) + encoded[++i];
  21709. }
  21710. switch (value) {
  21711. case 1: // hstem
  21712. if (!HINTING_ENABLED) {
  21713. this.stack = [];
  21714. break;
  21715. }
  21716. error = this.executeCommand(2, COMMAND_MAP.hstem);
  21717. break;
  21718. case 3: // vstem
  21719. if (!HINTING_ENABLED) {
  21720. this.stack = [];
  21721. break;
  21722. }
  21723. error = this.executeCommand(2, COMMAND_MAP.vstem);
  21724. break;
  21725. case 4: // vmoveto
  21726. if (this.flexing) {
  21727. if (this.stack.length < 1) {
  21728. error = true;
  21729. break;
  21730. }
  21731. // Add the dx for flex and but also swap the values so they are
  21732. // the right order.
  21733. var dy = this.stack.pop();
  21734. this.stack.push(0, dy);
  21735. break;
  21736. }
  21737. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  21738. break;
  21739. case 5: // rlineto
  21740. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  21741. break;
  21742. case 6: // hlineto
  21743. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  21744. break;
  21745. case 7: // vlineto
  21746. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  21747. break;
  21748. case 8: // rrcurveto
  21749. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  21750. break;
  21751. case 9: // closepath
  21752. // closepath is a Type1 command that does not take argument and is
  21753. // useless in Type2 and it can simply be ignored.
  21754. this.stack = [];
  21755. break;
  21756. case 10: // callsubr
  21757. if (this.stack.length < 1) {
  21758. error = true;
  21759. break;
  21760. }
  21761. subrNumber = this.stack.pop();
  21762. error = this.convert(subrs[subrNumber], subrs);
  21763. break;
  21764. case 11: // return
  21765. return error;
  21766. case 13: // hsbw
  21767. if (this.stack.length < 2) {
  21768. error = true;
  21769. break;
  21770. }
  21771. // To convert to type2 we have to move the width value to the
  21772. // first part of the charstring and then use hmoveto with lsb.
  21773. wx = this.stack.pop();
  21774. sbx = this.stack.pop();
  21775. this.lsb = sbx;
  21776. this.width = wx;
  21777. this.stack.push(sbx);
  21778. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  21779. break;
  21780. case 14: // endchar
  21781. this.output.push(COMMAND_MAP.endchar[0]);
  21782. break;
  21783. case 21: // rmoveto
  21784. if (this.flexing) {
  21785. break;
  21786. }
  21787. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  21788. break;
  21789. case 22: // hmoveto
  21790. if (this.flexing) {
  21791. // Add the dy for flex.
  21792. this.stack.push(0);
  21793. break;
  21794. }
  21795. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  21796. break;
  21797. case 30: // vhcurveto
  21798. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  21799. break;
  21800. case 31: // hvcurveto
  21801. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  21802. break;
  21803. case (12 << 8) + 0: // dotsection
  21804. // dotsection is a Type1 command to specify some hinting feature
  21805. // for dots that do not take a parameter and it can safely be
  21806. // ignored for Type2.
  21807. this.stack = [];
  21808. break;
  21809. case (12 << 8) + 1: // vstem3
  21810. if (!HINTING_ENABLED) {
  21811. this.stack = [];
  21812. break;
  21813. }
  21814. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  21815. // multiple parameters, so instead of returning [vh]stem3 take a
  21816. // shortcut and return [vhstem] instead.
  21817. error = this.executeCommand(2, COMMAND_MAP.vstem);
  21818. break;
  21819. case (12 << 8) + 2: // hstem3
  21820. if (!HINTING_ENABLED) {
  21821. this.stack = [];
  21822. break;
  21823. }
  21824. // See vstem3.
  21825. error = this.executeCommand(2, COMMAND_MAP.hstem);
  21826. break;
  21827. case (12 << 8) + 6: // seac
  21828. // seac is like type 2's special endchar but it doesn't use the
  21829. // first argument asb, so remove it.
  21830. if (SEAC_ANALYSIS_ENABLED) {
  21831. this.seac = this.stack.splice(-4, 4);
  21832. error = this.executeCommand(0, COMMAND_MAP.endchar);
  21833. } else {
  21834. error = this.executeCommand(4, COMMAND_MAP.endchar);
  21835. }
  21836. break;
  21837. case (12 << 8) + 7: // sbw
  21838. if (this.stack.length < 4) {
  21839. error = true;
  21840. break;
  21841. }
  21842. // To convert to type2 we have to move the width value to the
  21843. // first part of the charstring and then use rmoveto with
  21844. // (dx, dy). The height argument will not be used for vmtx and
  21845. // vhea tables reconstruction -- ignoring it.
  21846. var wy = this.stack.pop();
  21847. wx = this.stack.pop();
  21848. var sby = this.stack.pop();
  21849. sbx = this.stack.pop();
  21850. this.lsb = sbx;
  21851. this.width = wx;
  21852. this.stack.push(sbx, sby);
  21853. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  21854. break;
  21855. case (12 << 8) + 12: // div
  21856. if (this.stack.length < 2) {
  21857. error = true;
  21858. break;
  21859. }
  21860. var num2 = this.stack.pop();
  21861. var num1 = this.stack.pop();
  21862. this.stack.push(num1 / num2);
  21863. break;
  21864. case (12 << 8) + 16: // callothersubr
  21865. if (this.stack.length < 2) {
  21866. error = true;
  21867. break;
  21868. }
  21869. subrNumber = this.stack.pop();
  21870. var numArgs = this.stack.pop();
  21871. if (subrNumber === 0 && numArgs === 3) {
  21872. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  21873. this.stack.push(
  21874. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  21875. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  21876. flexArgs[4], // bcp2x
  21877. flexArgs[5], // bcp2y
  21878. flexArgs[6], // p2x
  21879. flexArgs[7], // p2y
  21880. flexArgs[8], // bcp3x
  21881. flexArgs[9], // bcp3y
  21882. flexArgs[10], // bcp4x
  21883. flexArgs[11], // bcp4y
  21884. flexArgs[12], // p3x
  21885. flexArgs[13], // p3y
  21886. flexArgs[14] // flexDepth
  21887. // 15 = finalx unused by flex
  21888. // 16 = finaly unused by flex
  21889. );
  21890. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  21891. this.flexing = false;
  21892. this.stack.push(flexArgs[15], flexArgs[16]);
  21893. } else if (subrNumber === 1 && numArgs === 0) {
  21894. this.flexing = true;
  21895. }
  21896. break;
  21897. case (12 << 8) + 17: // pop
  21898. // Ignore this since it is only used with othersubr.
  21899. break;
  21900. case (12 << 8) + 33: // setcurrentpoint
  21901. // Ignore for now.
  21902. this.stack = [];
  21903. break;
  21904. default:
  21905. warn('Unknown type 1 charstring command of "' + value + '"');
  21906. break;
  21907. }
  21908. if (error) {
  21909. break;
  21910. }
  21911. continue;
  21912. } else if (value <= 246) {
  21913. value = value - 139;
  21914. } else if (value <= 250) {
  21915. value = ((value - 247) * 256) + encoded[++i] + 108;
  21916. } else if (value <= 254) {
  21917. value = -((value - 251) * 256) - encoded[++i] - 108;
  21918. } else {
  21919. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  21920. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  21921. }
  21922. this.stack.push(value);
  21923. }
  21924. return error;
  21925. },
  21926. executeCommand: function(howManyArgs, command, keepStack) {
  21927. var stackLength = this.stack.length;
  21928. if (howManyArgs > stackLength) {
  21929. return true;
  21930. }
  21931. var start = stackLength - howManyArgs;
  21932. for (var i = start; i < stackLength; i++) {
  21933. var value = this.stack[i];
  21934. if (value === (value | 0)) { // int
  21935. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  21936. } else { // fixed point
  21937. value = (65536 * value) | 0;
  21938. this.output.push(255,
  21939. (value >> 24) & 0xFF,
  21940. (value >> 16) & 0xFF,
  21941. (value >> 8) & 0xFF,
  21942. value & 0xFF);
  21943. }
  21944. }
  21945. this.output.push.apply(this.output, command);
  21946. if (keepStack) {
  21947. this.stack.splice(start, howManyArgs);
  21948. } else {
  21949. this.stack.length = 0;
  21950. }
  21951. return false;
  21952. }
  21953. };
  21954. return Type1CharString;
  21955. })();
  21956. /*
  21957. * Type1Parser encapsulate the needed code for parsing a Type1 font
  21958. * program. Some of its logic depends on the Type2 charstrings
  21959. * structure.
  21960. * Note: this doesn't really parse the font since that would require evaluation
  21961. * of PostScript, but it is possible in most cases to extract what we need
  21962. * without a full parse.
  21963. */
  21964. var Type1Parser = (function Type1ParserClosure() {
  21965. /*
  21966. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  21967. * of Plaintext Bytes. The function took a key as a parameter which can be
  21968. * for decrypting the eexec block of for decoding charStrings.
  21969. */
  21970. var EEXEC_ENCRYPT_KEY = 55665;
  21971. var CHAR_STRS_ENCRYPT_KEY = 4330;
  21972. function isHexDigit(code) {
  21973. return code >= 48 && code <= 57 || // '0'-'9'
  21974. code >= 65 && code <= 70 || // 'A'-'F'
  21975. code >= 97 && code <= 102; // 'a'-'f'
  21976. }
  21977. function decrypt(data, key, discardNumber) {
  21978. var r = key | 0, c1 = 52845, c2 = 22719;
  21979. var count = data.length;
  21980. var decrypted = new Uint8Array(count);
  21981. for (var i = 0; i < count; i++) {
  21982. var value = data[i];
  21983. decrypted[i] = value ^ (r >> 8);
  21984. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  21985. }
  21986. return Array.prototype.slice.call(decrypted, discardNumber);
  21987. }
  21988. function decryptAscii(data, key, discardNumber) {
  21989. var r = key | 0, c1 = 52845, c2 = 22719;
  21990. var count = data.length, maybeLength = count >>> 1;
  21991. var decrypted = new Uint8Array(maybeLength);
  21992. var i, j;
  21993. for (i = 0, j = 0; i < count; i++) {
  21994. var digit1 = data[i];
  21995. if (!isHexDigit(digit1)) {
  21996. continue;
  21997. }
  21998. i++;
  21999. var digit2;
  22000. while (i < count && !isHexDigit(digit2 = data[i])) {
  22001. i++;
  22002. }
  22003. if (i < count) {
  22004. var value = parseInt(String.fromCharCode(digit1, digit2), 16);
  22005. decrypted[j++] = value ^ (r >> 8);
  22006. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  22007. }
  22008. }
  22009. return Array.prototype.slice.call(decrypted, discardNumber, j);
  22010. }
  22011. function isSpecial(c) {
  22012. return c === 0x2F || // '/'
  22013. c === 0x5B || c === 0x5D || // '[', ']'
  22014. c === 0x7B || c === 0x7D || // '{', '}'
  22015. c === 0x28 || c === 0x29; // '(', ')'
  22016. }
  22017. function Type1Parser(stream, encrypted) {
  22018. if (encrypted) {
  22019. var data = stream.getBytes();
  22020. var isBinary = !(isHexDigit(data[0]) && isHexDigit(data[1]) &&
  22021. isHexDigit(data[2]) && isHexDigit(data[3]));
  22022. stream = new Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) :
  22023. decryptAscii(data, EEXEC_ENCRYPT_KEY, 4));
  22024. }
  22025. this.stream = stream;
  22026. this.nextChar();
  22027. }
  22028. Type1Parser.prototype = {
  22029. readNumberArray: function Type1Parser_readNumberArray() {
  22030. this.getToken(); // read '[' or '{' (arrays can start with either)
  22031. var array = [];
  22032. while (true) {
  22033. var token = this.getToken();
  22034. if (token === null || token === ']' || token === '}') {
  22035. break;
  22036. }
  22037. array.push(parseFloat(token || 0));
  22038. }
  22039. return array;
  22040. },
  22041. readNumber: function Type1Parser_readNumber() {
  22042. var token = this.getToken();
  22043. return parseFloat(token || 0);
  22044. },
  22045. readInt: function Type1Parser_readInt() {
  22046. // Use '| 0' to prevent setting a double into length such as the double
  22047. // does not flow into the loop variable.
  22048. var token = this.getToken();
  22049. return parseInt(token || 0, 10) | 0;
  22050. },
  22051. readBoolean: function Type1Parser_readBoolean() {
  22052. var token = this.getToken();
  22053. // Use 1 and 0 since that's what type2 charstrings use.
  22054. return token === 'true' ? 1 : 0;
  22055. },
  22056. nextChar : function Type1_nextChar() {
  22057. return (this.currentChar = this.stream.getByte());
  22058. },
  22059. getToken: function Type1Parser_getToken() {
  22060. // Eat whitespace and comments.
  22061. var comment = false;
  22062. var ch = this.currentChar;
  22063. while (true) {
  22064. if (ch === -1) {
  22065. return null;
  22066. }
  22067. if (comment) {
  22068. if (ch === 0x0A || ch === 0x0D) {
  22069. comment = false;
  22070. }
  22071. } else if (ch === 0x25) { // '%'
  22072. comment = true;
  22073. } else if (!Lexer.isSpace(ch)) {
  22074. break;
  22075. }
  22076. ch = this.nextChar();
  22077. }
  22078. if (isSpecial(ch)) {
  22079. this.nextChar();
  22080. return String.fromCharCode(ch);
  22081. }
  22082. var token = '';
  22083. do {
  22084. token += String.fromCharCode(ch);
  22085. ch = this.nextChar();
  22086. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  22087. return token;
  22088. },
  22089. /*
  22090. * Returns an object containing a Subrs array and a CharStrings
  22091. * array extracted from and eexec encrypted block of data
  22092. */
  22093. extractFontProgram: function Type1Parser_extractFontProgram() {
  22094. var stream = this.stream;
  22095. var subrs = [], charstrings = [];
  22096. var program = {
  22097. subrs: [],
  22098. charstrings: [],
  22099. properties: {
  22100. 'privateData': {
  22101. 'lenIV': 4
  22102. }
  22103. }
  22104. };
  22105. var token, length, data, lenIV, encoded;
  22106. while ((token = this.getToken()) !== null) {
  22107. if (token !== '/') {
  22108. continue;
  22109. }
  22110. token = this.getToken();
  22111. switch (token) {
  22112. case 'CharStrings':
  22113. // The number immediately following CharStrings must be greater or
  22114. // equal to the number of CharStrings.
  22115. this.getToken();
  22116. this.getToken(); // read in 'dict'
  22117. this.getToken(); // read in 'dup'
  22118. this.getToken(); // read in 'begin'
  22119. while(true) {
  22120. token = this.getToken();
  22121. if (token === null || token === 'end') {
  22122. break;
  22123. }
  22124. if (token !== '/') {
  22125. continue;
  22126. }
  22127. var glyph = this.getToken();
  22128. length = this.readInt();
  22129. this.getToken(); // read in 'RD' or '-|'
  22130. data = stream.makeSubStream(stream.pos, length);
  22131. lenIV = program.properties.privateData['lenIV'];
  22132. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22133. // Skip past the required space and binary data.
  22134. stream.skip(length);
  22135. this.nextChar();
  22136. token = this.getToken(); // read in 'ND' or '|-'
  22137. if (token === 'noaccess') {
  22138. this.getToken(); // read in 'def'
  22139. }
  22140. charstrings.push({
  22141. glyph: glyph,
  22142. encoded: encoded
  22143. });
  22144. }
  22145. break;
  22146. case 'Subrs':
  22147. var num = this.readInt();
  22148. this.getToken(); // read in 'array'
  22149. while ((token = this.getToken()) === 'dup') {
  22150. var index = this.readInt();
  22151. length = this.readInt();
  22152. this.getToken(); // read in 'RD' or '-|'
  22153. data = stream.makeSubStream(stream.pos, length);
  22154. lenIV = program.properties.privateData['lenIV'];
  22155. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  22156. // Skip past the required space and binary data.
  22157. stream.skip(length);
  22158. this.nextChar();
  22159. token = this.getToken(); // read in 'NP' or '|'
  22160. if (token === 'noaccess') {
  22161. this.getToken(); // read in 'put'
  22162. }
  22163. subrs[index] = encoded;
  22164. }
  22165. break;
  22166. case 'BlueValues':
  22167. case 'OtherBlues':
  22168. case 'FamilyBlues':
  22169. case 'FamilyOtherBlues':
  22170. var blueArray = this.readNumberArray();
  22171. // *Blue* values may contain invalid data: disables reading of
  22172. // those values when hinting is disabled.
  22173. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  22174. HINTING_ENABLED) {
  22175. program.properties.privateData[token] = blueArray;
  22176. }
  22177. break;
  22178. case 'StemSnapH':
  22179. case 'StemSnapV':
  22180. program.properties.privateData[token] = this.readNumberArray();
  22181. break;
  22182. case 'StdHW':
  22183. case 'StdVW':
  22184. program.properties.privateData[token] =
  22185. this.readNumberArray()[0];
  22186. break;
  22187. case 'BlueShift':
  22188. case 'lenIV':
  22189. case 'BlueFuzz':
  22190. case 'BlueScale':
  22191. case 'LanguageGroup':
  22192. case 'ExpansionFactor':
  22193. program.properties.privateData[token] = this.readNumber();
  22194. break;
  22195. case 'ForceBold':
  22196. program.properties.privateData[token] = this.readBoolean();
  22197. break;
  22198. }
  22199. }
  22200. for (var i = 0; i < charstrings.length; i++) {
  22201. glyph = charstrings[i].glyph;
  22202. encoded = charstrings[i].encoded;
  22203. var charString = new Type1CharString();
  22204. var error = charString.convert(encoded, subrs);
  22205. var output = charString.output;
  22206. if (error) {
  22207. // It seems when FreeType encounters an error while evaluating a glyph
  22208. // that it completely ignores the glyph so we'll mimic that behaviour
  22209. // here and put an endchar to make the validator happy.
  22210. output = [14];
  22211. }
  22212. program.charstrings.push({
  22213. glyphName: glyph,
  22214. charstring: output,
  22215. width: charString.width,
  22216. lsb: charString.lsb,
  22217. seac: charString.seac
  22218. });
  22219. }
  22220. return program;
  22221. },
  22222. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  22223. var token;
  22224. while ((token = this.getToken()) !== null) {
  22225. if (token !== '/') {
  22226. continue;
  22227. }
  22228. token = this.getToken();
  22229. switch (token) {
  22230. case 'FontMatrix':
  22231. var matrix = this.readNumberArray();
  22232. properties.fontMatrix = matrix;
  22233. break;
  22234. case 'Encoding':
  22235. var encodingArg = this.getToken();
  22236. var encoding;
  22237. if (!/^\d+$/.test(encodingArg)) {
  22238. // encoding name is specified
  22239. encoding = Encodings[encodingArg];
  22240. } else {
  22241. encoding = [];
  22242. var size = parseInt(encodingArg, 10) | 0;
  22243. this.getToken(); // read in 'array'
  22244. for (var j = 0; j < size; j++) {
  22245. token = this.getToken();
  22246. // skipping till first dup or def (e.g. ignoring for statement)
  22247. while (token !== 'dup' && token !== 'def') {
  22248. token = this.getToken();
  22249. if (token === null) {
  22250. return; // invalid header
  22251. }
  22252. }
  22253. if (token === 'def') {
  22254. break; // read all array data
  22255. }
  22256. var index = this.readInt();
  22257. this.getToken(); // read in '/'
  22258. var glyph = this.getToken();
  22259. encoding[index] = glyph;
  22260. this.getToken(); // read the in 'put'
  22261. }
  22262. }
  22263. properties.builtInEncoding = encoding;
  22264. break;
  22265. case 'FontBBox':
  22266. var fontBBox = this.readNumberArray();
  22267. // adjusting ascent/descent
  22268. properties.ascent = fontBBox[3];
  22269. properties.descent = fontBBox[1];
  22270. properties.ascentScaled = true;
  22271. break;
  22272. }
  22273. }
  22274. }
  22275. };
  22276. return Type1Parser;
  22277. })();
  22278. /**
  22279. * The CFF class takes a Type1 file and wrap it into a
  22280. * 'Compact Font Format' which itself embed Type2 charstrings.
  22281. */
  22282. var CFFStandardStrings = [
  22283. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  22284. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  22285. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  22286. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  22287. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  22288. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  22289. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  22290. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  22291. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  22292. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  22293. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  22294. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  22295. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  22296. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  22297. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  22298. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  22299. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  22300. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  22301. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  22302. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  22303. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  22304. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  22305. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  22306. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  22307. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  22308. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  22309. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  22310. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  22311. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  22312. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  22313. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  22314. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  22315. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  22316. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  22317. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  22318. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  22319. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  22320. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  22321. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  22322. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  22323. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  22324. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  22325. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  22326. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  22327. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  22328. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  22329. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  22330. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  22331. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  22332. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  22333. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  22334. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  22335. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  22336. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  22337. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  22338. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  22339. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  22340. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  22341. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  22342. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  22343. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  22344. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  22345. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  22346. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  22347. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  22348. ];
  22349. // Type1Font is also a CIDFontType0.
  22350. var Type1Font = function Type1Font(name, file, properties) {
  22351. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  22352. // Also, length1 and length2 might be off by 6 bytes as well.
  22353. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  22354. var PFB_HEADER_SIZE = 6;
  22355. var headerBlockLength = properties.length1;
  22356. var eexecBlockLength = properties.length2;
  22357. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  22358. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  22359. if (pfbHeaderPresent) {
  22360. file.skip(PFB_HEADER_SIZE);
  22361. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22362. (pfbHeader[3] << 8) | pfbHeader[2];
  22363. }
  22364. // Get the data block containing glyphs and subrs informations
  22365. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  22366. var headerBlockParser = new Type1Parser(headerBlock);
  22367. headerBlockParser.extractFontHeader(properties);
  22368. if (pfbHeaderPresent) {
  22369. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  22370. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  22371. (pfbHeader[3] << 8) | pfbHeader[2];
  22372. }
  22373. // Decrypt the data blocks and retrieve it's content
  22374. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  22375. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  22376. var data = eexecBlockParser.extractFontProgram();
  22377. for (var info in data.properties) {
  22378. properties[info] = data.properties[info];
  22379. }
  22380. var charstrings = data.charstrings;
  22381. var type2Charstrings = this.getType2Charstrings(charstrings);
  22382. var subrs = this.getType2Subrs(data.subrs);
  22383. this.charstrings = charstrings;
  22384. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  22385. subrs, properties);
  22386. this.seacs = this.getSeacs(data.charstrings);
  22387. };
  22388. Type1Font.prototype = {
  22389. get numGlyphs() {
  22390. return this.charstrings.length + 1;
  22391. },
  22392. getCharset: function Type1Font_getCharset() {
  22393. var charset = ['.notdef'];
  22394. var charstrings = this.charstrings;
  22395. for (var glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22396. charset.push(charstrings[glyphId].glyphName);
  22397. }
  22398. return charset;
  22399. },
  22400. getGlyphMapping: function Type1Font_getGlyphMapping(properties) {
  22401. var charstrings = this.charstrings;
  22402. var glyphNames = ['.notdef'], glyphId;
  22403. for (glyphId = 0; glyphId < charstrings.length; glyphId++) {
  22404. glyphNames.push(charstrings[glyphId].glyphName);
  22405. }
  22406. var encoding = properties.builtInEncoding;
  22407. if (encoding) {
  22408. var builtInEncoding = {};
  22409. for (var charCode in encoding) {
  22410. glyphId = glyphNames.indexOf(encoding[charCode]);
  22411. if (glyphId >= 0) {
  22412. builtInEncoding[charCode] = glyphId;
  22413. }
  22414. }
  22415. }
  22416. return type1FontGlyphMapping(properties, builtInEncoding, glyphNames);
  22417. },
  22418. getSeacs: function Type1Font_getSeacs(charstrings) {
  22419. var i, ii;
  22420. var seacMap = [];
  22421. for (i = 0, ii = charstrings.length; i < ii; i++) {
  22422. var charstring = charstrings[i];
  22423. if (charstring.seac) {
  22424. // Offset by 1 for .notdef
  22425. seacMap[i + 1] = charstring.seac;
  22426. }
  22427. }
  22428. return seacMap;
  22429. },
  22430. getType2Charstrings: function Type1Font_getType2Charstrings(
  22431. type1Charstrings) {
  22432. var type2Charstrings = [];
  22433. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  22434. type2Charstrings.push(type1Charstrings[i].charstring);
  22435. }
  22436. return type2Charstrings;
  22437. },
  22438. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  22439. var bias = 0;
  22440. var count = type1Subrs.length;
  22441. if (count < 1133) {
  22442. bias = 107;
  22443. } else if (count < 33769) {
  22444. bias = 1131;
  22445. } else {
  22446. bias = 32768;
  22447. }
  22448. // Add a bunch of empty subrs to deal with the Type2 bias
  22449. var type2Subrs = [];
  22450. var i;
  22451. for (i = 0; i < bias; i++) {
  22452. type2Subrs.push([0x0B]);
  22453. }
  22454. for (i = 0; i < count; i++) {
  22455. type2Subrs.push(type1Subrs[i]);
  22456. }
  22457. return type2Subrs;
  22458. },
  22459. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  22460. var cff = new CFF();
  22461. cff.header = new CFFHeader(1, 0, 4, 4);
  22462. cff.names = [name];
  22463. var topDict = new CFFTopDict();
  22464. // CFF strings IDs 0...390 are predefined names, so refering
  22465. // to entries in our own String INDEX starts at SID 391.
  22466. topDict.setByName('version', 391);
  22467. topDict.setByName('Notice', 392);
  22468. topDict.setByName('FullName', 393);
  22469. topDict.setByName('FamilyName', 394);
  22470. topDict.setByName('Weight', 395);
  22471. topDict.setByName('Encoding', null); // placeholder
  22472. topDict.setByName('FontMatrix', properties.fontMatrix);
  22473. topDict.setByName('FontBBox', properties.bbox);
  22474. topDict.setByName('charset', null); // placeholder
  22475. topDict.setByName('CharStrings', null); // placeholder
  22476. topDict.setByName('Private', null); // placeholder
  22477. cff.topDict = topDict;
  22478. var strings = new CFFStrings();
  22479. strings.add('Version 0.11'); // Version
  22480. strings.add('See original notice'); // Notice
  22481. strings.add(name); // FullName
  22482. strings.add(name); // FamilyName
  22483. strings.add('Medium'); // Weight
  22484. cff.strings = strings;
  22485. cff.globalSubrIndex = new CFFIndex();
  22486. var count = glyphs.length;
  22487. var charsetArray = [0];
  22488. var i, ii;
  22489. for (i = 0; i < count; i++) {
  22490. var index = CFFStandardStrings.indexOf(charstrings[i].glyphName);
  22491. // TODO: Insert the string and correctly map it. Previously it was
  22492. // thought mapping names that aren't in the standard strings to .notdef
  22493. // was fine, however in issue818 when mapping them all to .notdef the
  22494. // adieresis glyph no longer worked.
  22495. if (index == -1) {
  22496. index = 0;
  22497. }
  22498. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  22499. }
  22500. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  22501. var charStringsIndex = new CFFIndex();
  22502. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  22503. for (i = 0; i < count; i++) {
  22504. charStringsIndex.add(glyphs[i]);
  22505. }
  22506. cff.charStrings = charStringsIndex;
  22507. var privateDict = new CFFPrivateDict();
  22508. privateDict.setByName('Subrs', null); // placeholder
  22509. var fields = [
  22510. 'BlueValues',
  22511. 'OtherBlues',
  22512. 'FamilyBlues',
  22513. 'FamilyOtherBlues',
  22514. 'StemSnapH',
  22515. 'StemSnapV',
  22516. 'BlueShift',
  22517. 'BlueFuzz',
  22518. 'BlueScale',
  22519. 'LanguageGroup',
  22520. 'ExpansionFactor',
  22521. 'ForceBold',
  22522. 'StdHW',
  22523. 'StdVW'
  22524. ];
  22525. for (i = 0, ii = fields.length; i < ii; i++) {
  22526. var field = fields[i];
  22527. if (!properties.privateData.hasOwnProperty(field)) {
  22528. continue;
  22529. }
  22530. var value = properties.privateData[field];
  22531. if (isArray(value)) {
  22532. // All of the private dictionary array data in CFF must be stored as
  22533. // "delta-encoded" numbers.
  22534. for (var j = value.length - 1; j > 0; j--) {
  22535. value[j] -= value[j - 1]; // ... difference from previous value
  22536. }
  22537. }
  22538. privateDict.setByName(field, value);
  22539. }
  22540. cff.topDict.privateDict = privateDict;
  22541. var subrIndex = new CFFIndex();
  22542. for (i = 0, ii = subrs.length; i < ii; i++) {
  22543. subrIndex.add(subrs[i]);
  22544. }
  22545. privateDict.subrsIndex = subrIndex;
  22546. var compiler = new CFFCompiler(cff);
  22547. return compiler.compile();
  22548. }
  22549. };
  22550. var CFFFont = (function CFFFontClosure() {
  22551. function CFFFont(file, properties) {
  22552. this.properties = properties;
  22553. var parser = new CFFParser(file, properties);
  22554. this.cff = parser.parse();
  22555. var compiler = new CFFCompiler(this.cff);
  22556. this.seacs = this.cff.seacs;
  22557. try {
  22558. this.data = compiler.compile();
  22559. } catch (e) {
  22560. warn('Failed to compile font ' + properties.loadedName);
  22561. // There may have just been an issue with the compiler, set the data
  22562. // anyway and hope the font loaded.
  22563. this.data = file;
  22564. }
  22565. }
  22566. CFFFont.prototype = {
  22567. get numGlyphs() {
  22568. return this.cff.charStrings.count;
  22569. },
  22570. getCharset: function CFFFont_getCharset() {
  22571. return this.cff.charset.charset;
  22572. },
  22573. getGlyphMapping: function CFFFont_getGlyphMapping() {
  22574. var cff = this.cff;
  22575. var properties = this.properties;
  22576. var charsets = cff.charset.charset;
  22577. var charCodeToGlyphId;
  22578. var glyphId;
  22579. if (properties.composite) {
  22580. charCodeToGlyphId = Object.create(null);
  22581. if (cff.isCIDFont) {
  22582. // If the font is actually a CID font then we should use the charset
  22583. // to map CIDs to GIDs.
  22584. for (glyphId = 0; glyphId < charsets.length; glyphId++) {
  22585. var cidString = String.fromCharCode(charsets[glyphId]);
  22586. var charCode = properties.cMap.map.indexOf(cidString);
  22587. charCodeToGlyphId[charCode] = glyphId;
  22588. }
  22589. } else {
  22590. // If it is NOT actually a CID font then CIDs should be mapped
  22591. // directly to GIDs.
  22592. for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) {
  22593. charCodeToGlyphId[glyphId] = glyphId;
  22594. }
  22595. }
  22596. return charCodeToGlyphId;
  22597. }
  22598. var encoding = cff.encoding ? cff.encoding.encoding : null;
  22599. charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
  22600. return charCodeToGlyphId;
  22601. }
  22602. };
  22603. return CFFFont;
  22604. })();
  22605. var CFFParser = (function CFFParserClosure() {
  22606. var CharstringValidationData = [
  22607. null,
  22608. { id: 'hstem', min: 2, resetStack: true, stem: true },
  22609. null,
  22610. { id: 'vstem', min: 2, resetStack: true, stem: true },
  22611. { id: 'vmoveto', min: 1, resetStack: true },
  22612. { id: 'rlineto', min: 2, resetStack: true },
  22613. { id: 'hlineto', min: 1, resetStack: true },
  22614. { id: 'vlineto', min: 1, resetStack: true },
  22615. { id: 'rrcurveto', min: 6, resetStack: true },
  22616. null,
  22617. { id: 'callsubr', min: 1, undefStack: true },
  22618. { id: 'return', min: 0, undefStack: true },
  22619. null, // 12
  22620. null,
  22621. null, // endchar
  22622. null,
  22623. null,
  22624. null,
  22625. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  22626. null, // hintmask
  22627. null, // cntrmask
  22628. { id: 'rmoveto', min: 2, resetStack: true },
  22629. { id: 'hmoveto', min: 1, resetStack: true },
  22630. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  22631. { id: 'rcurveline', min: 8, resetStack: true },
  22632. { id: 'rlinecurve', min: 8, resetStack: true },
  22633. { id: 'vvcurveto', min: 4, resetStack: true },
  22634. { id: 'hhcurveto', min: 4, resetStack: true },
  22635. null, // shortint
  22636. { id: 'callgsubr', min: 1, undefStack: true },
  22637. { id: 'vhcurveto', min: 4, resetStack: true },
  22638. { id: 'hvcurveto', min: 4, resetStack: true }
  22639. ];
  22640. var CharstringValidationData12 = [
  22641. null,
  22642. null,
  22643. null,
  22644. { id: 'and', min: 2, stackDelta: -1 },
  22645. { id: 'or', min: 2, stackDelta: -1 },
  22646. { id: 'not', min: 1, stackDelta: 0 },
  22647. null,
  22648. null,
  22649. null,
  22650. { id: 'abs', min: 1, stackDelta: 0 },
  22651. { id: 'add', min: 2, stackDelta: -1,
  22652. stackFn: function stack_div(stack, index) {
  22653. stack[index - 2] = stack[index - 2] + stack[index - 1];
  22654. }
  22655. },
  22656. { id: 'sub', min: 2, stackDelta: -1,
  22657. stackFn: function stack_div(stack, index) {
  22658. stack[index - 2] = stack[index - 2] - stack[index - 1];
  22659. }
  22660. },
  22661. { id: 'div', min: 2, stackDelta: -1,
  22662. stackFn: function stack_div(stack, index) {
  22663. stack[index - 2] = stack[index - 2] / stack[index - 1];
  22664. }
  22665. },
  22666. null,
  22667. { id: 'neg', min: 1, stackDelta: 0,
  22668. stackFn: function stack_div(stack, index) {
  22669. stack[index - 1] = -stack[index - 1];
  22670. }
  22671. },
  22672. { id: 'eq', min: 2, stackDelta: -1 },
  22673. null,
  22674. null,
  22675. { id: 'drop', min: 1, stackDelta: -1 },
  22676. null,
  22677. { id: 'put', min: 2, stackDelta: -2 },
  22678. { id: 'get', min: 1, stackDelta: 0 },
  22679. { id: 'ifelse', min: 4, stackDelta: -3 },
  22680. { id: 'random', min: 0, stackDelta: 1 },
  22681. { id: 'mul', min: 2, stackDelta: -1,
  22682. stackFn: function stack_div(stack, index) {
  22683. stack[index - 2] = stack[index - 2] * stack[index - 1];
  22684. }
  22685. },
  22686. null,
  22687. { id: 'sqrt', min: 1, stackDelta: 0 },
  22688. { id: 'dup', min: 1, stackDelta: 1 },
  22689. { id: 'exch', min: 2, stackDelta: 0 },
  22690. { id: 'index', min: 2, stackDelta: 0 },
  22691. { id: 'roll', min: 3, stackDelta: -2 },
  22692. null,
  22693. null,
  22694. null,
  22695. { id: 'hflex', min: 7, resetStack: true },
  22696. { id: 'flex', min: 13, resetStack: true },
  22697. { id: 'hflex1', min: 9, resetStack: true },
  22698. { id: 'flex1', min: 11, resetStack: true }
  22699. ];
  22700. function CFFParser(file, properties) {
  22701. this.bytes = file.getBytes();
  22702. this.properties = properties;
  22703. }
  22704. CFFParser.prototype = {
  22705. parse: function CFFParser_parse() {
  22706. var properties = this.properties;
  22707. var cff = new CFF();
  22708. this.cff = cff;
  22709. // The first five sections must be in order, all the others are reached
  22710. // via offsets contained in one of the below.
  22711. var header = this.parseHeader();
  22712. var nameIndex = this.parseIndex(header.endPos);
  22713. var topDictIndex = this.parseIndex(nameIndex.endPos);
  22714. var stringIndex = this.parseIndex(topDictIndex.endPos);
  22715. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  22716. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  22717. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  22718. cff.header = header.obj;
  22719. cff.names = this.parseNameIndex(nameIndex.obj);
  22720. cff.strings = this.parseStringIndex(stringIndex.obj);
  22721. cff.topDict = topDict;
  22722. cff.globalSubrIndex = globalSubrIndex.obj;
  22723. this.parsePrivateDict(cff.topDict);
  22724. cff.isCIDFont = topDict.hasName('ROS');
  22725. var charStringOffset = topDict.getByName('CharStrings');
  22726. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  22727. cff.charStrings = charStringsAndSeacs.charStrings;
  22728. cff.seacs = charStringsAndSeacs.seacs;
  22729. var fontMatrix = topDict.getByName('FontMatrix');
  22730. if (fontMatrix) {
  22731. properties.fontMatrix = fontMatrix;
  22732. }
  22733. var fontBBox = topDict.getByName('FontBBox');
  22734. if (fontBBox) {
  22735. // adjusting ascent/descent
  22736. properties.ascent = fontBBox[3];
  22737. properties.descent = fontBBox[1];
  22738. properties.ascentScaled = true;
  22739. }
  22740. var charset, encoding;
  22741. if (cff.isCIDFont) {
  22742. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  22743. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  22744. var dictRaw = fdArrayIndex.get(i);
  22745. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  22746. cff.strings);
  22747. this.parsePrivateDict(fontDict);
  22748. cff.fdArray.push(fontDict);
  22749. }
  22750. // cid fonts don't have an encoding
  22751. encoding = null;
  22752. charset = this.parseCharsets(topDict.getByName('charset'),
  22753. cff.charStrings.count, cff.strings, true);
  22754. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  22755. cff.charStrings.count);
  22756. } else {
  22757. charset = this.parseCharsets(topDict.getByName('charset'),
  22758. cff.charStrings.count, cff.strings, false);
  22759. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  22760. properties,
  22761. cff.strings, charset.charset);
  22762. }
  22763. cff.charset = charset;
  22764. cff.encoding = encoding;
  22765. return cff;
  22766. },
  22767. parseHeader: function CFFParser_parseHeader() {
  22768. var bytes = this.bytes;
  22769. var bytesLength = bytes.length;
  22770. var offset = 0;
  22771. // Prevent an infinite loop, by checking that the offset is within the
  22772. // bounds of the bytes array. Necessary in empty, or invalid, font files.
  22773. while (offset < bytesLength && bytes[offset] !== 1) {
  22774. ++offset;
  22775. }
  22776. if (offset >= bytesLength) {
  22777. error('Invalid CFF header');
  22778. } else if (offset !== 0) {
  22779. info('cff data is shifted');
  22780. bytes = bytes.subarray(offset);
  22781. this.bytes = bytes;
  22782. }
  22783. var major = bytes[0];
  22784. var minor = bytes[1];
  22785. var hdrSize = bytes[2];
  22786. var offSize = bytes[3];
  22787. var header = new CFFHeader(major, minor, hdrSize, offSize);
  22788. return { obj: header, endPos: hdrSize };
  22789. },
  22790. parseDict: function CFFParser_parseDict(dict) {
  22791. var pos = 0;
  22792. function parseOperand() {
  22793. var value = dict[pos++];
  22794. if (value === 30) {
  22795. return parseFloatOperand(pos);
  22796. } else if (value === 28) {
  22797. value = dict[pos++];
  22798. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  22799. return value;
  22800. } else if (value === 29) {
  22801. value = dict[pos++];
  22802. value = (value << 8) | dict[pos++];
  22803. value = (value << 8) | dict[pos++];
  22804. value = (value << 8) | dict[pos++];
  22805. return value;
  22806. } else if (value >= 32 && value <= 246) {
  22807. return value - 139;
  22808. } else if (value >= 247 && value <= 250) {
  22809. return ((value - 247) * 256) + dict[pos++] + 108;
  22810. } else if (value >= 251 && value <= 254) {
  22811. return -((value - 251) * 256) - dict[pos++] - 108;
  22812. } else {
  22813. error('255 is not a valid DICT command');
  22814. }
  22815. return -1;
  22816. }
  22817. function parseFloatOperand() {
  22818. var str = '';
  22819. var eof = 15;
  22820. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  22821. '9', '.', 'E', 'E-', null, '-'];
  22822. var length = dict.length;
  22823. while (pos < length) {
  22824. var b = dict[pos++];
  22825. var b1 = b >> 4;
  22826. var b2 = b & 15;
  22827. if (b1 == eof) {
  22828. break;
  22829. }
  22830. str += lookup[b1];
  22831. if (b2 == eof) {
  22832. break;
  22833. }
  22834. str += lookup[b2];
  22835. }
  22836. return parseFloat(str);
  22837. }
  22838. var operands = [];
  22839. var entries = [];
  22840. pos = 0;
  22841. var end = dict.length;
  22842. while (pos < end) {
  22843. var b = dict[pos];
  22844. if (b <= 21) {
  22845. if (b === 12) {
  22846. b = (b << 8) | dict[++pos];
  22847. }
  22848. entries.push([b, operands]);
  22849. operands = [];
  22850. ++pos;
  22851. } else {
  22852. operands.push(parseOperand());
  22853. }
  22854. }
  22855. return entries;
  22856. },
  22857. parseIndex: function CFFParser_parseIndex(pos) {
  22858. var cffIndex = new CFFIndex();
  22859. var bytes = this.bytes;
  22860. var count = (bytes[pos++] << 8) | bytes[pos++];
  22861. var offsets = [];
  22862. var end = pos;
  22863. var i, ii;
  22864. if (count !== 0) {
  22865. var offsetSize = bytes[pos++];
  22866. // add 1 for offset to determine size of last object
  22867. var startPos = pos + ((count + 1) * offsetSize) - 1;
  22868. for (i = 0, ii = count + 1; i < ii; ++i) {
  22869. var offset = 0;
  22870. for (var j = 0; j < offsetSize; ++j) {
  22871. offset <<= 8;
  22872. offset += bytes[pos++];
  22873. }
  22874. offsets.push(startPos + offset);
  22875. }
  22876. end = offsets[count];
  22877. }
  22878. for (i = 0, ii = offsets.length - 1; i < ii; ++i) {
  22879. var offsetStart = offsets[i];
  22880. var offsetEnd = offsets[i + 1];
  22881. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  22882. }
  22883. return {obj: cffIndex, endPos: end};
  22884. },
  22885. parseNameIndex: function CFFParser_parseNameIndex(index) {
  22886. var names = [];
  22887. for (var i = 0, ii = index.count; i < ii; ++i) {
  22888. var name = index.get(i);
  22889. // OTS doesn't allow names to be over 127 characters.
  22890. var length = Math.min(name.length, 127);
  22891. var data = [];
  22892. // OTS also only permits certain characters in the name.
  22893. for (var j = 0; j < length; ++j) {
  22894. var c = name[j];
  22895. if (j === 0 && c === 0) {
  22896. data[j] = c;
  22897. continue;
  22898. }
  22899. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  22900. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  22901. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  22902. c === 47 /* / */ || c === 37 /* % */ || c === 35 /* # */) {
  22903. data[j] = 95;
  22904. continue;
  22905. }
  22906. data[j] = c;
  22907. }
  22908. names.push(bytesToString(data));
  22909. }
  22910. return names;
  22911. },
  22912. parseStringIndex: function CFFParser_parseStringIndex(index) {
  22913. var strings = new CFFStrings();
  22914. for (var i = 0, ii = index.count; i < ii; ++i) {
  22915. var data = index.get(i);
  22916. strings.add(bytesToString(data));
  22917. }
  22918. return strings;
  22919. },
  22920. createDict: function CFFParser_createDict(Type, dict, strings) {
  22921. var cffDict = new Type(strings);
  22922. for (var i = 0, ii = dict.length; i < ii; ++i) {
  22923. var pair = dict[i];
  22924. var key = pair[0];
  22925. var value = pair[1];
  22926. cffDict.setByKey(key, value);
  22927. }
  22928. return cffDict;
  22929. },
  22930. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  22931. var charStrings = this.parseIndex(charStringOffset).obj;
  22932. var seacs = [];
  22933. var count = charStrings.count;
  22934. for (var i = 0; i < count; i++) {
  22935. var charstring = charStrings.get(i);
  22936. var stackSize = 0;
  22937. var stack = [];
  22938. var undefStack = true;
  22939. var hints = 0;
  22940. var valid = true;
  22941. var data = charstring;
  22942. var length = data.length;
  22943. for (var j = 0; j < length;) {
  22944. var value = data[j++];
  22945. var validationCommand = null;
  22946. if (value == 12) {
  22947. var q = data[j++];
  22948. if (q === 0) {
  22949. // The CFF specification state that the 'dotsection' command
  22950. // (12, 0) is deprecated and treated as a no-op, but all Type2
  22951. // charstrings processors should support them. Unfortunately
  22952. // the font sanitizer don't. As a workaround the sequence (12, 0)
  22953. // is replaced by a useless (0, hmoveto).
  22954. data[j - 2] = 139;
  22955. data[j - 1] = 22;
  22956. stackSize = 0;
  22957. } else {
  22958. validationCommand = CharstringValidationData12[q];
  22959. }
  22960. } else if (value === 28) { // number (16 bit)
  22961. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  22962. j += 2;
  22963. stackSize++;
  22964. } else if (value == 14) {
  22965. if (stackSize >= 4) {
  22966. stackSize -= 4;
  22967. if (SEAC_ANALYSIS_ENABLED) {
  22968. seacs[i] = stack.slice(stackSize, stackSize + 4);
  22969. valid = false;
  22970. }
  22971. }
  22972. } else if (value >= 32 && value <= 246) { // number
  22973. stack[stackSize] = value - 139;
  22974. stackSize++;
  22975. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  22976. stack[stackSize] = (value < 251 ?
  22977. ((value - 247) << 8) + data[j] + 108 :
  22978. -((value - 251) << 8) - data[j] - 108);
  22979. j++;
  22980. stackSize++;
  22981. } else if (value == 255) { // number (32 bit)
  22982. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  22983. (data[j + 2] << 8) | data[j + 3]) / 65536;
  22984. j += 4;
  22985. stackSize++;
  22986. } else if (value == 19 || value == 20) {
  22987. hints += stackSize >> 1;
  22988. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  22989. stackSize = 0;
  22990. } else {
  22991. validationCommand = CharstringValidationData[value];
  22992. }
  22993. if (validationCommand) {
  22994. if (validationCommand.stem) {
  22995. hints += stackSize >> 1;
  22996. }
  22997. if ('min' in validationCommand) {
  22998. if (!undefStack && stackSize < validationCommand.min) {
  22999. warn('Not enough parameters for ' + validationCommand.id +
  23000. '; actual: ' + stackSize +
  23001. ', expected: ' + validationCommand.min);
  23002. valid = false;
  23003. break;
  23004. }
  23005. }
  23006. if ('stackDelta' in validationCommand) {
  23007. if ('stackFn' in validationCommand) {
  23008. validationCommand.stackFn(stack, stackSize);
  23009. }
  23010. stackSize += validationCommand.stackDelta;
  23011. } else if (validationCommand.resetStack) {
  23012. stackSize = 0;
  23013. undefStack = false;
  23014. } else if (validationCommand.undefStack) {
  23015. stackSize = 0;
  23016. undefStack = true;
  23017. }
  23018. }
  23019. }
  23020. if (!valid) {
  23021. // resetting invalid charstring to single 'endchar'
  23022. charStrings.set(i, new Uint8Array([14]));
  23023. }
  23024. }
  23025. return { charStrings: charStrings, seacs: seacs };
  23026. },
  23027. emptyPrivateDictionary:
  23028. function CFFParser_emptyPrivateDictionary(parentDict) {
  23029. var privateDict = this.createDict(CFFPrivateDict, [],
  23030. parentDict.strings);
  23031. parentDict.setByKey(18, [0, 0]);
  23032. parentDict.privateDict = privateDict;
  23033. },
  23034. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  23035. // no private dict, do nothing
  23036. if (!parentDict.hasName('Private')) {
  23037. this.emptyPrivateDictionary(parentDict);
  23038. return;
  23039. }
  23040. var privateOffset = parentDict.getByName('Private');
  23041. // make sure the params are formatted correctly
  23042. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  23043. parentDict.removeByName('Private');
  23044. return;
  23045. }
  23046. var size = privateOffset[0];
  23047. var offset = privateOffset[1];
  23048. // remove empty dicts or ones that refer to invalid location
  23049. if (size === 0 || offset >= this.bytes.length) {
  23050. this.emptyPrivateDictionary(parentDict);
  23051. return;
  23052. }
  23053. var privateDictEnd = offset + size;
  23054. var dictData = this.bytes.subarray(offset, privateDictEnd);
  23055. var dict = this.parseDict(dictData);
  23056. var privateDict = this.createDict(CFFPrivateDict, dict,
  23057. parentDict.strings);
  23058. parentDict.privateDict = privateDict;
  23059. // Parse the Subrs index also since it's relative to the private dict.
  23060. if (!privateDict.getByName('Subrs')) {
  23061. return;
  23062. }
  23063. var subrsOffset = privateDict.getByName('Subrs');
  23064. var relativeOffset = offset + subrsOffset;
  23065. // Validate the offset.
  23066. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  23067. this.emptyPrivateDictionary(parentDict);
  23068. return;
  23069. }
  23070. var subrsIndex = this.parseIndex(relativeOffset);
  23071. privateDict.subrsIndex = subrsIndex.obj;
  23072. },
  23073. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  23074. if (pos === 0) {
  23075. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  23076. ISOAdobeCharset);
  23077. } else if (pos == 1) {
  23078. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  23079. ExpertCharset);
  23080. } else if (pos == 2) {
  23081. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  23082. ExpertSubsetCharset);
  23083. }
  23084. var bytes = this.bytes;
  23085. var start = pos;
  23086. var format = bytes[pos++];
  23087. var charset = ['.notdef'];
  23088. var id, count, i;
  23089. // subtract 1 for the .notdef glyph
  23090. length -= 1;
  23091. switch (format) {
  23092. case 0:
  23093. for (i = 0; i < length; i++) {
  23094. id = (bytes[pos++] << 8) | bytes[pos++];
  23095. charset.push(cid ? id : strings.get(id));
  23096. }
  23097. break;
  23098. case 1:
  23099. while (charset.length <= length) {
  23100. id = (bytes[pos++] << 8) | bytes[pos++];
  23101. count = bytes[pos++];
  23102. for (i = 0; i <= count; i++) {
  23103. charset.push(cid ? id++ : strings.get(id++));
  23104. }
  23105. }
  23106. break;
  23107. case 2:
  23108. while (charset.length <= length) {
  23109. id = (bytes[pos++] << 8) | bytes[pos++];
  23110. count = (bytes[pos++] << 8) | bytes[pos++];
  23111. for (i = 0; i <= count; i++) {
  23112. charset.push(cid ? id++ : strings.get(id++));
  23113. }
  23114. }
  23115. break;
  23116. default:
  23117. error('Unknown charset format');
  23118. }
  23119. // Raw won't be needed if we actually compile the charset.
  23120. var end = pos;
  23121. var raw = bytes.subarray(start, end);
  23122. return new CFFCharset(false, format, charset, raw);
  23123. },
  23124. parseEncoding: function CFFParser_parseEncoding(pos,
  23125. properties,
  23126. strings,
  23127. charset) {
  23128. var encoding = {};
  23129. var bytes = this.bytes;
  23130. var predefined = false;
  23131. var hasSupplement = false;
  23132. var format, i, ii;
  23133. var raw = null;
  23134. function readSupplement() {
  23135. var supplementsCount = bytes[pos++];
  23136. for (i = 0; i < supplementsCount; i++) {
  23137. var code = bytes[pos++];
  23138. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  23139. encoding[code] = charset.indexOf(strings.get(sid));
  23140. }
  23141. }
  23142. if (pos === 0 || pos == 1) {
  23143. predefined = true;
  23144. format = pos;
  23145. var baseEncoding = pos ? Encodings.ExpertEncoding :
  23146. Encodings.StandardEncoding;
  23147. for (i = 0, ii = charset.length; i < ii; i++) {
  23148. var index = baseEncoding.indexOf(charset[i]);
  23149. if (index != -1) {
  23150. encoding[index] = i;
  23151. }
  23152. }
  23153. } else {
  23154. var dataStart = pos;
  23155. format = bytes[pos++];
  23156. switch (format & 0x7f) {
  23157. case 0:
  23158. var glyphsCount = bytes[pos++];
  23159. for (i = 1; i <= glyphsCount; i++) {
  23160. encoding[bytes[pos++]] = i;
  23161. }
  23162. break;
  23163. case 1:
  23164. var rangesCount = bytes[pos++];
  23165. var gid = 1;
  23166. for (i = 0; i < rangesCount; i++) {
  23167. var start = bytes[pos++];
  23168. var left = bytes[pos++];
  23169. for (var j = start; j <= start + left; j++) {
  23170. encoding[j] = gid++;
  23171. }
  23172. }
  23173. break;
  23174. default:
  23175. error('Unknow encoding format: ' + format + ' in CFF');
  23176. break;
  23177. }
  23178. var dataEnd = pos;
  23179. if (format & 0x80) {
  23180. // The font sanitizer does not support CFF encoding with a
  23181. // supplement, since the encoding is not really used to map
  23182. // between gid to glyph, let's overwrite what is declared in
  23183. // the top dictionary to let the sanitizer think the font use
  23184. // StandardEncoding, that's a lie but that's ok.
  23185. bytes[dataStart] &= 0x7f;
  23186. readSupplement();
  23187. hasSupplement = true;
  23188. }
  23189. raw = bytes.subarray(dataStart, dataEnd);
  23190. }
  23191. format = format & 0x7f;
  23192. return new CFFEncoding(predefined, format, encoding, raw);
  23193. },
  23194. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  23195. var start = pos;
  23196. var bytes = this.bytes;
  23197. var format = bytes[pos++];
  23198. var fdSelect = [];
  23199. var i;
  23200. switch (format) {
  23201. case 0:
  23202. for (i = 0; i < length; ++i) {
  23203. var id = bytes[pos++];
  23204. fdSelect.push(id);
  23205. }
  23206. break;
  23207. case 3:
  23208. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  23209. for (i = 0; i < rangesCount; ++i) {
  23210. var first = (bytes[pos++] << 8) | bytes[pos++];
  23211. var fdIndex = bytes[pos++];
  23212. var next = (bytes[pos] << 8) | bytes[pos + 1];
  23213. for (var j = first; j < next; ++j) {
  23214. fdSelect.push(fdIndex);
  23215. }
  23216. }
  23217. // Advance past the sentinel(next).
  23218. pos += 2;
  23219. break;
  23220. default:
  23221. error('Unknown fdselect format ' + format);
  23222. break;
  23223. }
  23224. var end = pos;
  23225. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  23226. }
  23227. };
  23228. return CFFParser;
  23229. })();
  23230. // Compact Font Format
  23231. var CFF = (function CFFClosure() {
  23232. function CFF() {
  23233. this.header = null;
  23234. this.names = [];
  23235. this.topDict = null;
  23236. this.strings = new CFFStrings();
  23237. this.globalSubrIndex = null;
  23238. // The following could really be per font, but since we only have one font
  23239. // store them here.
  23240. this.encoding = null;
  23241. this.charset = null;
  23242. this.charStrings = null;
  23243. this.fdArray = [];
  23244. this.fdSelect = null;
  23245. this.isCIDFont = false;
  23246. }
  23247. return CFF;
  23248. })();
  23249. var CFFHeader = (function CFFHeaderClosure() {
  23250. function CFFHeader(major, minor, hdrSize, offSize) {
  23251. this.major = major;
  23252. this.minor = minor;
  23253. this.hdrSize = hdrSize;
  23254. this.offSize = offSize;
  23255. }
  23256. return CFFHeader;
  23257. })();
  23258. var CFFStrings = (function CFFStringsClosure() {
  23259. function CFFStrings() {
  23260. this.strings = [];
  23261. }
  23262. CFFStrings.prototype = {
  23263. get: function CFFStrings_get(index) {
  23264. if (index >= 0 && index <= 390) {
  23265. return CFFStandardStrings[index];
  23266. }
  23267. if (index - 391 <= this.strings.length) {
  23268. return this.strings[index - 391];
  23269. }
  23270. return CFFStandardStrings[0];
  23271. },
  23272. add: function CFFStrings_add(value) {
  23273. this.strings.push(value);
  23274. },
  23275. get count() {
  23276. return this.strings.length;
  23277. }
  23278. };
  23279. return CFFStrings;
  23280. })();
  23281. var CFFIndex = (function CFFIndexClosure() {
  23282. function CFFIndex() {
  23283. this.objects = [];
  23284. this.length = 0;
  23285. }
  23286. CFFIndex.prototype = {
  23287. add: function CFFIndex_add(data) {
  23288. this.length += data.length;
  23289. this.objects.push(data);
  23290. },
  23291. set: function CFFIndex_set(index, data) {
  23292. this.length += data.length - this.objects[index].length;
  23293. this.objects[index] = data;
  23294. },
  23295. get: function CFFIndex_get(index) {
  23296. return this.objects[index];
  23297. },
  23298. get count() {
  23299. return this.objects.length;
  23300. }
  23301. };
  23302. return CFFIndex;
  23303. })();
  23304. var CFFDict = (function CFFDictClosure() {
  23305. function CFFDict(tables, strings) {
  23306. this.keyToNameMap = tables.keyToNameMap;
  23307. this.nameToKeyMap = tables.nameToKeyMap;
  23308. this.defaults = tables.defaults;
  23309. this.types = tables.types;
  23310. this.opcodes = tables.opcodes;
  23311. this.order = tables.order;
  23312. this.strings = strings;
  23313. this.values = {};
  23314. }
  23315. CFFDict.prototype = {
  23316. // value should always be an array
  23317. setByKey: function CFFDict_setByKey(key, value) {
  23318. if (!(key in this.keyToNameMap)) {
  23319. return false;
  23320. }
  23321. // ignore empty values
  23322. if (value.length === 0) {
  23323. return true;
  23324. }
  23325. var type = this.types[key];
  23326. // remove the array wrapping these types of values
  23327. if (type === 'num' || type === 'sid' || type === 'offset') {
  23328. value = value[0];
  23329. }
  23330. this.values[key] = value;
  23331. return true;
  23332. },
  23333. setByName: function CFFDict_setByName(name, value) {
  23334. if (!(name in this.nameToKeyMap)) {
  23335. error('Invalid dictionary name "' + name + '"');
  23336. }
  23337. this.values[this.nameToKeyMap[name]] = value;
  23338. },
  23339. hasName: function CFFDict_hasName(name) {
  23340. return this.nameToKeyMap[name] in this.values;
  23341. },
  23342. getByName: function CFFDict_getByName(name) {
  23343. if (!(name in this.nameToKeyMap)) {
  23344. error('Invalid dictionary name "' + name + '"');
  23345. }
  23346. var key = this.nameToKeyMap[name];
  23347. if (!(key in this.values)) {
  23348. return this.defaults[key];
  23349. }
  23350. return this.values[key];
  23351. },
  23352. removeByName: function CFFDict_removeByName(name) {
  23353. delete this.values[this.nameToKeyMap[name]];
  23354. }
  23355. };
  23356. CFFDict.createTables = function CFFDict_createTables(layout) {
  23357. var tables = {
  23358. keyToNameMap: {},
  23359. nameToKeyMap: {},
  23360. defaults: {},
  23361. types: {},
  23362. opcodes: {},
  23363. order: []
  23364. };
  23365. for (var i = 0, ii = layout.length; i < ii; ++i) {
  23366. var entry = layout[i];
  23367. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  23368. tables.keyToNameMap[key] = entry[1];
  23369. tables.nameToKeyMap[entry[1]] = key;
  23370. tables.types[key] = entry[2];
  23371. tables.defaults[key] = entry[3];
  23372. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  23373. tables.order.push(key);
  23374. }
  23375. return tables;
  23376. };
  23377. return CFFDict;
  23378. })();
  23379. var CFFTopDict = (function CFFTopDictClosure() {
  23380. var layout = [
  23381. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  23382. [[12, 20], 'SyntheticBase', 'num', null],
  23383. [0, 'version', 'sid', null],
  23384. [1, 'Notice', 'sid', null],
  23385. [[12, 0], 'Copyright', 'sid', null],
  23386. [2, 'FullName', 'sid', null],
  23387. [3, 'FamilyName', 'sid', null],
  23388. [4, 'Weight', 'sid', null],
  23389. [[12, 1], 'isFixedPitch', 'num', 0],
  23390. [[12, 2], 'ItalicAngle', 'num', 0],
  23391. [[12, 3], 'UnderlinePosition', 'num', -100],
  23392. [[12, 4], 'UnderlineThickness', 'num', 50],
  23393. [[12, 5], 'PaintType', 'num', 0],
  23394. [[12, 6], 'CharstringType', 'num', 2],
  23395. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  23396. [0.001, 0, 0, 0.001, 0, 0]],
  23397. [13, 'UniqueID', 'num', null],
  23398. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  23399. [[12, 8], 'StrokeWidth', 'num', 0],
  23400. [14, 'XUID', 'array', null],
  23401. [15, 'charset', 'offset', 0],
  23402. [16, 'Encoding', 'offset', 0],
  23403. [17, 'CharStrings', 'offset', 0],
  23404. [18, 'Private', ['offset', 'offset'], null],
  23405. [[12, 21], 'PostScript', 'sid', null],
  23406. [[12, 22], 'BaseFontName', 'sid', null],
  23407. [[12, 23], 'BaseFontBlend', 'delta', null],
  23408. [[12, 31], 'CIDFontVersion', 'num', 0],
  23409. [[12, 32], 'CIDFontRevision', 'num', 0],
  23410. [[12, 33], 'CIDFontType', 'num', 0],
  23411. [[12, 34], 'CIDCount', 'num', 8720],
  23412. [[12, 35], 'UIDBase', 'num', null],
  23413. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  23414. // before FDArray.
  23415. [[12, 37], 'FDSelect', 'offset', null],
  23416. [[12, 36], 'FDArray', 'offset', null],
  23417. [[12, 38], 'FontName', 'sid', null]
  23418. ];
  23419. var tables = null;
  23420. function CFFTopDict(strings) {
  23421. if (tables === null) {
  23422. tables = CFFDict.createTables(layout);
  23423. }
  23424. CFFDict.call(this, tables, strings);
  23425. this.privateDict = null;
  23426. }
  23427. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  23428. return CFFTopDict;
  23429. })();
  23430. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  23431. var layout = [
  23432. [6, 'BlueValues', 'delta', null],
  23433. [7, 'OtherBlues', 'delta', null],
  23434. [8, 'FamilyBlues', 'delta', null],
  23435. [9, 'FamilyOtherBlues', 'delta', null],
  23436. [[12, 9], 'BlueScale', 'num', 0.039625],
  23437. [[12, 10], 'BlueShift', 'num', 7],
  23438. [[12, 11], 'BlueFuzz', 'num', 1],
  23439. [10, 'StdHW', 'num', null],
  23440. [11, 'StdVW', 'num', null],
  23441. [[12, 12], 'StemSnapH', 'delta', null],
  23442. [[12, 13], 'StemSnapV', 'delta', null],
  23443. [[12, 14], 'ForceBold', 'num', 0],
  23444. [[12, 17], 'LanguageGroup', 'num', 0],
  23445. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  23446. [[12, 19], 'initialRandomSeed', 'num', 0],
  23447. [20, 'defaultWidthX', 'num', 0],
  23448. [21, 'nominalWidthX', 'num', 0],
  23449. [19, 'Subrs', 'offset', null]
  23450. ];
  23451. var tables = null;
  23452. function CFFPrivateDict(strings) {
  23453. if (tables === null) {
  23454. tables = CFFDict.createTables(layout);
  23455. }
  23456. CFFDict.call(this, tables, strings);
  23457. this.subrsIndex = null;
  23458. }
  23459. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  23460. return CFFPrivateDict;
  23461. })();
  23462. var CFFCharsetPredefinedTypes = {
  23463. ISO_ADOBE: 0,
  23464. EXPERT: 1,
  23465. EXPERT_SUBSET: 2
  23466. };
  23467. var CFFCharset = (function CFFCharsetClosure() {
  23468. function CFFCharset(predefined, format, charset, raw) {
  23469. this.predefined = predefined;
  23470. this.format = format;
  23471. this.charset = charset;
  23472. this.raw = raw;
  23473. }
  23474. return CFFCharset;
  23475. })();
  23476. var CFFEncoding = (function CFFEncodingClosure() {
  23477. function CFFEncoding(predefined, format, encoding, raw) {
  23478. this.predefined = predefined;
  23479. this.format = format;
  23480. this.encoding = encoding;
  23481. this.raw = raw;
  23482. }
  23483. return CFFEncoding;
  23484. })();
  23485. var CFFFDSelect = (function CFFFDSelectClosure() {
  23486. function CFFFDSelect(fdSelect, raw) {
  23487. this.fdSelect = fdSelect;
  23488. this.raw = raw;
  23489. }
  23490. return CFFFDSelect;
  23491. })();
  23492. // Helper class to keep track of where an offset is within the data and helps
  23493. // filling in that offset once it's known.
  23494. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  23495. function CFFOffsetTracker() {
  23496. this.offsets = {};
  23497. }
  23498. CFFOffsetTracker.prototype = {
  23499. isTracking: function CFFOffsetTracker_isTracking(key) {
  23500. return key in this.offsets;
  23501. },
  23502. track: function CFFOffsetTracker_track(key, location) {
  23503. if (key in this.offsets) {
  23504. error('Already tracking location of ' + key);
  23505. }
  23506. this.offsets[key] = location;
  23507. },
  23508. offset: function CFFOffsetTracker_offset(value) {
  23509. for (var key in this.offsets) {
  23510. this.offsets[key] += value;
  23511. }
  23512. },
  23513. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  23514. values,
  23515. output) {
  23516. if (!(key in this.offsets)) {
  23517. error('Not tracking location of ' + key);
  23518. }
  23519. var data = output.data;
  23520. var dataOffset = this.offsets[key];
  23521. var size = 5;
  23522. for (var i = 0, ii = values.length; i < ii; ++i) {
  23523. var offset0 = i * size + dataOffset;
  23524. var offset1 = offset0 + 1;
  23525. var offset2 = offset0 + 2;
  23526. var offset3 = offset0 + 3;
  23527. var offset4 = offset0 + 4;
  23528. // It's easy to screw up offsets so perform this sanity check.
  23529. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  23530. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) {
  23531. error('writing to an offset that is not empty');
  23532. }
  23533. var value = values[i];
  23534. data[offset0] = 0x1d;
  23535. data[offset1] = (value >> 24) & 0xFF;
  23536. data[offset2] = (value >> 16) & 0xFF;
  23537. data[offset3] = (value >> 8) & 0xFF;
  23538. data[offset4] = value & 0xFF;
  23539. }
  23540. }
  23541. };
  23542. return CFFOffsetTracker;
  23543. })();
  23544. // Takes a CFF and converts it to the binary representation.
  23545. var CFFCompiler = (function CFFCompilerClosure() {
  23546. function CFFCompiler(cff) {
  23547. this.cff = cff;
  23548. }
  23549. CFFCompiler.prototype = {
  23550. compile: function CFFCompiler_compile() {
  23551. var cff = this.cff;
  23552. var output = {
  23553. data: [],
  23554. length: 0,
  23555. add: function CFFCompiler_add(data) {
  23556. this.data = this.data.concat(data);
  23557. this.length = this.data.length;
  23558. }
  23559. };
  23560. // Compile the five entries that must be in order.
  23561. var header = this.compileHeader(cff.header);
  23562. output.add(header);
  23563. var nameIndex = this.compileNameIndex(cff.names);
  23564. output.add(nameIndex);
  23565. if (cff.isCIDFont) {
  23566. // The spec is unclear on how font matrices should relate to each other
  23567. // when there is one in the main top dict and the sub top dicts.
  23568. // Windows handles this differently than linux and osx so we have to
  23569. // normalize to work on all.
  23570. // Rules based off of some mailing list discussions:
  23571. // - If main font has a matrix and subfont doesn't, use the main matrix.
  23572. // - If no main font matrix and there is a subfont matrix, use the
  23573. // subfont matrix.
  23574. // - If both have matrices, concat together.
  23575. // - If neither have matrices, use default.
  23576. // To make this work on all platforms we move the top matrix into each
  23577. // sub top dict and concat if necessary.
  23578. if (cff.topDict.hasName('FontMatrix')) {
  23579. var base = cff.topDict.getByName('FontMatrix');
  23580. cff.topDict.removeByName('FontMatrix');
  23581. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  23582. var subDict = cff.fdArray[i];
  23583. var matrix = base.slice(0);
  23584. if (subDict.hasName('FontMatrix')) {
  23585. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  23586. }
  23587. subDict.setByName('FontMatrix', matrix);
  23588. }
  23589. }
  23590. }
  23591. var compiled = this.compileTopDicts([cff.topDict],
  23592. output.length,
  23593. cff.isCIDFont);
  23594. output.add(compiled.output);
  23595. var topDictTracker = compiled.trackers[0];
  23596. var stringIndex = this.compileStringIndex(cff.strings.strings);
  23597. output.add(stringIndex);
  23598. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  23599. output.add(globalSubrIndex);
  23600. // Now start on the other entries that have no specfic order.
  23601. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  23602. if (cff.encoding.predefined) {
  23603. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  23604. output);
  23605. } else {
  23606. var encoding = this.compileEncoding(cff.encoding);
  23607. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  23608. output.add(encoding);
  23609. }
  23610. }
  23611. if (cff.charset && cff.topDict.hasName('charset')) {
  23612. if (cff.charset.predefined) {
  23613. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  23614. output);
  23615. } else {
  23616. var charset = this.compileCharset(cff.charset);
  23617. topDictTracker.setEntryLocation('charset', [output.length], output);
  23618. output.add(charset);
  23619. }
  23620. }
  23621. var charStrings = this.compileCharStrings(cff.charStrings);
  23622. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  23623. output.add(charStrings);
  23624. if (cff.isCIDFont) {
  23625. // For some reason FDSelect must be in front of FDArray on windows. OSX
  23626. // and linux don't seem to care.
  23627. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  23628. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  23629. output.add(fdSelect);
  23630. // It is unclear if the sub font dictionary can have CID related
  23631. // dictionary keys, but the sanitizer doesn't like them so remove them.
  23632. compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  23633. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  23634. output.add(compiled.output);
  23635. var fontDictTrackers = compiled.trackers;
  23636. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  23637. }
  23638. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  23639. // If the font data ends with INDEX whose object data is zero-length,
  23640. // the sanitizer will bail out. Add a dummy byte to avoid that.
  23641. output.add([0]);
  23642. return output.data;
  23643. },
  23644. encodeNumber: function CFFCompiler_encodeNumber(value) {
  23645. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) { // isInt
  23646. return this.encodeInteger(value);
  23647. } else {
  23648. return this.encodeFloat(value);
  23649. }
  23650. },
  23651. encodeFloat: function CFFCompiler_encodeFloat(num) {
  23652. var value = num.toString();
  23653. // rounding inaccurate doubles
  23654. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  23655. if (m) {
  23656. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  23657. value = (Math.round(num * epsilon) / epsilon).toString();
  23658. }
  23659. var nibbles = '';
  23660. var i, ii;
  23661. for (i = 0, ii = value.length; i < ii; ++i) {
  23662. var a = value[i];
  23663. if (a === 'e') {
  23664. nibbles += value[++i] === '-' ? 'c' : 'b';
  23665. } else if (a === '.') {
  23666. nibbles += 'a';
  23667. } else if (a === '-') {
  23668. nibbles += 'e';
  23669. } else {
  23670. nibbles += a;
  23671. }
  23672. }
  23673. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  23674. var out = [30];
  23675. for (i = 0, ii = nibbles.length; i < ii; i += 2) {
  23676. out.push(parseInt(nibbles.substr(i, 2), 16));
  23677. }
  23678. return out;
  23679. },
  23680. encodeInteger: function CFFCompiler_encodeInteger(value) {
  23681. var code;
  23682. if (value >= -107 && value <= 107) {
  23683. code = [value + 139];
  23684. } else if (value >= 108 && value <= 1131) {
  23685. value = [value - 108];
  23686. code = [(value >> 8) + 247, value & 0xFF];
  23687. } else if (value >= -1131 && value <= -108) {
  23688. value = -value - 108;
  23689. code = [(value >> 8) + 251, value & 0xFF];
  23690. } else if (value >= -32768 && value <= 32767) {
  23691. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  23692. } else {
  23693. code = [0x1d,
  23694. (value >> 24) & 0xFF,
  23695. (value >> 16) & 0xFF,
  23696. (value >> 8) & 0xFF,
  23697. value & 0xFF];
  23698. }
  23699. return code;
  23700. },
  23701. compileHeader: function CFFCompiler_compileHeader(header) {
  23702. return [
  23703. header.major,
  23704. header.minor,
  23705. header.hdrSize,
  23706. header.offSize
  23707. ];
  23708. },
  23709. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  23710. var nameIndex = new CFFIndex();
  23711. for (var i = 0, ii = names.length; i < ii; ++i) {
  23712. nameIndex.add(stringToArray(names[i]));
  23713. }
  23714. return this.compileIndex(nameIndex);
  23715. },
  23716. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  23717. length,
  23718. removeCidKeys) {
  23719. var fontDictTrackers = [];
  23720. var fdArrayIndex = new CFFIndex();
  23721. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  23722. var fontDict = dicts[i];
  23723. if (removeCidKeys) {
  23724. fontDict.removeByName('CIDFontVersion');
  23725. fontDict.removeByName('CIDFontRevision');
  23726. fontDict.removeByName('CIDFontType');
  23727. fontDict.removeByName('CIDCount');
  23728. fontDict.removeByName('UIDBase');
  23729. }
  23730. var fontDictTracker = new CFFOffsetTracker();
  23731. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  23732. fontDictTrackers.push(fontDictTracker);
  23733. fdArrayIndex.add(fontDictData);
  23734. fontDictTracker.offset(length);
  23735. }
  23736. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  23737. return {
  23738. trackers: fontDictTrackers,
  23739. output: fdArrayIndex
  23740. };
  23741. },
  23742. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  23743. trackers,
  23744. output) {
  23745. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  23746. var fontDict = dicts[i];
  23747. assert(fontDict.privateDict && fontDict.hasName('Private'),
  23748. 'There must be an private dictionary.');
  23749. var privateDict = fontDict.privateDict;
  23750. var privateDictTracker = new CFFOffsetTracker();
  23751. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  23752. var outputLength = output.length;
  23753. privateDictTracker.offset(outputLength);
  23754. if (!privateDictData.length) {
  23755. // The private dictionary was empty, set the output length to zero to
  23756. // ensure the offset length isn't out of bounds in the eyes of the
  23757. // sanitizer.
  23758. outputLength = 0;
  23759. }
  23760. trackers[i].setEntryLocation('Private',
  23761. [privateDictData.length, outputLength],
  23762. output);
  23763. output.add(privateDictData);
  23764. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  23765. var subrs = this.compileIndex(privateDict.subrsIndex);
  23766. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  23767. output);
  23768. output.add(subrs);
  23769. }
  23770. }
  23771. },
  23772. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  23773. var out = [];
  23774. // The dictionary keys must be in a certain order.
  23775. var order = dict.order;
  23776. for (var i = 0; i < order.length; ++i) {
  23777. var key = order[i];
  23778. if (!(key in dict.values)) {
  23779. continue;
  23780. }
  23781. var values = dict.values[key];
  23782. var types = dict.types[key];
  23783. if (!isArray(types)) {
  23784. types = [types];
  23785. }
  23786. if (!isArray(values)) {
  23787. values = [values];
  23788. }
  23789. // Remove any empty dict values.
  23790. if (values.length === 0) {
  23791. continue;
  23792. }
  23793. for (var j = 0, jj = types.length; j < jj; ++j) {
  23794. var type = types[j];
  23795. var value = values[j];
  23796. switch (type) {
  23797. case 'num':
  23798. case 'sid':
  23799. out = out.concat(this.encodeNumber(value));
  23800. break;
  23801. case 'offset':
  23802. // For offsets we just insert a 32bit integer so we don't have to
  23803. // deal with figuring out the length of the offset when it gets
  23804. // replaced later on by the compiler.
  23805. var name = dict.keyToNameMap[key];
  23806. // Some offsets have the offset and the length, so just record the
  23807. // position of the first one.
  23808. if (!offsetTracker.isTracking(name)) {
  23809. offsetTracker.track(name, out.length);
  23810. }
  23811. out = out.concat([0x1d, 0, 0, 0, 0]);
  23812. break;
  23813. case 'array':
  23814. case 'delta':
  23815. out = out.concat(this.encodeNumber(value));
  23816. for (var k = 1, kk = values.length; k < kk; ++k) {
  23817. out = out.concat(this.encodeNumber(values[k]));
  23818. }
  23819. break;
  23820. default:
  23821. error('Unknown data type of ' + type);
  23822. break;
  23823. }
  23824. }
  23825. out = out.concat(dict.opcodes[key]);
  23826. }
  23827. return out;
  23828. },
  23829. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  23830. var stringIndex = new CFFIndex();
  23831. for (var i = 0, ii = strings.length; i < ii; ++i) {
  23832. stringIndex.add(stringToArray(strings[i]));
  23833. }
  23834. return this.compileIndex(stringIndex);
  23835. },
  23836. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  23837. var globalSubrIndex = this.cff.globalSubrIndex;
  23838. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  23839. },
  23840. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  23841. return this.compileIndex(charStrings);
  23842. },
  23843. compileCharset: function CFFCompiler_compileCharset(charset) {
  23844. return this.compileTypedArray(charset.raw);
  23845. },
  23846. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  23847. return this.compileTypedArray(encoding.raw);
  23848. },
  23849. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  23850. return this.compileTypedArray(fdSelect);
  23851. },
  23852. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  23853. var out = [];
  23854. for (var i = 0, ii = data.length; i < ii; ++i) {
  23855. out[i] = data[i];
  23856. }
  23857. return out;
  23858. },
  23859. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  23860. trackers = trackers || [];
  23861. var objects = index.objects;
  23862. // First 2 bytes contains the number of objects contained into this index
  23863. var count = objects.length;
  23864. // If there is no object, just create an index. This technically
  23865. // should just be [0, 0] but OTS has an issue with that.
  23866. if (count === 0) {
  23867. return [0, 0, 0];
  23868. }
  23869. var data = [(count >> 8) & 0xFF, count & 0xff];
  23870. var lastOffset = 1, i;
  23871. for (i = 0; i < count; ++i) {
  23872. lastOffset += objects[i].length;
  23873. }
  23874. var offsetSize;
  23875. if (lastOffset < 0x100) {
  23876. offsetSize = 1;
  23877. } else if (lastOffset < 0x10000) {
  23878. offsetSize = 2;
  23879. } else if (lastOffset < 0x1000000) {
  23880. offsetSize = 3;
  23881. } else {
  23882. offsetSize = 4;
  23883. }
  23884. // Next byte contains the offset size use to reference object in the file
  23885. data.push(offsetSize);
  23886. // Add another offset after this one because we need a new offset
  23887. var relativeOffset = 1;
  23888. for (i = 0; i < count + 1; i++) {
  23889. if (offsetSize === 1) {
  23890. data.push(relativeOffset & 0xFF);
  23891. } else if (offsetSize === 2) {
  23892. data.push((relativeOffset >> 8) & 0xFF,
  23893. relativeOffset & 0xFF);
  23894. } else if (offsetSize === 3) {
  23895. data.push((relativeOffset >> 16) & 0xFF,
  23896. (relativeOffset >> 8) & 0xFF,
  23897. relativeOffset & 0xFF);
  23898. } else {
  23899. data.push((relativeOffset >>> 24) & 0xFF,
  23900. (relativeOffset >> 16) & 0xFF,
  23901. (relativeOffset >> 8) & 0xFF,
  23902. relativeOffset & 0xFF);
  23903. }
  23904. if (objects[i]) {
  23905. relativeOffset += objects[i].length;
  23906. }
  23907. }
  23908. for (i = 0; i < count; i++) {
  23909. // Notify the tracker where the object will be offset in the data.
  23910. if (trackers[i]) {
  23911. trackers[i].offset(data.length);
  23912. }
  23913. for (var j = 0, jj = objects[i].length; j < jj; j++) {
  23914. data.push(objects[i][j]);
  23915. }
  23916. }
  23917. return data;
  23918. }
  23919. };
  23920. return CFFCompiler;
  23921. })();
  23922. // Workaround for seac on Windows.
  23923. (function checkSeacSupport() {
  23924. if (/Windows/.test(navigator.userAgent)) {
  23925. SEAC_ANALYSIS_ENABLED = true;
  23926. }
  23927. })();
  23928. // Workaround for Private Use Area characters in Chrome on Windows
  23929. // http://code.google.com/p/chromium/issues/detail?id=122465
  23930. // https://github.com/mozilla/pdf.js/issues/1689
  23931. (function checkChromeWindows() {
  23932. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  23933. SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  23934. }
  23935. })();
  23936. var FontRendererFactory = (function FontRendererFactoryClosure() {
  23937. function getLong(data, offset) {
  23938. return (data[offset] << 24) | (data[offset + 1] << 16) |
  23939. (data[offset + 2] << 8) | data[offset + 3];
  23940. }
  23941. function getUshort(data, offset) {
  23942. return (data[offset] << 8) | data[offset + 1];
  23943. }
  23944. function parseCmap(data, start, end) {
  23945. var offset = (getUshort(data, start + 2) === 1 ?
  23946. getLong(data, start + 8) : getLong(data, start + 16));
  23947. var format = getUshort(data, start + offset);
  23948. var length, ranges, p, i;
  23949. if (format === 4) {
  23950. length = getUshort(data, start + offset + 2);
  23951. var segCount = getUshort(data, start + offset + 6) >> 1;
  23952. p = start + offset + 14;
  23953. ranges = [];
  23954. for (i = 0; i < segCount; i++, p += 2) {
  23955. ranges[i] = {end: getUshort(data, p)};
  23956. }
  23957. p += 2;
  23958. for (i = 0; i < segCount; i++, p += 2) {
  23959. ranges[i].start = getUshort(data, p);
  23960. }
  23961. for (i = 0; i < segCount; i++, p += 2) {
  23962. ranges[i].idDelta = getUshort(data, p);
  23963. }
  23964. for (i = 0; i < segCount; i++, p += 2) {
  23965. var idOffset = getUshort(data, p);
  23966. if (idOffset === 0) {
  23967. continue;
  23968. }
  23969. ranges[i].ids = [];
  23970. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  23971. ranges[i].ids[j] = getUshort(data, p + idOffset);
  23972. idOffset += 2;
  23973. }
  23974. }
  23975. return ranges;
  23976. } else if (format === 12) {
  23977. length = getLong(data, start + offset + 4);
  23978. var groups = getLong(data, start + offset + 12);
  23979. p = start + offset + 16;
  23980. ranges = [];
  23981. for (i = 0; i < groups; i++) {
  23982. ranges.push({
  23983. start: getLong(data, p),
  23984. end: getLong(data, p + 4),
  23985. idDelta: getLong(data, p + 8) - getLong(data, p)
  23986. });
  23987. p += 12;
  23988. }
  23989. return ranges;
  23990. }
  23991. error('not supported cmap: ' + format);
  23992. }
  23993. function parseCff(data, start, end) {
  23994. var properties = {};
  23995. var parser = new CFFParser(new Stream(data, start, end - start),
  23996. properties);
  23997. var cff = parser.parse();
  23998. return {
  23999. glyphs: cff.charStrings.objects,
  24000. subrs: (cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  24001. cff.topDict.privateDict.subrsIndex.objects),
  24002. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  24003. };
  24004. }
  24005. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  24006. var itemSize, itemDecode;
  24007. if (isGlyphLocationsLong) {
  24008. itemSize = 4;
  24009. itemDecode = function fontItemDecodeLong(data, offset) {
  24010. return (data[offset] << 24) | (data[offset + 1] << 16) |
  24011. (data[offset + 2] << 8) | data[offset + 3];
  24012. };
  24013. } else {
  24014. itemSize = 2;
  24015. itemDecode = function fontItemDecode(data, offset) {
  24016. return (data[offset] << 9) | (data[offset + 1] << 1);
  24017. };
  24018. }
  24019. var glyphs = [];
  24020. var startOffset = itemDecode(loca, 0);
  24021. for (var j = itemSize; j < loca.length; j += itemSize) {
  24022. var endOffset = itemDecode(loca, j);
  24023. glyphs.push(glyf.subarray(startOffset, endOffset));
  24024. startOffset = endOffset;
  24025. }
  24026. return glyphs;
  24027. }
  24028. function lookupCmap(ranges, unicode) {
  24029. var code = unicode.charCodeAt(0);
  24030. var l = 0, r = ranges.length - 1;
  24031. while (l < r) {
  24032. var c = (l + r + 1) >> 1;
  24033. if (code < ranges[c].start) {
  24034. r = c - 1;
  24035. } else {
  24036. l = c;
  24037. }
  24038. }
  24039. if (ranges[l].start <= code && code <= ranges[l].end) {
  24040. return (ranges[l].idDelta + (ranges[l].ids ?
  24041. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  24042. }
  24043. return 0;
  24044. }
  24045. function compileGlyf(code, js, font) {
  24046. function moveTo(x, y) {
  24047. js.push('c.moveTo(' + x + ',' + y + ');');
  24048. }
  24049. function lineTo(x, y) {
  24050. js.push('c.lineTo(' + x + ',' + y + ');');
  24051. }
  24052. function quadraticCurveTo(xa, ya, x, y) {
  24053. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  24054. x + ',' + y + ');');
  24055. }
  24056. var i = 0;
  24057. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24058. var flags;
  24059. var x = 0, y = 0;
  24060. i += 10;
  24061. if (numberOfContours < 0) {
  24062. // composite glyph
  24063. do {
  24064. flags = (code[i] << 8) | code[i + 1];
  24065. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  24066. i += 4;
  24067. var arg1, arg2;
  24068. if ((flags & 0x01)) {
  24069. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24070. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  24071. i += 4;
  24072. } else {
  24073. arg1 = code[i++]; arg2 = code[i++];
  24074. }
  24075. if ((flags & 0x02)) {
  24076. x = arg1;
  24077. y = arg2;
  24078. } else {
  24079. x = 0; y = 0; // TODO "they are points" ?
  24080. }
  24081. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  24082. if ((flags & 0x08)) {
  24083. scaleX =
  24084. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24085. i += 2;
  24086. } else if ((flags & 0x40)) {
  24087. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24088. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24089. i += 4;
  24090. } else if ((flags & 0x80)) {
  24091. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  24092. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  24093. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  24094. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  24095. i += 8;
  24096. }
  24097. var subglyph = font.glyphs[glyphIndex];
  24098. if (subglyph) {
  24099. js.push('c.save();');
  24100. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  24101. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  24102. compileGlyf(subglyph, js, font);
  24103. js.push('c.restore();');
  24104. }
  24105. } while ((flags & 0x20));
  24106. } else {
  24107. // simple glyph
  24108. var endPtsOfContours = [];
  24109. var j, jj;
  24110. for (j = 0; j < numberOfContours; j++) {
  24111. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  24112. i += 2;
  24113. }
  24114. var instructionLength = (code[i] << 8) | code[i + 1];
  24115. i += 2 + instructionLength; // skipping the instructions
  24116. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  24117. var points = [];
  24118. while (points.length < numberOfPoints) {
  24119. flags = code[i++];
  24120. var repeat = 1;
  24121. if ((flags & 0x08)) {
  24122. repeat += code[i++];
  24123. }
  24124. while (repeat-- > 0) {
  24125. points.push({flags: flags});
  24126. }
  24127. }
  24128. for (j = 0; j < numberOfPoints; j++) {
  24129. switch (points[j].flags & 0x12) {
  24130. case 0x00:
  24131. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24132. i += 2;
  24133. break;
  24134. case 0x02:
  24135. x -= code[i++];
  24136. break;
  24137. case 0x12:
  24138. x += code[i++];
  24139. break;
  24140. }
  24141. points[j].x = x;
  24142. }
  24143. for (j = 0; j < numberOfPoints; j++) {
  24144. switch (points[j].flags & 0x24) {
  24145. case 0x00:
  24146. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  24147. i += 2;
  24148. break;
  24149. case 0x04:
  24150. y -= code[i++];
  24151. break;
  24152. case 0x24:
  24153. y += code[i++];
  24154. break;
  24155. }
  24156. points[j].y = y;
  24157. }
  24158. var startPoint = 0;
  24159. for (i = 0; i < numberOfContours; i++) {
  24160. var endPoint = endPtsOfContours[i];
  24161. // contours might have implicit points, which is located in the middle
  24162. // between two neighboring off-curve points
  24163. var contour = points.slice(startPoint, endPoint + 1);
  24164. if ((contour[0].flags & 1)) {
  24165. contour.push(contour[0]); // using start point at the contour end
  24166. } else if ((contour[contour.length - 1].flags & 1)) {
  24167. // first is off-curve point, trying to use one from the end
  24168. contour.unshift(contour[contour.length - 1]);
  24169. } else {
  24170. // start and end are off-curve points, creating implicit one
  24171. var p = {
  24172. flags: 1,
  24173. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  24174. y: (contour[0].y + contour[contour.length - 1].y) / 2
  24175. };
  24176. contour.unshift(p);
  24177. contour.push(p);
  24178. }
  24179. moveTo(contour[0].x, contour[0].y);
  24180. for (j = 1, jj = contour.length; j < jj; j++) {
  24181. if ((contour[j].flags & 1)) {
  24182. lineTo(contour[j].x, contour[j].y);
  24183. } else if ((contour[j + 1].flags & 1)){
  24184. quadraticCurveTo(contour[j].x, contour[j].y,
  24185. contour[j + 1].x, contour[j + 1].y);
  24186. j++;
  24187. } else {
  24188. quadraticCurveTo(contour[j].x, contour[j].y,
  24189. (contour[j].x + contour[j + 1].x) / 2,
  24190. (contour[j].y + contour[j + 1].y) / 2);
  24191. }
  24192. }
  24193. startPoint = endPoint + 1;
  24194. }
  24195. }
  24196. }
  24197. function compileCharString(code, js, font) {
  24198. var stack = [];
  24199. var x = 0, y = 0;
  24200. var stems = 0;
  24201. function moveTo(x, y) {
  24202. js.push('c.moveTo(' + x + ',' + y + ');');
  24203. }
  24204. function lineTo(x, y) {
  24205. js.push('c.lineTo(' + x + ',' + y + ');');
  24206. }
  24207. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  24208. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  24209. x + ',' + y + ');');
  24210. }
  24211. function parse(code) {
  24212. var i = 0;
  24213. while (i < code.length) {
  24214. var stackClean = false;
  24215. var v = code[i++];
  24216. var xa, xb, ya, yb, y1, y2, y3, n, subrCode;
  24217. switch (v) {
  24218. case 1: // hstem
  24219. stems += stack.length >> 1;
  24220. stackClean = true;
  24221. break;
  24222. case 3: // vstem
  24223. stems += stack.length >> 1;
  24224. stackClean = true;
  24225. break;
  24226. case 4: // vmoveto
  24227. y += stack.pop();
  24228. moveTo(x, y);
  24229. stackClean = true;
  24230. break;
  24231. case 5: // rlineto
  24232. while (stack.length > 0) {
  24233. x += stack.shift();
  24234. y += stack.shift();
  24235. lineTo(x, y);
  24236. }
  24237. break;
  24238. case 6: // hlineto
  24239. while (stack.length > 0) {
  24240. x += stack.shift();
  24241. lineTo(x, y);
  24242. if (stack.length === 0) {
  24243. break;
  24244. }
  24245. y += stack.shift();
  24246. lineTo(x, y);
  24247. }
  24248. break;
  24249. case 7: // vlineto
  24250. while (stack.length > 0) {
  24251. y += stack.shift();
  24252. lineTo(x, y);
  24253. if (stack.length === 0) {
  24254. break;
  24255. }
  24256. x += stack.shift();
  24257. lineTo(x, y);
  24258. }
  24259. break;
  24260. case 8: // rrcurveto
  24261. while (stack.length > 0) {
  24262. xa = x + stack.shift(); ya = y + stack.shift();
  24263. xb = xa + stack.shift(); yb = ya + stack.shift();
  24264. x = xb + stack.shift(); y = yb + stack.shift();
  24265. bezierCurveTo(xa, ya, xb, yb, x, y);
  24266. }
  24267. break;
  24268. case 10: // callsubr
  24269. n = stack.pop() + font.subrsBias;
  24270. subrCode = font.subrs[n];
  24271. if (subrCode) {
  24272. parse(subrCode);
  24273. }
  24274. break;
  24275. case 11: // return
  24276. return;
  24277. case 12:
  24278. v = code[i++];
  24279. switch (v) {
  24280. case 34: // flex
  24281. xa = x + stack.shift();
  24282. xb = xa + stack.shift(); y1 = y + stack.shift();
  24283. x = xb + stack.shift();
  24284. bezierCurveTo(xa, y, xb, y1, x, y1);
  24285. xa = x + stack.shift();
  24286. xb = xa + stack.shift();
  24287. x = xb + stack.shift();
  24288. bezierCurveTo(xa, y1, xb, y, x, y);
  24289. break;
  24290. case 35: // flex
  24291. xa = x + stack.shift(); ya = y + stack.shift();
  24292. xb = xa + stack.shift(); yb = ya + stack.shift();
  24293. x = xb + stack.shift(); y = yb + stack.shift();
  24294. bezierCurveTo(xa, ya, xb, yb, x, y);
  24295. xa = x + stack.shift(); ya = y + stack.shift();
  24296. xb = xa + stack.shift(); yb = ya + stack.shift();
  24297. x = xb + stack.shift(); y = yb + stack.shift();
  24298. bezierCurveTo(xa, ya, xb, yb, x, y);
  24299. stack.pop(); // fd
  24300. break;
  24301. case 36: // hflex1
  24302. xa = x + stack.shift(); y1 = y + stack.shift();
  24303. xb = xa + stack.shift(); y2 = y1 + stack.shift();
  24304. x = xb + stack.shift();
  24305. bezierCurveTo(xa, y1, xb, y2, x, y2);
  24306. xa = x + stack.shift();
  24307. xb = xa + stack.shift(); y3 = y2 + stack.shift();
  24308. x = xb + stack.shift();
  24309. bezierCurveTo(xa, y2, xb, y3, x, y);
  24310. break;
  24311. case 37: // flex1
  24312. var x0 = x, y0 = y;
  24313. xa = x + stack.shift(); ya = y + stack.shift();
  24314. xb = xa + stack.shift(); yb = ya + stack.shift();
  24315. x = xb + stack.shift(); y = yb + stack.shift();
  24316. bezierCurveTo(xa, ya, xb, yb, x, y);
  24317. xa = x + stack.shift(); ya = y + stack.shift();
  24318. xb = xa + stack.shift(); yb = ya + stack.shift();
  24319. x = xb; y = yb;
  24320. if (Math.abs(x - x0) > Math.abs(y - y0)) {
  24321. x += stack.shift();
  24322. } else {
  24323. y += stack.shift();
  24324. }
  24325. bezierCurveTo(xa, ya, xb, yb, x, y);
  24326. break;
  24327. default:
  24328. error('unknown operator: 12 ' + v);
  24329. }
  24330. break;
  24331. case 14: // endchar
  24332. if (stack.length >= 4) {
  24333. var achar = stack.pop();
  24334. var bchar = stack.pop();
  24335. y = stack.pop();
  24336. x = stack.pop();
  24337. js.push('c.save();');
  24338. js.push('c.translate('+ x + ',' + y + ');');
  24339. var gid = lookupCmap(font.cmap, String.fromCharCode(
  24340. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  24341. compileCharString(font.glyphs[gid], js, font);
  24342. js.push('c.restore();');
  24343. gid = lookupCmap(font.cmap, String.fromCharCode(
  24344. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  24345. compileCharString(font.glyphs[gid], js, font);
  24346. }
  24347. return;
  24348. case 18: // hstemhm
  24349. stems += stack.length >> 1;
  24350. stackClean = true;
  24351. break;
  24352. case 19: // hintmask
  24353. stems += stack.length >> 1;
  24354. i += (stems + 7) >> 3;
  24355. stackClean = true;
  24356. break;
  24357. case 20: // cntrmask
  24358. stems += stack.length >> 1;
  24359. i += (stems + 7) >> 3;
  24360. stackClean = true;
  24361. break;
  24362. case 21: // rmoveto
  24363. y += stack.pop();
  24364. x += stack.pop();
  24365. moveTo(x, y);
  24366. stackClean = true;
  24367. break;
  24368. case 22: // hmoveto
  24369. x += stack.pop();
  24370. moveTo(x, y);
  24371. stackClean = true;
  24372. break;
  24373. case 23: // vstemhm
  24374. stems += stack.length >> 1;
  24375. stackClean = true;
  24376. break;
  24377. case 24: // rcurveline
  24378. while (stack.length > 2) {
  24379. xa = x + stack.shift(); ya = y + stack.shift();
  24380. xb = xa + stack.shift(); yb = ya + stack.shift();
  24381. x = xb + stack.shift(); y = yb + stack.shift();
  24382. bezierCurveTo(xa, ya, xb, yb, x, y);
  24383. }
  24384. x += stack.shift();
  24385. y += stack.shift();
  24386. lineTo(x, y);
  24387. break;
  24388. case 25: // rlinecurve
  24389. while (stack.length > 6) {
  24390. x += stack.shift();
  24391. y += stack.shift();
  24392. lineTo(x, y);
  24393. }
  24394. xa = x + stack.shift(); ya = y + stack.shift();
  24395. xb = xa + stack.shift(); yb = ya + stack.shift();
  24396. x = xb + stack.shift(); y = yb + stack.shift();
  24397. bezierCurveTo(xa, ya, xb, yb, x, y);
  24398. break;
  24399. case 26: // vvcurveto
  24400. if (stack.length % 2) {
  24401. x += stack.shift();
  24402. }
  24403. while (stack.length > 0) {
  24404. xa = x; ya = y + stack.shift();
  24405. xb = xa + stack.shift(); yb = ya + stack.shift();
  24406. x = xb; y = yb + stack.shift();
  24407. bezierCurveTo(xa, ya, xb, yb, x, y);
  24408. }
  24409. break;
  24410. case 27: // hhcurveto
  24411. if (stack.length % 2) {
  24412. y += stack.shift();
  24413. }
  24414. while (stack.length > 0) {
  24415. xa = x + stack.shift(); ya = y;
  24416. xb = xa + stack.shift(); yb = ya + stack.shift();
  24417. x = xb + stack.shift(); y = yb;
  24418. bezierCurveTo(xa, ya, xb, yb, x, y);
  24419. }
  24420. break;
  24421. case 28:
  24422. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  24423. i += 2;
  24424. break;
  24425. case 29: // callgsubr
  24426. n = stack.pop() + font.gsubrsBias;
  24427. subrCode = font.gsubrs[n];
  24428. if (subrCode) {
  24429. parse(subrCode);
  24430. }
  24431. break;
  24432. case 30: // vhcurveto
  24433. while (stack.length > 0) {
  24434. xa = x; ya = y + stack.shift();
  24435. xb = xa + stack.shift(); yb = ya + stack.shift();
  24436. x = xb + stack.shift();
  24437. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24438. bezierCurveTo(xa, ya, xb, yb, x, y);
  24439. if (stack.length === 0) {
  24440. break;
  24441. }
  24442. xa = x + stack.shift(); ya = y;
  24443. xb = xa + stack.shift(); yb = ya + stack.shift();
  24444. y = yb + stack.shift();
  24445. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24446. bezierCurveTo(xa, ya, xb, yb, x, y);
  24447. }
  24448. break;
  24449. case 31: // hvcurveto
  24450. while (stack.length > 0) {
  24451. xa = x + stack.shift(); ya = y;
  24452. xb = xa + stack.shift(); yb = ya + stack.shift();
  24453. y = yb + stack.shift();
  24454. x = xb + (stack.length === 1 ? stack.shift() : 0);
  24455. bezierCurveTo(xa, ya, xb, yb, x, y);
  24456. if (stack.length === 0) {
  24457. break;
  24458. }
  24459. xa = x; ya = y + stack.shift();
  24460. xb = xa + stack.shift(); yb = ya + stack.shift();
  24461. x = xb + stack.shift();
  24462. y = yb + (stack.length === 1 ? stack.shift() : 0);
  24463. bezierCurveTo(xa, ya, xb, yb, x, y);
  24464. }
  24465. break;
  24466. default:
  24467. if (v < 32) {
  24468. error('unknown operator: ' + v);
  24469. }
  24470. if (v < 247) {
  24471. stack.push(v - 139);
  24472. } else if (v < 251) {
  24473. stack.push((v - 247) * 256 + code[i++] + 108);
  24474. } else if (v < 255) {
  24475. stack.push(-(v - 251) * 256 - code[i++] - 108);
  24476. } else {
  24477. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  24478. (code[i + 2] << 8) | code[i + 3]) / 65536);
  24479. i += 4;
  24480. }
  24481. break;
  24482. }
  24483. if (stackClean) {
  24484. stack.length = 0;
  24485. }
  24486. }
  24487. }
  24488. parse(code);
  24489. }
  24490. var noop = '';
  24491. function CompiledFont(fontMatrix) {
  24492. this.compiledGlyphs = {};
  24493. this.fontMatrix = fontMatrix;
  24494. }
  24495. CompiledFont.prototype = {
  24496. getPathJs: function (unicode) {
  24497. var gid = lookupCmap(this.cmap, unicode);
  24498. var fn = this.compiledGlyphs[gid];
  24499. if (!fn) {
  24500. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  24501. }
  24502. return fn;
  24503. },
  24504. compileGlyph: function (code) {
  24505. if (!code || code.length === 0 || code[0] === 14) {
  24506. return noop;
  24507. }
  24508. var js = [];
  24509. js.push('c.save();');
  24510. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  24511. js.push('c.scale(size, -size);');
  24512. this.compileGlyphImpl(code, js);
  24513. js.push('c.restore();');
  24514. return js.join('\n');
  24515. },
  24516. compileGlyphImpl: function () {
  24517. error('Children classes should implement this.');
  24518. },
  24519. hasBuiltPath: function (unicode) {
  24520. var gid = lookupCmap(this.cmap, unicode);
  24521. return gid in this.compiledGlyphs;
  24522. }
  24523. };
  24524. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  24525. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  24526. CompiledFont.call(this, fontMatrix);
  24527. this.glyphs = glyphs;
  24528. this.cmap = cmap;
  24529. this.compiledGlyphs = [];
  24530. }
  24531. Util.inherit(TrueTypeCompiled, CompiledFont, {
  24532. compileGlyphImpl: function (code, js) {
  24533. compileGlyf(code, js, this);
  24534. }
  24535. });
  24536. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  24537. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  24538. CompiledFont.call(this, fontMatrix);
  24539. this.glyphs = cffInfo.glyphs;
  24540. this.gsubrs = cffInfo.gsubrs || [];
  24541. this.subrs = cffInfo.subrs || [];
  24542. this.cmap = cmap;
  24543. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  24544. this.compiledGlyphs = [];
  24545. this.gsubrsBias = (this.gsubrs.length < 1240 ?
  24546. 107 : (this.gsubrs.length < 33900 ? 1131 : 32768));
  24547. this.subrsBias = (this.subrs.length < 1240 ?
  24548. 107 : (this.subrs.length < 33900 ? 1131 : 32768));
  24549. }
  24550. Util.inherit(Type2Compiled, CompiledFont, {
  24551. compileGlyphImpl: function (code, js) {
  24552. compileCharString(code, js, this);
  24553. }
  24554. });
  24555. return {
  24556. create: function FontRendererFactory_create(font) {
  24557. var data = new Uint8Array(font.data);
  24558. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  24559. var numTables = getUshort(data, 4);
  24560. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  24561. var tag = bytesToString(data.subarray(p, p + 4));
  24562. var offset = getLong(data, p + 8);
  24563. var length = getLong(data, p + 12);
  24564. switch (tag) {
  24565. case 'cmap':
  24566. cmap = parseCmap(data, offset, offset + length);
  24567. break;
  24568. case 'glyf':
  24569. glyf = data.subarray(offset, offset + length);
  24570. break;
  24571. case 'loca':
  24572. loca = data.subarray(offset, offset + length);
  24573. break;
  24574. case 'head':
  24575. unitsPerEm = getUshort(data, offset + 18);
  24576. indexToLocFormat = getUshort(data, offset + 50);
  24577. break;
  24578. case 'CFF ':
  24579. cff = parseCff(data, offset, offset + length);
  24580. break;
  24581. }
  24582. }
  24583. if (glyf) {
  24584. var fontMatrix = (!unitsPerEm ? font.fontMatrix :
  24585. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]);
  24586. return new TrueTypeCompiled(
  24587. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  24588. } else {
  24589. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  24590. }
  24591. }
  24592. };
  24593. })();
  24594. var GlyphsUnicode = {
  24595. A: 0x0041,
  24596. AE: 0x00C6,
  24597. AEacute: 0x01FC,
  24598. AEmacron: 0x01E2,
  24599. AEsmall: 0xF7E6,
  24600. Aacute: 0x00C1,
  24601. Aacutesmall: 0xF7E1,
  24602. Abreve: 0x0102,
  24603. Abreveacute: 0x1EAE,
  24604. Abrevecyrillic: 0x04D0,
  24605. Abrevedotbelow: 0x1EB6,
  24606. Abrevegrave: 0x1EB0,
  24607. Abrevehookabove: 0x1EB2,
  24608. Abrevetilde: 0x1EB4,
  24609. Acaron: 0x01CD,
  24610. Acircle: 0x24B6,
  24611. Acircumflex: 0x00C2,
  24612. Acircumflexacute: 0x1EA4,
  24613. Acircumflexdotbelow: 0x1EAC,
  24614. Acircumflexgrave: 0x1EA6,
  24615. Acircumflexhookabove: 0x1EA8,
  24616. Acircumflexsmall: 0xF7E2,
  24617. Acircumflextilde: 0x1EAA,
  24618. Acute: 0xF6C9,
  24619. Acutesmall: 0xF7B4,
  24620. Acyrillic: 0x0410,
  24621. Adblgrave: 0x0200,
  24622. Adieresis: 0x00C4,
  24623. Adieresiscyrillic: 0x04D2,
  24624. Adieresismacron: 0x01DE,
  24625. Adieresissmall: 0xF7E4,
  24626. Adotbelow: 0x1EA0,
  24627. Adotmacron: 0x01E0,
  24628. Agrave: 0x00C0,
  24629. Agravesmall: 0xF7E0,
  24630. Ahookabove: 0x1EA2,
  24631. Aiecyrillic: 0x04D4,
  24632. Ainvertedbreve: 0x0202,
  24633. Alpha: 0x0391,
  24634. Alphatonos: 0x0386,
  24635. Amacron: 0x0100,
  24636. Amonospace: 0xFF21,
  24637. Aogonek: 0x0104,
  24638. Aring: 0x00C5,
  24639. Aringacute: 0x01FA,
  24640. Aringbelow: 0x1E00,
  24641. Aringsmall: 0xF7E5,
  24642. Asmall: 0xF761,
  24643. Atilde: 0x00C3,
  24644. Atildesmall: 0xF7E3,
  24645. Aybarmenian: 0x0531,
  24646. B: 0x0042,
  24647. Bcircle: 0x24B7,
  24648. Bdotaccent: 0x1E02,
  24649. Bdotbelow: 0x1E04,
  24650. Becyrillic: 0x0411,
  24651. Benarmenian: 0x0532,
  24652. Beta: 0x0392,
  24653. Bhook: 0x0181,
  24654. Blinebelow: 0x1E06,
  24655. Bmonospace: 0xFF22,
  24656. Brevesmall: 0xF6F4,
  24657. Bsmall: 0xF762,
  24658. Btopbar: 0x0182,
  24659. C: 0x0043,
  24660. Caarmenian: 0x053E,
  24661. Cacute: 0x0106,
  24662. Caron: 0xF6CA,
  24663. Caronsmall: 0xF6F5,
  24664. Ccaron: 0x010C,
  24665. Ccedilla: 0x00C7,
  24666. Ccedillaacute: 0x1E08,
  24667. Ccedillasmall: 0xF7E7,
  24668. Ccircle: 0x24B8,
  24669. Ccircumflex: 0x0108,
  24670. Cdot: 0x010A,
  24671. Cdotaccent: 0x010A,
  24672. Cedillasmall: 0xF7B8,
  24673. Chaarmenian: 0x0549,
  24674. Cheabkhasiancyrillic: 0x04BC,
  24675. Checyrillic: 0x0427,
  24676. Chedescenderabkhasiancyrillic: 0x04BE,
  24677. Chedescendercyrillic: 0x04B6,
  24678. Chedieresiscyrillic: 0x04F4,
  24679. Cheharmenian: 0x0543,
  24680. Chekhakassiancyrillic: 0x04CB,
  24681. Cheverticalstrokecyrillic: 0x04B8,
  24682. Chi: 0x03A7,
  24683. Chook: 0x0187,
  24684. Circumflexsmall: 0xF6F6,
  24685. Cmonospace: 0xFF23,
  24686. Coarmenian: 0x0551,
  24687. Csmall: 0xF763,
  24688. D: 0x0044,
  24689. DZ: 0x01F1,
  24690. DZcaron: 0x01C4,
  24691. Daarmenian: 0x0534,
  24692. Dafrican: 0x0189,
  24693. Dcaron: 0x010E,
  24694. Dcedilla: 0x1E10,
  24695. Dcircle: 0x24B9,
  24696. Dcircumflexbelow: 0x1E12,
  24697. Dcroat: 0x0110,
  24698. Ddotaccent: 0x1E0A,
  24699. Ddotbelow: 0x1E0C,
  24700. Decyrillic: 0x0414,
  24701. Deicoptic: 0x03EE,
  24702. Delta: 0x2206,
  24703. Deltagreek: 0x0394,
  24704. Dhook: 0x018A,
  24705. Dieresis: 0xF6CB,
  24706. DieresisAcute: 0xF6CC,
  24707. DieresisGrave: 0xF6CD,
  24708. Dieresissmall: 0xF7A8,
  24709. Digammagreek: 0x03DC,
  24710. Djecyrillic: 0x0402,
  24711. Dlinebelow: 0x1E0E,
  24712. Dmonospace: 0xFF24,
  24713. Dotaccentsmall: 0xF6F7,
  24714. Dslash: 0x0110,
  24715. Dsmall: 0xF764,
  24716. Dtopbar: 0x018B,
  24717. Dz: 0x01F2,
  24718. Dzcaron: 0x01C5,
  24719. Dzeabkhasiancyrillic: 0x04E0,
  24720. Dzecyrillic: 0x0405,
  24721. Dzhecyrillic: 0x040F,
  24722. E: 0x0045,
  24723. Eacute: 0x00C9,
  24724. Eacutesmall: 0xF7E9,
  24725. Ebreve: 0x0114,
  24726. Ecaron: 0x011A,
  24727. Ecedillabreve: 0x1E1C,
  24728. Echarmenian: 0x0535,
  24729. Ecircle: 0x24BA,
  24730. Ecircumflex: 0x00CA,
  24731. Ecircumflexacute: 0x1EBE,
  24732. Ecircumflexbelow: 0x1E18,
  24733. Ecircumflexdotbelow: 0x1EC6,
  24734. Ecircumflexgrave: 0x1EC0,
  24735. Ecircumflexhookabove: 0x1EC2,
  24736. Ecircumflexsmall: 0xF7EA,
  24737. Ecircumflextilde: 0x1EC4,
  24738. Ecyrillic: 0x0404,
  24739. Edblgrave: 0x0204,
  24740. Edieresis: 0x00CB,
  24741. Edieresissmall: 0xF7EB,
  24742. Edot: 0x0116,
  24743. Edotaccent: 0x0116,
  24744. Edotbelow: 0x1EB8,
  24745. Efcyrillic: 0x0424,
  24746. Egrave: 0x00C8,
  24747. Egravesmall: 0xF7E8,
  24748. Eharmenian: 0x0537,
  24749. Ehookabove: 0x1EBA,
  24750. Eightroman: 0x2167,
  24751. Einvertedbreve: 0x0206,
  24752. Eiotifiedcyrillic: 0x0464,
  24753. Elcyrillic: 0x041B,
  24754. Elevenroman: 0x216A,
  24755. Emacron: 0x0112,
  24756. Emacronacute: 0x1E16,
  24757. Emacrongrave: 0x1E14,
  24758. Emcyrillic: 0x041C,
  24759. Emonospace: 0xFF25,
  24760. Encyrillic: 0x041D,
  24761. Endescendercyrillic: 0x04A2,
  24762. Eng: 0x014A,
  24763. Enghecyrillic: 0x04A4,
  24764. Enhookcyrillic: 0x04C7,
  24765. Eogonek: 0x0118,
  24766. Eopen: 0x0190,
  24767. Epsilon: 0x0395,
  24768. Epsilontonos: 0x0388,
  24769. Ercyrillic: 0x0420,
  24770. Ereversed: 0x018E,
  24771. Ereversedcyrillic: 0x042D,
  24772. Escyrillic: 0x0421,
  24773. Esdescendercyrillic: 0x04AA,
  24774. Esh: 0x01A9,
  24775. Esmall: 0xF765,
  24776. Eta: 0x0397,
  24777. Etarmenian: 0x0538,
  24778. Etatonos: 0x0389,
  24779. Eth: 0x00D0,
  24780. Ethsmall: 0xF7F0,
  24781. Etilde: 0x1EBC,
  24782. Etildebelow: 0x1E1A,
  24783. Euro: 0x20AC,
  24784. Ezh: 0x01B7,
  24785. Ezhcaron: 0x01EE,
  24786. Ezhreversed: 0x01B8,
  24787. F: 0x0046,
  24788. Fcircle: 0x24BB,
  24789. Fdotaccent: 0x1E1E,
  24790. Feharmenian: 0x0556,
  24791. Feicoptic: 0x03E4,
  24792. Fhook: 0x0191,
  24793. Fitacyrillic: 0x0472,
  24794. Fiveroman: 0x2164,
  24795. Fmonospace: 0xFF26,
  24796. Fourroman: 0x2163,
  24797. Fsmall: 0xF766,
  24798. G: 0x0047,
  24799. GBsquare: 0x3387,
  24800. Gacute: 0x01F4,
  24801. Gamma: 0x0393,
  24802. Gammaafrican: 0x0194,
  24803. Gangiacoptic: 0x03EA,
  24804. Gbreve: 0x011E,
  24805. Gcaron: 0x01E6,
  24806. Gcedilla: 0x0122,
  24807. Gcircle: 0x24BC,
  24808. Gcircumflex: 0x011C,
  24809. Gcommaaccent: 0x0122,
  24810. Gdot: 0x0120,
  24811. Gdotaccent: 0x0120,
  24812. Gecyrillic: 0x0413,
  24813. Ghadarmenian: 0x0542,
  24814. Ghemiddlehookcyrillic: 0x0494,
  24815. Ghestrokecyrillic: 0x0492,
  24816. Gheupturncyrillic: 0x0490,
  24817. Ghook: 0x0193,
  24818. Gimarmenian: 0x0533,
  24819. Gjecyrillic: 0x0403,
  24820. Gmacron: 0x1E20,
  24821. Gmonospace: 0xFF27,
  24822. Grave: 0xF6CE,
  24823. Gravesmall: 0xF760,
  24824. Gsmall: 0xF767,
  24825. Gsmallhook: 0x029B,
  24826. Gstroke: 0x01E4,
  24827. H: 0x0048,
  24828. H18533: 0x25CF,
  24829. H18543: 0x25AA,
  24830. H18551: 0x25AB,
  24831. H22073: 0x25A1,
  24832. HPsquare: 0x33CB,
  24833. Haabkhasiancyrillic: 0x04A8,
  24834. Hadescendercyrillic: 0x04B2,
  24835. Hardsigncyrillic: 0x042A,
  24836. Hbar: 0x0126,
  24837. Hbrevebelow: 0x1E2A,
  24838. Hcedilla: 0x1E28,
  24839. Hcircle: 0x24BD,
  24840. Hcircumflex: 0x0124,
  24841. Hdieresis: 0x1E26,
  24842. Hdotaccent: 0x1E22,
  24843. Hdotbelow: 0x1E24,
  24844. Hmonospace: 0xFF28,
  24845. Hoarmenian: 0x0540,
  24846. Horicoptic: 0x03E8,
  24847. Hsmall: 0xF768,
  24848. Hungarumlaut: 0xF6CF,
  24849. Hungarumlautsmall: 0xF6F8,
  24850. Hzsquare: 0x3390,
  24851. I: 0x0049,
  24852. IAcyrillic: 0x042F,
  24853. IJ: 0x0132,
  24854. IUcyrillic: 0x042E,
  24855. Iacute: 0x00CD,
  24856. Iacutesmall: 0xF7ED,
  24857. Ibreve: 0x012C,
  24858. Icaron: 0x01CF,
  24859. Icircle: 0x24BE,
  24860. Icircumflex: 0x00CE,
  24861. Icircumflexsmall: 0xF7EE,
  24862. Icyrillic: 0x0406,
  24863. Idblgrave: 0x0208,
  24864. Idieresis: 0x00CF,
  24865. Idieresisacute: 0x1E2E,
  24866. Idieresiscyrillic: 0x04E4,
  24867. Idieresissmall: 0xF7EF,
  24868. Idot: 0x0130,
  24869. Idotaccent: 0x0130,
  24870. Idotbelow: 0x1ECA,
  24871. Iebrevecyrillic: 0x04D6,
  24872. Iecyrillic: 0x0415,
  24873. Ifraktur: 0x2111,
  24874. Igrave: 0x00CC,
  24875. Igravesmall: 0xF7EC,
  24876. Ihookabove: 0x1EC8,
  24877. Iicyrillic: 0x0418,
  24878. Iinvertedbreve: 0x020A,
  24879. Iishortcyrillic: 0x0419,
  24880. Imacron: 0x012A,
  24881. Imacroncyrillic: 0x04E2,
  24882. Imonospace: 0xFF29,
  24883. Iniarmenian: 0x053B,
  24884. Iocyrillic: 0x0401,
  24885. Iogonek: 0x012E,
  24886. Iota: 0x0399,
  24887. Iotaafrican: 0x0196,
  24888. Iotadieresis: 0x03AA,
  24889. Iotatonos: 0x038A,
  24890. Ismall: 0xF769,
  24891. Istroke: 0x0197,
  24892. Itilde: 0x0128,
  24893. Itildebelow: 0x1E2C,
  24894. Izhitsacyrillic: 0x0474,
  24895. Izhitsadblgravecyrillic: 0x0476,
  24896. J: 0x004A,
  24897. Jaarmenian: 0x0541,
  24898. Jcircle: 0x24BF,
  24899. Jcircumflex: 0x0134,
  24900. Jecyrillic: 0x0408,
  24901. Jheharmenian: 0x054B,
  24902. Jmonospace: 0xFF2A,
  24903. Jsmall: 0xF76A,
  24904. K: 0x004B,
  24905. KBsquare: 0x3385,
  24906. KKsquare: 0x33CD,
  24907. Kabashkircyrillic: 0x04A0,
  24908. Kacute: 0x1E30,
  24909. Kacyrillic: 0x041A,
  24910. Kadescendercyrillic: 0x049A,
  24911. Kahookcyrillic: 0x04C3,
  24912. Kappa: 0x039A,
  24913. Kastrokecyrillic: 0x049E,
  24914. Kaverticalstrokecyrillic: 0x049C,
  24915. Kcaron: 0x01E8,
  24916. Kcedilla: 0x0136,
  24917. Kcircle: 0x24C0,
  24918. Kcommaaccent: 0x0136,
  24919. Kdotbelow: 0x1E32,
  24920. Keharmenian: 0x0554,
  24921. Kenarmenian: 0x053F,
  24922. Khacyrillic: 0x0425,
  24923. Kheicoptic: 0x03E6,
  24924. Khook: 0x0198,
  24925. Kjecyrillic: 0x040C,
  24926. Klinebelow: 0x1E34,
  24927. Kmonospace: 0xFF2B,
  24928. Koppacyrillic: 0x0480,
  24929. Koppagreek: 0x03DE,
  24930. Ksicyrillic: 0x046E,
  24931. Ksmall: 0xF76B,
  24932. L: 0x004C,
  24933. LJ: 0x01C7,
  24934. LL: 0xF6BF,
  24935. Lacute: 0x0139,
  24936. Lambda: 0x039B,
  24937. Lcaron: 0x013D,
  24938. Lcedilla: 0x013B,
  24939. Lcircle: 0x24C1,
  24940. Lcircumflexbelow: 0x1E3C,
  24941. Lcommaaccent: 0x013B,
  24942. Ldot: 0x013F,
  24943. Ldotaccent: 0x013F,
  24944. Ldotbelow: 0x1E36,
  24945. Ldotbelowmacron: 0x1E38,
  24946. Liwnarmenian: 0x053C,
  24947. Lj: 0x01C8,
  24948. Ljecyrillic: 0x0409,
  24949. Llinebelow: 0x1E3A,
  24950. Lmonospace: 0xFF2C,
  24951. Lslash: 0x0141,
  24952. Lslashsmall: 0xF6F9,
  24953. Lsmall: 0xF76C,
  24954. M: 0x004D,
  24955. MBsquare: 0x3386,
  24956. Macron: 0xF6D0,
  24957. Macronsmall: 0xF7AF,
  24958. Macute: 0x1E3E,
  24959. Mcircle: 0x24C2,
  24960. Mdotaccent: 0x1E40,
  24961. Mdotbelow: 0x1E42,
  24962. Menarmenian: 0x0544,
  24963. Mmonospace: 0xFF2D,
  24964. Msmall: 0xF76D,
  24965. Mturned: 0x019C,
  24966. Mu: 0x039C,
  24967. N: 0x004E,
  24968. NJ: 0x01CA,
  24969. Nacute: 0x0143,
  24970. Ncaron: 0x0147,
  24971. Ncedilla: 0x0145,
  24972. Ncircle: 0x24C3,
  24973. Ncircumflexbelow: 0x1E4A,
  24974. Ncommaaccent: 0x0145,
  24975. Ndotaccent: 0x1E44,
  24976. Ndotbelow: 0x1E46,
  24977. Nhookleft: 0x019D,
  24978. Nineroman: 0x2168,
  24979. Nj: 0x01CB,
  24980. Njecyrillic: 0x040A,
  24981. Nlinebelow: 0x1E48,
  24982. Nmonospace: 0xFF2E,
  24983. Nowarmenian: 0x0546,
  24984. Nsmall: 0xF76E,
  24985. Ntilde: 0x00D1,
  24986. Ntildesmall: 0xF7F1,
  24987. Nu: 0x039D,
  24988. O: 0x004F,
  24989. OE: 0x0152,
  24990. OEsmall: 0xF6FA,
  24991. Oacute: 0x00D3,
  24992. Oacutesmall: 0xF7F3,
  24993. Obarredcyrillic: 0x04E8,
  24994. Obarreddieresiscyrillic: 0x04EA,
  24995. Obreve: 0x014E,
  24996. Ocaron: 0x01D1,
  24997. Ocenteredtilde: 0x019F,
  24998. Ocircle: 0x24C4,
  24999. Ocircumflex: 0x00D4,
  25000. Ocircumflexacute: 0x1ED0,
  25001. Ocircumflexdotbelow: 0x1ED8,
  25002. Ocircumflexgrave: 0x1ED2,
  25003. Ocircumflexhookabove: 0x1ED4,
  25004. Ocircumflexsmall: 0xF7F4,
  25005. Ocircumflextilde: 0x1ED6,
  25006. Ocyrillic: 0x041E,
  25007. Odblacute: 0x0150,
  25008. Odblgrave: 0x020C,
  25009. Odieresis: 0x00D6,
  25010. Odieresiscyrillic: 0x04E6,
  25011. Odieresissmall: 0xF7F6,
  25012. Odotbelow: 0x1ECC,
  25013. Ogoneksmall: 0xF6FB,
  25014. Ograve: 0x00D2,
  25015. Ogravesmall: 0xF7F2,
  25016. Oharmenian: 0x0555,
  25017. Ohm: 0x2126,
  25018. Ohookabove: 0x1ECE,
  25019. Ohorn: 0x01A0,
  25020. Ohornacute: 0x1EDA,
  25021. Ohorndotbelow: 0x1EE2,
  25022. Ohorngrave: 0x1EDC,
  25023. Ohornhookabove: 0x1EDE,
  25024. Ohorntilde: 0x1EE0,
  25025. Ohungarumlaut: 0x0150,
  25026. Oi: 0x01A2,
  25027. Oinvertedbreve: 0x020E,
  25028. Omacron: 0x014C,
  25029. Omacronacute: 0x1E52,
  25030. Omacrongrave: 0x1E50,
  25031. Omega: 0x2126,
  25032. Omegacyrillic: 0x0460,
  25033. Omegagreek: 0x03A9,
  25034. Omegaroundcyrillic: 0x047A,
  25035. Omegatitlocyrillic: 0x047C,
  25036. Omegatonos: 0x038F,
  25037. Omicron: 0x039F,
  25038. Omicrontonos: 0x038C,
  25039. Omonospace: 0xFF2F,
  25040. Oneroman: 0x2160,
  25041. Oogonek: 0x01EA,
  25042. Oogonekmacron: 0x01EC,
  25043. Oopen: 0x0186,
  25044. Oslash: 0x00D8,
  25045. Oslashacute: 0x01FE,
  25046. Oslashsmall: 0xF7F8,
  25047. Osmall: 0xF76F,
  25048. Ostrokeacute: 0x01FE,
  25049. Otcyrillic: 0x047E,
  25050. Otilde: 0x00D5,
  25051. Otildeacute: 0x1E4C,
  25052. Otildedieresis: 0x1E4E,
  25053. Otildesmall: 0xF7F5,
  25054. P: 0x0050,
  25055. Pacute: 0x1E54,
  25056. Pcircle: 0x24C5,
  25057. Pdotaccent: 0x1E56,
  25058. Pecyrillic: 0x041F,
  25059. Peharmenian: 0x054A,
  25060. Pemiddlehookcyrillic: 0x04A6,
  25061. Phi: 0x03A6,
  25062. Phook: 0x01A4,
  25063. Pi: 0x03A0,
  25064. Piwrarmenian: 0x0553,
  25065. Pmonospace: 0xFF30,
  25066. Psi: 0x03A8,
  25067. Psicyrillic: 0x0470,
  25068. Psmall: 0xF770,
  25069. Q: 0x0051,
  25070. Qcircle: 0x24C6,
  25071. Qmonospace: 0xFF31,
  25072. Qsmall: 0xF771,
  25073. R: 0x0052,
  25074. Raarmenian: 0x054C,
  25075. Racute: 0x0154,
  25076. Rcaron: 0x0158,
  25077. Rcedilla: 0x0156,
  25078. Rcircle: 0x24C7,
  25079. Rcommaaccent: 0x0156,
  25080. Rdblgrave: 0x0210,
  25081. Rdotaccent: 0x1E58,
  25082. Rdotbelow: 0x1E5A,
  25083. Rdotbelowmacron: 0x1E5C,
  25084. Reharmenian: 0x0550,
  25085. Rfraktur: 0x211C,
  25086. Rho: 0x03A1,
  25087. Ringsmall: 0xF6FC,
  25088. Rinvertedbreve: 0x0212,
  25089. Rlinebelow: 0x1E5E,
  25090. Rmonospace: 0xFF32,
  25091. Rsmall: 0xF772,
  25092. Rsmallinverted: 0x0281,
  25093. Rsmallinvertedsuperior: 0x02B6,
  25094. S: 0x0053,
  25095. SF010000: 0x250C,
  25096. SF020000: 0x2514,
  25097. SF030000: 0x2510,
  25098. SF040000: 0x2518,
  25099. SF050000: 0x253C,
  25100. SF060000: 0x252C,
  25101. SF070000: 0x2534,
  25102. SF080000: 0x251C,
  25103. SF090000: 0x2524,
  25104. SF100000: 0x2500,
  25105. SF110000: 0x2502,
  25106. SF190000: 0x2561,
  25107. SF200000: 0x2562,
  25108. SF210000: 0x2556,
  25109. SF220000: 0x2555,
  25110. SF230000: 0x2563,
  25111. SF240000: 0x2551,
  25112. SF250000: 0x2557,
  25113. SF260000: 0x255D,
  25114. SF270000: 0x255C,
  25115. SF280000: 0x255B,
  25116. SF360000: 0x255E,
  25117. SF370000: 0x255F,
  25118. SF380000: 0x255A,
  25119. SF390000: 0x2554,
  25120. SF400000: 0x2569,
  25121. SF410000: 0x2566,
  25122. SF420000: 0x2560,
  25123. SF430000: 0x2550,
  25124. SF440000: 0x256C,
  25125. SF450000: 0x2567,
  25126. SF460000: 0x2568,
  25127. SF470000: 0x2564,
  25128. SF480000: 0x2565,
  25129. SF490000: 0x2559,
  25130. SF500000: 0x2558,
  25131. SF510000: 0x2552,
  25132. SF520000: 0x2553,
  25133. SF530000: 0x256B,
  25134. SF540000: 0x256A,
  25135. Sacute: 0x015A,
  25136. Sacutedotaccent: 0x1E64,
  25137. Sampigreek: 0x03E0,
  25138. Scaron: 0x0160,
  25139. Scarondotaccent: 0x1E66,
  25140. Scaronsmall: 0xF6FD,
  25141. Scedilla: 0x015E,
  25142. Schwa: 0x018F,
  25143. Schwacyrillic: 0x04D8,
  25144. Schwadieresiscyrillic: 0x04DA,
  25145. Scircle: 0x24C8,
  25146. Scircumflex: 0x015C,
  25147. Scommaaccent: 0x0218,
  25148. Sdotaccent: 0x1E60,
  25149. Sdotbelow: 0x1E62,
  25150. Sdotbelowdotaccent: 0x1E68,
  25151. Seharmenian: 0x054D,
  25152. Sevenroman: 0x2166,
  25153. Shaarmenian: 0x0547,
  25154. Shacyrillic: 0x0428,
  25155. Shchacyrillic: 0x0429,
  25156. Sheicoptic: 0x03E2,
  25157. Shhacyrillic: 0x04BA,
  25158. Shimacoptic: 0x03EC,
  25159. Sigma: 0x03A3,
  25160. Sixroman: 0x2165,
  25161. Smonospace: 0xFF33,
  25162. Softsigncyrillic: 0x042C,
  25163. Ssmall: 0xF773,
  25164. Stigmagreek: 0x03DA,
  25165. T: 0x0054,
  25166. Tau: 0x03A4,
  25167. Tbar: 0x0166,
  25168. Tcaron: 0x0164,
  25169. Tcedilla: 0x0162,
  25170. Tcircle: 0x24C9,
  25171. Tcircumflexbelow: 0x1E70,
  25172. Tcommaaccent: 0x0162,
  25173. Tdotaccent: 0x1E6A,
  25174. Tdotbelow: 0x1E6C,
  25175. Tecyrillic: 0x0422,
  25176. Tedescendercyrillic: 0x04AC,
  25177. Tenroman: 0x2169,
  25178. Tetsecyrillic: 0x04B4,
  25179. Theta: 0x0398,
  25180. Thook: 0x01AC,
  25181. Thorn: 0x00DE,
  25182. Thornsmall: 0xF7FE,
  25183. Threeroman: 0x2162,
  25184. Tildesmall: 0xF6FE,
  25185. Tiwnarmenian: 0x054F,
  25186. Tlinebelow: 0x1E6E,
  25187. Tmonospace: 0xFF34,
  25188. Toarmenian: 0x0539,
  25189. Tonefive: 0x01BC,
  25190. Tonesix: 0x0184,
  25191. Tonetwo: 0x01A7,
  25192. Tretroflexhook: 0x01AE,
  25193. Tsecyrillic: 0x0426,
  25194. Tshecyrillic: 0x040B,
  25195. Tsmall: 0xF774,
  25196. Twelveroman: 0x216B,
  25197. Tworoman: 0x2161,
  25198. U: 0x0055,
  25199. Uacute: 0x00DA,
  25200. Uacutesmall: 0xF7FA,
  25201. Ubreve: 0x016C,
  25202. Ucaron: 0x01D3,
  25203. Ucircle: 0x24CA,
  25204. Ucircumflex: 0x00DB,
  25205. Ucircumflexbelow: 0x1E76,
  25206. Ucircumflexsmall: 0xF7FB,
  25207. Ucyrillic: 0x0423,
  25208. Udblacute: 0x0170,
  25209. Udblgrave: 0x0214,
  25210. Udieresis: 0x00DC,
  25211. Udieresisacute: 0x01D7,
  25212. Udieresisbelow: 0x1E72,
  25213. Udieresiscaron: 0x01D9,
  25214. Udieresiscyrillic: 0x04F0,
  25215. Udieresisgrave: 0x01DB,
  25216. Udieresismacron: 0x01D5,
  25217. Udieresissmall: 0xF7FC,
  25218. Udotbelow: 0x1EE4,
  25219. Ugrave: 0x00D9,
  25220. Ugravesmall: 0xF7F9,
  25221. Uhookabove: 0x1EE6,
  25222. Uhorn: 0x01AF,
  25223. Uhornacute: 0x1EE8,
  25224. Uhorndotbelow: 0x1EF0,
  25225. Uhorngrave: 0x1EEA,
  25226. Uhornhookabove: 0x1EEC,
  25227. Uhorntilde: 0x1EEE,
  25228. Uhungarumlaut: 0x0170,
  25229. Uhungarumlautcyrillic: 0x04F2,
  25230. Uinvertedbreve: 0x0216,
  25231. Ukcyrillic: 0x0478,
  25232. Umacron: 0x016A,
  25233. Umacroncyrillic: 0x04EE,
  25234. Umacrondieresis: 0x1E7A,
  25235. Umonospace: 0xFF35,
  25236. Uogonek: 0x0172,
  25237. Upsilon: 0x03A5,
  25238. Upsilon1: 0x03D2,
  25239. Upsilonacutehooksymbolgreek: 0x03D3,
  25240. Upsilonafrican: 0x01B1,
  25241. Upsilondieresis: 0x03AB,
  25242. Upsilondieresishooksymbolgreek: 0x03D4,
  25243. Upsilonhooksymbol: 0x03D2,
  25244. Upsilontonos: 0x038E,
  25245. Uring: 0x016E,
  25246. Ushortcyrillic: 0x040E,
  25247. Usmall: 0xF775,
  25248. Ustraightcyrillic: 0x04AE,
  25249. Ustraightstrokecyrillic: 0x04B0,
  25250. Utilde: 0x0168,
  25251. Utildeacute: 0x1E78,
  25252. Utildebelow: 0x1E74,
  25253. V: 0x0056,
  25254. Vcircle: 0x24CB,
  25255. Vdotbelow: 0x1E7E,
  25256. Vecyrillic: 0x0412,
  25257. Vewarmenian: 0x054E,
  25258. Vhook: 0x01B2,
  25259. Vmonospace: 0xFF36,
  25260. Voarmenian: 0x0548,
  25261. Vsmall: 0xF776,
  25262. Vtilde: 0x1E7C,
  25263. W: 0x0057,
  25264. Wacute: 0x1E82,
  25265. Wcircle: 0x24CC,
  25266. Wcircumflex: 0x0174,
  25267. Wdieresis: 0x1E84,
  25268. Wdotaccent: 0x1E86,
  25269. Wdotbelow: 0x1E88,
  25270. Wgrave: 0x1E80,
  25271. Wmonospace: 0xFF37,
  25272. Wsmall: 0xF777,
  25273. X: 0x0058,
  25274. Xcircle: 0x24CD,
  25275. Xdieresis: 0x1E8C,
  25276. Xdotaccent: 0x1E8A,
  25277. Xeharmenian: 0x053D,
  25278. Xi: 0x039E,
  25279. Xmonospace: 0xFF38,
  25280. Xsmall: 0xF778,
  25281. Y: 0x0059,
  25282. Yacute: 0x00DD,
  25283. Yacutesmall: 0xF7FD,
  25284. Yatcyrillic: 0x0462,
  25285. Ycircle: 0x24CE,
  25286. Ycircumflex: 0x0176,
  25287. Ydieresis: 0x0178,
  25288. Ydieresissmall: 0xF7FF,
  25289. Ydotaccent: 0x1E8E,
  25290. Ydotbelow: 0x1EF4,
  25291. Yericyrillic: 0x042B,
  25292. Yerudieresiscyrillic: 0x04F8,
  25293. Ygrave: 0x1EF2,
  25294. Yhook: 0x01B3,
  25295. Yhookabove: 0x1EF6,
  25296. Yiarmenian: 0x0545,
  25297. Yicyrillic: 0x0407,
  25298. Yiwnarmenian: 0x0552,
  25299. Ymonospace: 0xFF39,
  25300. Ysmall: 0xF779,
  25301. Ytilde: 0x1EF8,
  25302. Yusbigcyrillic: 0x046A,
  25303. Yusbigiotifiedcyrillic: 0x046C,
  25304. Yuslittlecyrillic: 0x0466,
  25305. Yuslittleiotifiedcyrillic: 0x0468,
  25306. Z: 0x005A,
  25307. Zaarmenian: 0x0536,
  25308. Zacute: 0x0179,
  25309. Zcaron: 0x017D,
  25310. Zcaronsmall: 0xF6FF,
  25311. Zcircle: 0x24CF,
  25312. Zcircumflex: 0x1E90,
  25313. Zdot: 0x017B,
  25314. Zdotaccent: 0x017B,
  25315. Zdotbelow: 0x1E92,
  25316. Zecyrillic: 0x0417,
  25317. Zedescendercyrillic: 0x0498,
  25318. Zedieresiscyrillic: 0x04DE,
  25319. Zeta: 0x0396,
  25320. Zhearmenian: 0x053A,
  25321. Zhebrevecyrillic: 0x04C1,
  25322. Zhecyrillic: 0x0416,
  25323. Zhedescendercyrillic: 0x0496,
  25324. Zhedieresiscyrillic: 0x04DC,
  25325. Zlinebelow: 0x1E94,
  25326. Zmonospace: 0xFF3A,
  25327. Zsmall: 0xF77A,
  25328. Zstroke: 0x01B5,
  25329. a: 0x0061,
  25330. aabengali: 0x0986,
  25331. aacute: 0x00E1,
  25332. aadeva: 0x0906,
  25333. aagujarati: 0x0A86,
  25334. aagurmukhi: 0x0A06,
  25335. aamatragurmukhi: 0x0A3E,
  25336. aarusquare: 0x3303,
  25337. aavowelsignbengali: 0x09BE,
  25338. aavowelsigndeva: 0x093E,
  25339. aavowelsigngujarati: 0x0ABE,
  25340. abbreviationmarkarmenian: 0x055F,
  25341. abbreviationsigndeva: 0x0970,
  25342. abengali: 0x0985,
  25343. abopomofo: 0x311A,
  25344. abreve: 0x0103,
  25345. abreveacute: 0x1EAF,
  25346. abrevecyrillic: 0x04D1,
  25347. abrevedotbelow: 0x1EB7,
  25348. abrevegrave: 0x1EB1,
  25349. abrevehookabove: 0x1EB3,
  25350. abrevetilde: 0x1EB5,
  25351. acaron: 0x01CE,
  25352. acircle: 0x24D0,
  25353. acircumflex: 0x00E2,
  25354. acircumflexacute: 0x1EA5,
  25355. acircumflexdotbelow: 0x1EAD,
  25356. acircumflexgrave: 0x1EA7,
  25357. acircumflexhookabove: 0x1EA9,
  25358. acircumflextilde: 0x1EAB,
  25359. acute: 0x00B4,
  25360. acutebelowcmb: 0x0317,
  25361. acutecmb: 0x0301,
  25362. acutecomb: 0x0301,
  25363. acutedeva: 0x0954,
  25364. acutelowmod: 0x02CF,
  25365. acutetonecmb: 0x0341,
  25366. acyrillic: 0x0430,
  25367. adblgrave: 0x0201,
  25368. addakgurmukhi: 0x0A71,
  25369. adeva: 0x0905,
  25370. adieresis: 0x00E4,
  25371. adieresiscyrillic: 0x04D3,
  25372. adieresismacron: 0x01DF,
  25373. adotbelow: 0x1EA1,
  25374. adotmacron: 0x01E1,
  25375. ae: 0x00E6,
  25376. aeacute: 0x01FD,
  25377. aekorean: 0x3150,
  25378. aemacron: 0x01E3,
  25379. afii00208: 0x2015,
  25380. afii08941: 0x20A4,
  25381. afii10017: 0x0410,
  25382. afii10018: 0x0411,
  25383. afii10019: 0x0412,
  25384. afii10020: 0x0413,
  25385. afii10021: 0x0414,
  25386. afii10022: 0x0415,
  25387. afii10023: 0x0401,
  25388. afii10024: 0x0416,
  25389. afii10025: 0x0417,
  25390. afii10026: 0x0418,
  25391. afii10027: 0x0419,
  25392. afii10028: 0x041A,
  25393. afii10029: 0x041B,
  25394. afii10030: 0x041C,
  25395. afii10031: 0x041D,
  25396. afii10032: 0x041E,
  25397. afii10033: 0x041F,
  25398. afii10034: 0x0420,
  25399. afii10035: 0x0421,
  25400. afii10036: 0x0422,
  25401. afii10037: 0x0423,
  25402. afii10038: 0x0424,
  25403. afii10039: 0x0425,
  25404. afii10040: 0x0426,
  25405. afii10041: 0x0427,
  25406. afii10042: 0x0428,
  25407. afii10043: 0x0429,
  25408. afii10044: 0x042A,
  25409. afii10045: 0x042B,
  25410. afii10046: 0x042C,
  25411. afii10047: 0x042D,
  25412. afii10048: 0x042E,
  25413. afii10049: 0x042F,
  25414. afii10050: 0x0490,
  25415. afii10051: 0x0402,
  25416. afii10052: 0x0403,
  25417. afii10053: 0x0404,
  25418. afii10054: 0x0405,
  25419. afii10055: 0x0406,
  25420. afii10056: 0x0407,
  25421. afii10057: 0x0408,
  25422. afii10058: 0x0409,
  25423. afii10059: 0x040A,
  25424. afii10060: 0x040B,
  25425. afii10061: 0x040C,
  25426. afii10062: 0x040E,
  25427. afii10063: 0xF6C4,
  25428. afii10064: 0xF6C5,
  25429. afii10065: 0x0430,
  25430. afii10066: 0x0431,
  25431. afii10067: 0x0432,
  25432. afii10068: 0x0433,
  25433. afii10069: 0x0434,
  25434. afii10070: 0x0435,
  25435. afii10071: 0x0451,
  25436. afii10072: 0x0436,
  25437. afii10073: 0x0437,
  25438. afii10074: 0x0438,
  25439. afii10075: 0x0439,
  25440. afii10076: 0x043A,
  25441. afii10077: 0x043B,
  25442. afii10078: 0x043C,
  25443. afii10079: 0x043D,
  25444. afii10080: 0x043E,
  25445. afii10081: 0x043F,
  25446. afii10082: 0x0440,
  25447. afii10083: 0x0441,
  25448. afii10084: 0x0442,
  25449. afii10085: 0x0443,
  25450. afii10086: 0x0444,
  25451. afii10087: 0x0445,
  25452. afii10088: 0x0446,
  25453. afii10089: 0x0447,
  25454. afii10090: 0x0448,
  25455. afii10091: 0x0449,
  25456. afii10092: 0x044A,
  25457. afii10093: 0x044B,
  25458. afii10094: 0x044C,
  25459. afii10095: 0x044D,
  25460. afii10096: 0x044E,
  25461. afii10097: 0x044F,
  25462. afii10098: 0x0491,
  25463. afii10099: 0x0452,
  25464. afii10100: 0x0453,
  25465. afii10101: 0x0454,
  25466. afii10102: 0x0455,
  25467. afii10103: 0x0456,
  25468. afii10104: 0x0457,
  25469. afii10105: 0x0458,
  25470. afii10106: 0x0459,
  25471. afii10107: 0x045A,
  25472. afii10108: 0x045B,
  25473. afii10109: 0x045C,
  25474. afii10110: 0x045E,
  25475. afii10145: 0x040F,
  25476. afii10146: 0x0462,
  25477. afii10147: 0x0472,
  25478. afii10148: 0x0474,
  25479. afii10192: 0xF6C6,
  25480. afii10193: 0x045F,
  25481. afii10194: 0x0463,
  25482. afii10195: 0x0473,
  25483. afii10196: 0x0475,
  25484. afii10831: 0xF6C7,
  25485. afii10832: 0xF6C8,
  25486. afii10846: 0x04D9,
  25487. afii299: 0x200E,
  25488. afii300: 0x200F,
  25489. afii301: 0x200D,
  25490. afii57381: 0x066A,
  25491. afii57388: 0x060C,
  25492. afii57392: 0x0660,
  25493. afii57393: 0x0661,
  25494. afii57394: 0x0662,
  25495. afii57395: 0x0663,
  25496. afii57396: 0x0664,
  25497. afii57397: 0x0665,
  25498. afii57398: 0x0666,
  25499. afii57399: 0x0667,
  25500. afii57400: 0x0668,
  25501. afii57401: 0x0669,
  25502. afii57403: 0x061B,
  25503. afii57407: 0x061F,
  25504. afii57409: 0x0621,
  25505. afii57410: 0x0622,
  25506. afii57411: 0x0623,
  25507. afii57412: 0x0624,
  25508. afii57413: 0x0625,
  25509. afii57414: 0x0626,
  25510. afii57415: 0x0627,
  25511. afii57416: 0x0628,
  25512. afii57417: 0x0629,
  25513. afii57418: 0x062A,
  25514. afii57419: 0x062B,
  25515. afii57420: 0x062C,
  25516. afii57421: 0x062D,
  25517. afii57422: 0x062E,
  25518. afii57423: 0x062F,
  25519. afii57424: 0x0630,
  25520. afii57425: 0x0631,
  25521. afii57426: 0x0632,
  25522. afii57427: 0x0633,
  25523. afii57428: 0x0634,
  25524. afii57429: 0x0635,
  25525. afii57430: 0x0636,
  25526. afii57431: 0x0637,
  25527. afii57432: 0x0638,
  25528. afii57433: 0x0639,
  25529. afii57434: 0x063A,
  25530. afii57440: 0x0640,
  25531. afii57441: 0x0641,
  25532. afii57442: 0x0642,
  25533. afii57443: 0x0643,
  25534. afii57444: 0x0644,
  25535. afii57445: 0x0645,
  25536. afii57446: 0x0646,
  25537. afii57448: 0x0648,
  25538. afii57449: 0x0649,
  25539. afii57450: 0x064A,
  25540. afii57451: 0x064B,
  25541. afii57452: 0x064C,
  25542. afii57453: 0x064D,
  25543. afii57454: 0x064E,
  25544. afii57455: 0x064F,
  25545. afii57456: 0x0650,
  25546. afii57457: 0x0651,
  25547. afii57458: 0x0652,
  25548. afii57470: 0x0647,
  25549. afii57505: 0x06A4,
  25550. afii57506: 0x067E,
  25551. afii57507: 0x0686,
  25552. afii57508: 0x0698,
  25553. afii57509: 0x06AF,
  25554. afii57511: 0x0679,
  25555. afii57512: 0x0688,
  25556. afii57513: 0x0691,
  25557. afii57514: 0x06BA,
  25558. afii57519: 0x06D2,
  25559. afii57534: 0x06D5,
  25560. afii57636: 0x20AA,
  25561. afii57645: 0x05BE,
  25562. afii57658: 0x05C3,
  25563. afii57664: 0x05D0,
  25564. afii57665: 0x05D1,
  25565. afii57666: 0x05D2,
  25566. afii57667: 0x05D3,
  25567. afii57668: 0x05D4,
  25568. afii57669: 0x05D5,
  25569. afii57670: 0x05D6,
  25570. afii57671: 0x05D7,
  25571. afii57672: 0x05D8,
  25572. afii57673: 0x05D9,
  25573. afii57674: 0x05DA,
  25574. afii57675: 0x05DB,
  25575. afii57676: 0x05DC,
  25576. afii57677: 0x05DD,
  25577. afii57678: 0x05DE,
  25578. afii57679: 0x05DF,
  25579. afii57680: 0x05E0,
  25580. afii57681: 0x05E1,
  25581. afii57682: 0x05E2,
  25582. afii57683: 0x05E3,
  25583. afii57684: 0x05E4,
  25584. afii57685: 0x05E5,
  25585. afii57686: 0x05E6,
  25586. afii57687: 0x05E7,
  25587. afii57688: 0x05E8,
  25588. afii57689: 0x05E9,
  25589. afii57690: 0x05EA,
  25590. afii57694: 0xFB2A,
  25591. afii57695: 0xFB2B,
  25592. afii57700: 0xFB4B,
  25593. afii57705: 0xFB1F,
  25594. afii57716: 0x05F0,
  25595. afii57717: 0x05F1,
  25596. afii57718: 0x05F2,
  25597. afii57723: 0xFB35,
  25598. afii57793: 0x05B4,
  25599. afii57794: 0x05B5,
  25600. afii57795: 0x05B6,
  25601. afii57796: 0x05BB,
  25602. afii57797: 0x05B8,
  25603. afii57798: 0x05B7,
  25604. afii57799: 0x05B0,
  25605. afii57800: 0x05B2,
  25606. afii57801: 0x05B1,
  25607. afii57802: 0x05B3,
  25608. afii57803: 0x05C2,
  25609. afii57804: 0x05C1,
  25610. afii57806: 0x05B9,
  25611. afii57807: 0x05BC,
  25612. afii57839: 0x05BD,
  25613. afii57841: 0x05BF,
  25614. afii57842: 0x05C0,
  25615. afii57929: 0x02BC,
  25616. afii61248: 0x2105,
  25617. afii61289: 0x2113,
  25618. afii61352: 0x2116,
  25619. afii61573: 0x202C,
  25620. afii61574: 0x202D,
  25621. afii61575: 0x202E,
  25622. afii61664: 0x200C,
  25623. afii63167: 0x066D,
  25624. afii64937: 0x02BD,
  25625. agrave: 0x00E0,
  25626. agujarati: 0x0A85,
  25627. agurmukhi: 0x0A05,
  25628. ahiragana: 0x3042,
  25629. ahookabove: 0x1EA3,
  25630. aibengali: 0x0990,
  25631. aibopomofo: 0x311E,
  25632. aideva: 0x0910,
  25633. aiecyrillic: 0x04D5,
  25634. aigujarati: 0x0A90,
  25635. aigurmukhi: 0x0A10,
  25636. aimatragurmukhi: 0x0A48,
  25637. ainarabic: 0x0639,
  25638. ainfinalarabic: 0xFECA,
  25639. aininitialarabic: 0xFECB,
  25640. ainmedialarabic: 0xFECC,
  25641. ainvertedbreve: 0x0203,
  25642. aivowelsignbengali: 0x09C8,
  25643. aivowelsigndeva: 0x0948,
  25644. aivowelsigngujarati: 0x0AC8,
  25645. akatakana: 0x30A2,
  25646. akatakanahalfwidth: 0xFF71,
  25647. akorean: 0x314F,
  25648. alef: 0x05D0,
  25649. alefarabic: 0x0627,
  25650. alefdageshhebrew: 0xFB30,
  25651. aleffinalarabic: 0xFE8E,
  25652. alefhamzaabovearabic: 0x0623,
  25653. alefhamzaabovefinalarabic: 0xFE84,
  25654. alefhamzabelowarabic: 0x0625,
  25655. alefhamzabelowfinalarabic: 0xFE88,
  25656. alefhebrew: 0x05D0,
  25657. aleflamedhebrew: 0xFB4F,
  25658. alefmaddaabovearabic: 0x0622,
  25659. alefmaddaabovefinalarabic: 0xFE82,
  25660. alefmaksuraarabic: 0x0649,
  25661. alefmaksurafinalarabic: 0xFEF0,
  25662. alefmaksurainitialarabic: 0xFEF3,
  25663. alefmaksuramedialarabic: 0xFEF4,
  25664. alefpatahhebrew: 0xFB2E,
  25665. alefqamatshebrew: 0xFB2F,
  25666. aleph: 0x2135,
  25667. allequal: 0x224C,
  25668. alpha: 0x03B1,
  25669. alphatonos: 0x03AC,
  25670. amacron: 0x0101,
  25671. amonospace: 0xFF41,
  25672. ampersand: 0x0026,
  25673. ampersandmonospace: 0xFF06,
  25674. ampersandsmall: 0xF726,
  25675. amsquare: 0x33C2,
  25676. anbopomofo: 0x3122,
  25677. angbopomofo: 0x3124,
  25678. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  25679. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  25680. angkhankhuthai: 0x0E5A,
  25681. angle: 0x2220,
  25682. anglebracketleft: 0x3008,
  25683. anglebracketleftvertical: 0xFE3F,
  25684. anglebracketright: 0x3009,
  25685. anglebracketrightvertical: 0xFE40,
  25686. angleleft: 0x2329,
  25687. angleright: 0x232A,
  25688. angstrom: 0x212B,
  25689. anoteleia: 0x0387,
  25690. anudattadeva: 0x0952,
  25691. anusvarabengali: 0x0982,
  25692. anusvaradeva: 0x0902,
  25693. anusvaragujarati: 0x0A82,
  25694. aogonek: 0x0105,
  25695. apaatosquare: 0x3300,
  25696. aparen: 0x249C,
  25697. apostrophearmenian: 0x055A,
  25698. apostrophemod: 0x02BC,
  25699. apple: 0xF8FF,
  25700. approaches: 0x2250,
  25701. approxequal: 0x2248,
  25702. approxequalorimage: 0x2252,
  25703. approximatelyequal: 0x2245,
  25704. araeaekorean: 0x318E,
  25705. araeakorean: 0x318D,
  25706. arc: 0x2312,
  25707. arighthalfring: 0x1E9A,
  25708. aring: 0x00E5,
  25709. aringacute: 0x01FB,
  25710. aringbelow: 0x1E01,
  25711. arrowboth: 0x2194,
  25712. arrowdashdown: 0x21E3,
  25713. arrowdashleft: 0x21E0,
  25714. arrowdashright: 0x21E2,
  25715. arrowdashup: 0x21E1,
  25716. arrowdblboth: 0x21D4,
  25717. arrowdbldown: 0x21D3,
  25718. arrowdblleft: 0x21D0,
  25719. arrowdblright: 0x21D2,
  25720. arrowdblup: 0x21D1,
  25721. arrowdown: 0x2193,
  25722. arrowdownleft: 0x2199,
  25723. arrowdownright: 0x2198,
  25724. arrowdownwhite: 0x21E9,
  25725. arrowheaddownmod: 0x02C5,
  25726. arrowheadleftmod: 0x02C2,
  25727. arrowheadrightmod: 0x02C3,
  25728. arrowheadupmod: 0x02C4,
  25729. arrowhorizex: 0xF8E7,
  25730. arrowleft: 0x2190,
  25731. arrowleftdbl: 0x21D0,
  25732. arrowleftdblstroke: 0x21CD,
  25733. arrowleftoverright: 0x21C6,
  25734. arrowleftwhite: 0x21E6,
  25735. arrowright: 0x2192,
  25736. arrowrightdblstroke: 0x21CF,
  25737. arrowrightheavy: 0x279E,
  25738. arrowrightoverleft: 0x21C4,
  25739. arrowrightwhite: 0x21E8,
  25740. arrowtableft: 0x21E4,
  25741. arrowtabright: 0x21E5,
  25742. arrowup: 0x2191,
  25743. arrowupdn: 0x2195,
  25744. arrowupdnbse: 0x21A8,
  25745. arrowupdownbase: 0x21A8,
  25746. arrowupleft: 0x2196,
  25747. arrowupleftofdown: 0x21C5,
  25748. arrowupright: 0x2197,
  25749. arrowupwhite: 0x21E7,
  25750. arrowvertex: 0xF8E6,
  25751. asciicircum: 0x005E,
  25752. asciicircummonospace: 0xFF3E,
  25753. asciitilde: 0x007E,
  25754. asciitildemonospace: 0xFF5E,
  25755. ascript: 0x0251,
  25756. ascriptturned: 0x0252,
  25757. asmallhiragana: 0x3041,
  25758. asmallkatakana: 0x30A1,
  25759. asmallkatakanahalfwidth: 0xFF67,
  25760. asterisk: 0x002A,
  25761. asteriskaltonearabic: 0x066D,
  25762. asteriskarabic: 0x066D,
  25763. asteriskmath: 0x2217,
  25764. asteriskmonospace: 0xFF0A,
  25765. asterisksmall: 0xFE61,
  25766. asterism: 0x2042,
  25767. asuperior: 0xF6E9,
  25768. asymptoticallyequal: 0x2243,
  25769. at: 0x0040,
  25770. atilde: 0x00E3,
  25771. atmonospace: 0xFF20,
  25772. atsmall: 0xFE6B,
  25773. aturned: 0x0250,
  25774. aubengali: 0x0994,
  25775. aubopomofo: 0x3120,
  25776. audeva: 0x0914,
  25777. augujarati: 0x0A94,
  25778. augurmukhi: 0x0A14,
  25779. aulengthmarkbengali: 0x09D7,
  25780. aumatragurmukhi: 0x0A4C,
  25781. auvowelsignbengali: 0x09CC,
  25782. auvowelsigndeva: 0x094C,
  25783. auvowelsigngujarati: 0x0ACC,
  25784. avagrahadeva: 0x093D,
  25785. aybarmenian: 0x0561,
  25786. ayin: 0x05E2,
  25787. ayinaltonehebrew: 0xFB20,
  25788. ayinhebrew: 0x05E2,
  25789. b: 0x0062,
  25790. babengali: 0x09AC,
  25791. backslash: 0x005C,
  25792. backslashmonospace: 0xFF3C,
  25793. badeva: 0x092C,
  25794. bagujarati: 0x0AAC,
  25795. bagurmukhi: 0x0A2C,
  25796. bahiragana: 0x3070,
  25797. bahtthai: 0x0E3F,
  25798. bakatakana: 0x30D0,
  25799. bar: 0x007C,
  25800. barmonospace: 0xFF5C,
  25801. bbopomofo: 0x3105,
  25802. bcircle: 0x24D1,
  25803. bdotaccent: 0x1E03,
  25804. bdotbelow: 0x1E05,
  25805. beamedsixteenthnotes: 0x266C,
  25806. because: 0x2235,
  25807. becyrillic: 0x0431,
  25808. beharabic: 0x0628,
  25809. behfinalarabic: 0xFE90,
  25810. behinitialarabic: 0xFE91,
  25811. behiragana: 0x3079,
  25812. behmedialarabic: 0xFE92,
  25813. behmeeminitialarabic: 0xFC9F,
  25814. behmeemisolatedarabic: 0xFC08,
  25815. behnoonfinalarabic: 0xFC6D,
  25816. bekatakana: 0x30D9,
  25817. benarmenian: 0x0562,
  25818. bet: 0x05D1,
  25819. beta: 0x03B2,
  25820. betasymbolgreek: 0x03D0,
  25821. betdagesh: 0xFB31,
  25822. betdageshhebrew: 0xFB31,
  25823. bethebrew: 0x05D1,
  25824. betrafehebrew: 0xFB4C,
  25825. bhabengali: 0x09AD,
  25826. bhadeva: 0x092D,
  25827. bhagujarati: 0x0AAD,
  25828. bhagurmukhi: 0x0A2D,
  25829. bhook: 0x0253,
  25830. bihiragana: 0x3073,
  25831. bikatakana: 0x30D3,
  25832. bilabialclick: 0x0298,
  25833. bindigurmukhi: 0x0A02,
  25834. birusquare: 0x3331,
  25835. blackcircle: 0x25CF,
  25836. blackdiamond: 0x25C6,
  25837. blackdownpointingtriangle: 0x25BC,
  25838. blackleftpointingpointer: 0x25C4,
  25839. blackleftpointingtriangle: 0x25C0,
  25840. blacklenticularbracketleft: 0x3010,
  25841. blacklenticularbracketleftvertical: 0xFE3B,
  25842. blacklenticularbracketright: 0x3011,
  25843. blacklenticularbracketrightvertical: 0xFE3C,
  25844. blacklowerlefttriangle: 0x25E3,
  25845. blacklowerrighttriangle: 0x25E2,
  25846. blackrectangle: 0x25AC,
  25847. blackrightpointingpointer: 0x25BA,
  25848. blackrightpointingtriangle: 0x25B6,
  25849. blacksmallsquare: 0x25AA,
  25850. blacksmilingface: 0x263B,
  25851. blacksquare: 0x25A0,
  25852. blackstar: 0x2605,
  25853. blackupperlefttriangle: 0x25E4,
  25854. blackupperrighttriangle: 0x25E5,
  25855. blackuppointingsmalltriangle: 0x25B4,
  25856. blackuppointingtriangle: 0x25B2,
  25857. blank: 0x2423,
  25858. blinebelow: 0x1E07,
  25859. block: 0x2588,
  25860. bmonospace: 0xFF42,
  25861. bobaimaithai: 0x0E1A,
  25862. bohiragana: 0x307C,
  25863. bokatakana: 0x30DC,
  25864. bparen: 0x249D,
  25865. bqsquare: 0x33C3,
  25866. braceex: 0xF8F4,
  25867. braceleft: 0x007B,
  25868. braceleftbt: 0xF8F3,
  25869. braceleftmid: 0xF8F2,
  25870. braceleftmonospace: 0xFF5B,
  25871. braceleftsmall: 0xFE5B,
  25872. bracelefttp: 0xF8F1,
  25873. braceleftvertical: 0xFE37,
  25874. braceright: 0x007D,
  25875. bracerightbt: 0xF8FE,
  25876. bracerightmid: 0xF8FD,
  25877. bracerightmonospace: 0xFF5D,
  25878. bracerightsmall: 0xFE5C,
  25879. bracerighttp: 0xF8FC,
  25880. bracerightvertical: 0xFE38,
  25881. bracketleft: 0x005B,
  25882. bracketleftbt: 0xF8F0,
  25883. bracketleftex: 0xF8EF,
  25884. bracketleftmonospace: 0xFF3B,
  25885. bracketlefttp: 0xF8EE,
  25886. bracketright: 0x005D,
  25887. bracketrightbt: 0xF8FB,
  25888. bracketrightex: 0xF8FA,
  25889. bracketrightmonospace: 0xFF3D,
  25890. bracketrighttp: 0xF8F9,
  25891. breve: 0x02D8,
  25892. brevebelowcmb: 0x032E,
  25893. brevecmb: 0x0306,
  25894. breveinvertedbelowcmb: 0x032F,
  25895. breveinvertedcmb: 0x0311,
  25896. breveinverteddoublecmb: 0x0361,
  25897. bridgebelowcmb: 0x032A,
  25898. bridgeinvertedbelowcmb: 0x033A,
  25899. brokenbar: 0x00A6,
  25900. bstroke: 0x0180,
  25901. bsuperior: 0xF6EA,
  25902. btopbar: 0x0183,
  25903. buhiragana: 0x3076,
  25904. bukatakana: 0x30D6,
  25905. bullet: 0x2022,
  25906. bulletinverse: 0x25D8,
  25907. bulletoperator: 0x2219,
  25908. bullseye: 0x25CE,
  25909. c: 0x0063,
  25910. caarmenian: 0x056E,
  25911. cabengali: 0x099A,
  25912. cacute: 0x0107,
  25913. cadeva: 0x091A,
  25914. cagujarati: 0x0A9A,
  25915. cagurmukhi: 0x0A1A,
  25916. calsquare: 0x3388,
  25917. candrabindubengali: 0x0981,
  25918. candrabinducmb: 0x0310,
  25919. candrabindudeva: 0x0901,
  25920. candrabindugujarati: 0x0A81,
  25921. capslock: 0x21EA,
  25922. careof: 0x2105,
  25923. caron: 0x02C7,
  25924. caronbelowcmb: 0x032C,
  25925. caroncmb: 0x030C,
  25926. carriagereturn: 0x21B5,
  25927. cbopomofo: 0x3118,
  25928. ccaron: 0x010D,
  25929. ccedilla: 0x00E7,
  25930. ccedillaacute: 0x1E09,
  25931. ccircle: 0x24D2,
  25932. ccircumflex: 0x0109,
  25933. ccurl: 0x0255,
  25934. cdot: 0x010B,
  25935. cdotaccent: 0x010B,
  25936. cdsquare: 0x33C5,
  25937. cedilla: 0x00B8,
  25938. cedillacmb: 0x0327,
  25939. cent: 0x00A2,
  25940. centigrade: 0x2103,
  25941. centinferior: 0xF6DF,
  25942. centmonospace: 0xFFE0,
  25943. centoldstyle: 0xF7A2,
  25944. centsuperior: 0xF6E0,
  25945. chaarmenian: 0x0579,
  25946. chabengali: 0x099B,
  25947. chadeva: 0x091B,
  25948. chagujarati: 0x0A9B,
  25949. chagurmukhi: 0x0A1B,
  25950. chbopomofo: 0x3114,
  25951. cheabkhasiancyrillic: 0x04BD,
  25952. checkmark: 0x2713,
  25953. checyrillic: 0x0447,
  25954. chedescenderabkhasiancyrillic: 0x04BF,
  25955. chedescendercyrillic: 0x04B7,
  25956. chedieresiscyrillic: 0x04F5,
  25957. cheharmenian: 0x0573,
  25958. chekhakassiancyrillic: 0x04CC,
  25959. cheverticalstrokecyrillic: 0x04B9,
  25960. chi: 0x03C7,
  25961. chieuchacirclekorean: 0x3277,
  25962. chieuchaparenkorean: 0x3217,
  25963. chieuchcirclekorean: 0x3269,
  25964. chieuchkorean: 0x314A,
  25965. chieuchparenkorean: 0x3209,
  25966. chochangthai: 0x0E0A,
  25967. chochanthai: 0x0E08,
  25968. chochingthai: 0x0E09,
  25969. chochoethai: 0x0E0C,
  25970. chook: 0x0188,
  25971. cieucacirclekorean: 0x3276,
  25972. cieucaparenkorean: 0x3216,
  25973. cieuccirclekorean: 0x3268,
  25974. cieuckorean: 0x3148,
  25975. cieucparenkorean: 0x3208,
  25976. cieucuparenkorean: 0x321C,
  25977. circle: 0x25CB,
  25978. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  25979. circlemultiply: 0x2297,
  25980. circleot: 0x2299,
  25981. circleplus: 0x2295,
  25982. circlepostalmark: 0x3036,
  25983. circlewithlefthalfblack: 0x25D0,
  25984. circlewithrighthalfblack: 0x25D1,
  25985. circumflex: 0x02C6,
  25986. circumflexbelowcmb: 0x032D,
  25987. circumflexcmb: 0x0302,
  25988. clear: 0x2327,
  25989. clickalveolar: 0x01C2,
  25990. clickdental: 0x01C0,
  25991. clicklateral: 0x01C1,
  25992. clickretroflex: 0x01C3,
  25993. club: 0x2663,
  25994. clubsuitblack: 0x2663,
  25995. clubsuitwhite: 0x2667,
  25996. cmcubedsquare: 0x33A4,
  25997. cmonospace: 0xFF43,
  25998. cmsquaredsquare: 0x33A0,
  25999. coarmenian: 0x0581,
  26000. colon: 0x003A,
  26001. colonmonetary: 0x20A1,
  26002. colonmonospace: 0xFF1A,
  26003. colonsign: 0x20A1,
  26004. colonsmall: 0xFE55,
  26005. colontriangularhalfmod: 0x02D1,
  26006. colontriangularmod: 0x02D0,
  26007. comma: 0x002C,
  26008. commaabovecmb: 0x0313,
  26009. commaaboverightcmb: 0x0315,
  26010. commaaccent: 0xF6C3,
  26011. commaarabic: 0x060C,
  26012. commaarmenian: 0x055D,
  26013. commainferior: 0xF6E1,
  26014. commamonospace: 0xFF0C,
  26015. commareversedabovecmb: 0x0314,
  26016. commareversedmod: 0x02BD,
  26017. commasmall: 0xFE50,
  26018. commasuperior: 0xF6E2,
  26019. commaturnedabovecmb: 0x0312,
  26020. commaturnedmod: 0x02BB,
  26021. compass: 0x263C,
  26022. congruent: 0x2245,
  26023. contourintegral: 0x222E,
  26024. control: 0x2303,
  26025. controlACK: 0x0006,
  26026. controlBEL: 0x0007,
  26027. controlBS: 0x0008,
  26028. controlCAN: 0x0018,
  26029. controlCR: 0x000D,
  26030. controlDC1: 0x0011,
  26031. controlDC2: 0x0012,
  26032. controlDC3: 0x0013,
  26033. controlDC4: 0x0014,
  26034. controlDEL: 0x007F,
  26035. controlDLE: 0x0010,
  26036. controlEM: 0x0019,
  26037. controlENQ: 0x0005,
  26038. controlEOT: 0x0004,
  26039. controlESC: 0x001B,
  26040. controlETB: 0x0017,
  26041. controlETX: 0x0003,
  26042. controlFF: 0x000C,
  26043. controlFS: 0x001C,
  26044. controlGS: 0x001D,
  26045. controlHT: 0x0009,
  26046. controlLF: 0x000A,
  26047. controlNAK: 0x0015,
  26048. controlRS: 0x001E,
  26049. controlSI: 0x000F,
  26050. controlSO: 0x000E,
  26051. controlSOT: 0x0002,
  26052. controlSTX: 0x0001,
  26053. controlSUB: 0x001A,
  26054. controlSYN: 0x0016,
  26055. controlUS: 0x001F,
  26056. controlVT: 0x000B,
  26057. copyright: 0x00A9,
  26058. copyrightsans: 0xF8E9,
  26059. copyrightserif: 0xF6D9,
  26060. cornerbracketleft: 0x300C,
  26061. cornerbracketlefthalfwidth: 0xFF62,
  26062. cornerbracketleftvertical: 0xFE41,
  26063. cornerbracketright: 0x300D,
  26064. cornerbracketrighthalfwidth: 0xFF63,
  26065. cornerbracketrightvertical: 0xFE42,
  26066. corporationsquare: 0x337F,
  26067. cosquare: 0x33C7,
  26068. coverkgsquare: 0x33C6,
  26069. cparen: 0x249E,
  26070. cruzeiro: 0x20A2,
  26071. cstretched: 0x0297,
  26072. curlyand: 0x22CF,
  26073. curlyor: 0x22CE,
  26074. currency: 0x00A4,
  26075. cyrBreve: 0xF6D1,
  26076. cyrFlex: 0xF6D2,
  26077. cyrbreve: 0xF6D4,
  26078. cyrflex: 0xF6D5,
  26079. d: 0x0064,
  26080. daarmenian: 0x0564,
  26081. dabengali: 0x09A6,
  26082. dadarabic: 0x0636,
  26083. dadeva: 0x0926,
  26084. dadfinalarabic: 0xFEBE,
  26085. dadinitialarabic: 0xFEBF,
  26086. dadmedialarabic: 0xFEC0,
  26087. dagesh: 0x05BC,
  26088. dageshhebrew: 0x05BC,
  26089. dagger: 0x2020,
  26090. daggerdbl: 0x2021,
  26091. dagujarati: 0x0AA6,
  26092. dagurmukhi: 0x0A26,
  26093. dahiragana: 0x3060,
  26094. dakatakana: 0x30C0,
  26095. dalarabic: 0x062F,
  26096. dalet: 0x05D3,
  26097. daletdagesh: 0xFB33,
  26098. daletdageshhebrew: 0xFB33,
  26099. dalethebrew: 0x05D3,
  26100. dalfinalarabic: 0xFEAA,
  26101. dammaarabic: 0x064F,
  26102. dammalowarabic: 0x064F,
  26103. dammatanaltonearabic: 0x064C,
  26104. dammatanarabic: 0x064C,
  26105. danda: 0x0964,
  26106. dargahebrew: 0x05A7,
  26107. dargalefthebrew: 0x05A7,
  26108. dasiapneumatacyrilliccmb: 0x0485,
  26109. dblGrave: 0xF6D3,
  26110. dblanglebracketleft: 0x300A,
  26111. dblanglebracketleftvertical: 0xFE3D,
  26112. dblanglebracketright: 0x300B,
  26113. dblanglebracketrightvertical: 0xFE3E,
  26114. dblarchinvertedbelowcmb: 0x032B,
  26115. dblarrowleft: 0x21D4,
  26116. dblarrowright: 0x21D2,
  26117. dbldanda: 0x0965,
  26118. dblgrave: 0xF6D6,
  26119. dblgravecmb: 0x030F,
  26120. dblintegral: 0x222C,
  26121. dbllowline: 0x2017,
  26122. dbllowlinecmb: 0x0333,
  26123. dbloverlinecmb: 0x033F,
  26124. dblprimemod: 0x02BA,
  26125. dblverticalbar: 0x2016,
  26126. dblverticallineabovecmb: 0x030E,
  26127. dbopomofo: 0x3109,
  26128. dbsquare: 0x33C8,
  26129. dcaron: 0x010F,
  26130. dcedilla: 0x1E11,
  26131. dcircle: 0x24D3,
  26132. dcircumflexbelow: 0x1E13,
  26133. dcroat: 0x0111,
  26134. ddabengali: 0x09A1,
  26135. ddadeva: 0x0921,
  26136. ddagujarati: 0x0AA1,
  26137. ddagurmukhi: 0x0A21,
  26138. ddalarabic: 0x0688,
  26139. ddalfinalarabic: 0xFB89,
  26140. dddhadeva: 0x095C,
  26141. ddhabengali: 0x09A2,
  26142. ddhadeva: 0x0922,
  26143. ddhagujarati: 0x0AA2,
  26144. ddhagurmukhi: 0x0A22,
  26145. ddotaccent: 0x1E0B,
  26146. ddotbelow: 0x1E0D,
  26147. decimalseparatorarabic: 0x066B,
  26148. decimalseparatorpersian: 0x066B,
  26149. decyrillic: 0x0434,
  26150. degree: 0x00B0,
  26151. dehihebrew: 0x05AD,
  26152. dehiragana: 0x3067,
  26153. deicoptic: 0x03EF,
  26154. dekatakana: 0x30C7,
  26155. deleteleft: 0x232B,
  26156. deleteright: 0x2326,
  26157. delta: 0x03B4,
  26158. deltaturned: 0x018D,
  26159. denominatorminusonenumeratorbengali: 0x09F8,
  26160. dezh: 0x02A4,
  26161. dhabengali: 0x09A7,
  26162. dhadeva: 0x0927,
  26163. dhagujarati: 0x0AA7,
  26164. dhagurmukhi: 0x0A27,
  26165. dhook: 0x0257,
  26166. dialytikatonos: 0x0385,
  26167. dialytikatonoscmb: 0x0344,
  26168. diamond: 0x2666,
  26169. diamondsuitwhite: 0x2662,
  26170. dieresis: 0x00A8,
  26171. dieresisacute: 0xF6D7,
  26172. dieresisbelowcmb: 0x0324,
  26173. dieresiscmb: 0x0308,
  26174. dieresisgrave: 0xF6D8,
  26175. dieresistonos: 0x0385,
  26176. dihiragana: 0x3062,
  26177. dikatakana: 0x30C2,
  26178. dittomark: 0x3003,
  26179. divide: 0x00F7,
  26180. divides: 0x2223,
  26181. divisionslash: 0x2215,
  26182. djecyrillic: 0x0452,
  26183. dkshade: 0x2593,
  26184. dlinebelow: 0x1E0F,
  26185. dlsquare: 0x3397,
  26186. dmacron: 0x0111,
  26187. dmonospace: 0xFF44,
  26188. dnblock: 0x2584,
  26189. dochadathai: 0x0E0E,
  26190. dodekthai: 0x0E14,
  26191. dohiragana: 0x3069,
  26192. dokatakana: 0x30C9,
  26193. dollar: 0x0024,
  26194. dollarinferior: 0xF6E3,
  26195. dollarmonospace: 0xFF04,
  26196. dollaroldstyle: 0xF724,
  26197. dollarsmall: 0xFE69,
  26198. dollarsuperior: 0xF6E4,
  26199. dong: 0x20AB,
  26200. dorusquare: 0x3326,
  26201. dotaccent: 0x02D9,
  26202. dotaccentcmb: 0x0307,
  26203. dotbelowcmb: 0x0323,
  26204. dotbelowcomb: 0x0323,
  26205. dotkatakana: 0x30FB,
  26206. dotlessi: 0x0131,
  26207. dotlessj: 0xF6BE,
  26208. dotlessjstrokehook: 0x0284,
  26209. dotmath: 0x22C5,
  26210. dottedcircle: 0x25CC,
  26211. doubleyodpatah: 0xFB1F,
  26212. doubleyodpatahhebrew: 0xFB1F,
  26213. downtackbelowcmb: 0x031E,
  26214. downtackmod: 0x02D5,
  26215. dparen: 0x249F,
  26216. dsuperior: 0xF6EB,
  26217. dtail: 0x0256,
  26218. dtopbar: 0x018C,
  26219. duhiragana: 0x3065,
  26220. dukatakana: 0x30C5,
  26221. dz: 0x01F3,
  26222. dzaltone: 0x02A3,
  26223. dzcaron: 0x01C6,
  26224. dzcurl: 0x02A5,
  26225. dzeabkhasiancyrillic: 0x04E1,
  26226. dzecyrillic: 0x0455,
  26227. dzhecyrillic: 0x045F,
  26228. e: 0x0065,
  26229. eacute: 0x00E9,
  26230. earth: 0x2641,
  26231. ebengali: 0x098F,
  26232. ebopomofo: 0x311C,
  26233. ebreve: 0x0115,
  26234. ecandradeva: 0x090D,
  26235. ecandragujarati: 0x0A8D,
  26236. ecandravowelsigndeva: 0x0945,
  26237. ecandravowelsigngujarati: 0x0AC5,
  26238. ecaron: 0x011B,
  26239. ecedillabreve: 0x1E1D,
  26240. echarmenian: 0x0565,
  26241. echyiwnarmenian: 0x0587,
  26242. ecircle: 0x24D4,
  26243. ecircumflex: 0x00EA,
  26244. ecircumflexacute: 0x1EBF,
  26245. ecircumflexbelow: 0x1E19,
  26246. ecircumflexdotbelow: 0x1EC7,
  26247. ecircumflexgrave: 0x1EC1,
  26248. ecircumflexhookabove: 0x1EC3,
  26249. ecircumflextilde: 0x1EC5,
  26250. ecyrillic: 0x0454,
  26251. edblgrave: 0x0205,
  26252. edeva: 0x090F,
  26253. edieresis: 0x00EB,
  26254. edot: 0x0117,
  26255. edotaccent: 0x0117,
  26256. edotbelow: 0x1EB9,
  26257. eegurmukhi: 0x0A0F,
  26258. eematragurmukhi: 0x0A47,
  26259. efcyrillic: 0x0444,
  26260. egrave: 0x00E8,
  26261. egujarati: 0x0A8F,
  26262. eharmenian: 0x0567,
  26263. ehbopomofo: 0x311D,
  26264. ehiragana: 0x3048,
  26265. ehookabove: 0x1EBB,
  26266. eibopomofo: 0x311F,
  26267. eight: 0x0038,
  26268. eightarabic: 0x0668,
  26269. eightbengali: 0x09EE,
  26270. eightcircle: 0x2467,
  26271. eightcircleinversesansserif: 0x2791,
  26272. eightdeva: 0x096E,
  26273. eighteencircle: 0x2471,
  26274. eighteenparen: 0x2485,
  26275. eighteenperiod: 0x2499,
  26276. eightgujarati: 0x0AEE,
  26277. eightgurmukhi: 0x0A6E,
  26278. eighthackarabic: 0x0668,
  26279. eighthangzhou: 0x3028,
  26280. eighthnotebeamed: 0x266B,
  26281. eightideographicparen: 0x3227,
  26282. eightinferior: 0x2088,
  26283. eightmonospace: 0xFF18,
  26284. eightoldstyle: 0xF738,
  26285. eightparen: 0x247B,
  26286. eightperiod: 0x248F,
  26287. eightpersian: 0x06F8,
  26288. eightroman: 0x2177,
  26289. eightsuperior: 0x2078,
  26290. eightthai: 0x0E58,
  26291. einvertedbreve: 0x0207,
  26292. eiotifiedcyrillic: 0x0465,
  26293. ekatakana: 0x30A8,
  26294. ekatakanahalfwidth: 0xFF74,
  26295. ekonkargurmukhi: 0x0A74,
  26296. ekorean: 0x3154,
  26297. elcyrillic: 0x043B,
  26298. element: 0x2208,
  26299. elevencircle: 0x246A,
  26300. elevenparen: 0x247E,
  26301. elevenperiod: 0x2492,
  26302. elevenroman: 0x217A,
  26303. ellipsis: 0x2026,
  26304. ellipsisvertical: 0x22EE,
  26305. emacron: 0x0113,
  26306. emacronacute: 0x1E17,
  26307. emacrongrave: 0x1E15,
  26308. emcyrillic: 0x043C,
  26309. emdash: 0x2014,
  26310. emdashvertical: 0xFE31,
  26311. emonospace: 0xFF45,
  26312. emphasismarkarmenian: 0x055B,
  26313. emptyset: 0x2205,
  26314. enbopomofo: 0x3123,
  26315. encyrillic: 0x043D,
  26316. endash: 0x2013,
  26317. endashvertical: 0xFE32,
  26318. endescendercyrillic: 0x04A3,
  26319. eng: 0x014B,
  26320. engbopomofo: 0x3125,
  26321. enghecyrillic: 0x04A5,
  26322. enhookcyrillic: 0x04C8,
  26323. enspace: 0x2002,
  26324. eogonek: 0x0119,
  26325. eokorean: 0x3153,
  26326. eopen: 0x025B,
  26327. eopenclosed: 0x029A,
  26328. eopenreversed: 0x025C,
  26329. eopenreversedclosed: 0x025E,
  26330. eopenreversedhook: 0x025D,
  26331. eparen: 0x24A0,
  26332. epsilon: 0x03B5,
  26333. epsilontonos: 0x03AD,
  26334. equal: 0x003D,
  26335. equalmonospace: 0xFF1D,
  26336. equalsmall: 0xFE66,
  26337. equalsuperior: 0x207C,
  26338. equivalence: 0x2261,
  26339. erbopomofo: 0x3126,
  26340. ercyrillic: 0x0440,
  26341. ereversed: 0x0258,
  26342. ereversedcyrillic: 0x044D,
  26343. escyrillic: 0x0441,
  26344. esdescendercyrillic: 0x04AB,
  26345. esh: 0x0283,
  26346. eshcurl: 0x0286,
  26347. eshortdeva: 0x090E,
  26348. eshortvowelsigndeva: 0x0946,
  26349. eshreversedloop: 0x01AA,
  26350. eshsquatreversed: 0x0285,
  26351. esmallhiragana: 0x3047,
  26352. esmallkatakana: 0x30A7,
  26353. esmallkatakanahalfwidth: 0xFF6A,
  26354. estimated: 0x212E,
  26355. esuperior: 0xF6EC,
  26356. eta: 0x03B7,
  26357. etarmenian: 0x0568,
  26358. etatonos: 0x03AE,
  26359. eth: 0x00F0,
  26360. etilde: 0x1EBD,
  26361. etildebelow: 0x1E1B,
  26362. etnahtafoukhhebrew: 0x0591,
  26363. etnahtafoukhlefthebrew: 0x0591,
  26364. etnahtahebrew: 0x0591,
  26365. etnahtalefthebrew: 0x0591,
  26366. eturned: 0x01DD,
  26367. eukorean: 0x3161,
  26368. euro: 0x20AC,
  26369. evowelsignbengali: 0x09C7,
  26370. evowelsigndeva: 0x0947,
  26371. evowelsigngujarati: 0x0AC7,
  26372. exclam: 0x0021,
  26373. exclamarmenian: 0x055C,
  26374. exclamdbl: 0x203C,
  26375. exclamdown: 0x00A1,
  26376. exclamdownsmall: 0xF7A1,
  26377. exclammonospace: 0xFF01,
  26378. exclamsmall: 0xF721,
  26379. existential: 0x2203,
  26380. ezh: 0x0292,
  26381. ezhcaron: 0x01EF,
  26382. ezhcurl: 0x0293,
  26383. ezhreversed: 0x01B9,
  26384. ezhtail: 0x01BA,
  26385. f: 0x0066,
  26386. fadeva: 0x095E,
  26387. fagurmukhi: 0x0A5E,
  26388. fahrenheit: 0x2109,
  26389. fathaarabic: 0x064E,
  26390. fathalowarabic: 0x064E,
  26391. fathatanarabic: 0x064B,
  26392. fbopomofo: 0x3108,
  26393. fcircle: 0x24D5,
  26394. fdotaccent: 0x1E1F,
  26395. feharabic: 0x0641,
  26396. feharmenian: 0x0586,
  26397. fehfinalarabic: 0xFED2,
  26398. fehinitialarabic: 0xFED3,
  26399. fehmedialarabic: 0xFED4,
  26400. feicoptic: 0x03E5,
  26401. female: 0x2640,
  26402. ff: 0xFB00,
  26403. ffi: 0xFB03,
  26404. ffl: 0xFB04,
  26405. fi: 0xFB01,
  26406. fifteencircle: 0x246E,
  26407. fifteenparen: 0x2482,
  26408. fifteenperiod: 0x2496,
  26409. figuredash: 0x2012,
  26410. filledbox: 0x25A0,
  26411. filledrect: 0x25AC,
  26412. finalkaf: 0x05DA,
  26413. finalkafdagesh: 0xFB3A,
  26414. finalkafdageshhebrew: 0xFB3A,
  26415. finalkafhebrew: 0x05DA,
  26416. finalmem: 0x05DD,
  26417. finalmemhebrew: 0x05DD,
  26418. finalnun: 0x05DF,
  26419. finalnunhebrew: 0x05DF,
  26420. finalpe: 0x05E3,
  26421. finalpehebrew: 0x05E3,
  26422. finaltsadi: 0x05E5,
  26423. finaltsadihebrew: 0x05E5,
  26424. firsttonechinese: 0x02C9,
  26425. fisheye: 0x25C9,
  26426. fitacyrillic: 0x0473,
  26427. five: 0x0035,
  26428. fivearabic: 0x0665,
  26429. fivebengali: 0x09EB,
  26430. fivecircle: 0x2464,
  26431. fivecircleinversesansserif: 0x278E,
  26432. fivedeva: 0x096B,
  26433. fiveeighths: 0x215D,
  26434. fivegujarati: 0x0AEB,
  26435. fivegurmukhi: 0x0A6B,
  26436. fivehackarabic: 0x0665,
  26437. fivehangzhou: 0x3025,
  26438. fiveideographicparen: 0x3224,
  26439. fiveinferior: 0x2085,
  26440. fivemonospace: 0xFF15,
  26441. fiveoldstyle: 0xF735,
  26442. fiveparen: 0x2478,
  26443. fiveperiod: 0x248C,
  26444. fivepersian: 0x06F5,
  26445. fiveroman: 0x2174,
  26446. fivesuperior: 0x2075,
  26447. fivethai: 0x0E55,
  26448. fl: 0xFB02,
  26449. florin: 0x0192,
  26450. fmonospace: 0xFF46,
  26451. fmsquare: 0x3399,
  26452. fofanthai: 0x0E1F,
  26453. fofathai: 0x0E1D,
  26454. fongmanthai: 0x0E4F,
  26455. forall: 0x2200,
  26456. four: 0x0034,
  26457. fourarabic: 0x0664,
  26458. fourbengali: 0x09EA,
  26459. fourcircle: 0x2463,
  26460. fourcircleinversesansserif: 0x278D,
  26461. fourdeva: 0x096A,
  26462. fourgujarati: 0x0AEA,
  26463. fourgurmukhi: 0x0A6A,
  26464. fourhackarabic: 0x0664,
  26465. fourhangzhou: 0x3024,
  26466. fourideographicparen: 0x3223,
  26467. fourinferior: 0x2084,
  26468. fourmonospace: 0xFF14,
  26469. fournumeratorbengali: 0x09F7,
  26470. fouroldstyle: 0xF734,
  26471. fourparen: 0x2477,
  26472. fourperiod: 0x248B,
  26473. fourpersian: 0x06F4,
  26474. fourroman: 0x2173,
  26475. foursuperior: 0x2074,
  26476. fourteencircle: 0x246D,
  26477. fourteenparen: 0x2481,
  26478. fourteenperiod: 0x2495,
  26479. fourthai: 0x0E54,
  26480. fourthtonechinese: 0x02CB,
  26481. fparen: 0x24A1,
  26482. fraction: 0x2044,
  26483. franc: 0x20A3,
  26484. g: 0x0067,
  26485. gabengali: 0x0997,
  26486. gacute: 0x01F5,
  26487. gadeva: 0x0917,
  26488. gafarabic: 0x06AF,
  26489. gaffinalarabic: 0xFB93,
  26490. gafinitialarabic: 0xFB94,
  26491. gafmedialarabic: 0xFB95,
  26492. gagujarati: 0x0A97,
  26493. gagurmukhi: 0x0A17,
  26494. gahiragana: 0x304C,
  26495. gakatakana: 0x30AC,
  26496. gamma: 0x03B3,
  26497. gammalatinsmall: 0x0263,
  26498. gammasuperior: 0x02E0,
  26499. gangiacoptic: 0x03EB,
  26500. gbopomofo: 0x310D,
  26501. gbreve: 0x011F,
  26502. gcaron: 0x01E7,
  26503. gcedilla: 0x0123,
  26504. gcircle: 0x24D6,
  26505. gcircumflex: 0x011D,
  26506. gcommaaccent: 0x0123,
  26507. gdot: 0x0121,
  26508. gdotaccent: 0x0121,
  26509. gecyrillic: 0x0433,
  26510. gehiragana: 0x3052,
  26511. gekatakana: 0x30B2,
  26512. geometricallyequal: 0x2251,
  26513. gereshaccenthebrew: 0x059C,
  26514. gereshhebrew: 0x05F3,
  26515. gereshmuqdamhebrew: 0x059D,
  26516. germandbls: 0x00DF,
  26517. gershayimaccenthebrew: 0x059E,
  26518. gershayimhebrew: 0x05F4,
  26519. getamark: 0x3013,
  26520. ghabengali: 0x0998,
  26521. ghadarmenian: 0x0572,
  26522. ghadeva: 0x0918,
  26523. ghagujarati: 0x0A98,
  26524. ghagurmukhi: 0x0A18,
  26525. ghainarabic: 0x063A,
  26526. ghainfinalarabic: 0xFECE,
  26527. ghaininitialarabic: 0xFECF,
  26528. ghainmedialarabic: 0xFED0,
  26529. ghemiddlehookcyrillic: 0x0495,
  26530. ghestrokecyrillic: 0x0493,
  26531. gheupturncyrillic: 0x0491,
  26532. ghhadeva: 0x095A,
  26533. ghhagurmukhi: 0x0A5A,
  26534. ghook: 0x0260,
  26535. ghzsquare: 0x3393,
  26536. gihiragana: 0x304E,
  26537. gikatakana: 0x30AE,
  26538. gimarmenian: 0x0563,
  26539. gimel: 0x05D2,
  26540. gimeldagesh: 0xFB32,
  26541. gimeldageshhebrew: 0xFB32,
  26542. gimelhebrew: 0x05D2,
  26543. gjecyrillic: 0x0453,
  26544. glottalinvertedstroke: 0x01BE,
  26545. glottalstop: 0x0294,
  26546. glottalstopinverted: 0x0296,
  26547. glottalstopmod: 0x02C0,
  26548. glottalstopreversed: 0x0295,
  26549. glottalstopreversedmod: 0x02C1,
  26550. glottalstopreversedsuperior: 0x02E4,
  26551. glottalstopstroke: 0x02A1,
  26552. glottalstopstrokereversed: 0x02A2,
  26553. gmacron: 0x1E21,
  26554. gmonospace: 0xFF47,
  26555. gohiragana: 0x3054,
  26556. gokatakana: 0x30B4,
  26557. gparen: 0x24A2,
  26558. gpasquare: 0x33AC,
  26559. gradient: 0x2207,
  26560. grave: 0x0060,
  26561. gravebelowcmb: 0x0316,
  26562. gravecmb: 0x0300,
  26563. gravecomb: 0x0300,
  26564. gravedeva: 0x0953,
  26565. gravelowmod: 0x02CE,
  26566. gravemonospace: 0xFF40,
  26567. gravetonecmb: 0x0340,
  26568. greater: 0x003E,
  26569. greaterequal: 0x2265,
  26570. greaterequalorless: 0x22DB,
  26571. greatermonospace: 0xFF1E,
  26572. greaterorequivalent: 0x2273,
  26573. greaterorless: 0x2277,
  26574. greateroverequal: 0x2267,
  26575. greatersmall: 0xFE65,
  26576. gscript: 0x0261,
  26577. gstroke: 0x01E5,
  26578. guhiragana: 0x3050,
  26579. guillemotleft: 0x00AB,
  26580. guillemotright: 0x00BB,
  26581. guilsinglleft: 0x2039,
  26582. guilsinglright: 0x203A,
  26583. gukatakana: 0x30B0,
  26584. guramusquare: 0x3318,
  26585. gysquare: 0x33C9,
  26586. h: 0x0068,
  26587. haabkhasiancyrillic: 0x04A9,
  26588. haaltonearabic: 0x06C1,
  26589. habengali: 0x09B9,
  26590. hadescendercyrillic: 0x04B3,
  26591. hadeva: 0x0939,
  26592. hagujarati: 0x0AB9,
  26593. hagurmukhi: 0x0A39,
  26594. haharabic: 0x062D,
  26595. hahfinalarabic: 0xFEA2,
  26596. hahinitialarabic: 0xFEA3,
  26597. hahiragana: 0x306F,
  26598. hahmedialarabic: 0xFEA4,
  26599. haitusquare: 0x332A,
  26600. hakatakana: 0x30CF,
  26601. hakatakanahalfwidth: 0xFF8A,
  26602. halantgurmukhi: 0x0A4D,
  26603. hamzaarabic: 0x0621,
  26604. hamzalowarabic: 0x0621,
  26605. hangulfiller: 0x3164,
  26606. hardsigncyrillic: 0x044A,
  26607. harpoonleftbarbup: 0x21BC,
  26608. harpoonrightbarbup: 0x21C0,
  26609. hasquare: 0x33CA,
  26610. hatafpatah: 0x05B2,
  26611. hatafpatah16: 0x05B2,
  26612. hatafpatah23: 0x05B2,
  26613. hatafpatah2f: 0x05B2,
  26614. hatafpatahhebrew: 0x05B2,
  26615. hatafpatahnarrowhebrew: 0x05B2,
  26616. hatafpatahquarterhebrew: 0x05B2,
  26617. hatafpatahwidehebrew: 0x05B2,
  26618. hatafqamats: 0x05B3,
  26619. hatafqamats1b: 0x05B3,
  26620. hatafqamats28: 0x05B3,
  26621. hatafqamats34: 0x05B3,
  26622. hatafqamatshebrew: 0x05B3,
  26623. hatafqamatsnarrowhebrew: 0x05B3,
  26624. hatafqamatsquarterhebrew: 0x05B3,
  26625. hatafqamatswidehebrew: 0x05B3,
  26626. hatafsegol: 0x05B1,
  26627. hatafsegol17: 0x05B1,
  26628. hatafsegol24: 0x05B1,
  26629. hatafsegol30: 0x05B1,
  26630. hatafsegolhebrew: 0x05B1,
  26631. hatafsegolnarrowhebrew: 0x05B1,
  26632. hatafsegolquarterhebrew: 0x05B1,
  26633. hatafsegolwidehebrew: 0x05B1,
  26634. hbar: 0x0127,
  26635. hbopomofo: 0x310F,
  26636. hbrevebelow: 0x1E2B,
  26637. hcedilla: 0x1E29,
  26638. hcircle: 0x24D7,
  26639. hcircumflex: 0x0125,
  26640. hdieresis: 0x1E27,
  26641. hdotaccent: 0x1E23,
  26642. hdotbelow: 0x1E25,
  26643. he: 0x05D4,
  26644. heart: 0x2665,
  26645. heartsuitblack: 0x2665,
  26646. heartsuitwhite: 0x2661,
  26647. hedagesh: 0xFB34,
  26648. hedageshhebrew: 0xFB34,
  26649. hehaltonearabic: 0x06C1,
  26650. heharabic: 0x0647,
  26651. hehebrew: 0x05D4,
  26652. hehfinalaltonearabic: 0xFBA7,
  26653. hehfinalalttwoarabic: 0xFEEA,
  26654. hehfinalarabic: 0xFEEA,
  26655. hehhamzaabovefinalarabic: 0xFBA5,
  26656. hehhamzaaboveisolatedarabic: 0xFBA4,
  26657. hehinitialaltonearabic: 0xFBA8,
  26658. hehinitialarabic: 0xFEEB,
  26659. hehiragana: 0x3078,
  26660. hehmedialaltonearabic: 0xFBA9,
  26661. hehmedialarabic: 0xFEEC,
  26662. heiseierasquare: 0x337B,
  26663. hekatakana: 0x30D8,
  26664. hekatakanahalfwidth: 0xFF8D,
  26665. hekutaarusquare: 0x3336,
  26666. henghook: 0x0267,
  26667. herutusquare: 0x3339,
  26668. het: 0x05D7,
  26669. hethebrew: 0x05D7,
  26670. hhook: 0x0266,
  26671. hhooksuperior: 0x02B1,
  26672. hieuhacirclekorean: 0x327B,
  26673. hieuhaparenkorean: 0x321B,
  26674. hieuhcirclekorean: 0x326D,
  26675. hieuhkorean: 0x314E,
  26676. hieuhparenkorean: 0x320D,
  26677. hihiragana: 0x3072,
  26678. hikatakana: 0x30D2,
  26679. hikatakanahalfwidth: 0xFF8B,
  26680. hiriq: 0x05B4,
  26681. hiriq14: 0x05B4,
  26682. hiriq21: 0x05B4,
  26683. hiriq2d: 0x05B4,
  26684. hiriqhebrew: 0x05B4,
  26685. hiriqnarrowhebrew: 0x05B4,
  26686. hiriqquarterhebrew: 0x05B4,
  26687. hiriqwidehebrew: 0x05B4,
  26688. hlinebelow: 0x1E96,
  26689. hmonospace: 0xFF48,
  26690. hoarmenian: 0x0570,
  26691. hohipthai: 0x0E2B,
  26692. hohiragana: 0x307B,
  26693. hokatakana: 0x30DB,
  26694. hokatakanahalfwidth: 0xFF8E,
  26695. holam: 0x05B9,
  26696. holam19: 0x05B9,
  26697. holam26: 0x05B9,
  26698. holam32: 0x05B9,
  26699. holamhebrew: 0x05B9,
  26700. holamnarrowhebrew: 0x05B9,
  26701. holamquarterhebrew: 0x05B9,
  26702. holamwidehebrew: 0x05B9,
  26703. honokhukthai: 0x0E2E,
  26704. hookabovecomb: 0x0309,
  26705. hookcmb: 0x0309,
  26706. hookpalatalizedbelowcmb: 0x0321,
  26707. hookretroflexbelowcmb: 0x0322,
  26708. hoonsquare: 0x3342,
  26709. horicoptic: 0x03E9,
  26710. horizontalbar: 0x2015,
  26711. horncmb: 0x031B,
  26712. hotsprings: 0x2668,
  26713. house: 0x2302,
  26714. hparen: 0x24A3,
  26715. hsuperior: 0x02B0,
  26716. hturned: 0x0265,
  26717. huhiragana: 0x3075,
  26718. huiitosquare: 0x3333,
  26719. hukatakana: 0x30D5,
  26720. hukatakanahalfwidth: 0xFF8C,
  26721. hungarumlaut: 0x02DD,
  26722. hungarumlautcmb: 0x030B,
  26723. hv: 0x0195,
  26724. hyphen: 0x002D,
  26725. hypheninferior: 0xF6E5,
  26726. hyphenmonospace: 0xFF0D,
  26727. hyphensmall: 0xFE63,
  26728. hyphensuperior: 0xF6E6,
  26729. hyphentwo: 0x2010,
  26730. i: 0x0069,
  26731. iacute: 0x00ED,
  26732. iacyrillic: 0x044F,
  26733. ibengali: 0x0987,
  26734. ibopomofo: 0x3127,
  26735. ibreve: 0x012D,
  26736. icaron: 0x01D0,
  26737. icircle: 0x24D8,
  26738. icircumflex: 0x00EE,
  26739. icyrillic: 0x0456,
  26740. idblgrave: 0x0209,
  26741. ideographearthcircle: 0x328F,
  26742. ideographfirecircle: 0x328B,
  26743. ideographicallianceparen: 0x323F,
  26744. ideographiccallparen: 0x323A,
  26745. ideographiccentrecircle: 0x32A5,
  26746. ideographicclose: 0x3006,
  26747. ideographiccomma: 0x3001,
  26748. ideographiccommaleft: 0xFF64,
  26749. ideographiccongratulationparen: 0x3237,
  26750. ideographiccorrectcircle: 0x32A3,
  26751. ideographicearthparen: 0x322F,
  26752. ideographicenterpriseparen: 0x323D,
  26753. ideographicexcellentcircle: 0x329D,
  26754. ideographicfestivalparen: 0x3240,
  26755. ideographicfinancialcircle: 0x3296,
  26756. ideographicfinancialparen: 0x3236,
  26757. ideographicfireparen: 0x322B,
  26758. ideographichaveparen: 0x3232,
  26759. ideographichighcircle: 0x32A4,
  26760. ideographiciterationmark: 0x3005,
  26761. ideographiclaborcircle: 0x3298,
  26762. ideographiclaborparen: 0x3238,
  26763. ideographicleftcircle: 0x32A7,
  26764. ideographiclowcircle: 0x32A6,
  26765. ideographicmedicinecircle: 0x32A9,
  26766. ideographicmetalparen: 0x322E,
  26767. ideographicmoonparen: 0x322A,
  26768. ideographicnameparen: 0x3234,
  26769. ideographicperiod: 0x3002,
  26770. ideographicprintcircle: 0x329E,
  26771. ideographicreachparen: 0x3243,
  26772. ideographicrepresentparen: 0x3239,
  26773. ideographicresourceparen: 0x323E,
  26774. ideographicrightcircle: 0x32A8,
  26775. ideographicsecretcircle: 0x3299,
  26776. ideographicselfparen: 0x3242,
  26777. ideographicsocietyparen: 0x3233,
  26778. ideographicspace: 0x3000,
  26779. ideographicspecialparen: 0x3235,
  26780. ideographicstockparen: 0x3231,
  26781. ideographicstudyparen: 0x323B,
  26782. ideographicsunparen: 0x3230,
  26783. ideographicsuperviseparen: 0x323C,
  26784. ideographicwaterparen: 0x322C,
  26785. ideographicwoodparen: 0x322D,
  26786. ideographiczero: 0x3007,
  26787. ideographmetalcircle: 0x328E,
  26788. ideographmooncircle: 0x328A,
  26789. ideographnamecircle: 0x3294,
  26790. ideographsuncircle: 0x3290,
  26791. ideographwatercircle: 0x328C,
  26792. ideographwoodcircle: 0x328D,
  26793. ideva: 0x0907,
  26794. idieresis: 0x00EF,
  26795. idieresisacute: 0x1E2F,
  26796. idieresiscyrillic: 0x04E5,
  26797. idotbelow: 0x1ECB,
  26798. iebrevecyrillic: 0x04D7,
  26799. iecyrillic: 0x0435,
  26800. ieungacirclekorean: 0x3275,
  26801. ieungaparenkorean: 0x3215,
  26802. ieungcirclekorean: 0x3267,
  26803. ieungkorean: 0x3147,
  26804. ieungparenkorean: 0x3207,
  26805. igrave: 0x00EC,
  26806. igujarati: 0x0A87,
  26807. igurmukhi: 0x0A07,
  26808. ihiragana: 0x3044,
  26809. ihookabove: 0x1EC9,
  26810. iibengali: 0x0988,
  26811. iicyrillic: 0x0438,
  26812. iideva: 0x0908,
  26813. iigujarati: 0x0A88,
  26814. iigurmukhi: 0x0A08,
  26815. iimatragurmukhi: 0x0A40,
  26816. iinvertedbreve: 0x020B,
  26817. iishortcyrillic: 0x0439,
  26818. iivowelsignbengali: 0x09C0,
  26819. iivowelsigndeva: 0x0940,
  26820. iivowelsigngujarati: 0x0AC0,
  26821. ij: 0x0133,
  26822. ikatakana: 0x30A4,
  26823. ikatakanahalfwidth: 0xFF72,
  26824. ikorean: 0x3163,
  26825. ilde: 0x02DC,
  26826. iluyhebrew: 0x05AC,
  26827. imacron: 0x012B,
  26828. imacroncyrillic: 0x04E3,
  26829. imageorapproximatelyequal: 0x2253,
  26830. imatragurmukhi: 0x0A3F,
  26831. imonospace: 0xFF49,
  26832. increment: 0x2206,
  26833. infinity: 0x221E,
  26834. iniarmenian: 0x056B,
  26835. integral: 0x222B,
  26836. integralbottom: 0x2321,
  26837. integralbt: 0x2321,
  26838. integralex: 0xF8F5,
  26839. integraltop: 0x2320,
  26840. integraltp: 0x2320,
  26841. intersection: 0x2229,
  26842. intisquare: 0x3305,
  26843. invbullet: 0x25D8,
  26844. invcircle: 0x25D9,
  26845. invsmileface: 0x263B,
  26846. iocyrillic: 0x0451,
  26847. iogonek: 0x012F,
  26848. iota: 0x03B9,
  26849. iotadieresis: 0x03CA,
  26850. iotadieresistonos: 0x0390,
  26851. iotalatin: 0x0269,
  26852. iotatonos: 0x03AF,
  26853. iparen: 0x24A4,
  26854. irigurmukhi: 0x0A72,
  26855. ismallhiragana: 0x3043,
  26856. ismallkatakana: 0x30A3,
  26857. ismallkatakanahalfwidth: 0xFF68,
  26858. issharbengali: 0x09FA,
  26859. istroke: 0x0268,
  26860. isuperior: 0xF6ED,
  26861. iterationhiragana: 0x309D,
  26862. iterationkatakana: 0x30FD,
  26863. itilde: 0x0129,
  26864. itildebelow: 0x1E2D,
  26865. iubopomofo: 0x3129,
  26866. iucyrillic: 0x044E,
  26867. ivowelsignbengali: 0x09BF,
  26868. ivowelsigndeva: 0x093F,
  26869. ivowelsigngujarati: 0x0ABF,
  26870. izhitsacyrillic: 0x0475,
  26871. izhitsadblgravecyrillic: 0x0477,
  26872. j: 0x006A,
  26873. jaarmenian: 0x0571,
  26874. jabengali: 0x099C,
  26875. jadeva: 0x091C,
  26876. jagujarati: 0x0A9C,
  26877. jagurmukhi: 0x0A1C,
  26878. jbopomofo: 0x3110,
  26879. jcaron: 0x01F0,
  26880. jcircle: 0x24D9,
  26881. jcircumflex: 0x0135,
  26882. jcrossedtail: 0x029D,
  26883. jdotlessstroke: 0x025F,
  26884. jecyrillic: 0x0458,
  26885. jeemarabic: 0x062C,
  26886. jeemfinalarabic: 0xFE9E,
  26887. jeeminitialarabic: 0xFE9F,
  26888. jeemmedialarabic: 0xFEA0,
  26889. jeharabic: 0x0698,
  26890. jehfinalarabic: 0xFB8B,
  26891. jhabengali: 0x099D,
  26892. jhadeva: 0x091D,
  26893. jhagujarati: 0x0A9D,
  26894. jhagurmukhi: 0x0A1D,
  26895. jheharmenian: 0x057B,
  26896. jis: 0x3004,
  26897. jmonospace: 0xFF4A,
  26898. jparen: 0x24A5,
  26899. jsuperior: 0x02B2,
  26900. k: 0x006B,
  26901. kabashkircyrillic: 0x04A1,
  26902. kabengali: 0x0995,
  26903. kacute: 0x1E31,
  26904. kacyrillic: 0x043A,
  26905. kadescendercyrillic: 0x049B,
  26906. kadeva: 0x0915,
  26907. kaf: 0x05DB,
  26908. kafarabic: 0x0643,
  26909. kafdagesh: 0xFB3B,
  26910. kafdageshhebrew: 0xFB3B,
  26911. kaffinalarabic: 0xFEDA,
  26912. kafhebrew: 0x05DB,
  26913. kafinitialarabic: 0xFEDB,
  26914. kafmedialarabic: 0xFEDC,
  26915. kafrafehebrew: 0xFB4D,
  26916. kagujarati: 0x0A95,
  26917. kagurmukhi: 0x0A15,
  26918. kahiragana: 0x304B,
  26919. kahookcyrillic: 0x04C4,
  26920. kakatakana: 0x30AB,
  26921. kakatakanahalfwidth: 0xFF76,
  26922. kappa: 0x03BA,
  26923. kappasymbolgreek: 0x03F0,
  26924. kapyeounmieumkorean: 0x3171,
  26925. kapyeounphieuphkorean: 0x3184,
  26926. kapyeounpieupkorean: 0x3178,
  26927. kapyeounssangpieupkorean: 0x3179,
  26928. karoriisquare: 0x330D,
  26929. kashidaautoarabic: 0x0640,
  26930. kashidaautonosidebearingarabic: 0x0640,
  26931. kasmallkatakana: 0x30F5,
  26932. kasquare: 0x3384,
  26933. kasraarabic: 0x0650,
  26934. kasratanarabic: 0x064D,
  26935. kastrokecyrillic: 0x049F,
  26936. katahiraprolongmarkhalfwidth: 0xFF70,
  26937. kaverticalstrokecyrillic: 0x049D,
  26938. kbopomofo: 0x310E,
  26939. kcalsquare: 0x3389,
  26940. kcaron: 0x01E9,
  26941. kcedilla: 0x0137,
  26942. kcircle: 0x24DA,
  26943. kcommaaccent: 0x0137,
  26944. kdotbelow: 0x1E33,
  26945. keharmenian: 0x0584,
  26946. kehiragana: 0x3051,
  26947. kekatakana: 0x30B1,
  26948. kekatakanahalfwidth: 0xFF79,
  26949. kenarmenian: 0x056F,
  26950. kesmallkatakana: 0x30F6,
  26951. kgreenlandic: 0x0138,
  26952. khabengali: 0x0996,
  26953. khacyrillic: 0x0445,
  26954. khadeva: 0x0916,
  26955. khagujarati: 0x0A96,
  26956. khagurmukhi: 0x0A16,
  26957. khaharabic: 0x062E,
  26958. khahfinalarabic: 0xFEA6,
  26959. khahinitialarabic: 0xFEA7,
  26960. khahmedialarabic: 0xFEA8,
  26961. kheicoptic: 0x03E7,
  26962. khhadeva: 0x0959,
  26963. khhagurmukhi: 0x0A59,
  26964. khieukhacirclekorean: 0x3278,
  26965. khieukhaparenkorean: 0x3218,
  26966. khieukhcirclekorean: 0x326A,
  26967. khieukhkorean: 0x314B,
  26968. khieukhparenkorean: 0x320A,
  26969. khokhaithai: 0x0E02,
  26970. khokhonthai: 0x0E05,
  26971. khokhuatthai: 0x0E03,
  26972. khokhwaithai: 0x0E04,
  26973. khomutthai: 0x0E5B,
  26974. khook: 0x0199,
  26975. khorakhangthai: 0x0E06,
  26976. khzsquare: 0x3391,
  26977. kihiragana: 0x304D,
  26978. kikatakana: 0x30AD,
  26979. kikatakanahalfwidth: 0xFF77,
  26980. kiroguramusquare: 0x3315,
  26981. kiromeetorusquare: 0x3316,
  26982. kirosquare: 0x3314,
  26983. kiyeokacirclekorean: 0x326E,
  26984. kiyeokaparenkorean: 0x320E,
  26985. kiyeokcirclekorean: 0x3260,
  26986. kiyeokkorean: 0x3131,
  26987. kiyeokparenkorean: 0x3200,
  26988. kiyeoksioskorean: 0x3133,
  26989. kjecyrillic: 0x045C,
  26990. klinebelow: 0x1E35,
  26991. klsquare: 0x3398,
  26992. kmcubedsquare: 0x33A6,
  26993. kmonospace: 0xFF4B,
  26994. kmsquaredsquare: 0x33A2,
  26995. kohiragana: 0x3053,
  26996. kohmsquare: 0x33C0,
  26997. kokaithai: 0x0E01,
  26998. kokatakana: 0x30B3,
  26999. kokatakanahalfwidth: 0xFF7A,
  27000. kooposquare: 0x331E,
  27001. koppacyrillic: 0x0481,
  27002. koreanstandardsymbol: 0x327F,
  27003. koroniscmb: 0x0343,
  27004. kparen: 0x24A6,
  27005. kpasquare: 0x33AA,
  27006. ksicyrillic: 0x046F,
  27007. ktsquare: 0x33CF,
  27008. kturned: 0x029E,
  27009. kuhiragana: 0x304F,
  27010. kukatakana: 0x30AF,
  27011. kukatakanahalfwidth: 0xFF78,
  27012. kvsquare: 0x33B8,
  27013. kwsquare: 0x33BE,
  27014. l: 0x006C,
  27015. labengali: 0x09B2,
  27016. lacute: 0x013A,
  27017. ladeva: 0x0932,
  27018. lagujarati: 0x0AB2,
  27019. lagurmukhi: 0x0A32,
  27020. lakkhangyaothai: 0x0E45,
  27021. lamaleffinalarabic: 0xFEFC,
  27022. lamalefhamzaabovefinalarabic: 0xFEF8,
  27023. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  27024. lamalefhamzabelowfinalarabic: 0xFEFA,
  27025. lamalefhamzabelowisolatedarabic: 0xFEF9,
  27026. lamalefisolatedarabic: 0xFEFB,
  27027. lamalefmaddaabovefinalarabic: 0xFEF6,
  27028. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  27029. lamarabic: 0x0644,
  27030. lambda: 0x03BB,
  27031. lambdastroke: 0x019B,
  27032. lamed: 0x05DC,
  27033. lameddagesh: 0xFB3C,
  27034. lameddageshhebrew: 0xFB3C,
  27035. lamedhebrew: 0x05DC,
  27036. lamfinalarabic: 0xFEDE,
  27037. lamhahinitialarabic: 0xFCCA,
  27038. laminitialarabic: 0xFEDF,
  27039. lamjeeminitialarabic: 0xFCC9,
  27040. lamkhahinitialarabic: 0xFCCB,
  27041. lamlamhehisolatedarabic: 0xFDF2,
  27042. lammedialarabic: 0xFEE0,
  27043. lammeemhahinitialarabic: 0xFD88,
  27044. lammeeminitialarabic: 0xFCCC,
  27045. largecircle: 0x25EF,
  27046. lbar: 0x019A,
  27047. lbelt: 0x026C,
  27048. lbopomofo: 0x310C,
  27049. lcaron: 0x013E,
  27050. lcedilla: 0x013C,
  27051. lcircle: 0x24DB,
  27052. lcircumflexbelow: 0x1E3D,
  27053. lcommaaccent: 0x013C,
  27054. ldot: 0x0140,
  27055. ldotaccent: 0x0140,
  27056. ldotbelow: 0x1E37,
  27057. ldotbelowmacron: 0x1E39,
  27058. leftangleabovecmb: 0x031A,
  27059. lefttackbelowcmb: 0x0318,
  27060. less: 0x003C,
  27061. lessequal: 0x2264,
  27062. lessequalorgreater: 0x22DA,
  27063. lessmonospace: 0xFF1C,
  27064. lessorequivalent: 0x2272,
  27065. lessorgreater: 0x2276,
  27066. lessoverequal: 0x2266,
  27067. lesssmall: 0xFE64,
  27068. lezh: 0x026E,
  27069. lfblock: 0x258C,
  27070. lhookretroflex: 0x026D,
  27071. lira: 0x20A4,
  27072. liwnarmenian: 0x056C,
  27073. lj: 0x01C9,
  27074. ljecyrillic: 0x0459,
  27075. ll: 0xF6C0,
  27076. lladeva: 0x0933,
  27077. llagujarati: 0x0AB3,
  27078. llinebelow: 0x1E3B,
  27079. llladeva: 0x0934,
  27080. llvocalicbengali: 0x09E1,
  27081. llvocalicdeva: 0x0961,
  27082. llvocalicvowelsignbengali: 0x09E3,
  27083. llvocalicvowelsigndeva: 0x0963,
  27084. lmiddletilde: 0x026B,
  27085. lmonospace: 0xFF4C,
  27086. lmsquare: 0x33D0,
  27087. lochulathai: 0x0E2C,
  27088. logicaland: 0x2227,
  27089. logicalnot: 0x00AC,
  27090. logicalnotreversed: 0x2310,
  27091. logicalor: 0x2228,
  27092. lolingthai: 0x0E25,
  27093. longs: 0x017F,
  27094. lowlinecenterline: 0xFE4E,
  27095. lowlinecmb: 0x0332,
  27096. lowlinedashed: 0xFE4D,
  27097. lozenge: 0x25CA,
  27098. lparen: 0x24A7,
  27099. lslash: 0x0142,
  27100. lsquare: 0x2113,
  27101. lsuperior: 0xF6EE,
  27102. ltshade: 0x2591,
  27103. luthai: 0x0E26,
  27104. lvocalicbengali: 0x098C,
  27105. lvocalicdeva: 0x090C,
  27106. lvocalicvowelsignbengali: 0x09E2,
  27107. lvocalicvowelsigndeva: 0x0962,
  27108. lxsquare: 0x33D3,
  27109. m: 0x006D,
  27110. mabengali: 0x09AE,
  27111. macron: 0x00AF,
  27112. macronbelowcmb: 0x0331,
  27113. macroncmb: 0x0304,
  27114. macronlowmod: 0x02CD,
  27115. macronmonospace: 0xFFE3,
  27116. macute: 0x1E3F,
  27117. madeva: 0x092E,
  27118. magujarati: 0x0AAE,
  27119. magurmukhi: 0x0A2E,
  27120. mahapakhhebrew: 0x05A4,
  27121. mahapakhlefthebrew: 0x05A4,
  27122. mahiragana: 0x307E,
  27123. maichattawalowleftthai: 0xF895,
  27124. maichattawalowrightthai: 0xF894,
  27125. maichattawathai: 0x0E4B,
  27126. maichattawaupperleftthai: 0xF893,
  27127. maieklowleftthai: 0xF88C,
  27128. maieklowrightthai: 0xF88B,
  27129. maiekthai: 0x0E48,
  27130. maiekupperleftthai: 0xF88A,
  27131. maihanakatleftthai: 0xF884,
  27132. maihanakatthai: 0x0E31,
  27133. maitaikhuleftthai: 0xF889,
  27134. maitaikhuthai: 0x0E47,
  27135. maitholowleftthai: 0xF88F,
  27136. maitholowrightthai: 0xF88E,
  27137. maithothai: 0x0E49,
  27138. maithoupperleftthai: 0xF88D,
  27139. maitrilowleftthai: 0xF892,
  27140. maitrilowrightthai: 0xF891,
  27141. maitrithai: 0x0E4A,
  27142. maitriupperleftthai: 0xF890,
  27143. maiyamokthai: 0x0E46,
  27144. makatakana: 0x30DE,
  27145. makatakanahalfwidth: 0xFF8F,
  27146. male: 0x2642,
  27147. mansyonsquare: 0x3347,
  27148. maqafhebrew: 0x05BE,
  27149. mars: 0x2642,
  27150. masoracirclehebrew: 0x05AF,
  27151. masquare: 0x3383,
  27152. mbopomofo: 0x3107,
  27153. mbsquare: 0x33D4,
  27154. mcircle: 0x24DC,
  27155. mcubedsquare: 0x33A5,
  27156. mdotaccent: 0x1E41,
  27157. mdotbelow: 0x1E43,
  27158. meemarabic: 0x0645,
  27159. meemfinalarabic: 0xFEE2,
  27160. meeminitialarabic: 0xFEE3,
  27161. meemmedialarabic: 0xFEE4,
  27162. meemmeeminitialarabic: 0xFCD1,
  27163. meemmeemisolatedarabic: 0xFC48,
  27164. meetorusquare: 0x334D,
  27165. mehiragana: 0x3081,
  27166. meizierasquare: 0x337E,
  27167. mekatakana: 0x30E1,
  27168. mekatakanahalfwidth: 0xFF92,
  27169. mem: 0x05DE,
  27170. memdagesh: 0xFB3E,
  27171. memdageshhebrew: 0xFB3E,
  27172. memhebrew: 0x05DE,
  27173. menarmenian: 0x0574,
  27174. merkhahebrew: 0x05A5,
  27175. merkhakefulahebrew: 0x05A6,
  27176. merkhakefulalefthebrew: 0x05A6,
  27177. merkhalefthebrew: 0x05A5,
  27178. mhook: 0x0271,
  27179. mhzsquare: 0x3392,
  27180. middledotkatakanahalfwidth: 0xFF65,
  27181. middot: 0x00B7,
  27182. mieumacirclekorean: 0x3272,
  27183. mieumaparenkorean: 0x3212,
  27184. mieumcirclekorean: 0x3264,
  27185. mieumkorean: 0x3141,
  27186. mieumpansioskorean: 0x3170,
  27187. mieumparenkorean: 0x3204,
  27188. mieumpieupkorean: 0x316E,
  27189. mieumsioskorean: 0x316F,
  27190. mihiragana: 0x307F,
  27191. mikatakana: 0x30DF,
  27192. mikatakanahalfwidth: 0xFF90,
  27193. minus: 0x2212,
  27194. minusbelowcmb: 0x0320,
  27195. minuscircle: 0x2296,
  27196. minusmod: 0x02D7,
  27197. minusplus: 0x2213,
  27198. minute: 0x2032,
  27199. miribaarusquare: 0x334A,
  27200. mirisquare: 0x3349,
  27201. mlonglegturned: 0x0270,
  27202. mlsquare: 0x3396,
  27203. mmcubedsquare: 0x33A3,
  27204. mmonospace: 0xFF4D,
  27205. mmsquaredsquare: 0x339F,
  27206. mohiragana: 0x3082,
  27207. mohmsquare: 0x33C1,
  27208. mokatakana: 0x30E2,
  27209. mokatakanahalfwidth: 0xFF93,
  27210. molsquare: 0x33D6,
  27211. momathai: 0x0E21,
  27212. moverssquare: 0x33A7,
  27213. moverssquaredsquare: 0x33A8,
  27214. mparen: 0x24A8,
  27215. mpasquare: 0x33AB,
  27216. mssquare: 0x33B3,
  27217. msuperior: 0xF6EF,
  27218. mturned: 0x026F,
  27219. mu: 0x00B5,
  27220. mu1: 0x00B5,
  27221. muasquare: 0x3382,
  27222. muchgreater: 0x226B,
  27223. muchless: 0x226A,
  27224. mufsquare: 0x338C,
  27225. mugreek: 0x03BC,
  27226. mugsquare: 0x338D,
  27227. muhiragana: 0x3080,
  27228. mukatakana: 0x30E0,
  27229. mukatakanahalfwidth: 0xFF91,
  27230. mulsquare: 0x3395,
  27231. multiply: 0x00D7,
  27232. mumsquare: 0x339B,
  27233. munahhebrew: 0x05A3,
  27234. munahlefthebrew: 0x05A3,
  27235. musicalnote: 0x266A,
  27236. musicalnotedbl: 0x266B,
  27237. musicflatsign: 0x266D,
  27238. musicsharpsign: 0x266F,
  27239. mussquare: 0x33B2,
  27240. muvsquare: 0x33B6,
  27241. muwsquare: 0x33BC,
  27242. mvmegasquare: 0x33B9,
  27243. mvsquare: 0x33B7,
  27244. mwmegasquare: 0x33BF,
  27245. mwsquare: 0x33BD,
  27246. n: 0x006E,
  27247. nabengali: 0x09A8,
  27248. nabla: 0x2207,
  27249. nacute: 0x0144,
  27250. nadeva: 0x0928,
  27251. nagujarati: 0x0AA8,
  27252. nagurmukhi: 0x0A28,
  27253. nahiragana: 0x306A,
  27254. nakatakana: 0x30CA,
  27255. nakatakanahalfwidth: 0xFF85,
  27256. napostrophe: 0x0149,
  27257. nasquare: 0x3381,
  27258. nbopomofo: 0x310B,
  27259. nbspace: 0x00A0,
  27260. ncaron: 0x0148,
  27261. ncedilla: 0x0146,
  27262. ncircle: 0x24DD,
  27263. ncircumflexbelow: 0x1E4B,
  27264. ncommaaccent: 0x0146,
  27265. ndotaccent: 0x1E45,
  27266. ndotbelow: 0x1E47,
  27267. nehiragana: 0x306D,
  27268. nekatakana: 0x30CD,
  27269. nekatakanahalfwidth: 0xFF88,
  27270. newsheqelsign: 0x20AA,
  27271. nfsquare: 0x338B,
  27272. ngabengali: 0x0999,
  27273. ngadeva: 0x0919,
  27274. ngagujarati: 0x0A99,
  27275. ngagurmukhi: 0x0A19,
  27276. ngonguthai: 0x0E07,
  27277. nhiragana: 0x3093,
  27278. nhookleft: 0x0272,
  27279. nhookretroflex: 0x0273,
  27280. nieunacirclekorean: 0x326F,
  27281. nieunaparenkorean: 0x320F,
  27282. nieuncieuckorean: 0x3135,
  27283. nieuncirclekorean: 0x3261,
  27284. nieunhieuhkorean: 0x3136,
  27285. nieunkorean: 0x3134,
  27286. nieunpansioskorean: 0x3168,
  27287. nieunparenkorean: 0x3201,
  27288. nieunsioskorean: 0x3167,
  27289. nieuntikeutkorean: 0x3166,
  27290. nihiragana: 0x306B,
  27291. nikatakana: 0x30CB,
  27292. nikatakanahalfwidth: 0xFF86,
  27293. nikhahitleftthai: 0xF899,
  27294. nikhahitthai: 0x0E4D,
  27295. nine: 0x0039,
  27296. ninearabic: 0x0669,
  27297. ninebengali: 0x09EF,
  27298. ninecircle: 0x2468,
  27299. ninecircleinversesansserif: 0x2792,
  27300. ninedeva: 0x096F,
  27301. ninegujarati: 0x0AEF,
  27302. ninegurmukhi: 0x0A6F,
  27303. ninehackarabic: 0x0669,
  27304. ninehangzhou: 0x3029,
  27305. nineideographicparen: 0x3228,
  27306. nineinferior: 0x2089,
  27307. ninemonospace: 0xFF19,
  27308. nineoldstyle: 0xF739,
  27309. nineparen: 0x247C,
  27310. nineperiod: 0x2490,
  27311. ninepersian: 0x06F9,
  27312. nineroman: 0x2178,
  27313. ninesuperior: 0x2079,
  27314. nineteencircle: 0x2472,
  27315. nineteenparen: 0x2486,
  27316. nineteenperiod: 0x249A,
  27317. ninethai: 0x0E59,
  27318. nj: 0x01CC,
  27319. njecyrillic: 0x045A,
  27320. nkatakana: 0x30F3,
  27321. nkatakanahalfwidth: 0xFF9D,
  27322. nlegrightlong: 0x019E,
  27323. nlinebelow: 0x1E49,
  27324. nmonospace: 0xFF4E,
  27325. nmsquare: 0x339A,
  27326. nnabengali: 0x09A3,
  27327. nnadeva: 0x0923,
  27328. nnagujarati: 0x0AA3,
  27329. nnagurmukhi: 0x0A23,
  27330. nnnadeva: 0x0929,
  27331. nohiragana: 0x306E,
  27332. nokatakana: 0x30CE,
  27333. nokatakanahalfwidth: 0xFF89,
  27334. nonbreakingspace: 0x00A0,
  27335. nonenthai: 0x0E13,
  27336. nonuthai: 0x0E19,
  27337. noonarabic: 0x0646,
  27338. noonfinalarabic: 0xFEE6,
  27339. noonghunnaarabic: 0x06BA,
  27340. noonghunnafinalarabic: 0xFB9F,
  27341. nooninitialarabic: 0xFEE7,
  27342. noonjeeminitialarabic: 0xFCD2,
  27343. noonjeemisolatedarabic: 0xFC4B,
  27344. noonmedialarabic: 0xFEE8,
  27345. noonmeeminitialarabic: 0xFCD5,
  27346. noonmeemisolatedarabic: 0xFC4E,
  27347. noonnoonfinalarabic: 0xFC8D,
  27348. notcontains: 0x220C,
  27349. notelement: 0x2209,
  27350. notelementof: 0x2209,
  27351. notequal: 0x2260,
  27352. notgreater: 0x226F,
  27353. notgreaternorequal: 0x2271,
  27354. notgreaternorless: 0x2279,
  27355. notidentical: 0x2262,
  27356. notless: 0x226E,
  27357. notlessnorequal: 0x2270,
  27358. notparallel: 0x2226,
  27359. notprecedes: 0x2280,
  27360. notsubset: 0x2284,
  27361. notsucceeds: 0x2281,
  27362. notsuperset: 0x2285,
  27363. nowarmenian: 0x0576,
  27364. nparen: 0x24A9,
  27365. nssquare: 0x33B1,
  27366. nsuperior: 0x207F,
  27367. ntilde: 0x00F1,
  27368. nu: 0x03BD,
  27369. nuhiragana: 0x306C,
  27370. nukatakana: 0x30CC,
  27371. nukatakanahalfwidth: 0xFF87,
  27372. nuktabengali: 0x09BC,
  27373. nuktadeva: 0x093C,
  27374. nuktagujarati: 0x0ABC,
  27375. nuktagurmukhi: 0x0A3C,
  27376. numbersign: 0x0023,
  27377. numbersignmonospace: 0xFF03,
  27378. numbersignsmall: 0xFE5F,
  27379. numeralsigngreek: 0x0374,
  27380. numeralsignlowergreek: 0x0375,
  27381. numero: 0x2116,
  27382. nun: 0x05E0,
  27383. nundagesh: 0xFB40,
  27384. nundageshhebrew: 0xFB40,
  27385. nunhebrew: 0x05E0,
  27386. nvsquare: 0x33B5,
  27387. nwsquare: 0x33BB,
  27388. nyabengali: 0x099E,
  27389. nyadeva: 0x091E,
  27390. nyagujarati: 0x0A9E,
  27391. nyagurmukhi: 0x0A1E,
  27392. o: 0x006F,
  27393. oacute: 0x00F3,
  27394. oangthai: 0x0E2D,
  27395. obarred: 0x0275,
  27396. obarredcyrillic: 0x04E9,
  27397. obarreddieresiscyrillic: 0x04EB,
  27398. obengali: 0x0993,
  27399. obopomofo: 0x311B,
  27400. obreve: 0x014F,
  27401. ocandradeva: 0x0911,
  27402. ocandragujarati: 0x0A91,
  27403. ocandravowelsigndeva: 0x0949,
  27404. ocandravowelsigngujarati: 0x0AC9,
  27405. ocaron: 0x01D2,
  27406. ocircle: 0x24DE,
  27407. ocircumflex: 0x00F4,
  27408. ocircumflexacute: 0x1ED1,
  27409. ocircumflexdotbelow: 0x1ED9,
  27410. ocircumflexgrave: 0x1ED3,
  27411. ocircumflexhookabove: 0x1ED5,
  27412. ocircumflextilde: 0x1ED7,
  27413. ocyrillic: 0x043E,
  27414. odblacute: 0x0151,
  27415. odblgrave: 0x020D,
  27416. odeva: 0x0913,
  27417. odieresis: 0x00F6,
  27418. odieresiscyrillic: 0x04E7,
  27419. odotbelow: 0x1ECD,
  27420. oe: 0x0153,
  27421. oekorean: 0x315A,
  27422. ogonek: 0x02DB,
  27423. ogonekcmb: 0x0328,
  27424. ograve: 0x00F2,
  27425. ogujarati: 0x0A93,
  27426. oharmenian: 0x0585,
  27427. ohiragana: 0x304A,
  27428. ohookabove: 0x1ECF,
  27429. ohorn: 0x01A1,
  27430. ohornacute: 0x1EDB,
  27431. ohorndotbelow: 0x1EE3,
  27432. ohorngrave: 0x1EDD,
  27433. ohornhookabove: 0x1EDF,
  27434. ohorntilde: 0x1EE1,
  27435. ohungarumlaut: 0x0151,
  27436. oi: 0x01A3,
  27437. oinvertedbreve: 0x020F,
  27438. okatakana: 0x30AA,
  27439. okatakanahalfwidth: 0xFF75,
  27440. okorean: 0x3157,
  27441. olehebrew: 0x05AB,
  27442. omacron: 0x014D,
  27443. omacronacute: 0x1E53,
  27444. omacrongrave: 0x1E51,
  27445. omdeva: 0x0950,
  27446. omega: 0x03C9,
  27447. omega1: 0x03D6,
  27448. omegacyrillic: 0x0461,
  27449. omegalatinclosed: 0x0277,
  27450. omegaroundcyrillic: 0x047B,
  27451. omegatitlocyrillic: 0x047D,
  27452. omegatonos: 0x03CE,
  27453. omgujarati: 0x0AD0,
  27454. omicron: 0x03BF,
  27455. omicrontonos: 0x03CC,
  27456. omonospace: 0xFF4F,
  27457. one: 0x0031,
  27458. onearabic: 0x0661,
  27459. onebengali: 0x09E7,
  27460. onecircle: 0x2460,
  27461. onecircleinversesansserif: 0x278A,
  27462. onedeva: 0x0967,
  27463. onedotenleader: 0x2024,
  27464. oneeighth: 0x215B,
  27465. onefitted: 0xF6DC,
  27466. onegujarati: 0x0AE7,
  27467. onegurmukhi: 0x0A67,
  27468. onehackarabic: 0x0661,
  27469. onehalf: 0x00BD,
  27470. onehangzhou: 0x3021,
  27471. oneideographicparen: 0x3220,
  27472. oneinferior: 0x2081,
  27473. onemonospace: 0xFF11,
  27474. onenumeratorbengali: 0x09F4,
  27475. oneoldstyle: 0xF731,
  27476. oneparen: 0x2474,
  27477. oneperiod: 0x2488,
  27478. onepersian: 0x06F1,
  27479. onequarter: 0x00BC,
  27480. oneroman: 0x2170,
  27481. onesuperior: 0x00B9,
  27482. onethai: 0x0E51,
  27483. onethird: 0x2153,
  27484. oogonek: 0x01EB,
  27485. oogonekmacron: 0x01ED,
  27486. oogurmukhi: 0x0A13,
  27487. oomatragurmukhi: 0x0A4B,
  27488. oopen: 0x0254,
  27489. oparen: 0x24AA,
  27490. openbullet: 0x25E6,
  27491. option: 0x2325,
  27492. ordfeminine: 0x00AA,
  27493. ordmasculine: 0x00BA,
  27494. orthogonal: 0x221F,
  27495. oshortdeva: 0x0912,
  27496. oshortvowelsigndeva: 0x094A,
  27497. oslash: 0x00F8,
  27498. oslashacute: 0x01FF,
  27499. osmallhiragana: 0x3049,
  27500. osmallkatakana: 0x30A9,
  27501. osmallkatakanahalfwidth: 0xFF6B,
  27502. ostrokeacute: 0x01FF,
  27503. osuperior: 0xF6F0,
  27504. otcyrillic: 0x047F,
  27505. otilde: 0x00F5,
  27506. otildeacute: 0x1E4D,
  27507. otildedieresis: 0x1E4F,
  27508. oubopomofo: 0x3121,
  27509. overline: 0x203E,
  27510. overlinecenterline: 0xFE4A,
  27511. overlinecmb: 0x0305,
  27512. overlinedashed: 0xFE49,
  27513. overlinedblwavy: 0xFE4C,
  27514. overlinewavy: 0xFE4B,
  27515. overscore: 0x00AF,
  27516. ovowelsignbengali: 0x09CB,
  27517. ovowelsigndeva: 0x094B,
  27518. ovowelsigngujarati: 0x0ACB,
  27519. p: 0x0070,
  27520. paampssquare: 0x3380,
  27521. paasentosquare: 0x332B,
  27522. pabengali: 0x09AA,
  27523. pacute: 0x1E55,
  27524. padeva: 0x092A,
  27525. pagedown: 0x21DF,
  27526. pageup: 0x21DE,
  27527. pagujarati: 0x0AAA,
  27528. pagurmukhi: 0x0A2A,
  27529. pahiragana: 0x3071,
  27530. paiyannoithai: 0x0E2F,
  27531. pakatakana: 0x30D1,
  27532. palatalizationcyrilliccmb: 0x0484,
  27533. palochkacyrillic: 0x04C0,
  27534. pansioskorean: 0x317F,
  27535. paragraph: 0x00B6,
  27536. parallel: 0x2225,
  27537. parenleft: 0x0028,
  27538. parenleftaltonearabic: 0xFD3E,
  27539. parenleftbt: 0xF8ED,
  27540. parenleftex: 0xF8EC,
  27541. parenleftinferior: 0x208D,
  27542. parenleftmonospace: 0xFF08,
  27543. parenleftsmall: 0xFE59,
  27544. parenleftsuperior: 0x207D,
  27545. parenlefttp: 0xF8EB,
  27546. parenleftvertical: 0xFE35,
  27547. parenright: 0x0029,
  27548. parenrightaltonearabic: 0xFD3F,
  27549. parenrightbt: 0xF8F8,
  27550. parenrightex: 0xF8F7,
  27551. parenrightinferior: 0x208E,
  27552. parenrightmonospace: 0xFF09,
  27553. parenrightsmall: 0xFE5A,
  27554. parenrightsuperior: 0x207E,
  27555. parenrighttp: 0xF8F6,
  27556. parenrightvertical: 0xFE36,
  27557. partialdiff: 0x2202,
  27558. paseqhebrew: 0x05C0,
  27559. pashtahebrew: 0x0599,
  27560. pasquare: 0x33A9,
  27561. patah: 0x05B7,
  27562. patah11: 0x05B7,
  27563. patah1d: 0x05B7,
  27564. patah2a: 0x05B7,
  27565. patahhebrew: 0x05B7,
  27566. patahnarrowhebrew: 0x05B7,
  27567. patahquarterhebrew: 0x05B7,
  27568. patahwidehebrew: 0x05B7,
  27569. pazerhebrew: 0x05A1,
  27570. pbopomofo: 0x3106,
  27571. pcircle: 0x24DF,
  27572. pdotaccent: 0x1E57,
  27573. pe: 0x05E4,
  27574. pecyrillic: 0x043F,
  27575. pedagesh: 0xFB44,
  27576. pedageshhebrew: 0xFB44,
  27577. peezisquare: 0x333B,
  27578. pefinaldageshhebrew: 0xFB43,
  27579. peharabic: 0x067E,
  27580. peharmenian: 0x057A,
  27581. pehebrew: 0x05E4,
  27582. pehfinalarabic: 0xFB57,
  27583. pehinitialarabic: 0xFB58,
  27584. pehiragana: 0x307A,
  27585. pehmedialarabic: 0xFB59,
  27586. pekatakana: 0x30DA,
  27587. pemiddlehookcyrillic: 0x04A7,
  27588. perafehebrew: 0xFB4E,
  27589. percent: 0x0025,
  27590. percentarabic: 0x066A,
  27591. percentmonospace: 0xFF05,
  27592. percentsmall: 0xFE6A,
  27593. period: 0x002E,
  27594. periodarmenian: 0x0589,
  27595. periodcentered: 0x00B7,
  27596. periodhalfwidth: 0xFF61,
  27597. periodinferior: 0xF6E7,
  27598. periodmonospace: 0xFF0E,
  27599. periodsmall: 0xFE52,
  27600. periodsuperior: 0xF6E8,
  27601. perispomenigreekcmb: 0x0342,
  27602. perpendicular: 0x22A5,
  27603. perthousand: 0x2030,
  27604. peseta: 0x20A7,
  27605. pfsquare: 0x338A,
  27606. phabengali: 0x09AB,
  27607. phadeva: 0x092B,
  27608. phagujarati: 0x0AAB,
  27609. phagurmukhi: 0x0A2B,
  27610. phi: 0x03C6,
  27611. phi1: 0x03D5,
  27612. phieuphacirclekorean: 0x327A,
  27613. phieuphaparenkorean: 0x321A,
  27614. phieuphcirclekorean: 0x326C,
  27615. phieuphkorean: 0x314D,
  27616. phieuphparenkorean: 0x320C,
  27617. philatin: 0x0278,
  27618. phinthuthai: 0x0E3A,
  27619. phisymbolgreek: 0x03D5,
  27620. phook: 0x01A5,
  27621. phophanthai: 0x0E1E,
  27622. phophungthai: 0x0E1C,
  27623. phosamphaothai: 0x0E20,
  27624. pi: 0x03C0,
  27625. pieupacirclekorean: 0x3273,
  27626. pieupaparenkorean: 0x3213,
  27627. pieupcieuckorean: 0x3176,
  27628. pieupcirclekorean: 0x3265,
  27629. pieupkiyeokkorean: 0x3172,
  27630. pieupkorean: 0x3142,
  27631. pieupparenkorean: 0x3205,
  27632. pieupsioskiyeokkorean: 0x3174,
  27633. pieupsioskorean: 0x3144,
  27634. pieupsiostikeutkorean: 0x3175,
  27635. pieupthieuthkorean: 0x3177,
  27636. pieuptikeutkorean: 0x3173,
  27637. pihiragana: 0x3074,
  27638. pikatakana: 0x30D4,
  27639. pisymbolgreek: 0x03D6,
  27640. piwrarmenian: 0x0583,
  27641. plus: 0x002B,
  27642. plusbelowcmb: 0x031F,
  27643. pluscircle: 0x2295,
  27644. plusminus: 0x00B1,
  27645. plusmod: 0x02D6,
  27646. plusmonospace: 0xFF0B,
  27647. plussmall: 0xFE62,
  27648. plussuperior: 0x207A,
  27649. pmonospace: 0xFF50,
  27650. pmsquare: 0x33D8,
  27651. pohiragana: 0x307D,
  27652. pointingindexdownwhite: 0x261F,
  27653. pointingindexleftwhite: 0x261C,
  27654. pointingindexrightwhite: 0x261E,
  27655. pointingindexupwhite: 0x261D,
  27656. pokatakana: 0x30DD,
  27657. poplathai: 0x0E1B,
  27658. postalmark: 0x3012,
  27659. postalmarkface: 0x3020,
  27660. pparen: 0x24AB,
  27661. precedes: 0x227A,
  27662. prescription: 0x211E,
  27663. primemod: 0x02B9,
  27664. primereversed: 0x2035,
  27665. product: 0x220F,
  27666. projective: 0x2305,
  27667. prolongedkana: 0x30FC,
  27668. propellor: 0x2318,
  27669. propersubset: 0x2282,
  27670. propersuperset: 0x2283,
  27671. proportion: 0x2237,
  27672. proportional: 0x221D,
  27673. psi: 0x03C8,
  27674. psicyrillic: 0x0471,
  27675. psilipneumatacyrilliccmb: 0x0486,
  27676. pssquare: 0x33B0,
  27677. puhiragana: 0x3077,
  27678. pukatakana: 0x30D7,
  27679. pvsquare: 0x33B4,
  27680. pwsquare: 0x33BA,
  27681. q: 0x0071,
  27682. qadeva: 0x0958,
  27683. qadmahebrew: 0x05A8,
  27684. qafarabic: 0x0642,
  27685. qaffinalarabic: 0xFED6,
  27686. qafinitialarabic: 0xFED7,
  27687. qafmedialarabic: 0xFED8,
  27688. qamats: 0x05B8,
  27689. qamats10: 0x05B8,
  27690. qamats1a: 0x05B8,
  27691. qamats1c: 0x05B8,
  27692. qamats27: 0x05B8,
  27693. qamats29: 0x05B8,
  27694. qamats33: 0x05B8,
  27695. qamatsde: 0x05B8,
  27696. qamatshebrew: 0x05B8,
  27697. qamatsnarrowhebrew: 0x05B8,
  27698. qamatsqatanhebrew: 0x05B8,
  27699. qamatsqatannarrowhebrew: 0x05B8,
  27700. qamatsqatanquarterhebrew: 0x05B8,
  27701. qamatsqatanwidehebrew: 0x05B8,
  27702. qamatsquarterhebrew: 0x05B8,
  27703. qamatswidehebrew: 0x05B8,
  27704. qarneyparahebrew: 0x059F,
  27705. qbopomofo: 0x3111,
  27706. qcircle: 0x24E0,
  27707. qhook: 0x02A0,
  27708. qmonospace: 0xFF51,
  27709. qof: 0x05E7,
  27710. qofdagesh: 0xFB47,
  27711. qofdageshhebrew: 0xFB47,
  27712. qofhebrew: 0x05E7,
  27713. qparen: 0x24AC,
  27714. quarternote: 0x2669,
  27715. qubuts: 0x05BB,
  27716. qubuts18: 0x05BB,
  27717. qubuts25: 0x05BB,
  27718. qubuts31: 0x05BB,
  27719. qubutshebrew: 0x05BB,
  27720. qubutsnarrowhebrew: 0x05BB,
  27721. qubutsquarterhebrew: 0x05BB,
  27722. qubutswidehebrew: 0x05BB,
  27723. question: 0x003F,
  27724. questionarabic: 0x061F,
  27725. questionarmenian: 0x055E,
  27726. questiondown: 0x00BF,
  27727. questiondownsmall: 0xF7BF,
  27728. questiongreek: 0x037E,
  27729. questionmonospace: 0xFF1F,
  27730. questionsmall: 0xF73F,
  27731. quotedbl: 0x0022,
  27732. quotedblbase: 0x201E,
  27733. quotedblleft: 0x201C,
  27734. quotedblmonospace: 0xFF02,
  27735. quotedblprime: 0x301E,
  27736. quotedblprimereversed: 0x301D,
  27737. quotedblright: 0x201D,
  27738. quoteleft: 0x2018,
  27739. quoteleftreversed: 0x201B,
  27740. quotereversed: 0x201B,
  27741. quoteright: 0x2019,
  27742. quoterightn: 0x0149,
  27743. quotesinglbase: 0x201A,
  27744. quotesingle: 0x0027,
  27745. quotesinglemonospace: 0xFF07,
  27746. r: 0x0072,
  27747. raarmenian: 0x057C,
  27748. rabengali: 0x09B0,
  27749. racute: 0x0155,
  27750. radeva: 0x0930,
  27751. radical: 0x221A,
  27752. radicalex: 0xF8E5,
  27753. radoverssquare: 0x33AE,
  27754. radoverssquaredsquare: 0x33AF,
  27755. radsquare: 0x33AD,
  27756. rafe: 0x05BF,
  27757. rafehebrew: 0x05BF,
  27758. ragujarati: 0x0AB0,
  27759. ragurmukhi: 0x0A30,
  27760. rahiragana: 0x3089,
  27761. rakatakana: 0x30E9,
  27762. rakatakanahalfwidth: 0xFF97,
  27763. ralowerdiagonalbengali: 0x09F1,
  27764. ramiddlediagonalbengali: 0x09F0,
  27765. ramshorn: 0x0264,
  27766. ratio: 0x2236,
  27767. rbopomofo: 0x3116,
  27768. rcaron: 0x0159,
  27769. rcedilla: 0x0157,
  27770. rcircle: 0x24E1,
  27771. rcommaaccent: 0x0157,
  27772. rdblgrave: 0x0211,
  27773. rdotaccent: 0x1E59,
  27774. rdotbelow: 0x1E5B,
  27775. rdotbelowmacron: 0x1E5D,
  27776. referencemark: 0x203B,
  27777. reflexsubset: 0x2286,
  27778. reflexsuperset: 0x2287,
  27779. registered: 0x00AE,
  27780. registersans: 0xF8E8,
  27781. registerserif: 0xF6DA,
  27782. reharabic: 0x0631,
  27783. reharmenian: 0x0580,
  27784. rehfinalarabic: 0xFEAE,
  27785. rehiragana: 0x308C,
  27786. rekatakana: 0x30EC,
  27787. rekatakanahalfwidth: 0xFF9A,
  27788. resh: 0x05E8,
  27789. reshdageshhebrew: 0xFB48,
  27790. reshhebrew: 0x05E8,
  27791. reversedtilde: 0x223D,
  27792. reviahebrew: 0x0597,
  27793. reviamugrashhebrew: 0x0597,
  27794. revlogicalnot: 0x2310,
  27795. rfishhook: 0x027E,
  27796. rfishhookreversed: 0x027F,
  27797. rhabengali: 0x09DD,
  27798. rhadeva: 0x095D,
  27799. rho: 0x03C1,
  27800. rhook: 0x027D,
  27801. rhookturned: 0x027B,
  27802. rhookturnedsuperior: 0x02B5,
  27803. rhosymbolgreek: 0x03F1,
  27804. rhotichookmod: 0x02DE,
  27805. rieulacirclekorean: 0x3271,
  27806. rieulaparenkorean: 0x3211,
  27807. rieulcirclekorean: 0x3263,
  27808. rieulhieuhkorean: 0x3140,
  27809. rieulkiyeokkorean: 0x313A,
  27810. rieulkiyeoksioskorean: 0x3169,
  27811. rieulkorean: 0x3139,
  27812. rieulmieumkorean: 0x313B,
  27813. rieulpansioskorean: 0x316C,
  27814. rieulparenkorean: 0x3203,
  27815. rieulphieuphkorean: 0x313F,
  27816. rieulpieupkorean: 0x313C,
  27817. rieulpieupsioskorean: 0x316B,
  27818. rieulsioskorean: 0x313D,
  27819. rieulthieuthkorean: 0x313E,
  27820. rieultikeutkorean: 0x316A,
  27821. rieulyeorinhieuhkorean: 0x316D,
  27822. rightangle: 0x221F,
  27823. righttackbelowcmb: 0x0319,
  27824. righttriangle: 0x22BF,
  27825. rihiragana: 0x308A,
  27826. rikatakana: 0x30EA,
  27827. rikatakanahalfwidth: 0xFF98,
  27828. ring: 0x02DA,
  27829. ringbelowcmb: 0x0325,
  27830. ringcmb: 0x030A,
  27831. ringhalfleft: 0x02BF,
  27832. ringhalfleftarmenian: 0x0559,
  27833. ringhalfleftbelowcmb: 0x031C,
  27834. ringhalfleftcentered: 0x02D3,
  27835. ringhalfright: 0x02BE,
  27836. ringhalfrightbelowcmb: 0x0339,
  27837. ringhalfrightcentered: 0x02D2,
  27838. rinvertedbreve: 0x0213,
  27839. rittorusquare: 0x3351,
  27840. rlinebelow: 0x1E5F,
  27841. rlongleg: 0x027C,
  27842. rlonglegturned: 0x027A,
  27843. rmonospace: 0xFF52,
  27844. rohiragana: 0x308D,
  27845. rokatakana: 0x30ED,
  27846. rokatakanahalfwidth: 0xFF9B,
  27847. roruathai: 0x0E23,
  27848. rparen: 0x24AD,
  27849. rrabengali: 0x09DC,
  27850. rradeva: 0x0931,
  27851. rragurmukhi: 0x0A5C,
  27852. rreharabic: 0x0691,
  27853. rrehfinalarabic: 0xFB8D,
  27854. rrvocalicbengali: 0x09E0,
  27855. rrvocalicdeva: 0x0960,
  27856. rrvocalicgujarati: 0x0AE0,
  27857. rrvocalicvowelsignbengali: 0x09C4,
  27858. rrvocalicvowelsigndeva: 0x0944,
  27859. rrvocalicvowelsigngujarati: 0x0AC4,
  27860. rsuperior: 0xF6F1,
  27861. rtblock: 0x2590,
  27862. rturned: 0x0279,
  27863. rturnedsuperior: 0x02B4,
  27864. ruhiragana: 0x308B,
  27865. rukatakana: 0x30EB,
  27866. rukatakanahalfwidth: 0xFF99,
  27867. rupeemarkbengali: 0x09F2,
  27868. rupeesignbengali: 0x09F3,
  27869. rupiah: 0xF6DD,
  27870. ruthai: 0x0E24,
  27871. rvocalicbengali: 0x098B,
  27872. rvocalicdeva: 0x090B,
  27873. rvocalicgujarati: 0x0A8B,
  27874. rvocalicvowelsignbengali: 0x09C3,
  27875. rvocalicvowelsigndeva: 0x0943,
  27876. rvocalicvowelsigngujarati: 0x0AC3,
  27877. s: 0x0073,
  27878. sabengali: 0x09B8,
  27879. sacute: 0x015B,
  27880. sacutedotaccent: 0x1E65,
  27881. sadarabic: 0x0635,
  27882. sadeva: 0x0938,
  27883. sadfinalarabic: 0xFEBA,
  27884. sadinitialarabic: 0xFEBB,
  27885. sadmedialarabic: 0xFEBC,
  27886. sagujarati: 0x0AB8,
  27887. sagurmukhi: 0x0A38,
  27888. sahiragana: 0x3055,
  27889. sakatakana: 0x30B5,
  27890. sakatakanahalfwidth: 0xFF7B,
  27891. sallallahoualayhewasallamarabic: 0xFDFA,
  27892. samekh: 0x05E1,
  27893. samekhdagesh: 0xFB41,
  27894. samekhdageshhebrew: 0xFB41,
  27895. samekhhebrew: 0x05E1,
  27896. saraaathai: 0x0E32,
  27897. saraaethai: 0x0E41,
  27898. saraaimaimalaithai: 0x0E44,
  27899. saraaimaimuanthai: 0x0E43,
  27900. saraamthai: 0x0E33,
  27901. saraathai: 0x0E30,
  27902. saraethai: 0x0E40,
  27903. saraiileftthai: 0xF886,
  27904. saraiithai: 0x0E35,
  27905. saraileftthai: 0xF885,
  27906. saraithai: 0x0E34,
  27907. saraothai: 0x0E42,
  27908. saraueeleftthai: 0xF888,
  27909. saraueethai: 0x0E37,
  27910. saraueleftthai: 0xF887,
  27911. sarauethai: 0x0E36,
  27912. sarauthai: 0x0E38,
  27913. sarauuthai: 0x0E39,
  27914. sbopomofo: 0x3119,
  27915. scaron: 0x0161,
  27916. scarondotaccent: 0x1E67,
  27917. scedilla: 0x015F,
  27918. schwa: 0x0259,
  27919. schwacyrillic: 0x04D9,
  27920. schwadieresiscyrillic: 0x04DB,
  27921. schwahook: 0x025A,
  27922. scircle: 0x24E2,
  27923. scircumflex: 0x015D,
  27924. scommaaccent: 0x0219,
  27925. sdotaccent: 0x1E61,
  27926. sdotbelow: 0x1E63,
  27927. sdotbelowdotaccent: 0x1E69,
  27928. seagullbelowcmb: 0x033C,
  27929. second: 0x2033,
  27930. secondtonechinese: 0x02CA,
  27931. section: 0x00A7,
  27932. seenarabic: 0x0633,
  27933. seenfinalarabic: 0xFEB2,
  27934. seeninitialarabic: 0xFEB3,
  27935. seenmedialarabic: 0xFEB4,
  27936. segol: 0x05B6,
  27937. segol13: 0x05B6,
  27938. segol1f: 0x05B6,
  27939. segol2c: 0x05B6,
  27940. segolhebrew: 0x05B6,
  27941. segolnarrowhebrew: 0x05B6,
  27942. segolquarterhebrew: 0x05B6,
  27943. segoltahebrew: 0x0592,
  27944. segolwidehebrew: 0x05B6,
  27945. seharmenian: 0x057D,
  27946. sehiragana: 0x305B,
  27947. sekatakana: 0x30BB,
  27948. sekatakanahalfwidth: 0xFF7E,
  27949. semicolon: 0x003B,
  27950. semicolonarabic: 0x061B,
  27951. semicolonmonospace: 0xFF1B,
  27952. semicolonsmall: 0xFE54,
  27953. semivoicedmarkkana: 0x309C,
  27954. semivoicedmarkkanahalfwidth: 0xFF9F,
  27955. sentisquare: 0x3322,
  27956. sentosquare: 0x3323,
  27957. seven: 0x0037,
  27958. sevenarabic: 0x0667,
  27959. sevenbengali: 0x09ED,
  27960. sevencircle: 0x2466,
  27961. sevencircleinversesansserif: 0x2790,
  27962. sevendeva: 0x096D,
  27963. seveneighths: 0x215E,
  27964. sevengujarati: 0x0AED,
  27965. sevengurmukhi: 0x0A6D,
  27966. sevenhackarabic: 0x0667,
  27967. sevenhangzhou: 0x3027,
  27968. sevenideographicparen: 0x3226,
  27969. seveninferior: 0x2087,
  27970. sevenmonospace: 0xFF17,
  27971. sevenoldstyle: 0xF737,
  27972. sevenparen: 0x247A,
  27973. sevenperiod: 0x248E,
  27974. sevenpersian: 0x06F7,
  27975. sevenroman: 0x2176,
  27976. sevensuperior: 0x2077,
  27977. seventeencircle: 0x2470,
  27978. seventeenparen: 0x2484,
  27979. seventeenperiod: 0x2498,
  27980. seventhai: 0x0E57,
  27981. sfthyphen: 0x00AD,
  27982. shaarmenian: 0x0577,
  27983. shabengali: 0x09B6,
  27984. shacyrillic: 0x0448,
  27985. shaddaarabic: 0x0651,
  27986. shaddadammaarabic: 0xFC61,
  27987. shaddadammatanarabic: 0xFC5E,
  27988. shaddafathaarabic: 0xFC60,
  27989. shaddakasraarabic: 0xFC62,
  27990. shaddakasratanarabic: 0xFC5F,
  27991. shade: 0x2592,
  27992. shadedark: 0x2593,
  27993. shadelight: 0x2591,
  27994. shademedium: 0x2592,
  27995. shadeva: 0x0936,
  27996. shagujarati: 0x0AB6,
  27997. shagurmukhi: 0x0A36,
  27998. shalshelethebrew: 0x0593,
  27999. shbopomofo: 0x3115,
  28000. shchacyrillic: 0x0449,
  28001. sheenarabic: 0x0634,
  28002. sheenfinalarabic: 0xFEB6,
  28003. sheeninitialarabic: 0xFEB7,
  28004. sheenmedialarabic: 0xFEB8,
  28005. sheicoptic: 0x03E3,
  28006. sheqel: 0x20AA,
  28007. sheqelhebrew: 0x20AA,
  28008. sheva: 0x05B0,
  28009. sheva115: 0x05B0,
  28010. sheva15: 0x05B0,
  28011. sheva22: 0x05B0,
  28012. sheva2e: 0x05B0,
  28013. shevahebrew: 0x05B0,
  28014. shevanarrowhebrew: 0x05B0,
  28015. shevaquarterhebrew: 0x05B0,
  28016. shevawidehebrew: 0x05B0,
  28017. shhacyrillic: 0x04BB,
  28018. shimacoptic: 0x03ED,
  28019. shin: 0x05E9,
  28020. shindagesh: 0xFB49,
  28021. shindageshhebrew: 0xFB49,
  28022. shindageshshindot: 0xFB2C,
  28023. shindageshshindothebrew: 0xFB2C,
  28024. shindageshsindot: 0xFB2D,
  28025. shindageshsindothebrew: 0xFB2D,
  28026. shindothebrew: 0x05C1,
  28027. shinhebrew: 0x05E9,
  28028. shinshindot: 0xFB2A,
  28029. shinshindothebrew: 0xFB2A,
  28030. shinsindot: 0xFB2B,
  28031. shinsindothebrew: 0xFB2B,
  28032. shook: 0x0282,
  28033. sigma: 0x03C3,
  28034. sigma1: 0x03C2,
  28035. sigmafinal: 0x03C2,
  28036. sigmalunatesymbolgreek: 0x03F2,
  28037. sihiragana: 0x3057,
  28038. sikatakana: 0x30B7,
  28039. sikatakanahalfwidth: 0xFF7C,
  28040. siluqhebrew: 0x05BD,
  28041. siluqlefthebrew: 0x05BD,
  28042. similar: 0x223C,
  28043. sindothebrew: 0x05C2,
  28044. siosacirclekorean: 0x3274,
  28045. siosaparenkorean: 0x3214,
  28046. sioscieuckorean: 0x317E,
  28047. sioscirclekorean: 0x3266,
  28048. sioskiyeokkorean: 0x317A,
  28049. sioskorean: 0x3145,
  28050. siosnieunkorean: 0x317B,
  28051. siosparenkorean: 0x3206,
  28052. siospieupkorean: 0x317D,
  28053. siostikeutkorean: 0x317C,
  28054. six: 0x0036,
  28055. sixarabic: 0x0666,
  28056. sixbengali: 0x09EC,
  28057. sixcircle: 0x2465,
  28058. sixcircleinversesansserif: 0x278F,
  28059. sixdeva: 0x096C,
  28060. sixgujarati: 0x0AEC,
  28061. sixgurmukhi: 0x0A6C,
  28062. sixhackarabic: 0x0666,
  28063. sixhangzhou: 0x3026,
  28064. sixideographicparen: 0x3225,
  28065. sixinferior: 0x2086,
  28066. sixmonospace: 0xFF16,
  28067. sixoldstyle: 0xF736,
  28068. sixparen: 0x2479,
  28069. sixperiod: 0x248D,
  28070. sixpersian: 0x06F6,
  28071. sixroman: 0x2175,
  28072. sixsuperior: 0x2076,
  28073. sixteencircle: 0x246F,
  28074. sixteencurrencydenominatorbengali: 0x09F9,
  28075. sixteenparen: 0x2483,
  28076. sixteenperiod: 0x2497,
  28077. sixthai: 0x0E56,
  28078. slash: 0x002F,
  28079. slashmonospace: 0xFF0F,
  28080. slong: 0x017F,
  28081. slongdotaccent: 0x1E9B,
  28082. smileface: 0x263A,
  28083. smonospace: 0xFF53,
  28084. sofpasuqhebrew: 0x05C3,
  28085. softhyphen: 0x00AD,
  28086. softsigncyrillic: 0x044C,
  28087. sohiragana: 0x305D,
  28088. sokatakana: 0x30BD,
  28089. sokatakanahalfwidth: 0xFF7F,
  28090. soliduslongoverlaycmb: 0x0338,
  28091. solidusshortoverlaycmb: 0x0337,
  28092. sorusithai: 0x0E29,
  28093. sosalathai: 0x0E28,
  28094. sosothai: 0x0E0B,
  28095. sosuathai: 0x0E2A,
  28096. space: 0x0020,
  28097. spacehackarabic: 0x0020,
  28098. spade: 0x2660,
  28099. spadesuitblack: 0x2660,
  28100. spadesuitwhite: 0x2664,
  28101. sparen: 0x24AE,
  28102. squarebelowcmb: 0x033B,
  28103. squarecc: 0x33C4,
  28104. squarecm: 0x339D,
  28105. squarediagonalcrosshatchfill: 0x25A9,
  28106. squarehorizontalfill: 0x25A4,
  28107. squarekg: 0x338F,
  28108. squarekm: 0x339E,
  28109. squarekmcapital: 0x33CE,
  28110. squareln: 0x33D1,
  28111. squarelog: 0x33D2,
  28112. squaremg: 0x338E,
  28113. squaremil: 0x33D5,
  28114. squaremm: 0x339C,
  28115. squaremsquared: 0x33A1,
  28116. squareorthogonalcrosshatchfill: 0x25A6,
  28117. squareupperlefttolowerrightfill: 0x25A7,
  28118. squareupperrighttolowerleftfill: 0x25A8,
  28119. squareverticalfill: 0x25A5,
  28120. squarewhitewithsmallblack: 0x25A3,
  28121. srsquare: 0x33DB,
  28122. ssabengali: 0x09B7,
  28123. ssadeva: 0x0937,
  28124. ssagujarati: 0x0AB7,
  28125. ssangcieuckorean: 0x3149,
  28126. ssanghieuhkorean: 0x3185,
  28127. ssangieungkorean: 0x3180,
  28128. ssangkiyeokkorean: 0x3132,
  28129. ssangnieunkorean: 0x3165,
  28130. ssangpieupkorean: 0x3143,
  28131. ssangsioskorean: 0x3146,
  28132. ssangtikeutkorean: 0x3138,
  28133. ssuperior: 0xF6F2,
  28134. sterling: 0x00A3,
  28135. sterlingmonospace: 0xFFE1,
  28136. strokelongoverlaycmb: 0x0336,
  28137. strokeshortoverlaycmb: 0x0335,
  28138. subset: 0x2282,
  28139. subsetnotequal: 0x228A,
  28140. subsetorequal: 0x2286,
  28141. succeeds: 0x227B,
  28142. suchthat: 0x220B,
  28143. suhiragana: 0x3059,
  28144. sukatakana: 0x30B9,
  28145. sukatakanahalfwidth: 0xFF7D,
  28146. sukunarabic: 0x0652,
  28147. summation: 0x2211,
  28148. sun: 0x263C,
  28149. superset: 0x2283,
  28150. supersetnotequal: 0x228B,
  28151. supersetorequal: 0x2287,
  28152. svsquare: 0x33DC,
  28153. syouwaerasquare: 0x337C,
  28154. t: 0x0074,
  28155. tabengali: 0x09A4,
  28156. tackdown: 0x22A4,
  28157. tackleft: 0x22A3,
  28158. tadeva: 0x0924,
  28159. tagujarati: 0x0AA4,
  28160. tagurmukhi: 0x0A24,
  28161. taharabic: 0x0637,
  28162. tahfinalarabic: 0xFEC2,
  28163. tahinitialarabic: 0xFEC3,
  28164. tahiragana: 0x305F,
  28165. tahmedialarabic: 0xFEC4,
  28166. taisyouerasquare: 0x337D,
  28167. takatakana: 0x30BF,
  28168. takatakanahalfwidth: 0xFF80,
  28169. tatweelarabic: 0x0640,
  28170. tau: 0x03C4,
  28171. tav: 0x05EA,
  28172. tavdages: 0xFB4A,
  28173. tavdagesh: 0xFB4A,
  28174. tavdageshhebrew: 0xFB4A,
  28175. tavhebrew: 0x05EA,
  28176. tbar: 0x0167,
  28177. tbopomofo: 0x310A,
  28178. tcaron: 0x0165,
  28179. tccurl: 0x02A8,
  28180. tcedilla: 0x0163,
  28181. tcheharabic: 0x0686,
  28182. tchehfinalarabic: 0xFB7B,
  28183. tchehinitialarabic: 0xFB7C,
  28184. tchehmedialarabic: 0xFB7D,
  28185. tcircle: 0x24E3,
  28186. tcircumflexbelow: 0x1E71,
  28187. tcommaaccent: 0x0163,
  28188. tdieresis: 0x1E97,
  28189. tdotaccent: 0x1E6B,
  28190. tdotbelow: 0x1E6D,
  28191. tecyrillic: 0x0442,
  28192. tedescendercyrillic: 0x04AD,
  28193. teharabic: 0x062A,
  28194. tehfinalarabic: 0xFE96,
  28195. tehhahinitialarabic: 0xFCA2,
  28196. tehhahisolatedarabic: 0xFC0C,
  28197. tehinitialarabic: 0xFE97,
  28198. tehiragana: 0x3066,
  28199. tehjeeminitialarabic: 0xFCA1,
  28200. tehjeemisolatedarabic: 0xFC0B,
  28201. tehmarbutaarabic: 0x0629,
  28202. tehmarbutafinalarabic: 0xFE94,
  28203. tehmedialarabic: 0xFE98,
  28204. tehmeeminitialarabic: 0xFCA4,
  28205. tehmeemisolatedarabic: 0xFC0E,
  28206. tehnoonfinalarabic: 0xFC73,
  28207. tekatakana: 0x30C6,
  28208. tekatakanahalfwidth: 0xFF83,
  28209. telephone: 0x2121,
  28210. telephoneblack: 0x260E,
  28211. telishagedolahebrew: 0x05A0,
  28212. telishaqetanahebrew: 0x05A9,
  28213. tencircle: 0x2469,
  28214. tenideographicparen: 0x3229,
  28215. tenparen: 0x247D,
  28216. tenperiod: 0x2491,
  28217. tenroman: 0x2179,
  28218. tesh: 0x02A7,
  28219. tet: 0x05D8,
  28220. tetdagesh: 0xFB38,
  28221. tetdageshhebrew: 0xFB38,
  28222. tethebrew: 0x05D8,
  28223. tetsecyrillic: 0x04B5,
  28224. tevirhebrew: 0x059B,
  28225. tevirlefthebrew: 0x059B,
  28226. thabengali: 0x09A5,
  28227. thadeva: 0x0925,
  28228. thagujarati: 0x0AA5,
  28229. thagurmukhi: 0x0A25,
  28230. thalarabic: 0x0630,
  28231. thalfinalarabic: 0xFEAC,
  28232. thanthakhatlowleftthai: 0xF898,
  28233. thanthakhatlowrightthai: 0xF897,
  28234. thanthakhatthai: 0x0E4C,
  28235. thanthakhatupperleftthai: 0xF896,
  28236. theharabic: 0x062B,
  28237. thehfinalarabic: 0xFE9A,
  28238. thehinitialarabic: 0xFE9B,
  28239. thehmedialarabic: 0xFE9C,
  28240. thereexists: 0x2203,
  28241. therefore: 0x2234,
  28242. theta: 0x03B8,
  28243. theta1: 0x03D1,
  28244. thetasymbolgreek: 0x03D1,
  28245. thieuthacirclekorean: 0x3279,
  28246. thieuthaparenkorean: 0x3219,
  28247. thieuthcirclekorean: 0x326B,
  28248. thieuthkorean: 0x314C,
  28249. thieuthparenkorean: 0x320B,
  28250. thirteencircle: 0x246C,
  28251. thirteenparen: 0x2480,
  28252. thirteenperiod: 0x2494,
  28253. thonangmonthothai: 0x0E11,
  28254. thook: 0x01AD,
  28255. thophuthaothai: 0x0E12,
  28256. thorn: 0x00FE,
  28257. thothahanthai: 0x0E17,
  28258. thothanthai: 0x0E10,
  28259. thothongthai: 0x0E18,
  28260. thothungthai: 0x0E16,
  28261. thousandcyrillic: 0x0482,
  28262. thousandsseparatorarabic: 0x066C,
  28263. thousandsseparatorpersian: 0x066C,
  28264. three: 0x0033,
  28265. threearabic: 0x0663,
  28266. threebengali: 0x09E9,
  28267. threecircle: 0x2462,
  28268. threecircleinversesansserif: 0x278C,
  28269. threedeva: 0x0969,
  28270. threeeighths: 0x215C,
  28271. threegujarati: 0x0AE9,
  28272. threegurmukhi: 0x0A69,
  28273. threehackarabic: 0x0663,
  28274. threehangzhou: 0x3023,
  28275. threeideographicparen: 0x3222,
  28276. threeinferior: 0x2083,
  28277. threemonospace: 0xFF13,
  28278. threenumeratorbengali: 0x09F6,
  28279. threeoldstyle: 0xF733,
  28280. threeparen: 0x2476,
  28281. threeperiod: 0x248A,
  28282. threepersian: 0x06F3,
  28283. threequarters: 0x00BE,
  28284. threequartersemdash: 0xF6DE,
  28285. threeroman: 0x2172,
  28286. threesuperior: 0x00B3,
  28287. threethai: 0x0E53,
  28288. thzsquare: 0x3394,
  28289. tihiragana: 0x3061,
  28290. tikatakana: 0x30C1,
  28291. tikatakanahalfwidth: 0xFF81,
  28292. tikeutacirclekorean: 0x3270,
  28293. tikeutaparenkorean: 0x3210,
  28294. tikeutcirclekorean: 0x3262,
  28295. tikeutkorean: 0x3137,
  28296. tikeutparenkorean: 0x3202,
  28297. tilde: 0x02DC,
  28298. tildebelowcmb: 0x0330,
  28299. tildecmb: 0x0303,
  28300. tildecomb: 0x0303,
  28301. tildedoublecmb: 0x0360,
  28302. tildeoperator: 0x223C,
  28303. tildeoverlaycmb: 0x0334,
  28304. tildeverticalcmb: 0x033E,
  28305. timescircle: 0x2297,
  28306. tipehahebrew: 0x0596,
  28307. tipehalefthebrew: 0x0596,
  28308. tippigurmukhi: 0x0A70,
  28309. titlocyrilliccmb: 0x0483,
  28310. tiwnarmenian: 0x057F,
  28311. tlinebelow: 0x1E6F,
  28312. tmonospace: 0xFF54,
  28313. toarmenian: 0x0569,
  28314. tohiragana: 0x3068,
  28315. tokatakana: 0x30C8,
  28316. tokatakanahalfwidth: 0xFF84,
  28317. tonebarextrahighmod: 0x02E5,
  28318. tonebarextralowmod: 0x02E9,
  28319. tonebarhighmod: 0x02E6,
  28320. tonebarlowmod: 0x02E8,
  28321. tonebarmidmod: 0x02E7,
  28322. tonefive: 0x01BD,
  28323. tonesix: 0x0185,
  28324. tonetwo: 0x01A8,
  28325. tonos: 0x0384,
  28326. tonsquare: 0x3327,
  28327. topatakthai: 0x0E0F,
  28328. tortoiseshellbracketleft: 0x3014,
  28329. tortoiseshellbracketleftsmall: 0xFE5D,
  28330. tortoiseshellbracketleftvertical: 0xFE39,
  28331. tortoiseshellbracketright: 0x3015,
  28332. tortoiseshellbracketrightsmall: 0xFE5E,
  28333. tortoiseshellbracketrightvertical: 0xFE3A,
  28334. totaothai: 0x0E15,
  28335. tpalatalhook: 0x01AB,
  28336. tparen: 0x24AF,
  28337. trademark: 0x2122,
  28338. trademarksans: 0xF8EA,
  28339. trademarkserif: 0xF6DB,
  28340. tretroflexhook: 0x0288,
  28341. triagdn: 0x25BC,
  28342. triaglf: 0x25C4,
  28343. triagrt: 0x25BA,
  28344. triagup: 0x25B2,
  28345. ts: 0x02A6,
  28346. tsadi: 0x05E6,
  28347. tsadidagesh: 0xFB46,
  28348. tsadidageshhebrew: 0xFB46,
  28349. tsadihebrew: 0x05E6,
  28350. tsecyrillic: 0x0446,
  28351. tsere: 0x05B5,
  28352. tsere12: 0x05B5,
  28353. tsere1e: 0x05B5,
  28354. tsere2b: 0x05B5,
  28355. tserehebrew: 0x05B5,
  28356. tserenarrowhebrew: 0x05B5,
  28357. tserequarterhebrew: 0x05B5,
  28358. tserewidehebrew: 0x05B5,
  28359. tshecyrillic: 0x045B,
  28360. tsuperior: 0xF6F3,
  28361. ttabengali: 0x099F,
  28362. ttadeva: 0x091F,
  28363. ttagujarati: 0x0A9F,
  28364. ttagurmukhi: 0x0A1F,
  28365. tteharabic: 0x0679,
  28366. ttehfinalarabic: 0xFB67,
  28367. ttehinitialarabic: 0xFB68,
  28368. ttehmedialarabic: 0xFB69,
  28369. tthabengali: 0x09A0,
  28370. tthadeva: 0x0920,
  28371. tthagujarati: 0x0AA0,
  28372. tthagurmukhi: 0x0A20,
  28373. tturned: 0x0287,
  28374. tuhiragana: 0x3064,
  28375. tukatakana: 0x30C4,
  28376. tukatakanahalfwidth: 0xFF82,
  28377. tusmallhiragana: 0x3063,
  28378. tusmallkatakana: 0x30C3,
  28379. tusmallkatakanahalfwidth: 0xFF6F,
  28380. twelvecircle: 0x246B,
  28381. twelveparen: 0x247F,
  28382. twelveperiod: 0x2493,
  28383. twelveroman: 0x217B,
  28384. twentycircle: 0x2473,
  28385. twentyhangzhou: 0x5344,
  28386. twentyparen: 0x2487,
  28387. twentyperiod: 0x249B,
  28388. two: 0x0032,
  28389. twoarabic: 0x0662,
  28390. twobengali: 0x09E8,
  28391. twocircle: 0x2461,
  28392. twocircleinversesansserif: 0x278B,
  28393. twodeva: 0x0968,
  28394. twodotenleader: 0x2025,
  28395. twodotleader: 0x2025,
  28396. twodotleadervertical: 0xFE30,
  28397. twogujarati: 0x0AE8,
  28398. twogurmukhi: 0x0A68,
  28399. twohackarabic: 0x0662,
  28400. twohangzhou: 0x3022,
  28401. twoideographicparen: 0x3221,
  28402. twoinferior: 0x2082,
  28403. twomonospace: 0xFF12,
  28404. twonumeratorbengali: 0x09F5,
  28405. twooldstyle: 0xF732,
  28406. twoparen: 0x2475,
  28407. twoperiod: 0x2489,
  28408. twopersian: 0x06F2,
  28409. tworoman: 0x2171,
  28410. twostroke: 0x01BB,
  28411. twosuperior: 0x00B2,
  28412. twothai: 0x0E52,
  28413. twothirds: 0x2154,
  28414. u: 0x0075,
  28415. uacute: 0x00FA,
  28416. ubar: 0x0289,
  28417. ubengali: 0x0989,
  28418. ubopomofo: 0x3128,
  28419. ubreve: 0x016D,
  28420. ucaron: 0x01D4,
  28421. ucircle: 0x24E4,
  28422. ucircumflex: 0x00FB,
  28423. ucircumflexbelow: 0x1E77,
  28424. ucyrillic: 0x0443,
  28425. udattadeva: 0x0951,
  28426. udblacute: 0x0171,
  28427. udblgrave: 0x0215,
  28428. udeva: 0x0909,
  28429. udieresis: 0x00FC,
  28430. udieresisacute: 0x01D8,
  28431. udieresisbelow: 0x1E73,
  28432. udieresiscaron: 0x01DA,
  28433. udieresiscyrillic: 0x04F1,
  28434. udieresisgrave: 0x01DC,
  28435. udieresismacron: 0x01D6,
  28436. udotbelow: 0x1EE5,
  28437. ugrave: 0x00F9,
  28438. ugujarati: 0x0A89,
  28439. ugurmukhi: 0x0A09,
  28440. uhiragana: 0x3046,
  28441. uhookabove: 0x1EE7,
  28442. uhorn: 0x01B0,
  28443. uhornacute: 0x1EE9,
  28444. uhorndotbelow: 0x1EF1,
  28445. uhorngrave: 0x1EEB,
  28446. uhornhookabove: 0x1EED,
  28447. uhorntilde: 0x1EEF,
  28448. uhungarumlaut: 0x0171,
  28449. uhungarumlautcyrillic: 0x04F3,
  28450. uinvertedbreve: 0x0217,
  28451. ukatakana: 0x30A6,
  28452. ukatakanahalfwidth: 0xFF73,
  28453. ukcyrillic: 0x0479,
  28454. ukorean: 0x315C,
  28455. umacron: 0x016B,
  28456. umacroncyrillic: 0x04EF,
  28457. umacrondieresis: 0x1E7B,
  28458. umatragurmukhi: 0x0A41,
  28459. umonospace: 0xFF55,
  28460. underscore: 0x005F,
  28461. underscoredbl: 0x2017,
  28462. underscoremonospace: 0xFF3F,
  28463. underscorevertical: 0xFE33,
  28464. underscorewavy: 0xFE4F,
  28465. union: 0x222A,
  28466. universal: 0x2200,
  28467. uogonek: 0x0173,
  28468. uparen: 0x24B0,
  28469. upblock: 0x2580,
  28470. upperdothebrew: 0x05C4,
  28471. upsilon: 0x03C5,
  28472. upsilondieresis: 0x03CB,
  28473. upsilondieresistonos: 0x03B0,
  28474. upsilonlatin: 0x028A,
  28475. upsilontonos: 0x03CD,
  28476. uptackbelowcmb: 0x031D,
  28477. uptackmod: 0x02D4,
  28478. uragurmukhi: 0x0A73,
  28479. uring: 0x016F,
  28480. ushortcyrillic: 0x045E,
  28481. usmallhiragana: 0x3045,
  28482. usmallkatakana: 0x30A5,
  28483. usmallkatakanahalfwidth: 0xFF69,
  28484. ustraightcyrillic: 0x04AF,
  28485. ustraightstrokecyrillic: 0x04B1,
  28486. utilde: 0x0169,
  28487. utildeacute: 0x1E79,
  28488. utildebelow: 0x1E75,
  28489. uubengali: 0x098A,
  28490. uudeva: 0x090A,
  28491. uugujarati: 0x0A8A,
  28492. uugurmukhi: 0x0A0A,
  28493. uumatragurmukhi: 0x0A42,
  28494. uuvowelsignbengali: 0x09C2,
  28495. uuvowelsigndeva: 0x0942,
  28496. uuvowelsigngujarati: 0x0AC2,
  28497. uvowelsignbengali: 0x09C1,
  28498. uvowelsigndeva: 0x0941,
  28499. uvowelsigngujarati: 0x0AC1,
  28500. v: 0x0076,
  28501. vadeva: 0x0935,
  28502. vagujarati: 0x0AB5,
  28503. vagurmukhi: 0x0A35,
  28504. vakatakana: 0x30F7,
  28505. vav: 0x05D5,
  28506. vavdagesh: 0xFB35,
  28507. vavdagesh65: 0xFB35,
  28508. vavdageshhebrew: 0xFB35,
  28509. vavhebrew: 0x05D5,
  28510. vavholam: 0xFB4B,
  28511. vavholamhebrew: 0xFB4B,
  28512. vavvavhebrew: 0x05F0,
  28513. vavyodhebrew: 0x05F1,
  28514. vcircle: 0x24E5,
  28515. vdotbelow: 0x1E7F,
  28516. vecyrillic: 0x0432,
  28517. veharabic: 0x06A4,
  28518. vehfinalarabic: 0xFB6B,
  28519. vehinitialarabic: 0xFB6C,
  28520. vehmedialarabic: 0xFB6D,
  28521. vekatakana: 0x30F9,
  28522. venus: 0x2640,
  28523. verticalbar: 0x007C,
  28524. verticallineabovecmb: 0x030D,
  28525. verticallinebelowcmb: 0x0329,
  28526. verticallinelowmod: 0x02CC,
  28527. verticallinemod: 0x02C8,
  28528. vewarmenian: 0x057E,
  28529. vhook: 0x028B,
  28530. vikatakana: 0x30F8,
  28531. viramabengali: 0x09CD,
  28532. viramadeva: 0x094D,
  28533. viramagujarati: 0x0ACD,
  28534. visargabengali: 0x0983,
  28535. visargadeva: 0x0903,
  28536. visargagujarati: 0x0A83,
  28537. vmonospace: 0xFF56,
  28538. voarmenian: 0x0578,
  28539. voicediterationhiragana: 0x309E,
  28540. voicediterationkatakana: 0x30FE,
  28541. voicedmarkkana: 0x309B,
  28542. voicedmarkkanahalfwidth: 0xFF9E,
  28543. vokatakana: 0x30FA,
  28544. vparen: 0x24B1,
  28545. vtilde: 0x1E7D,
  28546. vturned: 0x028C,
  28547. vuhiragana: 0x3094,
  28548. vukatakana: 0x30F4,
  28549. w: 0x0077,
  28550. wacute: 0x1E83,
  28551. waekorean: 0x3159,
  28552. wahiragana: 0x308F,
  28553. wakatakana: 0x30EF,
  28554. wakatakanahalfwidth: 0xFF9C,
  28555. wakorean: 0x3158,
  28556. wasmallhiragana: 0x308E,
  28557. wasmallkatakana: 0x30EE,
  28558. wattosquare: 0x3357,
  28559. wavedash: 0x301C,
  28560. wavyunderscorevertical: 0xFE34,
  28561. wawarabic: 0x0648,
  28562. wawfinalarabic: 0xFEEE,
  28563. wawhamzaabovearabic: 0x0624,
  28564. wawhamzaabovefinalarabic: 0xFE86,
  28565. wbsquare: 0x33DD,
  28566. wcircle: 0x24E6,
  28567. wcircumflex: 0x0175,
  28568. wdieresis: 0x1E85,
  28569. wdotaccent: 0x1E87,
  28570. wdotbelow: 0x1E89,
  28571. wehiragana: 0x3091,
  28572. weierstrass: 0x2118,
  28573. wekatakana: 0x30F1,
  28574. wekorean: 0x315E,
  28575. weokorean: 0x315D,
  28576. wgrave: 0x1E81,
  28577. whitebullet: 0x25E6,
  28578. whitecircle: 0x25CB,
  28579. whitecircleinverse: 0x25D9,
  28580. whitecornerbracketleft: 0x300E,
  28581. whitecornerbracketleftvertical: 0xFE43,
  28582. whitecornerbracketright: 0x300F,
  28583. whitecornerbracketrightvertical: 0xFE44,
  28584. whitediamond: 0x25C7,
  28585. whitediamondcontainingblacksmalldiamond: 0x25C8,
  28586. whitedownpointingsmalltriangle: 0x25BF,
  28587. whitedownpointingtriangle: 0x25BD,
  28588. whiteleftpointingsmalltriangle: 0x25C3,
  28589. whiteleftpointingtriangle: 0x25C1,
  28590. whitelenticularbracketleft: 0x3016,
  28591. whitelenticularbracketright: 0x3017,
  28592. whiterightpointingsmalltriangle: 0x25B9,
  28593. whiterightpointingtriangle: 0x25B7,
  28594. whitesmallsquare: 0x25AB,
  28595. whitesmilingface: 0x263A,
  28596. whitesquare: 0x25A1,
  28597. whitestar: 0x2606,
  28598. whitetelephone: 0x260F,
  28599. whitetortoiseshellbracketleft: 0x3018,
  28600. whitetortoiseshellbracketright: 0x3019,
  28601. whiteuppointingsmalltriangle: 0x25B5,
  28602. whiteuppointingtriangle: 0x25B3,
  28603. wihiragana: 0x3090,
  28604. wikatakana: 0x30F0,
  28605. wikorean: 0x315F,
  28606. wmonospace: 0xFF57,
  28607. wohiragana: 0x3092,
  28608. wokatakana: 0x30F2,
  28609. wokatakanahalfwidth: 0xFF66,
  28610. won: 0x20A9,
  28611. wonmonospace: 0xFFE6,
  28612. wowaenthai: 0x0E27,
  28613. wparen: 0x24B2,
  28614. wring: 0x1E98,
  28615. wsuperior: 0x02B7,
  28616. wturned: 0x028D,
  28617. wynn: 0x01BF,
  28618. x: 0x0078,
  28619. xabovecmb: 0x033D,
  28620. xbopomofo: 0x3112,
  28621. xcircle: 0x24E7,
  28622. xdieresis: 0x1E8D,
  28623. xdotaccent: 0x1E8B,
  28624. xeharmenian: 0x056D,
  28625. xi: 0x03BE,
  28626. xmonospace: 0xFF58,
  28627. xparen: 0x24B3,
  28628. xsuperior: 0x02E3,
  28629. y: 0x0079,
  28630. yaadosquare: 0x334E,
  28631. yabengali: 0x09AF,
  28632. yacute: 0x00FD,
  28633. yadeva: 0x092F,
  28634. yaekorean: 0x3152,
  28635. yagujarati: 0x0AAF,
  28636. yagurmukhi: 0x0A2F,
  28637. yahiragana: 0x3084,
  28638. yakatakana: 0x30E4,
  28639. yakatakanahalfwidth: 0xFF94,
  28640. yakorean: 0x3151,
  28641. yamakkanthai: 0x0E4E,
  28642. yasmallhiragana: 0x3083,
  28643. yasmallkatakana: 0x30E3,
  28644. yasmallkatakanahalfwidth: 0xFF6C,
  28645. yatcyrillic: 0x0463,
  28646. ycircle: 0x24E8,
  28647. ycircumflex: 0x0177,
  28648. ydieresis: 0x00FF,
  28649. ydotaccent: 0x1E8F,
  28650. ydotbelow: 0x1EF5,
  28651. yeharabic: 0x064A,
  28652. yehbarreearabic: 0x06D2,
  28653. yehbarreefinalarabic: 0xFBAF,
  28654. yehfinalarabic: 0xFEF2,
  28655. yehhamzaabovearabic: 0x0626,
  28656. yehhamzaabovefinalarabic: 0xFE8A,
  28657. yehhamzaaboveinitialarabic: 0xFE8B,
  28658. yehhamzaabovemedialarabic: 0xFE8C,
  28659. yehinitialarabic: 0xFEF3,
  28660. yehmedialarabic: 0xFEF4,
  28661. yehmeeminitialarabic: 0xFCDD,
  28662. yehmeemisolatedarabic: 0xFC58,
  28663. yehnoonfinalarabic: 0xFC94,
  28664. yehthreedotsbelowarabic: 0x06D1,
  28665. yekorean: 0x3156,
  28666. yen: 0x00A5,
  28667. yenmonospace: 0xFFE5,
  28668. yeokorean: 0x3155,
  28669. yeorinhieuhkorean: 0x3186,
  28670. yerahbenyomohebrew: 0x05AA,
  28671. yerahbenyomolefthebrew: 0x05AA,
  28672. yericyrillic: 0x044B,
  28673. yerudieresiscyrillic: 0x04F9,
  28674. yesieungkorean: 0x3181,
  28675. yesieungpansioskorean: 0x3183,
  28676. yesieungsioskorean: 0x3182,
  28677. yetivhebrew: 0x059A,
  28678. ygrave: 0x1EF3,
  28679. yhook: 0x01B4,
  28680. yhookabove: 0x1EF7,
  28681. yiarmenian: 0x0575,
  28682. yicyrillic: 0x0457,
  28683. yikorean: 0x3162,
  28684. yinyang: 0x262F,
  28685. yiwnarmenian: 0x0582,
  28686. ymonospace: 0xFF59,
  28687. yod: 0x05D9,
  28688. yoddagesh: 0xFB39,
  28689. yoddageshhebrew: 0xFB39,
  28690. yodhebrew: 0x05D9,
  28691. yodyodhebrew: 0x05F2,
  28692. yodyodpatahhebrew: 0xFB1F,
  28693. yohiragana: 0x3088,
  28694. yoikorean: 0x3189,
  28695. yokatakana: 0x30E8,
  28696. yokatakanahalfwidth: 0xFF96,
  28697. yokorean: 0x315B,
  28698. yosmallhiragana: 0x3087,
  28699. yosmallkatakana: 0x30E7,
  28700. yosmallkatakanahalfwidth: 0xFF6E,
  28701. yotgreek: 0x03F3,
  28702. yoyaekorean: 0x3188,
  28703. yoyakorean: 0x3187,
  28704. yoyakthai: 0x0E22,
  28705. yoyingthai: 0x0E0D,
  28706. yparen: 0x24B4,
  28707. ypogegrammeni: 0x037A,
  28708. ypogegrammenigreekcmb: 0x0345,
  28709. yr: 0x01A6,
  28710. yring: 0x1E99,
  28711. ysuperior: 0x02B8,
  28712. ytilde: 0x1EF9,
  28713. yturned: 0x028E,
  28714. yuhiragana: 0x3086,
  28715. yuikorean: 0x318C,
  28716. yukatakana: 0x30E6,
  28717. yukatakanahalfwidth: 0xFF95,
  28718. yukorean: 0x3160,
  28719. yusbigcyrillic: 0x046B,
  28720. yusbigiotifiedcyrillic: 0x046D,
  28721. yuslittlecyrillic: 0x0467,
  28722. yuslittleiotifiedcyrillic: 0x0469,
  28723. yusmallhiragana: 0x3085,
  28724. yusmallkatakana: 0x30E5,
  28725. yusmallkatakanahalfwidth: 0xFF6D,
  28726. yuyekorean: 0x318B,
  28727. yuyeokorean: 0x318A,
  28728. yyabengali: 0x09DF,
  28729. yyadeva: 0x095F,
  28730. z: 0x007A,
  28731. zaarmenian: 0x0566,
  28732. zacute: 0x017A,
  28733. zadeva: 0x095B,
  28734. zagurmukhi: 0x0A5B,
  28735. zaharabic: 0x0638,
  28736. zahfinalarabic: 0xFEC6,
  28737. zahinitialarabic: 0xFEC7,
  28738. zahiragana: 0x3056,
  28739. zahmedialarabic: 0xFEC8,
  28740. zainarabic: 0x0632,
  28741. zainfinalarabic: 0xFEB0,
  28742. zakatakana: 0x30B6,
  28743. zaqefgadolhebrew: 0x0595,
  28744. zaqefqatanhebrew: 0x0594,
  28745. zarqahebrew: 0x0598,
  28746. zayin: 0x05D6,
  28747. zayindagesh: 0xFB36,
  28748. zayindageshhebrew: 0xFB36,
  28749. zayinhebrew: 0x05D6,
  28750. zbopomofo: 0x3117,
  28751. zcaron: 0x017E,
  28752. zcircle: 0x24E9,
  28753. zcircumflex: 0x1E91,
  28754. zcurl: 0x0291,
  28755. zdot: 0x017C,
  28756. zdotaccent: 0x017C,
  28757. zdotbelow: 0x1E93,
  28758. zecyrillic: 0x0437,
  28759. zedescendercyrillic: 0x0499,
  28760. zedieresiscyrillic: 0x04DF,
  28761. zehiragana: 0x305C,
  28762. zekatakana: 0x30BC,
  28763. zero: 0x0030,
  28764. zeroarabic: 0x0660,
  28765. zerobengali: 0x09E6,
  28766. zerodeva: 0x0966,
  28767. zerogujarati: 0x0AE6,
  28768. zerogurmukhi: 0x0A66,
  28769. zerohackarabic: 0x0660,
  28770. zeroinferior: 0x2080,
  28771. zeromonospace: 0xFF10,
  28772. zerooldstyle: 0xF730,
  28773. zeropersian: 0x06F0,
  28774. zerosuperior: 0x2070,
  28775. zerothai: 0x0E50,
  28776. zerowidthjoiner: 0xFEFF,
  28777. zerowidthnonjoiner: 0x200C,
  28778. zerowidthspace: 0x200B,
  28779. zeta: 0x03B6,
  28780. zhbopomofo: 0x3113,
  28781. zhearmenian: 0x056A,
  28782. zhebrevecyrillic: 0x04C2,
  28783. zhecyrillic: 0x0436,
  28784. zhedescendercyrillic: 0x0497,
  28785. zhedieresiscyrillic: 0x04DD,
  28786. zihiragana: 0x3058,
  28787. zikatakana: 0x30B8,
  28788. zinorhebrew: 0x05AE,
  28789. zlinebelow: 0x1E95,
  28790. zmonospace: 0xFF5A,
  28791. zohiragana: 0x305E,
  28792. zokatakana: 0x30BE,
  28793. zparen: 0x24B5,
  28794. zretroflexhook: 0x0290,
  28795. zstroke: 0x01B6,
  28796. zuhiragana: 0x305A,
  28797. zukatakana: 0x30BA,
  28798. '.notdef': 0x0000
  28799. };
  28800. var PDFImage = (function PDFImageClosure() {
  28801. /**
  28802. * Decode the image in the main thread if it supported. Resovles the promise
  28803. * when the image data is ready.
  28804. */
  28805. function handleImageData(handler, xref, res, image) {
  28806. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  28807. // For natively supported jpegs send them to the main thread for decoding.
  28808. var dict = image.dict;
  28809. var colorSpace = dict.get('ColorSpace', 'CS');
  28810. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  28811. var numComps = colorSpace.numComps;
  28812. var resolvePromise;
  28813. handler.send('JpegDecode', [image.getIR(), numComps], function(message) {
  28814. var data = message.data;
  28815. var stream = new Stream(data, 0, data.length, image.dict);
  28816. resolvePromise(stream);
  28817. });
  28818. return new Promise(function (resolve) {
  28819. resolvePromise = resolve;
  28820. });
  28821. } else {
  28822. return Promise.resolve(image);
  28823. }
  28824. }
  28825. /**
  28826. * Decode and clamp a value. The formula is different from the spec because we
  28827. * don't decode to float range [0,1], we decode it in the [0,max] range.
  28828. */
  28829. function decodeAndClamp(value, addend, coefficient, max) {
  28830. value = addend + value * coefficient;
  28831. // Clamp the value to the range
  28832. return (value < 0 ? 0 : (value > max ? max : value));
  28833. }
  28834. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  28835. this.image = image;
  28836. var dict = image.dict;
  28837. if (dict.has('Filter')) {
  28838. var filter = dict.get('Filter').name;
  28839. if (filter === 'JPXDecode') {
  28840. var jpxImage = new JpxImage();
  28841. jpxImage.parseImageProperties(image.stream);
  28842. image.stream.reset();
  28843. image.bitsPerComponent = jpxImage.bitsPerComponent;
  28844. image.numComps = jpxImage.componentsCount;
  28845. } else if (filter === 'JBIG2Decode') {
  28846. image.bitsPerComponent = 1;
  28847. image.numComps = 1;
  28848. }
  28849. }
  28850. // TODO cache rendered images?
  28851. this.width = dict.get('Width', 'W');
  28852. this.height = dict.get('Height', 'H');
  28853. if (this.width < 1 || this.height < 1) {
  28854. error('Invalid image width: ' + this.width + ' or height: ' +
  28855. this.height);
  28856. }
  28857. this.interpolate = dict.get('Interpolate', 'I') || false;
  28858. this.imageMask = dict.get('ImageMask', 'IM') || false;
  28859. this.matte = dict.get('Matte') || false;
  28860. var bitsPerComponent = image.bitsPerComponent;
  28861. if (!bitsPerComponent) {
  28862. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  28863. if (!bitsPerComponent) {
  28864. if (this.imageMask) {
  28865. bitsPerComponent = 1;
  28866. } else {
  28867. error('Bits per component missing in image: ' + this.imageMask);
  28868. }
  28869. }
  28870. }
  28871. this.bpc = bitsPerComponent;
  28872. if (!this.imageMask) {
  28873. var colorSpace = dict.get('ColorSpace', 'CS');
  28874. if (!colorSpace) {
  28875. info('JPX images (which do not require color spaces)');
  28876. switch (image.numComps) {
  28877. case 1:
  28878. colorSpace = Name.get('DeviceGray');
  28879. break;
  28880. case 3:
  28881. colorSpace = Name.get('DeviceRGB');
  28882. break;
  28883. case 4:
  28884. colorSpace = Name.get('DeviceCMYK');
  28885. break;
  28886. default:
  28887. error('JPX images with ' + this.numComps +
  28888. ' color components not supported.');
  28889. }
  28890. }
  28891. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  28892. this.numComps = this.colorSpace.numComps;
  28893. }
  28894. this.decode = dict.get('Decode', 'D');
  28895. this.needsDecode = false;
  28896. if (this.decode &&
  28897. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  28898. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  28899. this.needsDecode = true;
  28900. // Do some preprocessing to avoid more math.
  28901. var max = (1 << bitsPerComponent) - 1;
  28902. this.decodeCoefficients = [];
  28903. this.decodeAddends = [];
  28904. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  28905. var dmin = this.decode[i];
  28906. var dmax = this.decode[i + 1];
  28907. this.decodeCoefficients[j] = dmax - dmin;
  28908. this.decodeAddends[j] = max * dmin;
  28909. }
  28910. }
  28911. if (smask) {
  28912. this.smask = new PDFImage(xref, res, smask, false);
  28913. } else if (mask) {
  28914. if (isStream(mask)) {
  28915. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  28916. } else {
  28917. // Color key mask (just an array).
  28918. this.mask = mask;
  28919. }
  28920. }
  28921. }
  28922. /**
  28923. * Handles processing of image data and returns the Promise that is resolved
  28924. * with a PDFImage when the image is ready to be used.
  28925. */
  28926. PDFImage.buildImage = function PDFImage_buildImage(handler, xref,
  28927. res, image, inline) {
  28928. var imagePromise = handleImageData(handler, xref, res, image);
  28929. var smaskPromise;
  28930. var maskPromise;
  28931. var smask = image.dict.get('SMask');
  28932. var mask = image.dict.get('Mask');
  28933. if (smask) {
  28934. smaskPromise = handleImageData(handler, xref, res, smask);
  28935. maskPromise = Promise.resolve(null);
  28936. } else {
  28937. smaskPromise = Promise.resolve(null);
  28938. if (mask) {
  28939. if (isStream(mask)) {
  28940. maskPromise = handleImageData(handler, xref, res, mask);
  28941. } else if (isArray(mask)) {
  28942. maskPromise = Promise.resolve(mask);
  28943. } else {
  28944. warn('Unsupported mask format.');
  28945. maskPromise = Promise.resolve(null);
  28946. }
  28947. } else {
  28948. maskPromise = Promise.resolve(null);
  28949. }
  28950. }
  28951. return Promise.all([imagePromise, smaskPromise, maskPromise]).then(
  28952. function(results) {
  28953. var imageData = results[0];
  28954. var smaskData = results[1];
  28955. var maskData = results[2];
  28956. return new PDFImage(xref, res, imageData, inline, smaskData, maskData);
  28957. });
  28958. };
  28959. /**
  28960. * Resize an image using the nearest neighbor algorithm. Currently only
  28961. * supports one and three component images.
  28962. * @param {TypedArray} pixels The original image with one component.
  28963. * @param {Number} bpc Number of bits per component.
  28964. * @param {Number} components Number of color components, 1 or 3 is supported.
  28965. * @param {Number} w1 Original width.
  28966. * @param {Number} h1 Original height.
  28967. * @param {Number} w2 New width.
  28968. * @param {Number} h2 New height.
  28969. * @param {TypedArray} dest (Optional) The destination buffer.
  28970. * @param {Number} alpha01 (Optional) Size reserved for the alpha channel.
  28971. * @return {TypedArray} Resized image data.
  28972. */
  28973. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  28974. w1, h1, w2, h2, dest, alpha01) {
  28975. if (components !== 1 && components !== 3) {
  28976. error('Unsupported component count for resizing.');
  28977. }
  28978. var length = w2 * h2 * components;
  28979. var temp = dest ? dest : (bpc <= 8 ? new Uint8Array(length) :
  28980. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  28981. var xRatio = w1 / w2;
  28982. var yRatio = h1 / h2;
  28983. var i, j, py, newIndex = 0, oldIndex;
  28984. var xScaled = new Uint16Array(w2);
  28985. var w1Scanline = w1 * components;
  28986. if (alpha01 !== 1) {
  28987. alpha01 = 0;
  28988. }
  28989. for (j = 0; j < w2; j++) {
  28990. xScaled[j] = Math.floor(j * xRatio) * components;
  28991. }
  28992. if (components === 1) {
  28993. for (i = 0; i < h2; i++) {
  28994. py = Math.floor(i * yRatio) * w1Scanline;
  28995. for (j = 0; j < w2; j++) {
  28996. oldIndex = py + xScaled[j];
  28997. temp[newIndex++] = pixels[oldIndex];
  28998. }
  28999. }
  29000. } else if (components === 3) {
  29001. for (i = 0; i < h2; i++) {
  29002. py = Math.floor(i * yRatio) * w1Scanline;
  29003. for (j = 0; j < w2; j++) {
  29004. oldIndex = py + xScaled[j];
  29005. temp[newIndex++] = pixels[oldIndex++];
  29006. temp[newIndex++] = pixels[oldIndex++];
  29007. temp[newIndex++] = pixels[oldIndex++];
  29008. newIndex += alpha01;
  29009. }
  29010. }
  29011. }
  29012. return temp;
  29013. };
  29014. PDFImage.createMask =
  29015. function PDFImage_createMask(imgArray, width, height, canTransfer,
  29016. inverseDecode) {
  29017. // If imgArray came from a DecodeStream, we're safe to transfer it.
  29018. // Otherwise, copy it.
  29019. var actualLength = imgArray.byteLength;
  29020. var data;
  29021. if (canTransfer) {
  29022. data = imgArray;
  29023. } else {
  29024. data = new Uint8Array(actualLength);
  29025. data.set(imgArray);
  29026. }
  29027. // Invert if necessary. It's safe to modify the array -- whether it's the
  29028. // original or a copy, we're about to transfer it anyway, so nothing else
  29029. // in this thread can be relying on its contents.
  29030. if (inverseDecode) {
  29031. for (var i = 0; i < actualLength; i++) {
  29032. data[i] = ~data[i];
  29033. }
  29034. }
  29035. return {data: data, width: width, height: height};
  29036. };
  29037. PDFImage.prototype = {
  29038. get drawWidth() {
  29039. return Math.max(this.width,
  29040. this.smask && this.smask.width || 0,
  29041. this.mask && this.mask.width || 0);
  29042. },
  29043. get drawHeight() {
  29044. return Math.max(this.height,
  29045. this.smask && this.smask.height || 0,
  29046. this.mask && this.mask.height || 0);
  29047. },
  29048. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  29049. var bpc = this.bpc;
  29050. var numComps = this.numComps;
  29051. var decodeAddends = this.decodeAddends;
  29052. var decodeCoefficients = this.decodeCoefficients;
  29053. var max = (1 << bpc) - 1;
  29054. var i, ii;
  29055. if (bpc === 1) {
  29056. // If the buffer needed decode that means it just needs to be inverted.
  29057. for (i = 0, ii = buffer.length; i < ii; i++) {
  29058. buffer[i] = +!(buffer[i]);
  29059. }
  29060. return;
  29061. }
  29062. var index = 0;
  29063. for (i = 0, ii = this.width * this.height; i < ii; i++) {
  29064. for (var j = 0; j < numComps; j++) {
  29065. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  29066. decodeCoefficients[j], max);
  29067. index++;
  29068. }
  29069. }
  29070. },
  29071. getComponents: function PDFImage_getComponents(buffer) {
  29072. var bpc = this.bpc;
  29073. // This image doesn't require any extra work.
  29074. if (bpc === 8) {
  29075. return buffer;
  29076. }
  29077. var width = this.width;
  29078. var height = this.height;
  29079. var numComps = this.numComps;
  29080. var length = width * height * numComps;
  29081. var bufferPos = 0;
  29082. var output = (bpc <= 8 ? new Uint8Array(length) :
  29083. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  29084. var rowComps = width * numComps;
  29085. var max = (1 << bpc) - 1;
  29086. var i = 0, ii, buf;
  29087. if (bpc === 1) {
  29088. // Optimization for reading 1 bpc images.
  29089. var mask, loop1End, loop2End;
  29090. for (var j = 0; j < height; j++) {
  29091. loop1End = i + (rowComps & ~7);
  29092. loop2End = i + rowComps;
  29093. // unroll loop for all full bytes
  29094. while (i < loop1End) {
  29095. buf = buffer[bufferPos++];
  29096. output[i] = (buf >> 7) & 1;
  29097. output[i + 1] = (buf >> 6) & 1;
  29098. output[i + 2] = (buf >> 5) & 1;
  29099. output[i + 3] = (buf >> 4) & 1;
  29100. output[i + 4] = (buf >> 3) & 1;
  29101. output[i + 5] = (buf >> 2) & 1;
  29102. output[i + 6] = (buf >> 1) & 1;
  29103. output[i + 7] = buf & 1;
  29104. i += 8;
  29105. }
  29106. // handle remaing bits
  29107. if (i < loop2End) {
  29108. buf = buffer[bufferPos++];
  29109. mask = 128;
  29110. while (i < loop2End) {
  29111. output[i++] = +!!(buf & mask);
  29112. mask >>= 1;
  29113. }
  29114. }
  29115. }
  29116. } else {
  29117. // The general case that handles all other bpc values.
  29118. var bits = 0;
  29119. buf = 0;
  29120. for (i = 0, ii = length; i < ii; ++i) {
  29121. if (i % rowComps === 0) {
  29122. buf = 0;
  29123. bits = 0;
  29124. }
  29125. while (bits < bpc) {
  29126. buf = (buf << 8) | buffer[bufferPos++];
  29127. bits += 8;
  29128. }
  29129. var remainingBits = bits - bpc;
  29130. var value = buf >> remainingBits;
  29131. output[i] = (value < 0 ? 0 : (value > max ? max : value));
  29132. buf = buf & ((1 << remainingBits) - 1);
  29133. bits = remainingBits;
  29134. }
  29135. }
  29136. return output;
  29137. },
  29138. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  29139. actualHeight, image) {
  29140. var smask = this.smask;
  29141. var mask = this.mask;
  29142. var alphaBuf, sw, sh, i, ii, j;
  29143. if (smask) {
  29144. sw = smask.width;
  29145. sh = smask.height;
  29146. alphaBuf = new Uint8Array(sw * sh);
  29147. smask.fillGrayBuffer(alphaBuf);
  29148. if (sw != width || sh != height) {
  29149. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  29150. height);
  29151. }
  29152. } else if (mask) {
  29153. if (mask instanceof PDFImage) {
  29154. sw = mask.width;
  29155. sh = mask.height;
  29156. alphaBuf = new Uint8Array(sw * sh);
  29157. mask.numComps = 1;
  29158. mask.fillGrayBuffer(alphaBuf);
  29159. // Need to invert values in rgbaBuf
  29160. for (i = 0, ii = sw * sh; i < ii; ++i) {
  29161. alphaBuf[i] = 255 - alphaBuf[i];
  29162. }
  29163. if (sw != width || sh != height) {
  29164. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  29165. height);
  29166. }
  29167. } else if (isArray(mask)) {
  29168. // Color key mask: if any of the compontents are outside the range
  29169. // then they should be painted.
  29170. alphaBuf = new Uint8Array(width * height);
  29171. var numComps = this.numComps;
  29172. for (i = 0, ii = width * height; i < ii; ++i) {
  29173. var opacity = 0;
  29174. var imageOffset = i * numComps;
  29175. for (j = 0; j < numComps; ++j) {
  29176. var color = image[imageOffset + j];
  29177. var maskOffset = j * 2;
  29178. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  29179. opacity = 255;
  29180. break;
  29181. }
  29182. }
  29183. alphaBuf[i] = opacity;
  29184. }
  29185. } else {
  29186. error('Unknown mask format.');
  29187. }
  29188. }
  29189. if (alphaBuf) {
  29190. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29191. rgbaBuf[j] = alphaBuf[i];
  29192. }
  29193. } else {
  29194. // No mask.
  29195. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  29196. rgbaBuf[j] = 255;
  29197. }
  29198. }
  29199. },
  29200. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  29201. var matte = this.smask && this.smask.matte;
  29202. if (!matte) {
  29203. return;
  29204. }
  29205. function clamp(value) {
  29206. return (value < 0 ? 0 : (value > 255 ? 255 : value)) | 0;
  29207. }
  29208. var matteRgb = this.colorSpace.getRgb(matte, 0);
  29209. var length = width * height * 4;
  29210. for (var i = 0; i < length; i += 4) {
  29211. var alpha = buffer[i + 3];
  29212. if (alpha === 0) {
  29213. // according formula we have to get Infinity in all components
  29214. // making it white (tipical paper color) should be okay
  29215. buffer[i] = 255;
  29216. buffer[i + 1] = 255;
  29217. buffer[i + 2] = 255;
  29218. continue;
  29219. }
  29220. var k = 255 / alpha;
  29221. buffer[i] = clamp((buffer[i] - matteRgb[0]) * k + matteRgb[0]);
  29222. buffer[i + 1] = clamp((buffer[i + 1] - matteRgb[1]) * k + matteRgb[1]);
  29223. buffer[i + 2] = clamp((buffer[i + 2] - matteRgb[2]) * k + matteRgb[2]);
  29224. }
  29225. },
  29226. createImageData: function PDFImage_createImageData(forceRGBA) {
  29227. var drawWidth = this.drawWidth;
  29228. var drawHeight = this.drawHeight;
  29229. var imgData = { // other fields are filled in below
  29230. width: drawWidth,
  29231. height: drawHeight
  29232. };
  29233. var numComps = this.numComps;
  29234. var originalWidth = this.width;
  29235. var originalHeight = this.height;
  29236. var bpc = this.bpc;
  29237. // Rows start at byte boundary.
  29238. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  29239. var imgArray;
  29240. if (!forceRGBA) {
  29241. // If it is a 1-bit-per-pixel grayscale (i.e. black-and-white) image
  29242. // without any complications, we pass a same-sized copy to the main
  29243. // thread rather than expanding by 32x to RGBA form. This saves *lots*
  29244. // of memory for many scanned documents. It's also much faster.
  29245. //
  29246. // Similarly, if it is a 24-bit-per pixel RGB image without any
  29247. // complications, we avoid expanding by 1.333x to RGBA form.
  29248. var kind;
  29249. if (this.colorSpace.name === 'DeviceGray' && bpc === 1) {
  29250. kind = ImageKind.GRAYSCALE_1BPP;
  29251. } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8) {
  29252. kind = ImageKind.RGB_24BPP;
  29253. }
  29254. if (kind && !this.smask && !this.mask && !this.needsDecode &&
  29255. drawWidth === originalWidth && drawHeight === originalHeight) {
  29256. imgData.kind = kind;
  29257. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29258. // If imgArray came from a DecodeStream, we're safe to transfer it
  29259. // (and thus neuter it) because it will constitute the entire
  29260. // DecodeStream's data. But if it came from a Stream, we need to
  29261. // copy it because it'll only be a portion of the Stream's data, and
  29262. // the rest will be read later on.
  29263. if (this.image instanceof DecodeStream) {
  29264. imgData.data = imgArray;
  29265. } else {
  29266. var newArray = new Uint8Array(imgArray.length);
  29267. newArray.set(imgArray);
  29268. imgData.data = newArray;
  29269. }
  29270. return imgData;
  29271. }
  29272. }
  29273. if (this.image instanceof JpegStream) {
  29274. imgData.kind = ImageKind.RGB_24BPP;
  29275. imgData.data = this.getImageBytes(originalHeight * rowBytes,
  29276. drawWidth, drawHeight);
  29277. return imgData;
  29278. }
  29279. imgArray = this.getImageBytes(originalHeight * rowBytes);
  29280. // imgArray can be incomplete (e.g. after CCITT fax encoding).
  29281. var actualHeight = 0 | (imgArray.length / rowBytes *
  29282. drawHeight / originalHeight);
  29283. var comps = this.getComponents(imgArray);
  29284. // If opacity data is present, use RGBA_32BPP form. Otherwise, use the
  29285. // more compact RGB_24BPP form if allowable.
  29286. var alpha01, maybeUndoPreblend;
  29287. if (!forceRGBA && !this.smask && !this.mask) {
  29288. imgData.kind = ImageKind.RGB_24BPP;
  29289. imgData.data = new Uint8Array(drawWidth * drawHeight * 3);
  29290. alpha01 = 0;
  29291. maybeUndoPreblend = false;
  29292. } else {
  29293. imgData.kind = ImageKind.RGBA_32BPP;
  29294. imgData.data = new Uint8Array(drawWidth * drawHeight * 4);
  29295. alpha01 = 1;
  29296. maybeUndoPreblend = true;
  29297. // Color key masking (opacity) must be performed before decoding.
  29298. this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight,
  29299. comps);
  29300. }
  29301. if (this.needsDecode) {
  29302. this.decodeBuffer(comps);
  29303. }
  29304. this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight,
  29305. drawWidth, drawHeight, actualHeight, bpc, comps,
  29306. alpha01);
  29307. if (maybeUndoPreblend) {
  29308. this.undoPreblend(imgData.data, drawWidth, actualHeight);
  29309. }
  29310. return imgData;
  29311. },
  29312. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  29313. var numComps = this.numComps;
  29314. if (numComps != 1) {
  29315. error('Reading gray scale from a color image: ' + numComps);
  29316. }
  29317. var width = this.width;
  29318. var height = this.height;
  29319. var bpc = this.bpc;
  29320. // rows start at byte boundary
  29321. var rowBytes = (width * numComps * bpc + 7) >> 3;
  29322. var imgArray = this.getImageBytes(height * rowBytes);
  29323. var comps = this.getComponents(imgArray);
  29324. var i, length;
  29325. if (bpc === 1) {
  29326. // inline decoding (= inversion) for 1 bpc images
  29327. length = width * height;
  29328. if (this.needsDecode) {
  29329. // invert and scale to {0, 255}
  29330. for (i = 0; i < length; ++i) {
  29331. buffer[i] = (comps[i] - 1) & 255;
  29332. }
  29333. } else {
  29334. // scale to {0, 255}
  29335. for (i = 0; i < length; ++i) {
  29336. buffer[i] = (-comps[i]) & 255;
  29337. }
  29338. }
  29339. return;
  29340. }
  29341. if (this.needsDecode) {
  29342. this.decodeBuffer(comps);
  29343. }
  29344. length = width * height;
  29345. // we aren't using a colorspace so we need to scale the value
  29346. var scale = 255 / ((1 << bpc) - 1);
  29347. for (i = 0; i < length; ++i) {
  29348. buffer[i] = (scale * comps[i]) | 0;
  29349. }
  29350. },
  29351. getImageBytes: function PDFImage_getImageBytes(length,
  29352. drawWidth, drawHeight) {
  29353. this.image.reset();
  29354. this.image.drawWidth = drawWidth;
  29355. this.image.drawHeight = drawHeight;
  29356. return this.image.getBytes(length);
  29357. }
  29358. };
  29359. return PDFImage;
  29360. })();
  29361. // The Metrics object contains glyph widths (in glyph space units).
  29362. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  29363. // space unit corresponds to 1/1000th of text space unit.
  29364. var Metrics = {
  29365. 'Courier': 600,
  29366. 'Courier-Bold': 600,
  29367. 'Courier-BoldOblique': 600,
  29368. 'Courier-Oblique': 600,
  29369. 'Helvetica' : {
  29370. 'space': 278,
  29371. 'exclam': 278,
  29372. 'quotedbl': 355,
  29373. 'numbersign': 556,
  29374. 'dollar': 556,
  29375. 'percent': 889,
  29376. 'ampersand': 667,
  29377. 'quoteright': 222,
  29378. 'parenleft': 333,
  29379. 'parenright': 333,
  29380. 'asterisk': 389,
  29381. 'plus': 584,
  29382. 'comma': 278,
  29383. 'hyphen': 333,
  29384. 'period': 278,
  29385. 'slash': 278,
  29386. 'zero': 556,
  29387. 'one': 556,
  29388. 'two': 556,
  29389. 'three': 556,
  29390. 'four': 556,
  29391. 'five': 556,
  29392. 'six': 556,
  29393. 'seven': 556,
  29394. 'eight': 556,
  29395. 'nine': 556,
  29396. 'colon': 278,
  29397. 'semicolon': 278,
  29398. 'less': 584,
  29399. 'equal': 584,
  29400. 'greater': 584,
  29401. 'question': 556,
  29402. 'at': 1015,
  29403. 'A': 667,
  29404. 'B': 667,
  29405. 'C': 722,
  29406. 'D': 722,
  29407. 'E': 667,
  29408. 'F': 611,
  29409. 'G': 778,
  29410. 'H': 722,
  29411. 'I': 278,
  29412. 'J': 500,
  29413. 'K': 667,
  29414. 'L': 556,
  29415. 'M': 833,
  29416. 'N': 722,
  29417. 'O': 778,
  29418. 'P': 667,
  29419. 'Q': 778,
  29420. 'R': 722,
  29421. 'S': 667,
  29422. 'T': 611,
  29423. 'U': 722,
  29424. 'V': 667,
  29425. 'W': 944,
  29426. 'X': 667,
  29427. 'Y': 667,
  29428. 'Z': 611,
  29429. 'bracketleft': 278,
  29430. 'backslash': 278,
  29431. 'bracketright': 278,
  29432. 'asciicircum': 469,
  29433. 'underscore': 556,
  29434. 'quoteleft': 222,
  29435. 'a': 556,
  29436. 'b': 556,
  29437. 'c': 500,
  29438. 'd': 556,
  29439. 'e': 556,
  29440. 'f': 278,
  29441. 'g': 556,
  29442. 'h': 556,
  29443. 'i': 222,
  29444. 'j': 222,
  29445. 'k': 500,
  29446. 'l': 222,
  29447. 'm': 833,
  29448. 'n': 556,
  29449. 'o': 556,
  29450. 'p': 556,
  29451. 'q': 556,
  29452. 'r': 333,
  29453. 's': 500,
  29454. 't': 278,
  29455. 'u': 556,
  29456. 'v': 500,
  29457. 'w': 722,
  29458. 'x': 500,
  29459. 'y': 500,
  29460. 'z': 500,
  29461. 'braceleft': 334,
  29462. 'bar': 260,
  29463. 'braceright': 334,
  29464. 'asciitilde': 584,
  29465. 'exclamdown': 333,
  29466. 'cent': 556,
  29467. 'sterling': 556,
  29468. 'fraction': 167,
  29469. 'yen': 556,
  29470. 'florin': 556,
  29471. 'section': 556,
  29472. 'currency': 556,
  29473. 'quotesingle': 191,
  29474. 'quotedblleft': 333,
  29475. 'guillemotleft': 556,
  29476. 'guilsinglleft': 333,
  29477. 'guilsinglright': 333,
  29478. 'fi': 500,
  29479. 'fl': 500,
  29480. 'endash': 556,
  29481. 'dagger': 556,
  29482. 'daggerdbl': 556,
  29483. 'periodcentered': 278,
  29484. 'paragraph': 537,
  29485. 'bullet': 350,
  29486. 'quotesinglbase': 222,
  29487. 'quotedblbase': 333,
  29488. 'quotedblright': 333,
  29489. 'guillemotright': 556,
  29490. 'ellipsis': 1000,
  29491. 'perthousand': 1000,
  29492. 'questiondown': 611,
  29493. 'grave': 333,
  29494. 'acute': 333,
  29495. 'circumflex': 333,
  29496. 'tilde': 333,
  29497. 'macron': 333,
  29498. 'breve': 333,
  29499. 'dotaccent': 333,
  29500. 'dieresis': 333,
  29501. 'ring': 333,
  29502. 'cedilla': 333,
  29503. 'hungarumlaut': 333,
  29504. 'ogonek': 333,
  29505. 'caron': 333,
  29506. 'emdash': 1000,
  29507. 'AE': 1000,
  29508. 'ordfeminine': 370,
  29509. 'Lslash': 556,
  29510. 'Oslash': 778,
  29511. 'OE': 1000,
  29512. 'ordmasculine': 365,
  29513. 'ae': 889,
  29514. 'dotlessi': 278,
  29515. 'lslash': 222,
  29516. 'oslash': 611,
  29517. 'oe': 944,
  29518. 'germandbls': 611,
  29519. 'Idieresis': 278,
  29520. 'eacute': 556,
  29521. 'abreve': 556,
  29522. 'uhungarumlaut': 556,
  29523. 'ecaron': 556,
  29524. 'Ydieresis': 667,
  29525. 'divide': 584,
  29526. 'Yacute': 667,
  29527. 'Acircumflex': 667,
  29528. 'aacute': 556,
  29529. 'Ucircumflex': 722,
  29530. 'yacute': 500,
  29531. 'scommaaccent': 500,
  29532. 'ecircumflex': 556,
  29533. 'Uring': 722,
  29534. 'Udieresis': 722,
  29535. 'aogonek': 556,
  29536. 'Uacute': 722,
  29537. 'uogonek': 556,
  29538. 'Edieresis': 667,
  29539. 'Dcroat': 722,
  29540. 'commaaccent': 250,
  29541. 'copyright': 737,
  29542. 'Emacron': 667,
  29543. 'ccaron': 500,
  29544. 'aring': 556,
  29545. 'Ncommaaccent': 722,
  29546. 'lacute': 222,
  29547. 'agrave': 556,
  29548. 'Tcommaaccent': 611,
  29549. 'Cacute': 722,
  29550. 'atilde': 556,
  29551. 'Edotaccent': 667,
  29552. 'scaron': 500,
  29553. 'scedilla': 500,
  29554. 'iacute': 278,
  29555. 'lozenge': 471,
  29556. 'Rcaron': 722,
  29557. 'Gcommaaccent': 778,
  29558. 'ucircumflex': 556,
  29559. 'acircumflex': 556,
  29560. 'Amacron': 667,
  29561. 'rcaron': 333,
  29562. 'ccedilla': 500,
  29563. 'Zdotaccent': 611,
  29564. 'Thorn': 667,
  29565. 'Omacron': 778,
  29566. 'Racute': 722,
  29567. 'Sacute': 667,
  29568. 'dcaron': 643,
  29569. 'Umacron': 722,
  29570. 'uring': 556,
  29571. 'threesuperior': 333,
  29572. 'Ograve': 778,
  29573. 'Agrave': 667,
  29574. 'Abreve': 667,
  29575. 'multiply': 584,
  29576. 'uacute': 556,
  29577. 'Tcaron': 611,
  29578. 'partialdiff': 476,
  29579. 'ydieresis': 500,
  29580. 'Nacute': 722,
  29581. 'icircumflex': 278,
  29582. 'Ecircumflex': 667,
  29583. 'adieresis': 556,
  29584. 'edieresis': 556,
  29585. 'cacute': 500,
  29586. 'nacute': 556,
  29587. 'umacron': 556,
  29588. 'Ncaron': 722,
  29589. 'Iacute': 278,
  29590. 'plusminus': 584,
  29591. 'brokenbar': 260,
  29592. 'registered': 737,
  29593. 'Gbreve': 778,
  29594. 'Idotaccent': 278,
  29595. 'summation': 600,
  29596. 'Egrave': 667,
  29597. 'racute': 333,
  29598. 'omacron': 556,
  29599. 'Zacute': 611,
  29600. 'Zcaron': 611,
  29601. 'greaterequal': 549,
  29602. 'Eth': 722,
  29603. 'Ccedilla': 722,
  29604. 'lcommaaccent': 222,
  29605. 'tcaron': 317,
  29606. 'eogonek': 556,
  29607. 'Uogonek': 722,
  29608. 'Aacute': 667,
  29609. 'Adieresis': 667,
  29610. 'egrave': 556,
  29611. 'zacute': 500,
  29612. 'iogonek': 222,
  29613. 'Oacute': 778,
  29614. 'oacute': 556,
  29615. 'amacron': 556,
  29616. 'sacute': 500,
  29617. 'idieresis': 278,
  29618. 'Ocircumflex': 778,
  29619. 'Ugrave': 722,
  29620. 'Delta': 612,
  29621. 'thorn': 556,
  29622. 'twosuperior': 333,
  29623. 'Odieresis': 778,
  29624. 'mu': 556,
  29625. 'igrave': 278,
  29626. 'ohungarumlaut': 556,
  29627. 'Eogonek': 667,
  29628. 'dcroat': 556,
  29629. 'threequarters': 834,
  29630. 'Scedilla': 667,
  29631. 'lcaron': 299,
  29632. 'Kcommaaccent': 667,
  29633. 'Lacute': 556,
  29634. 'trademark': 1000,
  29635. 'edotaccent': 556,
  29636. 'Igrave': 278,
  29637. 'Imacron': 278,
  29638. 'Lcaron': 556,
  29639. 'onehalf': 834,
  29640. 'lessequal': 549,
  29641. 'ocircumflex': 556,
  29642. 'ntilde': 556,
  29643. 'Uhungarumlaut': 722,
  29644. 'Eacute': 667,
  29645. 'emacron': 556,
  29646. 'gbreve': 556,
  29647. 'onequarter': 834,
  29648. 'Scaron': 667,
  29649. 'Scommaaccent': 667,
  29650. 'Ohungarumlaut': 778,
  29651. 'degree': 400,
  29652. 'ograve': 556,
  29653. 'Ccaron': 722,
  29654. 'ugrave': 556,
  29655. 'radical': 453,
  29656. 'Dcaron': 722,
  29657. 'rcommaaccent': 333,
  29658. 'Ntilde': 722,
  29659. 'otilde': 556,
  29660. 'Rcommaaccent': 722,
  29661. 'Lcommaaccent': 556,
  29662. 'Atilde': 667,
  29663. 'Aogonek': 667,
  29664. 'Aring': 667,
  29665. 'Otilde': 778,
  29666. 'zdotaccent': 500,
  29667. 'Ecaron': 667,
  29668. 'Iogonek': 278,
  29669. 'kcommaaccent': 500,
  29670. 'minus': 584,
  29671. 'Icircumflex': 278,
  29672. 'ncaron': 556,
  29673. 'tcommaaccent': 278,
  29674. 'logicalnot': 584,
  29675. 'odieresis': 556,
  29676. 'udieresis': 556,
  29677. 'notequal': 549,
  29678. 'gcommaaccent': 556,
  29679. 'eth': 556,
  29680. 'zcaron': 500,
  29681. 'ncommaaccent': 556,
  29682. 'onesuperior': 333,
  29683. 'imacron': 278,
  29684. 'Euro': 556
  29685. },
  29686. 'Helvetica-Bold': {
  29687. 'space': 278,
  29688. 'exclam': 333,
  29689. 'quotedbl': 474,
  29690. 'numbersign': 556,
  29691. 'dollar': 556,
  29692. 'percent': 889,
  29693. 'ampersand': 722,
  29694. 'quoteright': 278,
  29695. 'parenleft': 333,
  29696. 'parenright': 333,
  29697. 'asterisk': 389,
  29698. 'plus': 584,
  29699. 'comma': 278,
  29700. 'hyphen': 333,
  29701. 'period': 278,
  29702. 'slash': 278,
  29703. 'zero': 556,
  29704. 'one': 556,
  29705. 'two': 556,
  29706. 'three': 556,
  29707. 'four': 556,
  29708. 'five': 556,
  29709. 'six': 556,
  29710. 'seven': 556,
  29711. 'eight': 556,
  29712. 'nine': 556,
  29713. 'colon': 333,
  29714. 'semicolon': 333,
  29715. 'less': 584,
  29716. 'equal': 584,
  29717. 'greater': 584,
  29718. 'question': 611,
  29719. 'at': 975,
  29720. 'A': 722,
  29721. 'B': 722,
  29722. 'C': 722,
  29723. 'D': 722,
  29724. 'E': 667,
  29725. 'F': 611,
  29726. 'G': 778,
  29727. 'H': 722,
  29728. 'I': 278,
  29729. 'J': 556,
  29730. 'K': 722,
  29731. 'L': 611,
  29732. 'M': 833,
  29733. 'N': 722,
  29734. 'O': 778,
  29735. 'P': 667,
  29736. 'Q': 778,
  29737. 'R': 722,
  29738. 'S': 667,
  29739. 'T': 611,
  29740. 'U': 722,
  29741. 'V': 667,
  29742. 'W': 944,
  29743. 'X': 667,
  29744. 'Y': 667,
  29745. 'Z': 611,
  29746. 'bracketleft': 333,
  29747. 'backslash': 278,
  29748. 'bracketright': 333,
  29749. 'asciicircum': 584,
  29750. 'underscore': 556,
  29751. 'quoteleft': 278,
  29752. 'a': 556,
  29753. 'b': 611,
  29754. 'c': 556,
  29755. 'd': 611,
  29756. 'e': 556,
  29757. 'f': 333,
  29758. 'g': 611,
  29759. 'h': 611,
  29760. 'i': 278,
  29761. 'j': 278,
  29762. 'k': 556,
  29763. 'l': 278,
  29764. 'm': 889,
  29765. 'n': 611,
  29766. 'o': 611,
  29767. 'p': 611,
  29768. 'q': 611,
  29769. 'r': 389,
  29770. 's': 556,
  29771. 't': 333,
  29772. 'u': 611,
  29773. 'v': 556,
  29774. 'w': 778,
  29775. 'x': 556,
  29776. 'y': 556,
  29777. 'z': 500,
  29778. 'braceleft': 389,
  29779. 'bar': 280,
  29780. 'braceright': 389,
  29781. 'asciitilde': 584,
  29782. 'exclamdown': 333,
  29783. 'cent': 556,
  29784. 'sterling': 556,
  29785. 'fraction': 167,
  29786. 'yen': 556,
  29787. 'florin': 556,
  29788. 'section': 556,
  29789. 'currency': 556,
  29790. 'quotesingle': 238,
  29791. 'quotedblleft': 500,
  29792. 'guillemotleft': 556,
  29793. 'guilsinglleft': 333,
  29794. 'guilsinglright': 333,
  29795. 'fi': 611,
  29796. 'fl': 611,
  29797. 'endash': 556,
  29798. 'dagger': 556,
  29799. 'daggerdbl': 556,
  29800. 'periodcentered': 278,
  29801. 'paragraph': 556,
  29802. 'bullet': 350,
  29803. 'quotesinglbase': 278,
  29804. 'quotedblbase': 500,
  29805. 'quotedblright': 500,
  29806. 'guillemotright': 556,
  29807. 'ellipsis': 1000,
  29808. 'perthousand': 1000,
  29809. 'questiondown': 611,
  29810. 'grave': 333,
  29811. 'acute': 333,
  29812. 'circumflex': 333,
  29813. 'tilde': 333,
  29814. 'macron': 333,
  29815. 'breve': 333,
  29816. 'dotaccent': 333,
  29817. 'dieresis': 333,
  29818. 'ring': 333,
  29819. 'cedilla': 333,
  29820. 'hungarumlaut': 333,
  29821. 'ogonek': 333,
  29822. 'caron': 333,
  29823. 'emdash': 1000,
  29824. 'AE': 1000,
  29825. 'ordfeminine': 370,
  29826. 'Lslash': 611,
  29827. 'Oslash': 778,
  29828. 'OE': 1000,
  29829. 'ordmasculine': 365,
  29830. 'ae': 889,
  29831. 'dotlessi': 278,
  29832. 'lslash': 278,
  29833. 'oslash': 611,
  29834. 'oe': 944,
  29835. 'germandbls': 611,
  29836. 'Idieresis': 278,
  29837. 'eacute': 556,
  29838. 'abreve': 556,
  29839. 'uhungarumlaut': 611,
  29840. 'ecaron': 556,
  29841. 'Ydieresis': 667,
  29842. 'divide': 584,
  29843. 'Yacute': 667,
  29844. 'Acircumflex': 722,
  29845. 'aacute': 556,
  29846. 'Ucircumflex': 722,
  29847. 'yacute': 556,
  29848. 'scommaaccent': 556,
  29849. 'ecircumflex': 556,
  29850. 'Uring': 722,
  29851. 'Udieresis': 722,
  29852. 'aogonek': 556,
  29853. 'Uacute': 722,
  29854. 'uogonek': 611,
  29855. 'Edieresis': 667,
  29856. 'Dcroat': 722,
  29857. 'commaaccent': 250,
  29858. 'copyright': 737,
  29859. 'Emacron': 667,
  29860. 'ccaron': 556,
  29861. 'aring': 556,
  29862. 'Ncommaaccent': 722,
  29863. 'lacute': 278,
  29864. 'agrave': 556,
  29865. 'Tcommaaccent': 611,
  29866. 'Cacute': 722,
  29867. 'atilde': 556,
  29868. 'Edotaccent': 667,
  29869. 'scaron': 556,
  29870. 'scedilla': 556,
  29871. 'iacute': 278,
  29872. 'lozenge': 494,
  29873. 'Rcaron': 722,
  29874. 'Gcommaaccent': 778,
  29875. 'ucircumflex': 611,
  29876. 'acircumflex': 556,
  29877. 'Amacron': 722,
  29878. 'rcaron': 389,
  29879. 'ccedilla': 556,
  29880. 'Zdotaccent': 611,
  29881. 'Thorn': 667,
  29882. 'Omacron': 778,
  29883. 'Racute': 722,
  29884. 'Sacute': 667,
  29885. 'dcaron': 743,
  29886. 'Umacron': 722,
  29887. 'uring': 611,
  29888. 'threesuperior': 333,
  29889. 'Ograve': 778,
  29890. 'Agrave': 722,
  29891. 'Abreve': 722,
  29892. 'multiply': 584,
  29893. 'uacute': 611,
  29894. 'Tcaron': 611,
  29895. 'partialdiff': 494,
  29896. 'ydieresis': 556,
  29897. 'Nacute': 722,
  29898. 'icircumflex': 278,
  29899. 'Ecircumflex': 667,
  29900. 'adieresis': 556,
  29901. 'edieresis': 556,
  29902. 'cacute': 556,
  29903. 'nacute': 611,
  29904. 'umacron': 611,
  29905. 'Ncaron': 722,
  29906. 'Iacute': 278,
  29907. 'plusminus': 584,
  29908. 'brokenbar': 280,
  29909. 'registered': 737,
  29910. 'Gbreve': 778,
  29911. 'Idotaccent': 278,
  29912. 'summation': 600,
  29913. 'Egrave': 667,
  29914. 'racute': 389,
  29915. 'omacron': 611,
  29916. 'Zacute': 611,
  29917. 'Zcaron': 611,
  29918. 'greaterequal': 549,
  29919. 'Eth': 722,
  29920. 'Ccedilla': 722,
  29921. 'lcommaaccent': 278,
  29922. 'tcaron': 389,
  29923. 'eogonek': 556,
  29924. 'Uogonek': 722,
  29925. 'Aacute': 722,
  29926. 'Adieresis': 722,
  29927. 'egrave': 556,
  29928. 'zacute': 500,
  29929. 'iogonek': 278,
  29930. 'Oacute': 778,
  29931. 'oacute': 611,
  29932. 'amacron': 556,
  29933. 'sacute': 556,
  29934. 'idieresis': 278,
  29935. 'Ocircumflex': 778,
  29936. 'Ugrave': 722,
  29937. 'Delta': 612,
  29938. 'thorn': 611,
  29939. 'twosuperior': 333,
  29940. 'Odieresis': 778,
  29941. 'mu': 611,
  29942. 'igrave': 278,
  29943. 'ohungarumlaut': 611,
  29944. 'Eogonek': 667,
  29945. 'dcroat': 611,
  29946. 'threequarters': 834,
  29947. 'Scedilla': 667,
  29948. 'lcaron': 400,
  29949. 'Kcommaaccent': 722,
  29950. 'Lacute': 611,
  29951. 'trademark': 1000,
  29952. 'edotaccent': 556,
  29953. 'Igrave': 278,
  29954. 'Imacron': 278,
  29955. 'Lcaron': 611,
  29956. 'onehalf': 834,
  29957. 'lessequal': 549,
  29958. 'ocircumflex': 611,
  29959. 'ntilde': 611,
  29960. 'Uhungarumlaut': 722,
  29961. 'Eacute': 667,
  29962. 'emacron': 556,
  29963. 'gbreve': 611,
  29964. 'onequarter': 834,
  29965. 'Scaron': 667,
  29966. 'Scommaaccent': 667,
  29967. 'Ohungarumlaut': 778,
  29968. 'degree': 400,
  29969. 'ograve': 611,
  29970. 'Ccaron': 722,
  29971. 'ugrave': 611,
  29972. 'radical': 549,
  29973. 'Dcaron': 722,
  29974. 'rcommaaccent': 389,
  29975. 'Ntilde': 722,
  29976. 'otilde': 611,
  29977. 'Rcommaaccent': 722,
  29978. 'Lcommaaccent': 611,
  29979. 'Atilde': 722,
  29980. 'Aogonek': 722,
  29981. 'Aring': 722,
  29982. 'Otilde': 778,
  29983. 'zdotaccent': 500,
  29984. 'Ecaron': 667,
  29985. 'Iogonek': 278,
  29986. 'kcommaaccent': 556,
  29987. 'minus': 584,
  29988. 'Icircumflex': 278,
  29989. 'ncaron': 611,
  29990. 'tcommaaccent': 333,
  29991. 'logicalnot': 584,
  29992. 'odieresis': 611,
  29993. 'udieresis': 611,
  29994. 'notequal': 549,
  29995. 'gcommaaccent': 611,
  29996. 'eth': 611,
  29997. 'zcaron': 500,
  29998. 'ncommaaccent': 611,
  29999. 'onesuperior': 333,
  30000. 'imacron': 278,
  30001. 'Euro': 556
  30002. },
  30003. 'Helvetica-BoldOblique': {
  30004. 'space': 278,
  30005. 'exclam': 333,
  30006. 'quotedbl': 474,
  30007. 'numbersign': 556,
  30008. 'dollar': 556,
  30009. 'percent': 889,
  30010. 'ampersand': 722,
  30011. 'quoteright': 278,
  30012. 'parenleft': 333,
  30013. 'parenright': 333,
  30014. 'asterisk': 389,
  30015. 'plus': 584,
  30016. 'comma': 278,
  30017. 'hyphen': 333,
  30018. 'period': 278,
  30019. 'slash': 278,
  30020. 'zero': 556,
  30021. 'one': 556,
  30022. 'two': 556,
  30023. 'three': 556,
  30024. 'four': 556,
  30025. 'five': 556,
  30026. 'six': 556,
  30027. 'seven': 556,
  30028. 'eight': 556,
  30029. 'nine': 556,
  30030. 'colon': 333,
  30031. 'semicolon': 333,
  30032. 'less': 584,
  30033. 'equal': 584,
  30034. 'greater': 584,
  30035. 'question': 611,
  30036. 'at': 975,
  30037. 'A': 722,
  30038. 'B': 722,
  30039. 'C': 722,
  30040. 'D': 722,
  30041. 'E': 667,
  30042. 'F': 611,
  30043. 'G': 778,
  30044. 'H': 722,
  30045. 'I': 278,
  30046. 'J': 556,
  30047. 'K': 722,
  30048. 'L': 611,
  30049. 'M': 833,
  30050. 'N': 722,
  30051. 'O': 778,
  30052. 'P': 667,
  30053. 'Q': 778,
  30054. 'R': 722,
  30055. 'S': 667,
  30056. 'T': 611,
  30057. 'U': 722,
  30058. 'V': 667,
  30059. 'W': 944,
  30060. 'X': 667,
  30061. 'Y': 667,
  30062. 'Z': 611,
  30063. 'bracketleft': 333,
  30064. 'backslash': 278,
  30065. 'bracketright': 333,
  30066. 'asciicircum': 584,
  30067. 'underscore': 556,
  30068. 'quoteleft': 278,
  30069. 'a': 556,
  30070. 'b': 611,
  30071. 'c': 556,
  30072. 'd': 611,
  30073. 'e': 556,
  30074. 'f': 333,
  30075. 'g': 611,
  30076. 'h': 611,
  30077. 'i': 278,
  30078. 'j': 278,
  30079. 'k': 556,
  30080. 'l': 278,
  30081. 'm': 889,
  30082. 'n': 611,
  30083. 'o': 611,
  30084. 'p': 611,
  30085. 'q': 611,
  30086. 'r': 389,
  30087. 's': 556,
  30088. 't': 333,
  30089. 'u': 611,
  30090. 'v': 556,
  30091. 'w': 778,
  30092. 'x': 556,
  30093. 'y': 556,
  30094. 'z': 500,
  30095. 'braceleft': 389,
  30096. 'bar': 280,
  30097. 'braceright': 389,
  30098. 'asciitilde': 584,
  30099. 'exclamdown': 333,
  30100. 'cent': 556,
  30101. 'sterling': 556,
  30102. 'fraction': 167,
  30103. 'yen': 556,
  30104. 'florin': 556,
  30105. 'section': 556,
  30106. 'currency': 556,
  30107. 'quotesingle': 238,
  30108. 'quotedblleft': 500,
  30109. 'guillemotleft': 556,
  30110. 'guilsinglleft': 333,
  30111. 'guilsinglright': 333,
  30112. 'fi': 611,
  30113. 'fl': 611,
  30114. 'endash': 556,
  30115. 'dagger': 556,
  30116. 'daggerdbl': 556,
  30117. 'periodcentered': 278,
  30118. 'paragraph': 556,
  30119. 'bullet': 350,
  30120. 'quotesinglbase': 278,
  30121. 'quotedblbase': 500,
  30122. 'quotedblright': 500,
  30123. 'guillemotright': 556,
  30124. 'ellipsis': 1000,
  30125. 'perthousand': 1000,
  30126. 'questiondown': 611,
  30127. 'grave': 333,
  30128. 'acute': 333,
  30129. 'circumflex': 333,
  30130. 'tilde': 333,
  30131. 'macron': 333,
  30132. 'breve': 333,
  30133. 'dotaccent': 333,
  30134. 'dieresis': 333,
  30135. 'ring': 333,
  30136. 'cedilla': 333,
  30137. 'hungarumlaut': 333,
  30138. 'ogonek': 333,
  30139. 'caron': 333,
  30140. 'emdash': 1000,
  30141. 'AE': 1000,
  30142. 'ordfeminine': 370,
  30143. 'Lslash': 611,
  30144. 'Oslash': 778,
  30145. 'OE': 1000,
  30146. 'ordmasculine': 365,
  30147. 'ae': 889,
  30148. 'dotlessi': 278,
  30149. 'lslash': 278,
  30150. 'oslash': 611,
  30151. 'oe': 944,
  30152. 'germandbls': 611,
  30153. 'Idieresis': 278,
  30154. 'eacute': 556,
  30155. 'abreve': 556,
  30156. 'uhungarumlaut': 611,
  30157. 'ecaron': 556,
  30158. 'Ydieresis': 667,
  30159. 'divide': 584,
  30160. 'Yacute': 667,
  30161. 'Acircumflex': 722,
  30162. 'aacute': 556,
  30163. 'Ucircumflex': 722,
  30164. 'yacute': 556,
  30165. 'scommaaccent': 556,
  30166. 'ecircumflex': 556,
  30167. 'Uring': 722,
  30168. 'Udieresis': 722,
  30169. 'aogonek': 556,
  30170. 'Uacute': 722,
  30171. 'uogonek': 611,
  30172. 'Edieresis': 667,
  30173. 'Dcroat': 722,
  30174. 'commaaccent': 250,
  30175. 'copyright': 737,
  30176. 'Emacron': 667,
  30177. 'ccaron': 556,
  30178. 'aring': 556,
  30179. 'Ncommaaccent': 722,
  30180. 'lacute': 278,
  30181. 'agrave': 556,
  30182. 'Tcommaaccent': 611,
  30183. 'Cacute': 722,
  30184. 'atilde': 556,
  30185. 'Edotaccent': 667,
  30186. 'scaron': 556,
  30187. 'scedilla': 556,
  30188. 'iacute': 278,
  30189. 'lozenge': 494,
  30190. 'Rcaron': 722,
  30191. 'Gcommaaccent': 778,
  30192. 'ucircumflex': 611,
  30193. 'acircumflex': 556,
  30194. 'Amacron': 722,
  30195. 'rcaron': 389,
  30196. 'ccedilla': 556,
  30197. 'Zdotaccent': 611,
  30198. 'Thorn': 667,
  30199. 'Omacron': 778,
  30200. 'Racute': 722,
  30201. 'Sacute': 667,
  30202. 'dcaron': 743,
  30203. 'Umacron': 722,
  30204. 'uring': 611,
  30205. 'threesuperior': 333,
  30206. 'Ograve': 778,
  30207. 'Agrave': 722,
  30208. 'Abreve': 722,
  30209. 'multiply': 584,
  30210. 'uacute': 611,
  30211. 'Tcaron': 611,
  30212. 'partialdiff': 494,
  30213. 'ydieresis': 556,
  30214. 'Nacute': 722,
  30215. 'icircumflex': 278,
  30216. 'Ecircumflex': 667,
  30217. 'adieresis': 556,
  30218. 'edieresis': 556,
  30219. 'cacute': 556,
  30220. 'nacute': 611,
  30221. 'umacron': 611,
  30222. 'Ncaron': 722,
  30223. 'Iacute': 278,
  30224. 'plusminus': 584,
  30225. 'brokenbar': 280,
  30226. 'registered': 737,
  30227. 'Gbreve': 778,
  30228. 'Idotaccent': 278,
  30229. 'summation': 600,
  30230. 'Egrave': 667,
  30231. 'racute': 389,
  30232. 'omacron': 611,
  30233. 'Zacute': 611,
  30234. 'Zcaron': 611,
  30235. 'greaterequal': 549,
  30236. 'Eth': 722,
  30237. 'Ccedilla': 722,
  30238. 'lcommaaccent': 278,
  30239. 'tcaron': 389,
  30240. 'eogonek': 556,
  30241. 'Uogonek': 722,
  30242. 'Aacute': 722,
  30243. 'Adieresis': 722,
  30244. 'egrave': 556,
  30245. 'zacute': 500,
  30246. 'iogonek': 278,
  30247. 'Oacute': 778,
  30248. 'oacute': 611,
  30249. 'amacron': 556,
  30250. 'sacute': 556,
  30251. 'idieresis': 278,
  30252. 'Ocircumflex': 778,
  30253. 'Ugrave': 722,
  30254. 'Delta': 612,
  30255. 'thorn': 611,
  30256. 'twosuperior': 333,
  30257. 'Odieresis': 778,
  30258. 'mu': 611,
  30259. 'igrave': 278,
  30260. 'ohungarumlaut': 611,
  30261. 'Eogonek': 667,
  30262. 'dcroat': 611,
  30263. 'threequarters': 834,
  30264. 'Scedilla': 667,
  30265. 'lcaron': 400,
  30266. 'Kcommaaccent': 722,
  30267. 'Lacute': 611,
  30268. 'trademark': 1000,
  30269. 'edotaccent': 556,
  30270. 'Igrave': 278,
  30271. 'Imacron': 278,
  30272. 'Lcaron': 611,
  30273. 'onehalf': 834,
  30274. 'lessequal': 549,
  30275. 'ocircumflex': 611,
  30276. 'ntilde': 611,
  30277. 'Uhungarumlaut': 722,
  30278. 'Eacute': 667,
  30279. 'emacron': 556,
  30280. 'gbreve': 611,
  30281. 'onequarter': 834,
  30282. 'Scaron': 667,
  30283. 'Scommaaccent': 667,
  30284. 'Ohungarumlaut': 778,
  30285. 'degree': 400,
  30286. 'ograve': 611,
  30287. 'Ccaron': 722,
  30288. 'ugrave': 611,
  30289. 'radical': 549,
  30290. 'Dcaron': 722,
  30291. 'rcommaaccent': 389,
  30292. 'Ntilde': 722,
  30293. 'otilde': 611,
  30294. 'Rcommaaccent': 722,
  30295. 'Lcommaaccent': 611,
  30296. 'Atilde': 722,
  30297. 'Aogonek': 722,
  30298. 'Aring': 722,
  30299. 'Otilde': 778,
  30300. 'zdotaccent': 500,
  30301. 'Ecaron': 667,
  30302. 'Iogonek': 278,
  30303. 'kcommaaccent': 556,
  30304. 'minus': 584,
  30305. 'Icircumflex': 278,
  30306. 'ncaron': 611,
  30307. 'tcommaaccent': 333,
  30308. 'logicalnot': 584,
  30309. 'odieresis': 611,
  30310. 'udieresis': 611,
  30311. 'notequal': 549,
  30312. 'gcommaaccent': 611,
  30313. 'eth': 611,
  30314. 'zcaron': 500,
  30315. 'ncommaaccent': 611,
  30316. 'onesuperior': 333,
  30317. 'imacron': 278,
  30318. 'Euro': 556
  30319. },
  30320. 'Helvetica-Oblique' : {
  30321. 'space': 278,
  30322. 'exclam': 278,
  30323. 'quotedbl': 355,
  30324. 'numbersign': 556,
  30325. 'dollar': 556,
  30326. 'percent': 889,
  30327. 'ampersand': 667,
  30328. 'quoteright': 222,
  30329. 'parenleft': 333,
  30330. 'parenright': 333,
  30331. 'asterisk': 389,
  30332. 'plus': 584,
  30333. 'comma': 278,
  30334. 'hyphen': 333,
  30335. 'period': 278,
  30336. 'slash': 278,
  30337. 'zero': 556,
  30338. 'one': 556,
  30339. 'two': 556,
  30340. 'three': 556,
  30341. 'four': 556,
  30342. 'five': 556,
  30343. 'six': 556,
  30344. 'seven': 556,
  30345. 'eight': 556,
  30346. 'nine': 556,
  30347. 'colon': 278,
  30348. 'semicolon': 278,
  30349. 'less': 584,
  30350. 'equal': 584,
  30351. 'greater': 584,
  30352. 'question': 556,
  30353. 'at': 1015,
  30354. 'A': 667,
  30355. 'B': 667,
  30356. 'C': 722,
  30357. 'D': 722,
  30358. 'E': 667,
  30359. 'F': 611,
  30360. 'G': 778,
  30361. 'H': 722,
  30362. 'I': 278,
  30363. 'J': 500,
  30364. 'K': 667,
  30365. 'L': 556,
  30366. 'M': 833,
  30367. 'N': 722,
  30368. 'O': 778,
  30369. 'P': 667,
  30370. 'Q': 778,
  30371. 'R': 722,
  30372. 'S': 667,
  30373. 'T': 611,
  30374. 'U': 722,
  30375. 'V': 667,
  30376. 'W': 944,
  30377. 'X': 667,
  30378. 'Y': 667,
  30379. 'Z': 611,
  30380. 'bracketleft': 278,
  30381. 'backslash': 278,
  30382. 'bracketright': 278,
  30383. 'asciicircum': 469,
  30384. 'underscore': 556,
  30385. 'quoteleft': 222,
  30386. 'a': 556,
  30387. 'b': 556,
  30388. 'c': 500,
  30389. 'd': 556,
  30390. 'e': 556,
  30391. 'f': 278,
  30392. 'g': 556,
  30393. 'h': 556,
  30394. 'i': 222,
  30395. 'j': 222,
  30396. 'k': 500,
  30397. 'l': 222,
  30398. 'm': 833,
  30399. 'n': 556,
  30400. 'o': 556,
  30401. 'p': 556,
  30402. 'q': 556,
  30403. 'r': 333,
  30404. 's': 500,
  30405. 't': 278,
  30406. 'u': 556,
  30407. 'v': 500,
  30408. 'w': 722,
  30409. 'x': 500,
  30410. 'y': 500,
  30411. 'z': 500,
  30412. 'braceleft': 334,
  30413. 'bar': 260,
  30414. 'braceright': 334,
  30415. 'asciitilde': 584,
  30416. 'exclamdown': 333,
  30417. 'cent': 556,
  30418. 'sterling': 556,
  30419. 'fraction': 167,
  30420. 'yen': 556,
  30421. 'florin': 556,
  30422. 'section': 556,
  30423. 'currency': 556,
  30424. 'quotesingle': 191,
  30425. 'quotedblleft': 333,
  30426. 'guillemotleft': 556,
  30427. 'guilsinglleft': 333,
  30428. 'guilsinglright': 333,
  30429. 'fi': 500,
  30430. 'fl': 500,
  30431. 'endash': 556,
  30432. 'dagger': 556,
  30433. 'daggerdbl': 556,
  30434. 'periodcentered': 278,
  30435. 'paragraph': 537,
  30436. 'bullet': 350,
  30437. 'quotesinglbase': 222,
  30438. 'quotedblbase': 333,
  30439. 'quotedblright': 333,
  30440. 'guillemotright': 556,
  30441. 'ellipsis': 1000,
  30442. 'perthousand': 1000,
  30443. 'questiondown': 611,
  30444. 'grave': 333,
  30445. 'acute': 333,
  30446. 'circumflex': 333,
  30447. 'tilde': 333,
  30448. 'macron': 333,
  30449. 'breve': 333,
  30450. 'dotaccent': 333,
  30451. 'dieresis': 333,
  30452. 'ring': 333,
  30453. 'cedilla': 333,
  30454. 'hungarumlaut': 333,
  30455. 'ogonek': 333,
  30456. 'caron': 333,
  30457. 'emdash': 1000,
  30458. 'AE': 1000,
  30459. 'ordfeminine': 370,
  30460. 'Lslash': 556,
  30461. 'Oslash': 778,
  30462. 'OE': 1000,
  30463. 'ordmasculine': 365,
  30464. 'ae': 889,
  30465. 'dotlessi': 278,
  30466. 'lslash': 222,
  30467. 'oslash': 611,
  30468. 'oe': 944,
  30469. 'germandbls': 611,
  30470. 'Idieresis': 278,
  30471. 'eacute': 556,
  30472. 'abreve': 556,
  30473. 'uhungarumlaut': 556,
  30474. 'ecaron': 556,
  30475. 'Ydieresis': 667,
  30476. 'divide': 584,
  30477. 'Yacute': 667,
  30478. 'Acircumflex': 667,
  30479. 'aacute': 556,
  30480. 'Ucircumflex': 722,
  30481. 'yacute': 500,
  30482. 'scommaaccent': 500,
  30483. 'ecircumflex': 556,
  30484. 'Uring': 722,
  30485. 'Udieresis': 722,
  30486. 'aogonek': 556,
  30487. 'Uacute': 722,
  30488. 'uogonek': 556,
  30489. 'Edieresis': 667,
  30490. 'Dcroat': 722,
  30491. 'commaaccent': 250,
  30492. 'copyright': 737,
  30493. 'Emacron': 667,
  30494. 'ccaron': 500,
  30495. 'aring': 556,
  30496. 'Ncommaaccent': 722,
  30497. 'lacute': 222,
  30498. 'agrave': 556,
  30499. 'Tcommaaccent': 611,
  30500. 'Cacute': 722,
  30501. 'atilde': 556,
  30502. 'Edotaccent': 667,
  30503. 'scaron': 500,
  30504. 'scedilla': 500,
  30505. 'iacute': 278,
  30506. 'lozenge': 471,
  30507. 'Rcaron': 722,
  30508. 'Gcommaaccent': 778,
  30509. 'ucircumflex': 556,
  30510. 'acircumflex': 556,
  30511. 'Amacron': 667,
  30512. 'rcaron': 333,
  30513. 'ccedilla': 500,
  30514. 'Zdotaccent': 611,
  30515. 'Thorn': 667,
  30516. 'Omacron': 778,
  30517. 'Racute': 722,
  30518. 'Sacute': 667,
  30519. 'dcaron': 643,
  30520. 'Umacron': 722,
  30521. 'uring': 556,
  30522. 'threesuperior': 333,
  30523. 'Ograve': 778,
  30524. 'Agrave': 667,
  30525. 'Abreve': 667,
  30526. 'multiply': 584,
  30527. 'uacute': 556,
  30528. 'Tcaron': 611,
  30529. 'partialdiff': 476,
  30530. 'ydieresis': 500,
  30531. 'Nacute': 722,
  30532. 'icircumflex': 278,
  30533. 'Ecircumflex': 667,
  30534. 'adieresis': 556,
  30535. 'edieresis': 556,
  30536. 'cacute': 500,
  30537. 'nacute': 556,
  30538. 'umacron': 556,
  30539. 'Ncaron': 722,
  30540. 'Iacute': 278,
  30541. 'plusminus': 584,
  30542. 'brokenbar': 260,
  30543. 'registered': 737,
  30544. 'Gbreve': 778,
  30545. 'Idotaccent': 278,
  30546. 'summation': 600,
  30547. 'Egrave': 667,
  30548. 'racute': 333,
  30549. 'omacron': 556,
  30550. 'Zacute': 611,
  30551. 'Zcaron': 611,
  30552. 'greaterequal': 549,
  30553. 'Eth': 722,
  30554. 'Ccedilla': 722,
  30555. 'lcommaaccent': 222,
  30556. 'tcaron': 317,
  30557. 'eogonek': 556,
  30558. 'Uogonek': 722,
  30559. 'Aacute': 667,
  30560. 'Adieresis': 667,
  30561. 'egrave': 556,
  30562. 'zacute': 500,
  30563. 'iogonek': 222,
  30564. 'Oacute': 778,
  30565. 'oacute': 556,
  30566. 'amacron': 556,
  30567. 'sacute': 500,
  30568. 'idieresis': 278,
  30569. 'Ocircumflex': 778,
  30570. 'Ugrave': 722,
  30571. 'Delta': 612,
  30572. 'thorn': 556,
  30573. 'twosuperior': 333,
  30574. 'Odieresis': 778,
  30575. 'mu': 556,
  30576. 'igrave': 278,
  30577. 'ohungarumlaut': 556,
  30578. 'Eogonek': 667,
  30579. 'dcroat': 556,
  30580. 'threequarters': 834,
  30581. 'Scedilla': 667,
  30582. 'lcaron': 299,
  30583. 'Kcommaaccent': 667,
  30584. 'Lacute': 556,
  30585. 'trademark': 1000,
  30586. 'edotaccent': 556,
  30587. 'Igrave': 278,
  30588. 'Imacron': 278,
  30589. 'Lcaron': 556,
  30590. 'onehalf': 834,
  30591. 'lessequal': 549,
  30592. 'ocircumflex': 556,
  30593. 'ntilde': 556,
  30594. 'Uhungarumlaut': 722,
  30595. 'Eacute': 667,
  30596. 'emacron': 556,
  30597. 'gbreve': 556,
  30598. 'onequarter': 834,
  30599. 'Scaron': 667,
  30600. 'Scommaaccent': 667,
  30601. 'Ohungarumlaut': 778,
  30602. 'degree': 400,
  30603. 'ograve': 556,
  30604. 'Ccaron': 722,
  30605. 'ugrave': 556,
  30606. 'radical': 453,
  30607. 'Dcaron': 722,
  30608. 'rcommaaccent': 333,
  30609. 'Ntilde': 722,
  30610. 'otilde': 556,
  30611. 'Rcommaaccent': 722,
  30612. 'Lcommaaccent': 556,
  30613. 'Atilde': 667,
  30614. 'Aogonek': 667,
  30615. 'Aring': 667,
  30616. 'Otilde': 778,
  30617. 'zdotaccent': 500,
  30618. 'Ecaron': 667,
  30619. 'Iogonek': 278,
  30620. 'kcommaaccent': 500,
  30621. 'minus': 584,
  30622. 'Icircumflex': 278,
  30623. 'ncaron': 556,
  30624. 'tcommaaccent': 278,
  30625. 'logicalnot': 584,
  30626. 'odieresis': 556,
  30627. 'udieresis': 556,
  30628. 'notequal': 549,
  30629. 'gcommaaccent': 556,
  30630. 'eth': 556,
  30631. 'zcaron': 500,
  30632. 'ncommaaccent': 556,
  30633. 'onesuperior': 333,
  30634. 'imacron': 278,
  30635. 'Euro': 556
  30636. },
  30637. 'Symbol': {
  30638. 'space': 250,
  30639. 'exclam': 333,
  30640. 'universal': 713,
  30641. 'numbersign': 500,
  30642. 'existential': 549,
  30643. 'percent': 833,
  30644. 'ampersand': 778,
  30645. 'suchthat': 439,
  30646. 'parenleft': 333,
  30647. 'parenright': 333,
  30648. 'asteriskmath': 500,
  30649. 'plus': 549,
  30650. 'comma': 250,
  30651. 'minus': 549,
  30652. 'period': 250,
  30653. 'slash': 278,
  30654. 'zero': 500,
  30655. 'one': 500,
  30656. 'two': 500,
  30657. 'three': 500,
  30658. 'four': 500,
  30659. 'five': 500,
  30660. 'six': 500,
  30661. 'seven': 500,
  30662. 'eight': 500,
  30663. 'nine': 500,
  30664. 'colon': 278,
  30665. 'semicolon': 278,
  30666. 'less': 549,
  30667. 'equal': 549,
  30668. 'greater': 549,
  30669. 'question': 444,
  30670. 'congruent': 549,
  30671. 'Alpha': 722,
  30672. 'Beta': 667,
  30673. 'Chi': 722,
  30674. 'Delta': 612,
  30675. 'Epsilon': 611,
  30676. 'Phi': 763,
  30677. 'Gamma': 603,
  30678. 'Eta': 722,
  30679. 'Iota': 333,
  30680. 'theta1': 631,
  30681. 'Kappa': 722,
  30682. 'Lambda': 686,
  30683. 'Mu': 889,
  30684. 'Nu': 722,
  30685. 'Omicron': 722,
  30686. 'Pi': 768,
  30687. 'Theta': 741,
  30688. 'Rho': 556,
  30689. 'Sigma': 592,
  30690. 'Tau': 611,
  30691. 'Upsilon': 690,
  30692. 'sigma1': 439,
  30693. 'Omega': 768,
  30694. 'Xi': 645,
  30695. 'Psi': 795,
  30696. 'Zeta': 611,
  30697. 'bracketleft': 333,
  30698. 'therefore': 863,
  30699. 'bracketright': 333,
  30700. 'perpendicular': 658,
  30701. 'underscore': 500,
  30702. 'radicalex': 500,
  30703. 'alpha': 631,
  30704. 'beta': 549,
  30705. 'chi': 549,
  30706. 'delta': 494,
  30707. 'epsilon': 439,
  30708. 'phi': 521,
  30709. 'gamma': 411,
  30710. 'eta': 603,
  30711. 'iota': 329,
  30712. 'phi1': 603,
  30713. 'kappa': 549,
  30714. 'lambda': 549,
  30715. 'mu': 576,
  30716. 'nu': 521,
  30717. 'omicron': 549,
  30718. 'pi': 549,
  30719. 'theta': 521,
  30720. 'rho': 549,
  30721. 'sigma': 603,
  30722. 'tau': 439,
  30723. 'upsilon': 576,
  30724. 'omega1': 713,
  30725. 'omega': 686,
  30726. 'xi': 493,
  30727. 'psi': 686,
  30728. 'zeta': 494,
  30729. 'braceleft': 480,
  30730. 'bar': 200,
  30731. 'braceright': 480,
  30732. 'similar': 549,
  30733. 'Euro': 750,
  30734. 'Upsilon1': 620,
  30735. 'minute': 247,
  30736. 'lessequal': 549,
  30737. 'fraction': 167,
  30738. 'infinity': 713,
  30739. 'florin': 500,
  30740. 'club': 753,
  30741. 'diamond': 753,
  30742. 'heart': 753,
  30743. 'spade': 753,
  30744. 'arrowboth': 1042,
  30745. 'arrowleft': 987,
  30746. 'arrowup': 603,
  30747. 'arrowright': 987,
  30748. 'arrowdown': 603,
  30749. 'degree': 400,
  30750. 'plusminus': 549,
  30751. 'second': 411,
  30752. 'greaterequal': 549,
  30753. 'multiply': 549,
  30754. 'proportional': 713,
  30755. 'partialdiff': 494,
  30756. 'bullet': 460,
  30757. 'divide': 549,
  30758. 'notequal': 549,
  30759. 'equivalence': 549,
  30760. 'approxequal': 549,
  30761. 'ellipsis': 1000,
  30762. 'arrowvertex': 603,
  30763. 'arrowhorizex': 1000,
  30764. 'carriagereturn': 658,
  30765. 'aleph': 823,
  30766. 'Ifraktur': 686,
  30767. 'Rfraktur': 795,
  30768. 'weierstrass': 987,
  30769. 'circlemultiply': 768,
  30770. 'circleplus': 768,
  30771. 'emptyset': 823,
  30772. 'intersection': 768,
  30773. 'union': 768,
  30774. 'propersuperset': 713,
  30775. 'reflexsuperset': 713,
  30776. 'notsubset': 713,
  30777. 'propersubset': 713,
  30778. 'reflexsubset': 713,
  30779. 'element': 713,
  30780. 'notelement': 713,
  30781. 'angle': 768,
  30782. 'gradient': 713,
  30783. 'registerserif': 790,
  30784. 'copyrightserif': 790,
  30785. 'trademarkserif': 890,
  30786. 'product': 823,
  30787. 'radical': 549,
  30788. 'dotmath': 250,
  30789. 'logicalnot': 713,
  30790. 'logicaland': 603,
  30791. 'logicalor': 603,
  30792. 'arrowdblboth': 1042,
  30793. 'arrowdblleft': 987,
  30794. 'arrowdblup': 603,
  30795. 'arrowdblright': 987,
  30796. 'arrowdbldown': 603,
  30797. 'lozenge': 494,
  30798. 'angleleft': 329,
  30799. 'registersans': 790,
  30800. 'copyrightsans': 790,
  30801. 'trademarksans': 786,
  30802. 'summation': 713,
  30803. 'parenlefttp': 384,
  30804. 'parenleftex': 384,
  30805. 'parenleftbt': 384,
  30806. 'bracketlefttp': 384,
  30807. 'bracketleftex': 384,
  30808. 'bracketleftbt': 384,
  30809. 'bracelefttp': 494,
  30810. 'braceleftmid': 494,
  30811. 'braceleftbt': 494,
  30812. 'braceex': 494,
  30813. 'angleright': 329,
  30814. 'integral': 274,
  30815. 'integraltp': 686,
  30816. 'integralex': 686,
  30817. 'integralbt': 686,
  30818. 'parenrighttp': 384,
  30819. 'parenrightex': 384,
  30820. 'parenrightbt': 384,
  30821. 'bracketrighttp': 384,
  30822. 'bracketrightex': 384,
  30823. 'bracketrightbt': 384,
  30824. 'bracerighttp': 494,
  30825. 'bracerightmid': 494,
  30826. 'bracerightbt': 494,
  30827. 'apple': 790
  30828. },
  30829. 'Times-Roman': {
  30830. 'space': 250,
  30831. 'exclam': 333,
  30832. 'quotedbl': 408,
  30833. 'numbersign': 500,
  30834. 'dollar': 500,
  30835. 'percent': 833,
  30836. 'ampersand': 778,
  30837. 'quoteright': 333,
  30838. 'parenleft': 333,
  30839. 'parenright': 333,
  30840. 'asterisk': 500,
  30841. 'plus': 564,
  30842. 'comma': 250,
  30843. 'hyphen': 333,
  30844. 'period': 250,
  30845. 'slash': 278,
  30846. 'zero': 500,
  30847. 'one': 500,
  30848. 'two': 500,
  30849. 'three': 500,
  30850. 'four': 500,
  30851. 'five': 500,
  30852. 'six': 500,
  30853. 'seven': 500,
  30854. 'eight': 500,
  30855. 'nine': 500,
  30856. 'colon': 278,
  30857. 'semicolon': 278,
  30858. 'less': 564,
  30859. 'equal': 564,
  30860. 'greater': 564,
  30861. 'question': 444,
  30862. 'at': 921,
  30863. 'A': 722,
  30864. 'B': 667,
  30865. 'C': 667,
  30866. 'D': 722,
  30867. 'E': 611,
  30868. 'F': 556,
  30869. 'G': 722,
  30870. 'H': 722,
  30871. 'I': 333,
  30872. 'J': 389,
  30873. 'K': 722,
  30874. 'L': 611,
  30875. 'M': 889,
  30876. 'N': 722,
  30877. 'O': 722,
  30878. 'P': 556,
  30879. 'Q': 722,
  30880. 'R': 667,
  30881. 'S': 556,
  30882. 'T': 611,
  30883. 'U': 722,
  30884. 'V': 722,
  30885. 'W': 944,
  30886. 'X': 722,
  30887. 'Y': 722,
  30888. 'Z': 611,
  30889. 'bracketleft': 333,
  30890. 'backslash': 278,
  30891. 'bracketright': 333,
  30892. 'asciicircum': 469,
  30893. 'underscore': 500,
  30894. 'quoteleft': 333,
  30895. 'a': 444,
  30896. 'b': 500,
  30897. 'c': 444,
  30898. 'd': 500,
  30899. 'e': 444,
  30900. 'f': 333,
  30901. 'g': 500,
  30902. 'h': 500,
  30903. 'i': 278,
  30904. 'j': 278,
  30905. 'k': 500,
  30906. 'l': 278,
  30907. 'm': 778,
  30908. 'n': 500,
  30909. 'o': 500,
  30910. 'p': 500,
  30911. 'q': 500,
  30912. 'r': 333,
  30913. 's': 389,
  30914. 't': 278,
  30915. 'u': 500,
  30916. 'v': 500,
  30917. 'w': 722,
  30918. 'x': 500,
  30919. 'y': 500,
  30920. 'z': 444,
  30921. 'braceleft': 480,
  30922. 'bar': 200,
  30923. 'braceright': 480,
  30924. 'asciitilde': 541,
  30925. 'exclamdown': 333,
  30926. 'cent': 500,
  30927. 'sterling': 500,
  30928. 'fraction': 167,
  30929. 'yen': 500,
  30930. 'florin': 500,
  30931. 'section': 500,
  30932. 'currency': 500,
  30933. 'quotesingle': 180,
  30934. 'quotedblleft': 444,
  30935. 'guillemotleft': 500,
  30936. 'guilsinglleft': 333,
  30937. 'guilsinglright': 333,
  30938. 'fi': 556,
  30939. 'fl': 556,
  30940. 'endash': 500,
  30941. 'dagger': 500,
  30942. 'daggerdbl': 500,
  30943. 'periodcentered': 250,
  30944. 'paragraph': 453,
  30945. 'bullet': 350,
  30946. 'quotesinglbase': 333,
  30947. 'quotedblbase': 444,
  30948. 'quotedblright': 444,
  30949. 'guillemotright': 500,
  30950. 'ellipsis': 1000,
  30951. 'perthousand': 1000,
  30952. 'questiondown': 444,
  30953. 'grave': 333,
  30954. 'acute': 333,
  30955. 'circumflex': 333,
  30956. 'tilde': 333,
  30957. 'macron': 333,
  30958. 'breve': 333,
  30959. 'dotaccent': 333,
  30960. 'dieresis': 333,
  30961. 'ring': 333,
  30962. 'cedilla': 333,
  30963. 'hungarumlaut': 333,
  30964. 'ogonek': 333,
  30965. 'caron': 333,
  30966. 'emdash': 1000,
  30967. 'AE': 889,
  30968. 'ordfeminine': 276,
  30969. 'Lslash': 611,
  30970. 'Oslash': 722,
  30971. 'OE': 889,
  30972. 'ordmasculine': 310,
  30973. 'ae': 667,
  30974. 'dotlessi': 278,
  30975. 'lslash': 278,
  30976. 'oslash': 500,
  30977. 'oe': 722,
  30978. 'germandbls': 500,
  30979. 'Idieresis': 333,
  30980. 'eacute': 444,
  30981. 'abreve': 444,
  30982. 'uhungarumlaut': 500,
  30983. 'ecaron': 444,
  30984. 'Ydieresis': 722,
  30985. 'divide': 564,
  30986. 'Yacute': 722,
  30987. 'Acircumflex': 722,
  30988. 'aacute': 444,
  30989. 'Ucircumflex': 722,
  30990. 'yacute': 500,
  30991. 'scommaaccent': 389,
  30992. 'ecircumflex': 444,
  30993. 'Uring': 722,
  30994. 'Udieresis': 722,
  30995. 'aogonek': 444,
  30996. 'Uacute': 722,
  30997. 'uogonek': 500,
  30998. 'Edieresis': 611,
  30999. 'Dcroat': 722,
  31000. 'commaaccent': 250,
  31001. 'copyright': 760,
  31002. 'Emacron': 611,
  31003. 'ccaron': 444,
  31004. 'aring': 444,
  31005. 'Ncommaaccent': 722,
  31006. 'lacute': 278,
  31007. 'agrave': 444,
  31008. 'Tcommaaccent': 611,
  31009. 'Cacute': 667,
  31010. 'atilde': 444,
  31011. 'Edotaccent': 611,
  31012. 'scaron': 389,
  31013. 'scedilla': 389,
  31014. 'iacute': 278,
  31015. 'lozenge': 471,
  31016. 'Rcaron': 667,
  31017. 'Gcommaaccent': 722,
  31018. 'ucircumflex': 500,
  31019. 'acircumflex': 444,
  31020. 'Amacron': 722,
  31021. 'rcaron': 333,
  31022. 'ccedilla': 444,
  31023. 'Zdotaccent': 611,
  31024. 'Thorn': 556,
  31025. 'Omacron': 722,
  31026. 'Racute': 667,
  31027. 'Sacute': 556,
  31028. 'dcaron': 588,
  31029. 'Umacron': 722,
  31030. 'uring': 500,
  31031. 'threesuperior': 300,
  31032. 'Ograve': 722,
  31033. 'Agrave': 722,
  31034. 'Abreve': 722,
  31035. 'multiply': 564,
  31036. 'uacute': 500,
  31037. 'Tcaron': 611,
  31038. 'partialdiff': 476,
  31039. 'ydieresis': 500,
  31040. 'Nacute': 722,
  31041. 'icircumflex': 278,
  31042. 'Ecircumflex': 611,
  31043. 'adieresis': 444,
  31044. 'edieresis': 444,
  31045. 'cacute': 444,
  31046. 'nacute': 500,
  31047. 'umacron': 500,
  31048. 'Ncaron': 722,
  31049. 'Iacute': 333,
  31050. 'plusminus': 564,
  31051. 'brokenbar': 200,
  31052. 'registered': 760,
  31053. 'Gbreve': 722,
  31054. 'Idotaccent': 333,
  31055. 'summation': 600,
  31056. 'Egrave': 611,
  31057. 'racute': 333,
  31058. 'omacron': 500,
  31059. 'Zacute': 611,
  31060. 'Zcaron': 611,
  31061. 'greaterequal': 549,
  31062. 'Eth': 722,
  31063. 'Ccedilla': 667,
  31064. 'lcommaaccent': 278,
  31065. 'tcaron': 326,
  31066. 'eogonek': 444,
  31067. 'Uogonek': 722,
  31068. 'Aacute': 722,
  31069. 'Adieresis': 722,
  31070. 'egrave': 444,
  31071. 'zacute': 444,
  31072. 'iogonek': 278,
  31073. 'Oacute': 722,
  31074. 'oacute': 500,
  31075. 'amacron': 444,
  31076. 'sacute': 389,
  31077. 'idieresis': 278,
  31078. 'Ocircumflex': 722,
  31079. 'Ugrave': 722,
  31080. 'Delta': 612,
  31081. 'thorn': 500,
  31082. 'twosuperior': 300,
  31083. 'Odieresis': 722,
  31084. 'mu': 500,
  31085. 'igrave': 278,
  31086. 'ohungarumlaut': 500,
  31087. 'Eogonek': 611,
  31088. 'dcroat': 500,
  31089. 'threequarters': 750,
  31090. 'Scedilla': 556,
  31091. 'lcaron': 344,
  31092. 'Kcommaaccent': 722,
  31093. 'Lacute': 611,
  31094. 'trademark': 980,
  31095. 'edotaccent': 444,
  31096. 'Igrave': 333,
  31097. 'Imacron': 333,
  31098. 'Lcaron': 611,
  31099. 'onehalf': 750,
  31100. 'lessequal': 549,
  31101. 'ocircumflex': 500,
  31102. 'ntilde': 500,
  31103. 'Uhungarumlaut': 722,
  31104. 'Eacute': 611,
  31105. 'emacron': 444,
  31106. 'gbreve': 500,
  31107. 'onequarter': 750,
  31108. 'Scaron': 556,
  31109. 'Scommaaccent': 556,
  31110. 'Ohungarumlaut': 722,
  31111. 'degree': 400,
  31112. 'ograve': 500,
  31113. 'Ccaron': 667,
  31114. 'ugrave': 500,
  31115. 'radical': 453,
  31116. 'Dcaron': 722,
  31117. 'rcommaaccent': 333,
  31118. 'Ntilde': 722,
  31119. 'otilde': 500,
  31120. 'Rcommaaccent': 667,
  31121. 'Lcommaaccent': 611,
  31122. 'Atilde': 722,
  31123. 'Aogonek': 722,
  31124. 'Aring': 722,
  31125. 'Otilde': 722,
  31126. 'zdotaccent': 444,
  31127. 'Ecaron': 611,
  31128. 'Iogonek': 333,
  31129. 'kcommaaccent': 500,
  31130. 'minus': 564,
  31131. 'Icircumflex': 333,
  31132. 'ncaron': 500,
  31133. 'tcommaaccent': 278,
  31134. 'logicalnot': 564,
  31135. 'odieresis': 500,
  31136. 'udieresis': 500,
  31137. 'notequal': 549,
  31138. 'gcommaaccent': 500,
  31139. 'eth': 500,
  31140. 'zcaron': 444,
  31141. 'ncommaaccent': 500,
  31142. 'onesuperior': 300,
  31143. 'imacron': 278,
  31144. 'Euro': 500
  31145. },
  31146. 'Times-Bold': {
  31147. 'space': 250,
  31148. 'exclam': 333,
  31149. 'quotedbl': 555,
  31150. 'numbersign': 500,
  31151. 'dollar': 500,
  31152. 'percent': 1000,
  31153. 'ampersand': 833,
  31154. 'quoteright': 333,
  31155. 'parenleft': 333,
  31156. 'parenright': 333,
  31157. 'asterisk': 500,
  31158. 'plus': 570,
  31159. 'comma': 250,
  31160. 'hyphen': 333,
  31161. 'period': 250,
  31162. 'slash': 278,
  31163. 'zero': 500,
  31164. 'one': 500,
  31165. 'two': 500,
  31166. 'three': 500,
  31167. 'four': 500,
  31168. 'five': 500,
  31169. 'six': 500,
  31170. 'seven': 500,
  31171. 'eight': 500,
  31172. 'nine': 500,
  31173. 'colon': 333,
  31174. 'semicolon': 333,
  31175. 'less': 570,
  31176. 'equal': 570,
  31177. 'greater': 570,
  31178. 'question': 500,
  31179. 'at': 930,
  31180. 'A': 722,
  31181. 'B': 667,
  31182. 'C': 722,
  31183. 'D': 722,
  31184. 'E': 667,
  31185. 'F': 611,
  31186. 'G': 778,
  31187. 'H': 778,
  31188. 'I': 389,
  31189. 'J': 500,
  31190. 'K': 778,
  31191. 'L': 667,
  31192. 'M': 944,
  31193. 'N': 722,
  31194. 'O': 778,
  31195. 'P': 611,
  31196. 'Q': 778,
  31197. 'R': 722,
  31198. 'S': 556,
  31199. 'T': 667,
  31200. 'U': 722,
  31201. 'V': 722,
  31202. 'W': 1000,
  31203. 'X': 722,
  31204. 'Y': 722,
  31205. 'Z': 667,
  31206. 'bracketleft': 333,
  31207. 'backslash': 278,
  31208. 'bracketright': 333,
  31209. 'asciicircum': 581,
  31210. 'underscore': 500,
  31211. 'quoteleft': 333,
  31212. 'a': 500,
  31213. 'b': 556,
  31214. 'c': 444,
  31215. 'd': 556,
  31216. 'e': 444,
  31217. 'f': 333,
  31218. 'g': 500,
  31219. 'h': 556,
  31220. 'i': 278,
  31221. 'j': 333,
  31222. 'k': 556,
  31223. 'l': 278,
  31224. 'm': 833,
  31225. 'n': 556,
  31226. 'o': 500,
  31227. 'p': 556,
  31228. 'q': 556,
  31229. 'r': 444,
  31230. 's': 389,
  31231. 't': 333,
  31232. 'u': 556,
  31233. 'v': 500,
  31234. 'w': 722,
  31235. 'x': 500,
  31236. 'y': 500,
  31237. 'z': 444,
  31238. 'braceleft': 394,
  31239. 'bar': 220,
  31240. 'braceright': 394,
  31241. 'asciitilde': 520,
  31242. 'exclamdown': 333,
  31243. 'cent': 500,
  31244. 'sterling': 500,
  31245. 'fraction': 167,
  31246. 'yen': 500,
  31247. 'florin': 500,
  31248. 'section': 500,
  31249. 'currency': 500,
  31250. 'quotesingle': 278,
  31251. 'quotedblleft': 500,
  31252. 'guillemotleft': 500,
  31253. 'guilsinglleft': 333,
  31254. 'guilsinglright': 333,
  31255. 'fi': 556,
  31256. 'fl': 556,
  31257. 'endash': 500,
  31258. 'dagger': 500,
  31259. 'daggerdbl': 500,
  31260. 'periodcentered': 250,
  31261. 'paragraph': 540,
  31262. 'bullet': 350,
  31263. 'quotesinglbase': 333,
  31264. 'quotedblbase': 500,
  31265. 'quotedblright': 500,
  31266. 'guillemotright': 500,
  31267. 'ellipsis': 1000,
  31268. 'perthousand': 1000,
  31269. 'questiondown': 500,
  31270. 'grave': 333,
  31271. 'acute': 333,
  31272. 'circumflex': 333,
  31273. 'tilde': 333,
  31274. 'macron': 333,
  31275. 'breve': 333,
  31276. 'dotaccent': 333,
  31277. 'dieresis': 333,
  31278. 'ring': 333,
  31279. 'cedilla': 333,
  31280. 'hungarumlaut': 333,
  31281. 'ogonek': 333,
  31282. 'caron': 333,
  31283. 'emdash': 1000,
  31284. 'AE': 1000,
  31285. 'ordfeminine': 300,
  31286. 'Lslash': 667,
  31287. 'Oslash': 778,
  31288. 'OE': 1000,
  31289. 'ordmasculine': 330,
  31290. 'ae': 722,
  31291. 'dotlessi': 278,
  31292. 'lslash': 278,
  31293. 'oslash': 500,
  31294. 'oe': 722,
  31295. 'germandbls': 556,
  31296. 'Idieresis': 389,
  31297. 'eacute': 444,
  31298. 'abreve': 500,
  31299. 'uhungarumlaut': 556,
  31300. 'ecaron': 444,
  31301. 'Ydieresis': 722,
  31302. 'divide': 570,
  31303. 'Yacute': 722,
  31304. 'Acircumflex': 722,
  31305. 'aacute': 500,
  31306. 'Ucircumflex': 722,
  31307. 'yacute': 500,
  31308. 'scommaaccent': 389,
  31309. 'ecircumflex': 444,
  31310. 'Uring': 722,
  31311. 'Udieresis': 722,
  31312. 'aogonek': 500,
  31313. 'Uacute': 722,
  31314. 'uogonek': 556,
  31315. 'Edieresis': 667,
  31316. 'Dcroat': 722,
  31317. 'commaaccent': 250,
  31318. 'copyright': 747,
  31319. 'Emacron': 667,
  31320. 'ccaron': 444,
  31321. 'aring': 500,
  31322. 'Ncommaaccent': 722,
  31323. 'lacute': 278,
  31324. 'agrave': 500,
  31325. 'Tcommaaccent': 667,
  31326. 'Cacute': 722,
  31327. 'atilde': 500,
  31328. 'Edotaccent': 667,
  31329. 'scaron': 389,
  31330. 'scedilla': 389,
  31331. 'iacute': 278,
  31332. 'lozenge': 494,
  31333. 'Rcaron': 722,
  31334. 'Gcommaaccent': 778,
  31335. 'ucircumflex': 556,
  31336. 'acircumflex': 500,
  31337. 'Amacron': 722,
  31338. 'rcaron': 444,
  31339. 'ccedilla': 444,
  31340. 'Zdotaccent': 667,
  31341. 'Thorn': 611,
  31342. 'Omacron': 778,
  31343. 'Racute': 722,
  31344. 'Sacute': 556,
  31345. 'dcaron': 672,
  31346. 'Umacron': 722,
  31347. 'uring': 556,
  31348. 'threesuperior': 300,
  31349. 'Ograve': 778,
  31350. 'Agrave': 722,
  31351. 'Abreve': 722,
  31352. 'multiply': 570,
  31353. 'uacute': 556,
  31354. 'Tcaron': 667,
  31355. 'partialdiff': 494,
  31356. 'ydieresis': 500,
  31357. 'Nacute': 722,
  31358. 'icircumflex': 278,
  31359. 'Ecircumflex': 667,
  31360. 'adieresis': 500,
  31361. 'edieresis': 444,
  31362. 'cacute': 444,
  31363. 'nacute': 556,
  31364. 'umacron': 556,
  31365. 'Ncaron': 722,
  31366. 'Iacute': 389,
  31367. 'plusminus': 570,
  31368. 'brokenbar': 220,
  31369. 'registered': 747,
  31370. 'Gbreve': 778,
  31371. 'Idotaccent': 389,
  31372. 'summation': 600,
  31373. 'Egrave': 667,
  31374. 'racute': 444,
  31375. 'omacron': 500,
  31376. 'Zacute': 667,
  31377. 'Zcaron': 667,
  31378. 'greaterequal': 549,
  31379. 'Eth': 722,
  31380. 'Ccedilla': 722,
  31381. 'lcommaaccent': 278,
  31382. 'tcaron': 416,
  31383. 'eogonek': 444,
  31384. 'Uogonek': 722,
  31385. 'Aacute': 722,
  31386. 'Adieresis': 722,
  31387. 'egrave': 444,
  31388. 'zacute': 444,
  31389. 'iogonek': 278,
  31390. 'Oacute': 778,
  31391. 'oacute': 500,
  31392. 'amacron': 500,
  31393. 'sacute': 389,
  31394. 'idieresis': 278,
  31395. 'Ocircumflex': 778,
  31396. 'Ugrave': 722,
  31397. 'Delta': 612,
  31398. 'thorn': 556,
  31399. 'twosuperior': 300,
  31400. 'Odieresis': 778,
  31401. 'mu': 556,
  31402. 'igrave': 278,
  31403. 'ohungarumlaut': 500,
  31404. 'Eogonek': 667,
  31405. 'dcroat': 556,
  31406. 'threequarters': 750,
  31407. 'Scedilla': 556,
  31408. 'lcaron': 394,
  31409. 'Kcommaaccent': 778,
  31410. 'Lacute': 667,
  31411. 'trademark': 1000,
  31412. 'edotaccent': 444,
  31413. 'Igrave': 389,
  31414. 'Imacron': 389,
  31415. 'Lcaron': 667,
  31416. 'onehalf': 750,
  31417. 'lessequal': 549,
  31418. 'ocircumflex': 500,
  31419. 'ntilde': 556,
  31420. 'Uhungarumlaut': 722,
  31421. 'Eacute': 667,
  31422. 'emacron': 444,
  31423. 'gbreve': 500,
  31424. 'onequarter': 750,
  31425. 'Scaron': 556,
  31426. 'Scommaaccent': 556,
  31427. 'Ohungarumlaut': 778,
  31428. 'degree': 400,
  31429. 'ograve': 500,
  31430. 'Ccaron': 722,
  31431. 'ugrave': 556,
  31432. 'radical': 549,
  31433. 'Dcaron': 722,
  31434. 'rcommaaccent': 444,
  31435. 'Ntilde': 722,
  31436. 'otilde': 500,
  31437. 'Rcommaaccent': 722,
  31438. 'Lcommaaccent': 667,
  31439. 'Atilde': 722,
  31440. 'Aogonek': 722,
  31441. 'Aring': 722,
  31442. 'Otilde': 778,
  31443. 'zdotaccent': 444,
  31444. 'Ecaron': 667,
  31445. 'Iogonek': 389,
  31446. 'kcommaaccent': 556,
  31447. 'minus': 570,
  31448. 'Icircumflex': 389,
  31449. 'ncaron': 556,
  31450. 'tcommaaccent': 333,
  31451. 'logicalnot': 570,
  31452. 'odieresis': 500,
  31453. 'udieresis': 556,
  31454. 'notequal': 549,
  31455. 'gcommaaccent': 500,
  31456. 'eth': 500,
  31457. 'zcaron': 444,
  31458. 'ncommaaccent': 556,
  31459. 'onesuperior': 300,
  31460. 'imacron': 278,
  31461. 'Euro': 500
  31462. },
  31463. 'Times-BoldItalic': {
  31464. 'space': 250,
  31465. 'exclam': 389,
  31466. 'quotedbl': 555,
  31467. 'numbersign': 500,
  31468. 'dollar': 500,
  31469. 'percent': 833,
  31470. 'ampersand': 778,
  31471. 'quoteright': 333,
  31472. 'parenleft': 333,
  31473. 'parenright': 333,
  31474. 'asterisk': 500,
  31475. 'plus': 570,
  31476. 'comma': 250,
  31477. 'hyphen': 333,
  31478. 'period': 250,
  31479. 'slash': 278,
  31480. 'zero': 500,
  31481. 'one': 500,
  31482. 'two': 500,
  31483. 'three': 500,
  31484. 'four': 500,
  31485. 'five': 500,
  31486. 'six': 500,
  31487. 'seven': 500,
  31488. 'eight': 500,
  31489. 'nine': 500,
  31490. 'colon': 333,
  31491. 'semicolon': 333,
  31492. 'less': 570,
  31493. 'equal': 570,
  31494. 'greater': 570,
  31495. 'question': 500,
  31496. 'at': 832,
  31497. 'A': 667,
  31498. 'B': 667,
  31499. 'C': 667,
  31500. 'D': 722,
  31501. 'E': 667,
  31502. 'F': 667,
  31503. 'G': 722,
  31504. 'H': 778,
  31505. 'I': 389,
  31506. 'J': 500,
  31507. 'K': 667,
  31508. 'L': 611,
  31509. 'M': 889,
  31510. 'N': 722,
  31511. 'O': 722,
  31512. 'P': 611,
  31513. 'Q': 722,
  31514. 'R': 667,
  31515. 'S': 556,
  31516. 'T': 611,
  31517. 'U': 722,
  31518. 'V': 667,
  31519. 'W': 889,
  31520. 'X': 667,
  31521. 'Y': 611,
  31522. 'Z': 611,
  31523. 'bracketleft': 333,
  31524. 'backslash': 278,
  31525. 'bracketright': 333,
  31526. 'asciicircum': 570,
  31527. 'underscore': 500,
  31528. 'quoteleft': 333,
  31529. 'a': 500,
  31530. 'b': 500,
  31531. 'c': 444,
  31532. 'd': 500,
  31533. 'e': 444,
  31534. 'f': 333,
  31535. 'g': 500,
  31536. 'h': 556,
  31537. 'i': 278,
  31538. 'j': 278,
  31539. 'k': 500,
  31540. 'l': 278,
  31541. 'm': 778,
  31542. 'n': 556,
  31543. 'o': 500,
  31544. 'p': 500,
  31545. 'q': 500,
  31546. 'r': 389,
  31547. 's': 389,
  31548. 't': 278,
  31549. 'u': 556,
  31550. 'v': 444,
  31551. 'w': 667,
  31552. 'x': 500,
  31553. 'y': 444,
  31554. 'z': 389,
  31555. 'braceleft': 348,
  31556. 'bar': 220,
  31557. 'braceright': 348,
  31558. 'asciitilde': 570,
  31559. 'exclamdown': 389,
  31560. 'cent': 500,
  31561. 'sterling': 500,
  31562. 'fraction': 167,
  31563. 'yen': 500,
  31564. 'florin': 500,
  31565. 'section': 500,
  31566. 'currency': 500,
  31567. 'quotesingle': 278,
  31568. 'quotedblleft': 500,
  31569. 'guillemotleft': 500,
  31570. 'guilsinglleft': 333,
  31571. 'guilsinglright': 333,
  31572. 'fi': 556,
  31573. 'fl': 556,
  31574. 'endash': 500,
  31575. 'dagger': 500,
  31576. 'daggerdbl': 500,
  31577. 'periodcentered': 250,
  31578. 'paragraph': 500,
  31579. 'bullet': 350,
  31580. 'quotesinglbase': 333,
  31581. 'quotedblbase': 500,
  31582. 'quotedblright': 500,
  31583. 'guillemotright': 500,
  31584. 'ellipsis': 1000,
  31585. 'perthousand': 1000,
  31586. 'questiondown': 500,
  31587. 'grave': 333,
  31588. 'acute': 333,
  31589. 'circumflex': 333,
  31590. 'tilde': 333,
  31591. 'macron': 333,
  31592. 'breve': 333,
  31593. 'dotaccent': 333,
  31594. 'dieresis': 333,
  31595. 'ring': 333,
  31596. 'cedilla': 333,
  31597. 'hungarumlaut': 333,
  31598. 'ogonek': 333,
  31599. 'caron': 333,
  31600. 'emdash': 1000,
  31601. 'AE': 944,
  31602. 'ordfeminine': 266,
  31603. 'Lslash': 611,
  31604. 'Oslash': 722,
  31605. 'OE': 944,
  31606. 'ordmasculine': 300,
  31607. 'ae': 722,
  31608. 'dotlessi': 278,
  31609. 'lslash': 278,
  31610. 'oslash': 500,
  31611. 'oe': 722,
  31612. 'germandbls': 500,
  31613. 'Idieresis': 389,
  31614. 'eacute': 444,
  31615. 'abreve': 500,
  31616. 'uhungarumlaut': 556,
  31617. 'ecaron': 444,
  31618. 'Ydieresis': 611,
  31619. 'divide': 570,
  31620. 'Yacute': 611,
  31621. 'Acircumflex': 667,
  31622. 'aacute': 500,
  31623. 'Ucircumflex': 722,
  31624. 'yacute': 444,
  31625. 'scommaaccent': 389,
  31626. 'ecircumflex': 444,
  31627. 'Uring': 722,
  31628. 'Udieresis': 722,
  31629. 'aogonek': 500,
  31630. 'Uacute': 722,
  31631. 'uogonek': 556,
  31632. 'Edieresis': 667,
  31633. 'Dcroat': 722,
  31634. 'commaaccent': 250,
  31635. 'copyright': 747,
  31636. 'Emacron': 667,
  31637. 'ccaron': 444,
  31638. 'aring': 500,
  31639. 'Ncommaaccent': 722,
  31640. 'lacute': 278,
  31641. 'agrave': 500,
  31642. 'Tcommaaccent': 611,
  31643. 'Cacute': 667,
  31644. 'atilde': 500,
  31645. 'Edotaccent': 667,
  31646. 'scaron': 389,
  31647. 'scedilla': 389,
  31648. 'iacute': 278,
  31649. 'lozenge': 494,
  31650. 'Rcaron': 667,
  31651. 'Gcommaaccent': 722,
  31652. 'ucircumflex': 556,
  31653. 'acircumflex': 500,
  31654. 'Amacron': 667,
  31655. 'rcaron': 389,
  31656. 'ccedilla': 444,
  31657. 'Zdotaccent': 611,
  31658. 'Thorn': 611,
  31659. 'Omacron': 722,
  31660. 'Racute': 667,
  31661. 'Sacute': 556,
  31662. 'dcaron': 608,
  31663. 'Umacron': 722,
  31664. 'uring': 556,
  31665. 'threesuperior': 300,
  31666. 'Ograve': 722,
  31667. 'Agrave': 667,
  31668. 'Abreve': 667,
  31669. 'multiply': 570,
  31670. 'uacute': 556,
  31671. 'Tcaron': 611,
  31672. 'partialdiff': 494,
  31673. 'ydieresis': 444,
  31674. 'Nacute': 722,
  31675. 'icircumflex': 278,
  31676. 'Ecircumflex': 667,
  31677. 'adieresis': 500,
  31678. 'edieresis': 444,
  31679. 'cacute': 444,
  31680. 'nacute': 556,
  31681. 'umacron': 556,
  31682. 'Ncaron': 722,
  31683. 'Iacute': 389,
  31684. 'plusminus': 570,
  31685. 'brokenbar': 220,
  31686. 'registered': 747,
  31687. 'Gbreve': 722,
  31688. 'Idotaccent': 389,
  31689. 'summation': 600,
  31690. 'Egrave': 667,
  31691. 'racute': 389,
  31692. 'omacron': 500,
  31693. 'Zacute': 611,
  31694. 'Zcaron': 611,
  31695. 'greaterequal': 549,
  31696. 'Eth': 722,
  31697. 'Ccedilla': 667,
  31698. 'lcommaaccent': 278,
  31699. 'tcaron': 366,
  31700. 'eogonek': 444,
  31701. 'Uogonek': 722,
  31702. 'Aacute': 667,
  31703. 'Adieresis': 667,
  31704. 'egrave': 444,
  31705. 'zacute': 389,
  31706. 'iogonek': 278,
  31707. 'Oacute': 722,
  31708. 'oacute': 500,
  31709. 'amacron': 500,
  31710. 'sacute': 389,
  31711. 'idieresis': 278,
  31712. 'Ocircumflex': 722,
  31713. 'Ugrave': 722,
  31714. 'Delta': 612,
  31715. 'thorn': 500,
  31716. 'twosuperior': 300,
  31717. 'Odieresis': 722,
  31718. 'mu': 576,
  31719. 'igrave': 278,
  31720. 'ohungarumlaut': 500,
  31721. 'Eogonek': 667,
  31722. 'dcroat': 500,
  31723. 'threequarters': 750,
  31724. 'Scedilla': 556,
  31725. 'lcaron': 382,
  31726. 'Kcommaaccent': 667,
  31727. 'Lacute': 611,
  31728. 'trademark': 1000,
  31729. 'edotaccent': 444,
  31730. 'Igrave': 389,
  31731. 'Imacron': 389,
  31732. 'Lcaron': 611,
  31733. 'onehalf': 750,
  31734. 'lessequal': 549,
  31735. 'ocircumflex': 500,
  31736. 'ntilde': 556,
  31737. 'Uhungarumlaut': 722,
  31738. 'Eacute': 667,
  31739. 'emacron': 444,
  31740. 'gbreve': 500,
  31741. 'onequarter': 750,
  31742. 'Scaron': 556,
  31743. 'Scommaaccent': 556,
  31744. 'Ohungarumlaut': 722,
  31745. 'degree': 400,
  31746. 'ograve': 500,
  31747. 'Ccaron': 667,
  31748. 'ugrave': 556,
  31749. 'radical': 549,
  31750. 'Dcaron': 722,
  31751. 'rcommaaccent': 389,
  31752. 'Ntilde': 722,
  31753. 'otilde': 500,
  31754. 'Rcommaaccent': 667,
  31755. 'Lcommaaccent': 611,
  31756. 'Atilde': 667,
  31757. 'Aogonek': 667,
  31758. 'Aring': 667,
  31759. 'Otilde': 722,
  31760. 'zdotaccent': 389,
  31761. 'Ecaron': 667,
  31762. 'Iogonek': 389,
  31763. 'kcommaaccent': 500,
  31764. 'minus': 606,
  31765. 'Icircumflex': 389,
  31766. 'ncaron': 556,
  31767. 'tcommaaccent': 278,
  31768. 'logicalnot': 606,
  31769. 'odieresis': 500,
  31770. 'udieresis': 556,
  31771. 'notequal': 549,
  31772. 'gcommaaccent': 500,
  31773. 'eth': 500,
  31774. 'zcaron': 389,
  31775. 'ncommaaccent': 556,
  31776. 'onesuperior': 300,
  31777. 'imacron': 278,
  31778. 'Euro': 500
  31779. },
  31780. 'Times-Italic': {
  31781. 'space': 250,
  31782. 'exclam': 333,
  31783. 'quotedbl': 420,
  31784. 'numbersign': 500,
  31785. 'dollar': 500,
  31786. 'percent': 833,
  31787. 'ampersand': 778,
  31788. 'quoteright': 333,
  31789. 'parenleft': 333,
  31790. 'parenright': 333,
  31791. 'asterisk': 500,
  31792. 'plus': 675,
  31793. 'comma': 250,
  31794. 'hyphen': 333,
  31795. 'period': 250,
  31796. 'slash': 278,
  31797. 'zero': 500,
  31798. 'one': 500,
  31799. 'two': 500,
  31800. 'three': 500,
  31801. 'four': 500,
  31802. 'five': 500,
  31803. 'six': 500,
  31804. 'seven': 500,
  31805. 'eight': 500,
  31806. 'nine': 500,
  31807. 'colon': 333,
  31808. 'semicolon': 333,
  31809. 'less': 675,
  31810. 'equal': 675,
  31811. 'greater': 675,
  31812. 'question': 500,
  31813. 'at': 920,
  31814. 'A': 611,
  31815. 'B': 611,
  31816. 'C': 667,
  31817. 'D': 722,
  31818. 'E': 611,
  31819. 'F': 611,
  31820. 'G': 722,
  31821. 'H': 722,
  31822. 'I': 333,
  31823. 'J': 444,
  31824. 'K': 667,
  31825. 'L': 556,
  31826. 'M': 833,
  31827. 'N': 667,
  31828. 'O': 722,
  31829. 'P': 611,
  31830. 'Q': 722,
  31831. 'R': 611,
  31832. 'S': 500,
  31833. 'T': 556,
  31834. 'U': 722,
  31835. 'V': 611,
  31836. 'W': 833,
  31837. 'X': 611,
  31838. 'Y': 556,
  31839. 'Z': 556,
  31840. 'bracketleft': 389,
  31841. 'backslash': 278,
  31842. 'bracketright': 389,
  31843. 'asciicircum': 422,
  31844. 'underscore': 500,
  31845. 'quoteleft': 333,
  31846. 'a': 500,
  31847. 'b': 500,
  31848. 'c': 444,
  31849. 'd': 500,
  31850. 'e': 444,
  31851. 'f': 278,
  31852. 'g': 500,
  31853. 'h': 500,
  31854. 'i': 278,
  31855. 'j': 278,
  31856. 'k': 444,
  31857. 'l': 278,
  31858. 'm': 722,
  31859. 'n': 500,
  31860. 'o': 500,
  31861. 'p': 500,
  31862. 'q': 500,
  31863. 'r': 389,
  31864. 's': 389,
  31865. 't': 278,
  31866. 'u': 500,
  31867. 'v': 444,
  31868. 'w': 667,
  31869. 'x': 444,
  31870. 'y': 444,
  31871. 'z': 389,
  31872. 'braceleft': 400,
  31873. 'bar': 275,
  31874. 'braceright': 400,
  31875. 'asciitilde': 541,
  31876. 'exclamdown': 389,
  31877. 'cent': 500,
  31878. 'sterling': 500,
  31879. 'fraction': 167,
  31880. 'yen': 500,
  31881. 'florin': 500,
  31882. 'section': 500,
  31883. 'currency': 500,
  31884. 'quotesingle': 214,
  31885. 'quotedblleft': 556,
  31886. 'guillemotleft': 500,
  31887. 'guilsinglleft': 333,
  31888. 'guilsinglright': 333,
  31889. 'fi': 500,
  31890. 'fl': 500,
  31891. 'endash': 500,
  31892. 'dagger': 500,
  31893. 'daggerdbl': 500,
  31894. 'periodcentered': 250,
  31895. 'paragraph': 523,
  31896. 'bullet': 350,
  31897. 'quotesinglbase': 333,
  31898. 'quotedblbase': 556,
  31899. 'quotedblright': 556,
  31900. 'guillemotright': 500,
  31901. 'ellipsis': 889,
  31902. 'perthousand': 1000,
  31903. 'questiondown': 500,
  31904. 'grave': 333,
  31905. 'acute': 333,
  31906. 'circumflex': 333,
  31907. 'tilde': 333,
  31908. 'macron': 333,
  31909. 'breve': 333,
  31910. 'dotaccent': 333,
  31911. 'dieresis': 333,
  31912. 'ring': 333,
  31913. 'cedilla': 333,
  31914. 'hungarumlaut': 333,
  31915. 'ogonek': 333,
  31916. 'caron': 333,
  31917. 'emdash': 889,
  31918. 'AE': 889,
  31919. 'ordfeminine': 276,
  31920. 'Lslash': 556,
  31921. 'Oslash': 722,
  31922. 'OE': 944,
  31923. 'ordmasculine': 310,
  31924. 'ae': 667,
  31925. 'dotlessi': 278,
  31926. 'lslash': 278,
  31927. 'oslash': 500,
  31928. 'oe': 667,
  31929. 'germandbls': 500,
  31930. 'Idieresis': 333,
  31931. 'eacute': 444,
  31932. 'abreve': 500,
  31933. 'uhungarumlaut': 500,
  31934. 'ecaron': 444,
  31935. 'Ydieresis': 556,
  31936. 'divide': 675,
  31937. 'Yacute': 556,
  31938. 'Acircumflex': 611,
  31939. 'aacute': 500,
  31940. 'Ucircumflex': 722,
  31941. 'yacute': 444,
  31942. 'scommaaccent': 389,
  31943. 'ecircumflex': 444,
  31944. 'Uring': 722,
  31945. 'Udieresis': 722,
  31946. 'aogonek': 500,
  31947. 'Uacute': 722,
  31948. 'uogonek': 500,
  31949. 'Edieresis': 611,
  31950. 'Dcroat': 722,
  31951. 'commaaccent': 250,
  31952. 'copyright': 760,
  31953. 'Emacron': 611,
  31954. 'ccaron': 444,
  31955. 'aring': 500,
  31956. 'Ncommaaccent': 667,
  31957. 'lacute': 278,
  31958. 'agrave': 500,
  31959. 'Tcommaaccent': 556,
  31960. 'Cacute': 667,
  31961. 'atilde': 500,
  31962. 'Edotaccent': 611,
  31963. 'scaron': 389,
  31964. 'scedilla': 389,
  31965. 'iacute': 278,
  31966. 'lozenge': 471,
  31967. 'Rcaron': 611,
  31968. 'Gcommaaccent': 722,
  31969. 'ucircumflex': 500,
  31970. 'acircumflex': 500,
  31971. 'Amacron': 611,
  31972. 'rcaron': 389,
  31973. 'ccedilla': 444,
  31974. 'Zdotaccent': 556,
  31975. 'Thorn': 611,
  31976. 'Omacron': 722,
  31977. 'Racute': 611,
  31978. 'Sacute': 500,
  31979. 'dcaron': 544,
  31980. 'Umacron': 722,
  31981. 'uring': 500,
  31982. 'threesuperior': 300,
  31983. 'Ograve': 722,
  31984. 'Agrave': 611,
  31985. 'Abreve': 611,
  31986. 'multiply': 675,
  31987. 'uacute': 500,
  31988. 'Tcaron': 556,
  31989. 'partialdiff': 476,
  31990. 'ydieresis': 444,
  31991. 'Nacute': 667,
  31992. 'icircumflex': 278,
  31993. 'Ecircumflex': 611,
  31994. 'adieresis': 500,
  31995. 'edieresis': 444,
  31996. 'cacute': 444,
  31997. 'nacute': 500,
  31998. 'umacron': 500,
  31999. 'Ncaron': 667,
  32000. 'Iacute': 333,
  32001. 'plusminus': 675,
  32002. 'brokenbar': 275,
  32003. 'registered': 760,
  32004. 'Gbreve': 722,
  32005. 'Idotaccent': 333,
  32006. 'summation': 600,
  32007. 'Egrave': 611,
  32008. 'racute': 389,
  32009. 'omacron': 500,
  32010. 'Zacute': 556,
  32011. 'Zcaron': 556,
  32012. 'greaterequal': 549,
  32013. 'Eth': 722,
  32014. 'Ccedilla': 667,
  32015. 'lcommaaccent': 278,
  32016. 'tcaron': 300,
  32017. 'eogonek': 444,
  32018. 'Uogonek': 722,
  32019. 'Aacute': 611,
  32020. 'Adieresis': 611,
  32021. 'egrave': 444,
  32022. 'zacute': 389,
  32023. 'iogonek': 278,
  32024. 'Oacute': 722,
  32025. 'oacute': 500,
  32026. 'amacron': 500,
  32027. 'sacute': 389,
  32028. 'idieresis': 278,
  32029. 'Ocircumflex': 722,
  32030. 'Ugrave': 722,
  32031. 'Delta': 612,
  32032. 'thorn': 500,
  32033. 'twosuperior': 300,
  32034. 'Odieresis': 722,
  32035. 'mu': 500,
  32036. 'igrave': 278,
  32037. 'ohungarumlaut': 500,
  32038. 'Eogonek': 611,
  32039. 'dcroat': 500,
  32040. 'threequarters': 750,
  32041. 'Scedilla': 500,
  32042. 'lcaron': 300,
  32043. 'Kcommaaccent': 667,
  32044. 'Lacute': 556,
  32045. 'trademark': 980,
  32046. 'edotaccent': 444,
  32047. 'Igrave': 333,
  32048. 'Imacron': 333,
  32049. 'Lcaron': 611,
  32050. 'onehalf': 750,
  32051. 'lessequal': 549,
  32052. 'ocircumflex': 500,
  32053. 'ntilde': 500,
  32054. 'Uhungarumlaut': 722,
  32055. 'Eacute': 611,
  32056. 'emacron': 444,
  32057. 'gbreve': 500,
  32058. 'onequarter': 750,
  32059. 'Scaron': 500,
  32060. 'Scommaaccent': 500,
  32061. 'Ohungarumlaut': 722,
  32062. 'degree': 400,
  32063. 'ograve': 500,
  32064. 'Ccaron': 667,
  32065. 'ugrave': 500,
  32066. 'radical': 453,
  32067. 'Dcaron': 722,
  32068. 'rcommaaccent': 389,
  32069. 'Ntilde': 667,
  32070. 'otilde': 500,
  32071. 'Rcommaaccent': 611,
  32072. 'Lcommaaccent': 556,
  32073. 'Atilde': 611,
  32074. 'Aogonek': 611,
  32075. 'Aring': 611,
  32076. 'Otilde': 722,
  32077. 'zdotaccent': 389,
  32078. 'Ecaron': 611,
  32079. 'Iogonek': 333,
  32080. 'kcommaaccent': 444,
  32081. 'minus': 675,
  32082. 'Icircumflex': 333,
  32083. 'ncaron': 500,
  32084. 'tcommaaccent': 278,
  32085. 'logicalnot': 675,
  32086. 'odieresis': 500,
  32087. 'udieresis': 500,
  32088. 'notequal': 549,
  32089. 'gcommaaccent': 500,
  32090. 'eth': 500,
  32091. 'zcaron': 389,
  32092. 'ncommaaccent': 500,
  32093. 'onesuperior': 300,
  32094. 'imacron': 278,
  32095. 'Euro': 500
  32096. },
  32097. 'ZapfDingbats': {
  32098. 'space': 278,
  32099. 'a1': 974,
  32100. 'a2': 961,
  32101. 'a202': 974,
  32102. 'a3': 980,
  32103. 'a4': 719,
  32104. 'a5': 789,
  32105. 'a119': 790,
  32106. 'a118': 791,
  32107. 'a117': 690,
  32108. 'a11': 960,
  32109. 'a12': 939,
  32110. 'a13': 549,
  32111. 'a14': 855,
  32112. 'a15': 911,
  32113. 'a16': 933,
  32114. 'a105': 911,
  32115. 'a17': 945,
  32116. 'a18': 974,
  32117. 'a19': 755,
  32118. 'a20': 846,
  32119. 'a21': 762,
  32120. 'a22': 761,
  32121. 'a23': 571,
  32122. 'a24': 677,
  32123. 'a25': 763,
  32124. 'a26': 760,
  32125. 'a27': 759,
  32126. 'a28': 754,
  32127. 'a6': 494,
  32128. 'a7': 552,
  32129. 'a8': 537,
  32130. 'a9': 577,
  32131. 'a10': 692,
  32132. 'a29': 786,
  32133. 'a30': 788,
  32134. 'a31': 788,
  32135. 'a32': 790,
  32136. 'a33': 793,
  32137. 'a34': 794,
  32138. 'a35': 816,
  32139. 'a36': 823,
  32140. 'a37': 789,
  32141. 'a38': 841,
  32142. 'a39': 823,
  32143. 'a40': 833,
  32144. 'a41': 816,
  32145. 'a42': 831,
  32146. 'a43': 923,
  32147. 'a44': 744,
  32148. 'a45': 723,
  32149. 'a46': 749,
  32150. 'a47': 790,
  32151. 'a48': 792,
  32152. 'a49': 695,
  32153. 'a50': 776,
  32154. 'a51': 768,
  32155. 'a52': 792,
  32156. 'a53': 759,
  32157. 'a54': 707,
  32158. 'a55': 708,
  32159. 'a56': 682,
  32160. 'a57': 701,
  32161. 'a58': 826,
  32162. 'a59': 815,
  32163. 'a60': 789,
  32164. 'a61': 789,
  32165. 'a62': 707,
  32166. 'a63': 687,
  32167. 'a64': 696,
  32168. 'a65': 689,
  32169. 'a66': 786,
  32170. 'a67': 787,
  32171. 'a68': 713,
  32172. 'a69': 791,
  32173. 'a70': 785,
  32174. 'a71': 791,
  32175. 'a72': 873,
  32176. 'a73': 761,
  32177. 'a74': 762,
  32178. 'a203': 762,
  32179. 'a75': 759,
  32180. 'a204': 759,
  32181. 'a76': 892,
  32182. 'a77': 892,
  32183. 'a78': 788,
  32184. 'a79': 784,
  32185. 'a81': 438,
  32186. 'a82': 138,
  32187. 'a83': 277,
  32188. 'a84': 415,
  32189. 'a97': 392,
  32190. 'a98': 392,
  32191. 'a99': 668,
  32192. 'a100': 668,
  32193. 'a89': 390,
  32194. 'a90': 390,
  32195. 'a93': 317,
  32196. 'a94': 317,
  32197. 'a91': 276,
  32198. 'a92': 276,
  32199. 'a205': 509,
  32200. 'a85': 509,
  32201. 'a206': 410,
  32202. 'a86': 410,
  32203. 'a87': 234,
  32204. 'a88': 234,
  32205. 'a95': 334,
  32206. 'a96': 334,
  32207. 'a101': 732,
  32208. 'a102': 544,
  32209. 'a103': 544,
  32210. 'a104': 910,
  32211. 'a106': 667,
  32212. 'a107': 760,
  32213. 'a108': 760,
  32214. 'a112': 776,
  32215. 'a111': 595,
  32216. 'a110': 694,
  32217. 'a109': 626,
  32218. 'a120': 788,
  32219. 'a121': 788,
  32220. 'a122': 788,
  32221. 'a123': 788,
  32222. 'a124': 788,
  32223. 'a125': 788,
  32224. 'a126': 788,
  32225. 'a127': 788,
  32226. 'a128': 788,
  32227. 'a129': 788,
  32228. 'a130': 788,
  32229. 'a131': 788,
  32230. 'a132': 788,
  32231. 'a133': 788,
  32232. 'a134': 788,
  32233. 'a135': 788,
  32234. 'a136': 788,
  32235. 'a137': 788,
  32236. 'a138': 788,
  32237. 'a139': 788,
  32238. 'a140': 788,
  32239. 'a141': 788,
  32240. 'a142': 788,
  32241. 'a143': 788,
  32242. 'a144': 788,
  32243. 'a145': 788,
  32244. 'a146': 788,
  32245. 'a147': 788,
  32246. 'a148': 788,
  32247. 'a149': 788,
  32248. 'a150': 788,
  32249. 'a151': 788,
  32250. 'a152': 788,
  32251. 'a153': 788,
  32252. 'a154': 788,
  32253. 'a155': 788,
  32254. 'a156': 788,
  32255. 'a157': 788,
  32256. 'a158': 788,
  32257. 'a159': 788,
  32258. 'a160': 894,
  32259. 'a161': 838,
  32260. 'a163': 1016,
  32261. 'a164': 458,
  32262. 'a196': 748,
  32263. 'a165': 924,
  32264. 'a192': 748,
  32265. 'a166': 918,
  32266. 'a167': 927,
  32267. 'a168': 928,
  32268. 'a169': 928,
  32269. 'a170': 834,
  32270. 'a171': 873,
  32271. 'a172': 828,
  32272. 'a173': 924,
  32273. 'a162': 924,
  32274. 'a174': 917,
  32275. 'a175': 930,
  32276. 'a176': 931,
  32277. 'a177': 463,
  32278. 'a178': 883,
  32279. 'a179': 836,
  32280. 'a193': 836,
  32281. 'a180': 867,
  32282. 'a199': 867,
  32283. 'a181': 696,
  32284. 'a200': 696,
  32285. 'a182': 874,
  32286. 'a201': 874,
  32287. 'a183': 760,
  32288. 'a184': 946,
  32289. 'a197': 771,
  32290. 'a185': 865,
  32291. 'a194': 771,
  32292. 'a198': 888,
  32293. 'a186': 967,
  32294. 'a195': 888,
  32295. 'a187': 831,
  32296. 'a188': 873,
  32297. 'a189': 927,
  32298. 'a190': 970,
  32299. 'a191': 918
  32300. }
  32301. };
  32302. var EOF = {};
  32303. function isEOF(v) {
  32304. return (v == EOF);
  32305. }
  32306. var Parser = (function ParserClosure() {
  32307. function Parser(lexer, allowStreams, xref) {
  32308. this.lexer = lexer;
  32309. this.allowStreams = allowStreams;
  32310. this.xref = xref;
  32311. this.imageCache = {
  32312. length: 0,
  32313. adler32: 0,
  32314. stream: null
  32315. };
  32316. this.refill();
  32317. }
  32318. Parser.prototype = {
  32319. refill: function Parser_refill() {
  32320. this.buf1 = this.lexer.getObj();
  32321. this.buf2 = this.lexer.getObj();
  32322. },
  32323. shift: function Parser_shift() {
  32324. if (isCmd(this.buf2, 'ID')) {
  32325. this.buf1 = this.buf2;
  32326. this.buf2 = null;
  32327. } else {
  32328. this.buf1 = this.buf2;
  32329. this.buf2 = this.lexer.getObj();
  32330. }
  32331. },
  32332. getObj: function Parser_getObj(cipherTransform) {
  32333. if (isCmd(this.buf1, 'BI')) { // inline image
  32334. this.shift();
  32335. return this.makeInlineImage(cipherTransform);
  32336. }
  32337. if (isCmd(this.buf1, '[')) { // array
  32338. this.shift();
  32339. var array = [];
  32340. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) {
  32341. array.push(this.getObj(cipherTransform));
  32342. }
  32343. if (isEOF(this.buf1)) {
  32344. error('End of file inside array');
  32345. }
  32346. this.shift();
  32347. return array;
  32348. }
  32349. if (isCmd(this.buf1, '<<')) { // dictionary or stream
  32350. this.shift();
  32351. var dict = new Dict(this.xref);
  32352. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  32353. if (!isName(this.buf1)) {
  32354. info('Malformed dictionary: key must be a name object');
  32355. this.shift();
  32356. continue;
  32357. }
  32358. var key = this.buf1.name;
  32359. this.shift();
  32360. if (isEOF(this.buf1)) {
  32361. break;
  32362. }
  32363. dict.set(key, this.getObj(cipherTransform));
  32364. }
  32365. if (isEOF(this.buf1)) {
  32366. error('End of file inside dictionary');
  32367. }
  32368. // Stream objects are not allowed inside content streams or
  32369. // object streams.
  32370. if (isCmd(this.buf2, 'stream')) {
  32371. return (this.allowStreams ?
  32372. this.makeStream(dict, cipherTransform) : dict);
  32373. }
  32374. this.shift();
  32375. return dict;
  32376. }
  32377. if (isInt(this.buf1)) { // indirect reference or integer
  32378. var num = this.buf1;
  32379. this.shift();
  32380. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  32381. var ref = new Ref(num, this.buf1);
  32382. this.shift();
  32383. this.shift();
  32384. return ref;
  32385. }
  32386. return num;
  32387. }
  32388. if (isString(this.buf1)) { // string
  32389. var str = this.buf1;
  32390. this.shift();
  32391. if (cipherTransform) {
  32392. str = cipherTransform.decryptString(str);
  32393. }
  32394. return str;
  32395. }
  32396. // simple object
  32397. var obj = this.buf1;
  32398. this.shift();
  32399. return obj;
  32400. },
  32401. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  32402. var lexer = this.lexer;
  32403. var stream = lexer.stream;
  32404. // parse dictionary
  32405. var dict = new Dict(null);
  32406. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  32407. if (!isName(this.buf1)) {
  32408. error('Dictionary key must be a name object');
  32409. }
  32410. var key = this.buf1.name;
  32411. this.shift();
  32412. if (isEOF(this.buf1)) {
  32413. break;
  32414. }
  32415. dict.set(key, this.getObj(cipherTransform));
  32416. }
  32417. // parse image stream
  32418. var startPos = stream.pos;
  32419. // searching for the /EI\s/
  32420. var state = 0, ch, i, ii;
  32421. while (state != 4 && (ch = stream.getByte()) !== -1) {
  32422. switch (ch | 0) {
  32423. case 0x20:
  32424. case 0x0D:
  32425. case 0x0A:
  32426. // let's check next five bytes to be ASCII... just be sure
  32427. var followingBytes = stream.peekBytes(5);
  32428. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  32429. ch = followingBytes[i];
  32430. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  32431. // not a LF, CR, SPACE or any visible ASCII character
  32432. state = 0;
  32433. break; // some binary stuff found, resetting the state
  32434. }
  32435. }
  32436. state = (state === 3 ? 4 : 0);
  32437. break;
  32438. case 0x45:
  32439. state = 2;
  32440. break;
  32441. case 0x49:
  32442. state = (state === 2 ? 3 : 0);
  32443. break;
  32444. default:
  32445. state = 0;
  32446. break;
  32447. }
  32448. }
  32449. var length = (stream.pos - 4) - startPos;
  32450. var imageStream = stream.makeSubStream(startPos, length, dict);
  32451. // trying to cache repeat images, first we are trying to "warm up" caching
  32452. // using length, then comparing adler32
  32453. var MAX_LENGTH_TO_CACHE = 1000;
  32454. var cacheImage = false, adler32;
  32455. if (length < MAX_LENGTH_TO_CACHE && this.imageCache.length === length) {
  32456. var imageBytes = imageStream.getBytes();
  32457. imageStream.reset();
  32458. var a = 1;
  32459. var b = 0;
  32460. for (i = 0, ii = imageBytes.length; i < ii; ++i) {
  32461. a = (a + (imageBytes[i] & 0xff)) % 65521;
  32462. b = (b + a) % 65521;
  32463. }
  32464. adler32 = (b << 16) | a;
  32465. if (this.imageCache.stream && this.imageCache.adler32 === adler32) {
  32466. this.buf2 = Cmd.get('EI');
  32467. this.shift();
  32468. this.imageCache.stream.reset();
  32469. return this.imageCache.stream;
  32470. }
  32471. cacheImage = true;
  32472. }
  32473. if (!cacheImage && !this.imageCache.stream) {
  32474. this.imageCache.length = length;
  32475. this.imageCache.stream = null;
  32476. }
  32477. if (cipherTransform) {
  32478. imageStream = cipherTransform.createStream(imageStream, length);
  32479. }
  32480. imageStream = this.filter(imageStream, dict, length);
  32481. imageStream.dict = dict;
  32482. if (cacheImage) {
  32483. imageStream.cacheKey = 'inline_' + length + '_' + adler32;
  32484. this.imageCache.adler32 = adler32;
  32485. this.imageCache.stream = imageStream;
  32486. }
  32487. this.buf2 = Cmd.get('EI');
  32488. this.shift();
  32489. return imageStream;
  32490. },
  32491. fetchIfRef: function Parser_fetchIfRef(obj) {
  32492. // not relying on the xref.fetchIfRef -- xref might not be set
  32493. return (isRef(obj) ? this.xref.fetch(obj) : obj);
  32494. },
  32495. makeStream: function Parser_makeStream(dict, cipherTransform) {
  32496. var lexer = this.lexer;
  32497. var stream = lexer.stream;
  32498. // get stream start position
  32499. lexer.skipToNextLine();
  32500. var pos = stream.pos - 1;
  32501. // get length
  32502. var length = this.fetchIfRef(dict.get('Length'));
  32503. if (!isInt(length)) {
  32504. info('Bad ' + length + ' attribute in stream');
  32505. length = 0;
  32506. }
  32507. // skip over the stream data
  32508. stream.pos = pos + length;
  32509. lexer.nextChar();
  32510. this.shift(); // '>>'
  32511. this.shift(); // 'stream'
  32512. if (!isCmd(this.buf1, 'endstream')) {
  32513. // bad stream length, scanning for endstream
  32514. stream.pos = pos;
  32515. var SCAN_BLOCK_SIZE = 2048;
  32516. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  32517. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  32518. 0x61, 0x6D];
  32519. var skipped = 0, found = false, i, j;
  32520. while (stream.pos < stream.end) {
  32521. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  32522. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  32523. found = false;
  32524. for (i = 0, j = 0; i < scanLength; i++) {
  32525. var b = scanBytes[i];
  32526. if (b !== ENDSTREAM_SIGNATURE[j]) {
  32527. i -= j;
  32528. j = 0;
  32529. } else {
  32530. j++;
  32531. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  32532. i++;
  32533. found = true;
  32534. break;
  32535. }
  32536. }
  32537. }
  32538. if (found) {
  32539. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  32540. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  32541. break;
  32542. }
  32543. skipped += scanLength;
  32544. stream.pos += scanLength;
  32545. }
  32546. if (!found) {
  32547. error('Missing endstream');
  32548. }
  32549. length = skipped;
  32550. lexer.nextChar();
  32551. this.shift();
  32552. this.shift();
  32553. }
  32554. this.shift(); // 'endstream'
  32555. stream = stream.makeSubStream(pos, length, dict);
  32556. if (cipherTransform) {
  32557. stream = cipherTransform.createStream(stream, length);
  32558. }
  32559. stream = this.filter(stream, dict, length);
  32560. stream.dict = dict;
  32561. return stream;
  32562. },
  32563. filter: function Parser_filter(stream, dict, length) {
  32564. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  32565. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  32566. if (isName(filter)) {
  32567. return this.makeFilter(stream, filter.name, length, params);
  32568. }
  32569. var maybeLength = length;
  32570. if (isArray(filter)) {
  32571. var filterArray = filter;
  32572. var paramsArray = params;
  32573. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  32574. filter = filterArray[i];
  32575. if (!isName(filter)) {
  32576. error('Bad filter name: ' + filter);
  32577. }
  32578. params = null;
  32579. if (isArray(paramsArray) && (i in paramsArray)) {
  32580. params = paramsArray[i];
  32581. }
  32582. stream = this.makeFilter(stream, filter.name, maybeLength, params);
  32583. // after the first stream the length variable is invalid
  32584. maybeLength = null;
  32585. }
  32586. }
  32587. return stream;
  32588. },
  32589. makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
  32590. if (stream.dict.get('Length') === 0) {
  32591. return new NullStream(stream);
  32592. }
  32593. if (name == 'FlateDecode' || name == 'Fl') {
  32594. if (params) {
  32595. return new PredictorStream(new FlateStream(stream, maybeLength),
  32596. maybeLength, params);
  32597. }
  32598. return new FlateStream(stream, maybeLength);
  32599. }
  32600. if (name == 'LZWDecode' || name == 'LZW') {
  32601. var earlyChange = 1;
  32602. if (params) {
  32603. if (params.has('EarlyChange')) {
  32604. earlyChange = params.get('EarlyChange');
  32605. }
  32606. return new PredictorStream(
  32607. new LZWStream(stream, maybeLength, earlyChange),
  32608. maybeLength, params);
  32609. }
  32610. return new LZWStream(stream, maybeLength, earlyChange);
  32611. }
  32612. if (name == 'DCTDecode' || name == 'DCT') {
  32613. return new JpegStream(stream, maybeLength, stream.dict, this.xref);
  32614. }
  32615. if (name == 'JPXDecode' || name == 'JPX') {
  32616. return new JpxStream(stream, maybeLength, stream.dict);
  32617. }
  32618. if (name == 'ASCII85Decode' || name == 'A85') {
  32619. return new Ascii85Stream(stream, maybeLength);
  32620. }
  32621. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  32622. return new AsciiHexStream(stream, maybeLength);
  32623. }
  32624. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  32625. return new CCITTFaxStream(stream, maybeLength, params);
  32626. }
  32627. if (name == 'RunLengthDecode' || name == 'RL') {
  32628. return new RunLengthStream(stream, maybeLength);
  32629. }
  32630. if (name == 'JBIG2Decode') {
  32631. return new Jbig2Stream(stream, maybeLength, stream.dict);
  32632. }
  32633. warn('filter "' + name + '" not supported yet');
  32634. return stream;
  32635. }
  32636. };
  32637. return Parser;
  32638. })();
  32639. var Lexer = (function LexerClosure() {
  32640. function Lexer(stream, knownCommands) {
  32641. this.stream = stream;
  32642. this.nextChar();
  32643. // While lexing, we build up many strings one char at a time. Using += for
  32644. // this can result in lots of garbage strings. It's better to build an
  32645. // array of single-char strings and then join() them together at the end.
  32646. // And reusing a single array (i.e. |this.strBuf|) over and over for this
  32647. // purpose uses less memory than using a new array for each string.
  32648. this.strBuf = [];
  32649. // The PDFs might have "glued" commands with other commands, operands or
  32650. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  32651. // commands and their prefixes. The prefixes are built the following way:
  32652. // if there a command that is a prefix of the other valid command or
  32653. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  32654. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  32655. // other commands or literals as a prefix. The knowCommands is optional.
  32656. this.knownCommands = knownCommands;
  32657. }
  32658. Lexer.isSpace = function Lexer_isSpace(ch) {
  32659. // Space is one of the following characters: SPACE, TAB, CR or LF.
  32660. return (ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A);
  32661. };
  32662. // A '1' in this array means the character is white space. A '1' or
  32663. // '2' means the character ends a name or command.
  32664. var specialChars = [
  32665. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  32666. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  32667. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  32668. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  32669. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  32670. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  32671. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  32672. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  32673. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  32674. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  32675. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  32676. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  32677. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  32678. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  32679. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  32680. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  32681. ];
  32682. function toHexDigit(ch) {
  32683. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  32684. return ch & 0x0F;
  32685. }
  32686. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  32687. // 'A'-'F', 'a'-'f'
  32688. return (ch & 0x0F) + 9;
  32689. }
  32690. return -1;
  32691. }
  32692. Lexer.prototype = {
  32693. nextChar: function Lexer_nextChar() {
  32694. return (this.currentChar = this.stream.getByte());
  32695. },
  32696. peekChar: function Lexer_peekChar() {
  32697. return this.stream.peekBytes(1)[0];
  32698. },
  32699. getNumber: function Lexer_getNumber() {
  32700. var ch = this.currentChar;
  32701. var eNotation = false;
  32702. var divideBy = 0; // different from 0 if it's a floating point value
  32703. var sign = 1;
  32704. if (ch === 0x2D) { // '-'
  32705. sign = -1;
  32706. ch = this.nextChar();
  32707. } else if (ch === 0x2B) { // '+'
  32708. ch = this.nextChar();
  32709. }
  32710. if (ch === 0x2E) { // '.'
  32711. divideBy = 10;
  32712. ch = this.nextChar();
  32713. }
  32714. if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  32715. error('Invalid number: ' + String.fromCharCode(ch));
  32716. return 0;
  32717. }
  32718. var baseValue = ch - 0x30; // '0'
  32719. var powerValue = 0;
  32720. var powerValueSign = 1;
  32721. while ((ch = this.nextChar()) >= 0) {
  32722. if (0x30 <= ch && ch <= 0x39) { // '0' - '9'
  32723. var currentDigit = ch - 0x30; // '0'
  32724. if (eNotation) { // We are after an 'e' or 'E'
  32725. powerValue = powerValue * 10 + currentDigit;
  32726. } else {
  32727. if (divideBy !== 0) { // We are after a point
  32728. divideBy *= 10;
  32729. }
  32730. baseValue = baseValue * 10 + currentDigit;
  32731. }
  32732. } else if (ch === 0x2E) { // '.'
  32733. if (divideBy === 0) {
  32734. divideBy = 1;
  32735. } else {
  32736. // A number can have only one '.'
  32737. break;
  32738. }
  32739. } else if (ch === 0x2D) { // '-'
  32740. // ignore minus signs in the middle of numbers to match
  32741. // Adobe's behavior
  32742. warn('Badly formated number');
  32743. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  32744. // 'E' can be either a scientific notation or the beginning of a new
  32745. // operator
  32746. ch = this.peekChar();
  32747. if (ch === 0x2B || ch === 0x2D) { // '+', '-'
  32748. powerValueSign = (ch === 0x2D) ? -1 : 1;
  32749. this.nextChar(); // Consume the sign character
  32750. } else if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  32751. // The 'E' must be the beginning of a new operator
  32752. break;
  32753. }
  32754. eNotation = true;
  32755. } else {
  32756. // the last character doesn't belong to us
  32757. break;
  32758. }
  32759. }
  32760. if (divideBy !== 0) {
  32761. baseValue /= divideBy;
  32762. }
  32763. if (eNotation) {
  32764. baseValue *= Math.pow(10, powerValueSign * powerValue);
  32765. }
  32766. return sign * baseValue;
  32767. },
  32768. getString: function Lexer_getString() {
  32769. var numParen = 1;
  32770. var done = false;
  32771. var strBuf = this.strBuf;
  32772. strBuf.length = 0;
  32773. var ch = this.nextChar();
  32774. while (true) {
  32775. var charBuffered = false;
  32776. switch (ch | 0) {
  32777. case -1:
  32778. warn('Unterminated string');
  32779. done = true;
  32780. break;
  32781. case 0x28: // '('
  32782. ++numParen;
  32783. strBuf.push('(');
  32784. break;
  32785. case 0x29: // ')'
  32786. if (--numParen === 0) {
  32787. this.nextChar(); // consume strings ')'
  32788. done = true;
  32789. } else {
  32790. strBuf.push(')');
  32791. }
  32792. break;
  32793. case 0x5C: // '\\'
  32794. ch = this.nextChar();
  32795. switch (ch) {
  32796. case -1:
  32797. warn('Unterminated string');
  32798. done = true;
  32799. break;
  32800. case 0x6E: // 'n'
  32801. strBuf.push('\n');
  32802. break;
  32803. case 0x72: // 'r'
  32804. strBuf.push('\r');
  32805. break;
  32806. case 0x74: // 't'
  32807. strBuf.push('\t');
  32808. break;
  32809. case 0x62: // 'b'
  32810. strBuf.push('\b');
  32811. break;
  32812. case 0x66: // 'f'
  32813. strBuf.push('\f');
  32814. break;
  32815. case 0x5C: // '\'
  32816. case 0x28: // '('
  32817. case 0x29: // ')'
  32818. strBuf.push(String.fromCharCode(ch));
  32819. break;
  32820. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  32821. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  32822. var x = ch & 0x0F;
  32823. ch = this.nextChar();
  32824. charBuffered = true;
  32825. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  32826. x = (x << 3) + (ch & 0x0F);
  32827. ch = this.nextChar();
  32828. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  32829. charBuffered = false;
  32830. x = (x << 3) + (ch & 0x0F);
  32831. }
  32832. }
  32833. strBuf.push(String.fromCharCode(x));
  32834. break;
  32835. case 0x0D: // CR
  32836. if (this.peekChar() === 0x0A) { // LF
  32837. this.nextChar();
  32838. }
  32839. break;
  32840. case 0x0A: // LF
  32841. break;
  32842. default:
  32843. strBuf.push(String.fromCharCode(ch));
  32844. break;
  32845. }
  32846. break;
  32847. default:
  32848. strBuf.push(String.fromCharCode(ch));
  32849. break;
  32850. }
  32851. if (done) {
  32852. break;
  32853. }
  32854. if (!charBuffered) {
  32855. ch = this.nextChar();
  32856. }
  32857. }
  32858. return strBuf.join('');
  32859. },
  32860. getName: function Lexer_getName() {
  32861. var ch;
  32862. var strBuf = this.strBuf;
  32863. strBuf.length = 0;
  32864. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  32865. if (ch === 0x23) { // '#'
  32866. ch = this.nextChar();
  32867. var x = toHexDigit(ch);
  32868. if (x != -1) {
  32869. var x2 = toHexDigit(this.nextChar());
  32870. if (x2 == -1) {
  32871. error('Illegal digit in hex char in name: ' + x2);
  32872. }
  32873. strBuf.push(String.fromCharCode((x << 4) | x2));
  32874. } else {
  32875. strBuf.push('#', String.fromCharCode(ch));
  32876. }
  32877. } else {
  32878. strBuf.push(String.fromCharCode(ch));
  32879. }
  32880. }
  32881. if (strBuf.length > 128) {
  32882. error('Warning: name token is longer than allowed by the spec: ' +
  32883. strBuf.length);
  32884. }
  32885. return Name.get(strBuf.join(''));
  32886. },
  32887. getHexString: function Lexer_getHexString() {
  32888. var strBuf = this.strBuf;
  32889. strBuf.length = 0;
  32890. var ch = this.currentChar;
  32891. var isFirstHex = true;
  32892. var firstDigit;
  32893. var secondDigit;
  32894. while (true) {
  32895. if (ch < 0) {
  32896. warn('Unterminated hex string');
  32897. break;
  32898. } else if (ch === 0x3E) { // '>'
  32899. this.nextChar();
  32900. break;
  32901. } else if (specialChars[ch] === 1) {
  32902. ch = this.nextChar();
  32903. continue;
  32904. } else {
  32905. if (isFirstHex) {
  32906. firstDigit = toHexDigit(ch);
  32907. if (firstDigit === -1) {
  32908. warn('Ignoring invalid character "' + ch + '" in hex string');
  32909. ch = this.nextChar();
  32910. continue;
  32911. }
  32912. } else {
  32913. secondDigit = toHexDigit(ch);
  32914. if (secondDigit === -1) {
  32915. warn('Ignoring invalid character "' + ch + '" in hex string');
  32916. ch = this.nextChar();
  32917. continue;
  32918. }
  32919. strBuf.push(String.fromCharCode((firstDigit << 4) | secondDigit));
  32920. }
  32921. isFirstHex = !isFirstHex;
  32922. ch = this.nextChar();
  32923. }
  32924. }
  32925. return strBuf.join('');
  32926. },
  32927. getObj: function Lexer_getObj() {
  32928. // skip whitespace and comments
  32929. var comment = false;
  32930. var ch = this.currentChar;
  32931. while (true) {
  32932. if (ch < 0) {
  32933. return EOF;
  32934. }
  32935. if (comment) {
  32936. if (ch === 0x0A || ch == 0x0D) { // LF, CR
  32937. comment = false;
  32938. }
  32939. } else if (ch === 0x25) { // '%'
  32940. comment = true;
  32941. } else if (specialChars[ch] !== 1) {
  32942. break;
  32943. }
  32944. ch = this.nextChar();
  32945. }
  32946. // start reading token
  32947. switch (ch | 0) {
  32948. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  32949. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  32950. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  32951. return this.getNumber();
  32952. case 0x28: // '('
  32953. return this.getString();
  32954. case 0x2F: // '/'
  32955. return this.getName();
  32956. // array punctuation
  32957. case 0x5B: // '['
  32958. this.nextChar();
  32959. return Cmd.get('[');
  32960. case 0x5D: // ']'
  32961. this.nextChar();
  32962. return Cmd.get(']');
  32963. // hex string or dict punctuation
  32964. case 0x3C: // '<'
  32965. ch = this.nextChar();
  32966. if (ch === 0x3C) {
  32967. // dict punctuation
  32968. this.nextChar();
  32969. return Cmd.get('<<');
  32970. }
  32971. return this.getHexString();
  32972. // dict punctuation
  32973. case 0x3E: // '>'
  32974. ch = this.nextChar();
  32975. if (ch === 0x3E) {
  32976. this.nextChar();
  32977. return Cmd.get('>>');
  32978. }
  32979. return Cmd.get('>');
  32980. case 0x7B: // '{'
  32981. this.nextChar();
  32982. return Cmd.get('{');
  32983. case 0x7D: // '}'
  32984. this.nextChar();
  32985. return Cmd.get('}');
  32986. case 0x29: // ')'
  32987. error('Illegal character: ' + ch);
  32988. break;
  32989. }
  32990. // command
  32991. var str = String.fromCharCode(ch);
  32992. var knownCommands = this.knownCommands;
  32993. var knownCommandFound = knownCommands && (str in knownCommands);
  32994. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  32995. // stop if known command is found and next character does not make
  32996. // the str a command
  32997. var possibleCommand = str + String.fromCharCode(ch);
  32998. if (knownCommandFound && !(possibleCommand in knownCommands)) {
  32999. break;
  33000. }
  33001. if (str.length == 128) {
  33002. error('Command token too long: ' + str.length);
  33003. }
  33004. str = possibleCommand;
  33005. knownCommandFound = knownCommands && (str in knownCommands);
  33006. }
  33007. if (str == 'true') {
  33008. return true;
  33009. }
  33010. if (str == 'false') {
  33011. return false;
  33012. }
  33013. if (str == 'null') {
  33014. return null;
  33015. }
  33016. return Cmd.get(str);
  33017. },
  33018. skipToNextLine: function Lexer_skipToNextLine() {
  33019. var ch = this.currentChar;
  33020. while (ch >= 0) {
  33021. if (ch === 0x0D) { // CR
  33022. ch = this.nextChar();
  33023. if (ch === 0x0A) { // LF
  33024. this.nextChar();
  33025. }
  33026. break;
  33027. } else if (ch === 0x0A) { // LF
  33028. this.nextChar();
  33029. break;
  33030. }
  33031. ch = this.nextChar();
  33032. }
  33033. }
  33034. };
  33035. return Lexer;
  33036. })();
  33037. var Linearization = (function LinearizationClosure() {
  33038. function Linearization(stream) {
  33039. this.parser = new Parser(new Lexer(stream), false, null);
  33040. var obj1 = this.parser.getObj();
  33041. var obj2 = this.parser.getObj();
  33042. var obj3 = this.parser.getObj();
  33043. this.linDict = this.parser.getObj();
  33044. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  33045. isDict(this.linDict)) {
  33046. var obj = this.linDict.get('Linearized');
  33047. if (!(isNum(obj) && obj > 0)) {
  33048. this.linDict = null;
  33049. }
  33050. }
  33051. }
  33052. Linearization.prototype = {
  33053. getInt: function Linearization_getInt(name) {
  33054. var linDict = this.linDict;
  33055. var obj;
  33056. if (isDict(linDict) && isInt(obj = linDict.get(name)) && obj > 0) {
  33057. return obj;
  33058. }
  33059. error('"' + name + '" field in linearization table is invalid');
  33060. },
  33061. getHint: function Linearization_getHint(index) {
  33062. var linDict = this.linDict;
  33063. var obj1, obj2;
  33064. if (isDict(linDict) && isArray(obj1 = linDict.get('H')) &&
  33065. obj1.length >= 2 && isInt(obj2 = obj1[index]) && obj2 > 0) {
  33066. return obj2;
  33067. }
  33068. error('Hints table in linearization table is invalid: ' + index);
  33069. },
  33070. get length() {
  33071. if (!isDict(this.linDict)) {
  33072. return 0;
  33073. }
  33074. return this.getInt('L');
  33075. },
  33076. get hintsOffset() {
  33077. return this.getHint(0);
  33078. },
  33079. get hintsLength() {
  33080. return this.getHint(1);
  33081. },
  33082. get hintsOffset2() {
  33083. return this.getHint(2);
  33084. },
  33085. get hintsLenth2() {
  33086. return this.getHint(3);
  33087. },
  33088. get objectNumberFirst() {
  33089. return this.getInt('O');
  33090. },
  33091. get endFirst() {
  33092. return this.getInt('E');
  33093. },
  33094. get numPages() {
  33095. return this.getInt('N');
  33096. },
  33097. get mainXRefEntriesOffset() {
  33098. return this.getInt('T');
  33099. },
  33100. get pageFirst() {
  33101. return this.getInt('P');
  33102. }
  33103. };
  33104. return Linearization;
  33105. })();
  33106. var PostScriptParser = (function PostScriptParserClosure() {
  33107. function PostScriptParser(lexer) {
  33108. this.lexer = lexer;
  33109. this.operators = [];
  33110. this.token = null;
  33111. this.prev = null;
  33112. }
  33113. PostScriptParser.prototype = {
  33114. nextToken: function PostScriptParser_nextToken() {
  33115. this.prev = this.token;
  33116. this.token = this.lexer.getToken();
  33117. },
  33118. accept: function PostScriptParser_accept(type) {
  33119. if (this.token.type == type) {
  33120. this.nextToken();
  33121. return true;
  33122. }
  33123. return false;
  33124. },
  33125. expect: function PostScriptParser_expect(type) {
  33126. if (this.accept(type)) {
  33127. return true;
  33128. }
  33129. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  33130. type + '.');
  33131. },
  33132. parse: function PostScriptParser_parse() {
  33133. this.nextToken();
  33134. this.expect(PostScriptTokenTypes.LBRACE);
  33135. this.parseBlock();
  33136. this.expect(PostScriptTokenTypes.RBRACE);
  33137. return this.operators;
  33138. },
  33139. parseBlock: function PostScriptParser_parseBlock() {
  33140. while (true) {
  33141. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  33142. this.operators.push(this.prev.value);
  33143. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  33144. this.operators.push(this.prev.value);
  33145. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33146. this.parseCondition();
  33147. } else {
  33148. return;
  33149. }
  33150. }
  33151. },
  33152. parseCondition: function PostScriptParser_parseCondition() {
  33153. // Add two place holders that will be updated later
  33154. var conditionLocation = this.operators.length;
  33155. this.operators.push(null, null);
  33156. this.parseBlock();
  33157. this.expect(PostScriptTokenTypes.RBRACE);
  33158. if (this.accept(PostScriptTokenTypes.IF)) {
  33159. // The true block is right after the 'if' so it just falls through on
  33160. // true else it jumps and skips the true block.
  33161. this.operators[conditionLocation] = this.operators.length;
  33162. this.operators[conditionLocation + 1] = 'jz';
  33163. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  33164. var jumpLocation = this.operators.length;
  33165. this.operators.push(null, null);
  33166. var endOfTrue = this.operators.length;
  33167. this.parseBlock();
  33168. this.expect(PostScriptTokenTypes.RBRACE);
  33169. this.expect(PostScriptTokenTypes.IFELSE);
  33170. // The jump is added at the end of the true block to skip the false
  33171. // block.
  33172. this.operators[jumpLocation] = this.operators.length;
  33173. this.operators[jumpLocation + 1] = 'j';
  33174. this.operators[conditionLocation] = endOfTrue;
  33175. this.operators[conditionLocation + 1] = 'jz';
  33176. } else {
  33177. error('PS Function: error parsing conditional.');
  33178. }
  33179. }
  33180. };
  33181. return PostScriptParser;
  33182. })();
  33183. var PostScriptTokenTypes = {
  33184. LBRACE: 0,
  33185. RBRACE: 1,
  33186. NUMBER: 2,
  33187. OPERATOR: 3,
  33188. IF: 4,
  33189. IFELSE: 5
  33190. };
  33191. var PostScriptToken = (function PostScriptTokenClosure() {
  33192. function PostScriptToken(type, value) {
  33193. this.type = type;
  33194. this.value = value;
  33195. }
  33196. var opCache = {};
  33197. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  33198. var opValue = opCache[op];
  33199. if (opValue) {
  33200. return opValue;
  33201. }
  33202. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  33203. };
  33204. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  33205. '{');
  33206. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  33207. '}');
  33208. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  33209. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  33210. 'IFELSE');
  33211. return PostScriptToken;
  33212. })();
  33213. var PostScriptLexer = (function PostScriptLexerClosure() {
  33214. function PostScriptLexer(stream) {
  33215. this.stream = stream;
  33216. this.nextChar();
  33217. }
  33218. PostScriptLexer.prototype = {
  33219. nextChar: function PostScriptLexer_nextChar() {
  33220. return (this.currentChar = this.stream.getByte());
  33221. },
  33222. getToken: function PostScriptLexer_getToken() {
  33223. var comment = false;
  33224. var ch = this.currentChar;
  33225. // skip comments
  33226. while (true) {
  33227. if (ch < 0) {
  33228. return EOF;
  33229. }
  33230. if (comment) {
  33231. if (ch === 0x0A || ch === 0x0D) {
  33232. comment = false;
  33233. }
  33234. } else if (ch == 0x25) { // '%'
  33235. comment = true;
  33236. } else if (!Lexer.isSpace(ch)) {
  33237. break;
  33238. }
  33239. ch = this.nextChar();
  33240. }
  33241. switch (ch | 0) {
  33242. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  33243. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  33244. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  33245. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  33246. this.getNumber());
  33247. case 0x7B: // '{'
  33248. this.nextChar();
  33249. return PostScriptToken.LBRACE;
  33250. case 0x7D: // '}'
  33251. this.nextChar();
  33252. return PostScriptToken.RBRACE;
  33253. }
  33254. // operator
  33255. var str = String.fromCharCode(ch);
  33256. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  33257. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  33258. str += String.fromCharCode(ch);
  33259. }
  33260. switch (str.toLowerCase()) {
  33261. case 'if':
  33262. return PostScriptToken.IF;
  33263. case 'ifelse':
  33264. return PostScriptToken.IFELSE;
  33265. default:
  33266. return PostScriptToken.getOperator(str);
  33267. }
  33268. },
  33269. getNumber: function PostScriptLexer_getNumber() {
  33270. var ch = this.currentChar;
  33271. var str = String.fromCharCode(ch);
  33272. while ((ch = this.nextChar()) >= 0) {
  33273. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  33274. ch === 0x2D || ch === 0x2E) { // '-', '.'
  33275. str += String.fromCharCode(ch);
  33276. } else {
  33277. break;
  33278. }
  33279. }
  33280. var value = parseFloat(str);
  33281. if (isNaN(value)) {
  33282. error('Invalid floating point number: ' + value);
  33283. }
  33284. return value;
  33285. }
  33286. };
  33287. return PostScriptLexer;
  33288. })();
  33289. var Stream = (function StreamClosure() {
  33290. function Stream(arrayBuffer, start, length, dict) {
  33291. this.bytes = (arrayBuffer instanceof Uint8Array ?
  33292. arrayBuffer : new Uint8Array(arrayBuffer));
  33293. this.start = start || 0;
  33294. this.pos = this.start;
  33295. this.end = (start + length) || this.bytes.length;
  33296. this.dict = dict;
  33297. }
  33298. // required methods for a stream. if a particular stream does not
  33299. // implement these, an error should be thrown
  33300. Stream.prototype = {
  33301. get length() {
  33302. return this.end - this.start;
  33303. },
  33304. getByte: function Stream_getByte() {
  33305. if (this.pos >= this.end) {
  33306. return -1;
  33307. }
  33308. return this.bytes[this.pos++];
  33309. },
  33310. getUint16: function Stream_getUint16() {
  33311. var b0 = this.getByte();
  33312. var b1 = this.getByte();
  33313. return (b0 << 8) + b1;
  33314. },
  33315. getInt32: function Stream_getInt32() {
  33316. var b0 = this.getByte();
  33317. var b1 = this.getByte();
  33318. var b2 = this.getByte();
  33319. var b3 = this.getByte();
  33320. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33321. },
  33322. // returns subarray of original buffer
  33323. // should only be read
  33324. getBytes: function Stream_getBytes(length) {
  33325. var bytes = this.bytes;
  33326. var pos = this.pos;
  33327. var strEnd = this.end;
  33328. if (!length) {
  33329. return bytes.subarray(pos, strEnd);
  33330. }
  33331. var end = pos + length;
  33332. if (end > strEnd) {
  33333. end = strEnd;
  33334. }
  33335. this.pos = end;
  33336. return bytes.subarray(pos, end);
  33337. },
  33338. peekBytes: function Stream_peekBytes(length) {
  33339. var bytes = this.getBytes(length);
  33340. this.pos -= bytes.length;
  33341. return bytes;
  33342. },
  33343. skip: function Stream_skip(n) {
  33344. if (!n) {
  33345. n = 1;
  33346. }
  33347. this.pos += n;
  33348. },
  33349. reset: function Stream_reset() {
  33350. this.pos = this.start;
  33351. },
  33352. moveStart: function Stream_moveStart() {
  33353. this.start = this.pos;
  33354. },
  33355. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  33356. return new Stream(this.bytes.buffer, start, length, dict);
  33357. },
  33358. isStream: true
  33359. };
  33360. return Stream;
  33361. })();
  33362. var StringStream = (function StringStreamClosure() {
  33363. function StringStream(str) {
  33364. var length = str.length;
  33365. var bytes = new Uint8Array(length);
  33366. for (var n = 0; n < length; ++n) {
  33367. bytes[n] = str.charCodeAt(n);
  33368. }
  33369. Stream.call(this, bytes);
  33370. }
  33371. StringStream.prototype = Stream.prototype;
  33372. return StringStream;
  33373. })();
  33374. // super class for the decoding streams
  33375. var DecodeStream = (function DecodeStreamClosure() {
  33376. function DecodeStream(maybeMinBufferLength) {
  33377. this.pos = 0;
  33378. this.bufferLength = 0;
  33379. this.eof = false;
  33380. this.buffer = null;
  33381. this.minBufferLength = 512;
  33382. if (maybeMinBufferLength) {
  33383. // Compute the first power of two that is as big as maybeMinBufferLength.
  33384. while (this.minBufferLength < maybeMinBufferLength) {
  33385. this.minBufferLength *= 2;
  33386. }
  33387. }
  33388. }
  33389. DecodeStream.prototype = {
  33390. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  33391. var buffer = this.buffer;
  33392. var current;
  33393. if (buffer) {
  33394. current = buffer.byteLength;
  33395. if (requested <= current) {
  33396. return buffer;
  33397. }
  33398. } else {
  33399. current = 0;
  33400. }
  33401. var size = this.minBufferLength;
  33402. while (size < requested) {
  33403. size *= 2;
  33404. }
  33405. var buffer2 = new Uint8Array(size);
  33406. for (var i = 0; i < current; ++i) {
  33407. buffer2[i] = buffer[i];
  33408. }
  33409. return (this.buffer = buffer2);
  33410. },
  33411. getByte: function DecodeStream_getByte() {
  33412. var pos = this.pos;
  33413. while (this.bufferLength <= pos) {
  33414. if (this.eof) {
  33415. return -1;
  33416. }
  33417. this.readBlock();
  33418. }
  33419. return this.buffer[this.pos++];
  33420. },
  33421. getUint16: function DecodeStream_getUint16() {
  33422. var b0 = this.getByte();
  33423. var b1 = this.getByte();
  33424. return (b0 << 8) + b1;
  33425. },
  33426. getInt32: function DecodeStream_getInt32() {
  33427. var b0 = this.getByte();
  33428. var b1 = this.getByte();
  33429. var b2 = this.getByte();
  33430. var b3 = this.getByte();
  33431. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  33432. },
  33433. getBytes: function DecodeStream_getBytes(length) {
  33434. var end, pos = this.pos;
  33435. if (length) {
  33436. this.ensureBuffer(pos + length);
  33437. end = pos + length;
  33438. while (!this.eof && this.bufferLength < end) {
  33439. this.readBlock();
  33440. }
  33441. var bufEnd = this.bufferLength;
  33442. if (end > bufEnd) {
  33443. end = bufEnd;
  33444. }
  33445. } else {
  33446. while (!this.eof) {
  33447. this.readBlock();
  33448. }
  33449. end = this.bufferLength;
  33450. // checking if bufferLength is still 0 then
  33451. // the buffer has to be initialized
  33452. if (!end) {
  33453. this.buffer = new Uint8Array(0);
  33454. }
  33455. }
  33456. this.pos = end;
  33457. return this.buffer.subarray(pos, end);
  33458. },
  33459. peekBytes: function DecodeStream_peekBytes(length) {
  33460. var bytes = this.getBytes(length);
  33461. this.pos -= bytes.length;
  33462. return bytes;
  33463. },
  33464. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  33465. var end = start + length;
  33466. while (this.bufferLength <= end && !this.eof) {
  33467. this.readBlock();
  33468. }
  33469. return new Stream(this.buffer, start, length, dict);
  33470. },
  33471. skip: function Stream_skip(n) {
  33472. if (!n) {
  33473. n = 1;
  33474. }
  33475. this.pos += n;
  33476. },
  33477. reset: function DecodeStream_reset() {
  33478. this.pos = 0;
  33479. },
  33480. getBaseStreams: function DecodeStream_getBaseStreams() {
  33481. if (this.str && this.str.getBaseStreams) {
  33482. return this.str.getBaseStreams();
  33483. }
  33484. return [];
  33485. }
  33486. };
  33487. return DecodeStream;
  33488. })();
  33489. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  33490. function StreamsSequenceStream(streams) {
  33491. this.streams = streams;
  33492. DecodeStream.call(this, /* maybeLength = */ null);
  33493. }
  33494. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  33495. StreamsSequenceStream.prototype.readBlock =
  33496. function streamSequenceStreamReadBlock() {
  33497. var streams = this.streams;
  33498. if (streams.length === 0) {
  33499. this.eof = true;
  33500. return;
  33501. }
  33502. var stream = streams.shift();
  33503. var chunk = stream.getBytes();
  33504. var bufferLength = this.bufferLength;
  33505. var newLength = bufferLength + chunk.length;
  33506. var buffer = this.ensureBuffer(newLength);
  33507. buffer.set(chunk, bufferLength);
  33508. this.bufferLength = newLength;
  33509. };
  33510. StreamsSequenceStream.prototype.getBaseStreams =
  33511. function StreamsSequenceStream_getBaseStreams() {
  33512. var baseStreams = [];
  33513. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  33514. var stream = this.streams[i];
  33515. if (stream.getBaseStreams) {
  33516. Util.concatenateToArray(baseStreams, stream.getBaseStreams());
  33517. }
  33518. }
  33519. return baseStreams;
  33520. };
  33521. return StreamsSequenceStream;
  33522. })();
  33523. var FlateStream = (function FlateStreamClosure() {
  33524. var codeLenCodeMap = new Uint32Array([
  33525. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  33526. ]);
  33527. var lengthDecode = new Uint32Array([
  33528. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  33529. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  33530. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  33531. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  33532. ]);
  33533. var distDecode = new Uint32Array([
  33534. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  33535. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  33536. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  33537. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  33538. ]);
  33539. var fixedLitCodeTab = [new Uint32Array([
  33540. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  33541. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  33542. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  33543. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  33544. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  33545. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  33546. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  33547. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  33548. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  33549. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  33550. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  33551. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  33552. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  33553. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  33554. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  33555. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  33556. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  33557. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  33558. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  33559. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  33560. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  33561. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  33562. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  33563. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  33564. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  33565. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  33566. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  33567. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  33568. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  33569. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  33570. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  33571. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  33572. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  33573. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  33574. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  33575. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  33576. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  33577. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  33578. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  33579. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  33580. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  33581. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  33582. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  33583. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  33584. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  33585. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  33586. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  33587. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  33588. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  33589. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  33590. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  33591. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  33592. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  33593. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  33594. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  33595. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  33596. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  33597. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  33598. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  33599. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  33600. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  33601. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  33602. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  33603. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  33604. ]), 9];
  33605. var fixedDistCodeTab = [new Uint32Array([
  33606. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  33607. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  33608. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  33609. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  33610. ]), 5];
  33611. function FlateStream(str, maybeLength) {
  33612. this.str = str;
  33613. this.dict = str.dict;
  33614. var cmf = str.getByte();
  33615. var flg = str.getByte();
  33616. if (cmf == -1 || flg == -1) {
  33617. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  33618. }
  33619. if ((cmf & 0x0f) != 0x08) {
  33620. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  33621. }
  33622. if ((((cmf << 8) + flg) % 31) !== 0) {
  33623. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  33624. }
  33625. if (flg & 0x20) {
  33626. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  33627. }
  33628. this.codeSize = 0;
  33629. this.codeBuf = 0;
  33630. DecodeStream.call(this, maybeLength);
  33631. }
  33632. FlateStream.prototype = Object.create(DecodeStream.prototype);
  33633. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  33634. var str = this.str;
  33635. var codeSize = this.codeSize;
  33636. var codeBuf = this.codeBuf;
  33637. var b;
  33638. while (codeSize < bits) {
  33639. if ((b = str.getByte()) === -1) {
  33640. error('Bad encoding in flate stream');
  33641. }
  33642. codeBuf |= b << codeSize;
  33643. codeSize += 8;
  33644. }
  33645. b = codeBuf & ((1 << bits) - 1);
  33646. this.codeBuf = codeBuf >> bits;
  33647. this.codeSize = codeSize -= bits;
  33648. return b;
  33649. };
  33650. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  33651. var str = this.str;
  33652. var codes = table[0];
  33653. var maxLen = table[1];
  33654. var codeSize = this.codeSize;
  33655. var codeBuf = this.codeBuf;
  33656. while (codeSize < maxLen) {
  33657. var b;
  33658. if ((b = str.getByte()) === -1) {
  33659. error('Bad encoding in flate stream');
  33660. }
  33661. codeBuf |= (b << codeSize);
  33662. codeSize += 8;
  33663. }
  33664. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  33665. var codeLen = code >> 16;
  33666. var codeVal = code & 0xffff;
  33667. if (codeSize === 0 || codeSize < codeLen || codeLen === 0) {
  33668. error('Bad encoding in flate stream');
  33669. }
  33670. this.codeBuf = (codeBuf >> codeLen);
  33671. this.codeSize = (codeSize - codeLen);
  33672. return codeVal;
  33673. };
  33674. FlateStream.prototype.generateHuffmanTable =
  33675. function flateStreamGenerateHuffmanTable(lengths) {
  33676. var n = lengths.length;
  33677. // find max code length
  33678. var maxLen = 0;
  33679. var i;
  33680. for (i = 0; i < n; ++i) {
  33681. if (lengths[i] > maxLen) {
  33682. maxLen = lengths[i];
  33683. }
  33684. }
  33685. // build the table
  33686. var size = 1 << maxLen;
  33687. var codes = new Uint32Array(size);
  33688. for (var len = 1, code = 0, skip = 2;
  33689. len <= maxLen;
  33690. ++len, code <<= 1, skip <<= 1) {
  33691. for (var val = 0; val < n; ++val) {
  33692. if (lengths[val] == len) {
  33693. // bit-reverse the code
  33694. var code2 = 0;
  33695. var t = code;
  33696. for (i = 0; i < len; ++i) {
  33697. code2 = (code2 << 1) | (t & 1);
  33698. t >>= 1;
  33699. }
  33700. // fill the table entries
  33701. for (i = code2; i < size; i += skip) {
  33702. codes[i] = (len << 16) | val;
  33703. }
  33704. ++code;
  33705. }
  33706. }
  33707. }
  33708. return [codes, maxLen];
  33709. };
  33710. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  33711. var buffer, len;
  33712. var str = this.str;
  33713. // read block header
  33714. var hdr = this.getBits(3);
  33715. if (hdr & 1) {
  33716. this.eof = true;
  33717. }
  33718. hdr >>= 1;
  33719. if (hdr === 0) { // uncompressed block
  33720. var b;
  33721. if ((b = str.getByte()) === -1) {
  33722. error('Bad block header in flate stream');
  33723. }
  33724. var blockLen = b;
  33725. if ((b = str.getByte()) === -1) {
  33726. error('Bad block header in flate stream');
  33727. }
  33728. blockLen |= (b << 8);
  33729. if ((b = str.getByte()) === -1) {
  33730. error('Bad block header in flate stream');
  33731. }
  33732. var check = b;
  33733. if ((b = str.getByte()) === -1) {
  33734. error('Bad block header in flate stream');
  33735. }
  33736. check |= (b << 8);
  33737. if (check != (~blockLen & 0xffff) &&
  33738. (blockLen !== 0 || check !== 0)) {
  33739. // Ignoring error for bad "empty" block (see issue 1277)
  33740. error('Bad uncompressed block length in flate stream');
  33741. }
  33742. this.codeBuf = 0;
  33743. this.codeSize = 0;
  33744. var bufferLength = this.bufferLength;
  33745. buffer = this.ensureBuffer(bufferLength + blockLen);
  33746. var end = bufferLength + blockLen;
  33747. this.bufferLength = end;
  33748. if (blockLen === 0) {
  33749. if (str.peekBytes(1).length === 0) {
  33750. this.eof = true;
  33751. }
  33752. } else {
  33753. for (var n = bufferLength; n < end; ++n) {
  33754. if ((b = str.getByte()) === -1) {
  33755. this.eof = true;
  33756. break;
  33757. }
  33758. buffer[n] = b;
  33759. }
  33760. }
  33761. return;
  33762. }
  33763. var litCodeTable;
  33764. var distCodeTable;
  33765. if (hdr == 1) { // compressed block, fixed codes
  33766. litCodeTable = fixedLitCodeTab;
  33767. distCodeTable = fixedDistCodeTab;
  33768. } else if (hdr == 2) { // compressed block, dynamic codes
  33769. var numLitCodes = this.getBits(5) + 257;
  33770. var numDistCodes = this.getBits(5) + 1;
  33771. var numCodeLenCodes = this.getBits(4) + 4;
  33772. // build the code lengths code table
  33773. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  33774. var i;
  33775. for (i = 0; i < numCodeLenCodes; ++i) {
  33776. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  33777. }
  33778. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  33779. // build the literal and distance code tables
  33780. len = 0;
  33781. i = 0;
  33782. var codes = numLitCodes + numDistCodes;
  33783. var codeLengths = new Uint8Array(codes);
  33784. var bitsLength, bitsOffset, what;
  33785. while (i < codes) {
  33786. var code = this.getCode(codeLenCodeTab);
  33787. if (code == 16) {
  33788. bitsLength = 2; bitsOffset = 3; what = len;
  33789. } else if (code == 17) {
  33790. bitsLength = 3; bitsOffset = 3; what = (len = 0);
  33791. } else if (code == 18) {
  33792. bitsLength = 7; bitsOffset = 11; what = (len = 0);
  33793. } else {
  33794. codeLengths[i++] = len = code;
  33795. continue;
  33796. }
  33797. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  33798. while (repeatLength-- > 0) {
  33799. codeLengths[i++] = what;
  33800. }
  33801. }
  33802. litCodeTable =
  33803. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  33804. distCodeTable =
  33805. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  33806. } else {
  33807. error('Unknown block type in flate stream');
  33808. }
  33809. buffer = this.buffer;
  33810. var limit = buffer ? buffer.length : 0;
  33811. var pos = this.bufferLength;
  33812. while (true) {
  33813. var code1 = this.getCode(litCodeTable);
  33814. if (code1 < 256) {
  33815. if (pos + 1 >= limit) {
  33816. buffer = this.ensureBuffer(pos + 1);
  33817. limit = buffer.length;
  33818. }
  33819. buffer[pos++] = code1;
  33820. continue;
  33821. }
  33822. if (code1 == 256) {
  33823. this.bufferLength = pos;
  33824. return;
  33825. }
  33826. code1 -= 257;
  33827. code1 = lengthDecode[code1];
  33828. var code2 = code1 >> 16;
  33829. if (code2 > 0) {
  33830. code2 = this.getBits(code2);
  33831. }
  33832. len = (code1 & 0xffff) + code2;
  33833. code1 = this.getCode(distCodeTable);
  33834. code1 = distDecode[code1];
  33835. code2 = code1 >> 16;
  33836. if (code2 > 0) {
  33837. code2 = this.getBits(code2);
  33838. }
  33839. var dist = (code1 & 0xffff) + code2;
  33840. if (pos + len >= limit) {
  33841. buffer = this.ensureBuffer(pos + len);
  33842. limit = buffer.length;
  33843. }
  33844. for (var k = 0; k < len; ++k, ++pos) {
  33845. buffer[pos] = buffer[pos - dist];
  33846. }
  33847. }
  33848. };
  33849. return FlateStream;
  33850. })();
  33851. var PredictorStream = (function PredictorStreamClosure() {
  33852. function PredictorStream(str, maybeLength, params) {
  33853. var predictor = this.predictor = params.get('Predictor') || 1;
  33854. if (predictor <= 1) {
  33855. return str; // no prediction
  33856. }
  33857. if (predictor !== 2 && (predictor < 10 || predictor > 15)) {
  33858. error('Unsupported predictor: ' + predictor);
  33859. }
  33860. if (predictor === 2) {
  33861. this.readBlock = this.readBlockTiff;
  33862. } else {
  33863. this.readBlock = this.readBlockPng;
  33864. }
  33865. this.str = str;
  33866. this.dict = str.dict;
  33867. var colors = this.colors = params.get('Colors') || 1;
  33868. var bits = this.bits = params.get('BitsPerComponent') || 8;
  33869. var columns = this.columns = params.get('Columns') || 1;
  33870. this.pixBytes = (colors * bits + 7) >> 3;
  33871. this.rowBytes = (columns * colors * bits + 7) >> 3;
  33872. DecodeStream.call(this, maybeLength);
  33873. return this;
  33874. }
  33875. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  33876. PredictorStream.prototype.readBlockTiff =
  33877. function predictorStreamReadBlockTiff() {
  33878. var rowBytes = this.rowBytes;
  33879. var bufferLength = this.bufferLength;
  33880. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  33881. var bits = this.bits;
  33882. var colors = this.colors;
  33883. var rawBytes = this.str.getBytes(rowBytes);
  33884. this.eof = !rawBytes.length;
  33885. if (this.eof) {
  33886. return;
  33887. }
  33888. var inbuf = 0, outbuf = 0;
  33889. var inbits = 0, outbits = 0;
  33890. var pos = bufferLength;
  33891. var i;
  33892. if (bits === 1) {
  33893. for (i = 0; i < rowBytes; ++i) {
  33894. var c = rawBytes[i];
  33895. inbuf = (inbuf << 8) | c;
  33896. // bitwise addition is exclusive or
  33897. // first shift inbuf and then add
  33898. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  33899. // truncate inbuf (assumes colors < 16)
  33900. inbuf &= 0xFFFF;
  33901. }
  33902. } else if (bits === 8) {
  33903. for (i = 0; i < colors; ++i) {
  33904. buffer[pos++] = rawBytes[i];
  33905. }
  33906. for (; i < rowBytes; ++i) {
  33907. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  33908. pos++;
  33909. }
  33910. } else {
  33911. var compArray = new Uint8Array(colors + 1);
  33912. var bitMask = (1 << bits) - 1;
  33913. var j = 0, k = bufferLength;
  33914. var columns = this.columns;
  33915. for (i = 0; i < columns; ++i) {
  33916. for (var kk = 0; kk < colors; ++kk) {
  33917. if (inbits < bits) {
  33918. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  33919. inbits += 8;
  33920. }
  33921. compArray[kk] = (compArray[kk] +
  33922. (inbuf >> (inbits - bits))) & bitMask;
  33923. inbits -= bits;
  33924. outbuf = (outbuf << bits) | compArray[kk];
  33925. outbits += bits;
  33926. if (outbits >= 8) {
  33927. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  33928. outbits -= 8;
  33929. }
  33930. }
  33931. }
  33932. if (outbits > 0) {
  33933. buffer[k++] = (outbuf << (8 - outbits)) +
  33934. (inbuf & ((1 << (8 - outbits)) - 1));
  33935. }
  33936. }
  33937. this.bufferLength += rowBytes;
  33938. };
  33939. PredictorStream.prototype.readBlockPng =
  33940. function predictorStreamReadBlockPng() {
  33941. var rowBytes = this.rowBytes;
  33942. var pixBytes = this.pixBytes;
  33943. var predictor = this.str.getByte();
  33944. var rawBytes = this.str.getBytes(rowBytes);
  33945. this.eof = !rawBytes.length;
  33946. if (this.eof) {
  33947. return;
  33948. }
  33949. var bufferLength = this.bufferLength;
  33950. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  33951. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  33952. if (prevRow.length === 0) {
  33953. prevRow = new Uint8Array(rowBytes);
  33954. }
  33955. var i, j = bufferLength, up, c;
  33956. switch (predictor) {
  33957. case 0:
  33958. for (i = 0; i < rowBytes; ++i) {
  33959. buffer[j++] = rawBytes[i];
  33960. }
  33961. break;
  33962. case 1:
  33963. for (i = 0; i < pixBytes; ++i) {
  33964. buffer[j++] = rawBytes[i];
  33965. }
  33966. for (; i < rowBytes; ++i) {
  33967. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  33968. j++;
  33969. }
  33970. break;
  33971. case 2:
  33972. for (i = 0; i < rowBytes; ++i) {
  33973. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  33974. }
  33975. break;
  33976. case 3:
  33977. for (i = 0; i < pixBytes; ++i) {
  33978. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  33979. }
  33980. for (; i < rowBytes; ++i) {
  33981. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  33982. rawBytes[i]) & 0xFF;
  33983. j++;
  33984. }
  33985. break;
  33986. case 4:
  33987. // we need to save the up left pixels values. the simplest way
  33988. // is to create a new buffer
  33989. for (i = 0; i < pixBytes; ++i) {
  33990. up = prevRow[i];
  33991. c = rawBytes[i];
  33992. buffer[j++] = up + c;
  33993. }
  33994. for (; i < rowBytes; ++i) {
  33995. up = prevRow[i];
  33996. var upLeft = prevRow[i - pixBytes];
  33997. var left = buffer[j - pixBytes];
  33998. var p = left + up - upLeft;
  33999. var pa = p - left;
  34000. if (pa < 0) {
  34001. pa = -pa;
  34002. }
  34003. var pb = p - up;
  34004. if (pb < 0) {
  34005. pb = -pb;
  34006. }
  34007. var pc = p - upLeft;
  34008. if (pc < 0) {
  34009. pc = -pc;
  34010. }
  34011. c = rawBytes[i];
  34012. if (pa <= pb && pa <= pc) {
  34013. buffer[j++] = left + c;
  34014. } else if (pb <= pc) {
  34015. buffer[j++] = up + c;
  34016. } else {
  34017. buffer[j++] = upLeft + c;
  34018. }
  34019. }
  34020. break;
  34021. default:
  34022. error('Unsupported predictor: ' + predictor);
  34023. }
  34024. this.bufferLength += rowBytes;
  34025. };
  34026. return PredictorStream;
  34027. })();
  34028. /**
  34029. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  34030. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  34031. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  34032. * a library to decode these images and the stream behaves like all the other
  34033. * DecodeStreams.
  34034. */
  34035. var JpegStream = (function JpegStreamClosure() {
  34036. function JpegStream(stream, maybeLength, dict, xref) {
  34037. // TODO: per poppler, some images may have 'junk' before that
  34038. // need to be removed
  34039. this.stream = stream;
  34040. this.maybeLength = maybeLength;
  34041. this.dict = dict;
  34042. DecodeStream.call(this, maybeLength);
  34043. }
  34044. JpegStream.prototype = Object.create(DecodeStream.prototype);
  34045. Object.defineProperty(JpegStream.prototype, 'bytes', {
  34046. get: function JpegStream_bytes() {
  34047. // If this.maybeLength is null, we'll get the entire stream.
  34048. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34049. },
  34050. configurable: true
  34051. });
  34052. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  34053. if (this.bufferLength) {
  34054. return;
  34055. }
  34056. try {
  34057. var jpegImage = new JpegImage();
  34058. if (this.colorTransform != -1) {
  34059. jpegImage.colorTransform = this.colorTransform;
  34060. }
  34061. jpegImage.parse(this.bytes);
  34062. var data = jpegImage.getData(this.drawWidth, this.drawHeight,
  34063. /* forceRGBoutput = */true);
  34064. this.buffer = data;
  34065. this.bufferLength = data.length;
  34066. this.eof = true;
  34067. } catch (e) {
  34068. error('JPEG error: ' + e);
  34069. }
  34070. };
  34071. JpegStream.prototype.getBytes = function JpegStream_getBytes(length) {
  34072. this.ensureBuffer();
  34073. return this.buffer;
  34074. };
  34075. JpegStream.prototype.getIR = function JpegStream_getIR() {
  34076. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  34077. };
  34078. /**
  34079. * Checks if the image can be decoded and displayed by the browser without any
  34080. * further processing such as color space conversions.
  34081. */
  34082. JpegStream.prototype.isNativelySupported =
  34083. function JpegStream_isNativelySupported(xref, res) {
  34084. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34085. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  34086. };
  34087. /**
  34088. * Checks if the image can be decoded by the browser.
  34089. */
  34090. JpegStream.prototype.isNativelyDecodable =
  34091. function JpegStream_isNativelyDecodable(xref, res) {
  34092. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  34093. var numComps = cs.numComps;
  34094. return numComps == 1 || numComps == 3;
  34095. };
  34096. return JpegStream;
  34097. })();
  34098. /**
  34099. * For JPEG 2000's we use a library to decode these images and
  34100. * the stream behaves like all the other DecodeStreams.
  34101. */
  34102. var JpxStream = (function JpxStreamClosure() {
  34103. function JpxStream(stream, maybeLength, dict) {
  34104. this.stream = stream;
  34105. this.maybeLength = maybeLength;
  34106. this.dict = dict;
  34107. DecodeStream.call(this, maybeLength);
  34108. }
  34109. JpxStream.prototype = Object.create(DecodeStream.prototype);
  34110. Object.defineProperty(JpxStream.prototype, 'bytes', {
  34111. get: function JpxStream_bytes() {
  34112. // If this.maybeLength is null, we'll get the entire stream.
  34113. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34114. },
  34115. configurable: true
  34116. });
  34117. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  34118. if (this.bufferLength) {
  34119. return;
  34120. }
  34121. var jpxImage = new JpxImage();
  34122. jpxImage.parse(this.bytes);
  34123. var width = jpxImage.width;
  34124. var height = jpxImage.height;
  34125. var componentsCount = jpxImage.componentsCount;
  34126. var tileCount = jpxImage.tiles.length;
  34127. if (tileCount === 1) {
  34128. this.buffer = jpxImage.tiles[0].items;
  34129. } else {
  34130. var data = new Uint8Array(width * height * componentsCount);
  34131. for (var k = 0; k < tileCount; k++) {
  34132. var tileComponents = jpxImage.tiles[k];
  34133. var tileWidth = tileComponents.width;
  34134. var tileHeight = tileComponents.height;
  34135. var tileLeft = tileComponents.left;
  34136. var tileTop = tileComponents.top;
  34137. var src = tileComponents.items;
  34138. var srcPosition = 0;
  34139. var dataPosition = (width * tileTop + tileLeft) * componentsCount;
  34140. var imgRowSize = width * componentsCount;
  34141. var tileRowSize = tileWidth * componentsCount;
  34142. for (var j = 0; j < tileHeight; j++) {
  34143. var rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize);
  34144. data.set(rowBytes, dataPosition);
  34145. srcPosition += tileRowSize;
  34146. dataPosition += imgRowSize;
  34147. }
  34148. }
  34149. this.buffer = data;
  34150. }
  34151. this.bufferLength = this.buffer.length;
  34152. this.eof = true;
  34153. };
  34154. return JpxStream;
  34155. })();
  34156. /**
  34157. * For JBIG2's we use a library to decode these images and
  34158. * the stream behaves like all the other DecodeStreams.
  34159. */
  34160. var Jbig2Stream = (function Jbig2StreamClosure() {
  34161. function Jbig2Stream(stream, maybeLength, dict) {
  34162. this.stream = stream;
  34163. this.maybeLength = maybeLength;
  34164. this.dict = dict;
  34165. DecodeStream.call(this, maybeLength);
  34166. }
  34167. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  34168. Object.defineProperty(Jbig2Stream.prototype, 'bytes', {
  34169. get: function Jbig2Stream_bytes() {
  34170. // If this.maybeLength is null, we'll get the entire stream.
  34171. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  34172. },
  34173. configurable: true
  34174. });
  34175. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  34176. if (this.bufferLength) {
  34177. return;
  34178. }
  34179. var jbig2Image = new Jbig2Image();
  34180. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  34181. // According to the PDF specification, DecodeParms can be either
  34182. // a dictionary, or an array whose elements are dictionaries.
  34183. if (isArray(decodeParams)) {
  34184. if (decodeParams.length > 1) {
  34185. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  34186. 'not supported.');
  34187. }
  34188. decodeParams = decodeParams[0];
  34189. }
  34190. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  34191. var globalsStream = decodeParams.get('JBIG2Globals');
  34192. var globals = globalsStream.getBytes();
  34193. chunks.push({data: globals, start: 0, end: globals.length});
  34194. }
  34195. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  34196. var data = jbig2Image.parseChunks(chunks);
  34197. var dataLength = data.length;
  34198. // JBIG2 had black as 1 and white as 0, inverting the colors
  34199. for (var i = 0; i < dataLength; i++) {
  34200. data[i] ^= 0xFF;
  34201. }
  34202. this.buffer = data;
  34203. this.bufferLength = dataLength;
  34204. this.eof = true;
  34205. };
  34206. return Jbig2Stream;
  34207. })();
  34208. var DecryptStream = (function DecryptStreamClosure() {
  34209. function DecryptStream(str, maybeLength, decrypt) {
  34210. this.str = str;
  34211. this.dict = str.dict;
  34212. this.decrypt = decrypt;
  34213. this.nextChunk = null;
  34214. this.initialized = false;
  34215. DecodeStream.call(this, maybeLength);
  34216. }
  34217. var chunkSize = 512;
  34218. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  34219. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  34220. var chunk;
  34221. if (this.initialized) {
  34222. chunk = this.nextChunk;
  34223. } else {
  34224. chunk = this.str.getBytes(chunkSize);
  34225. this.initialized = true;
  34226. }
  34227. if (!chunk || chunk.length === 0) {
  34228. this.eof = true;
  34229. return;
  34230. }
  34231. this.nextChunk = this.str.getBytes(chunkSize);
  34232. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  34233. var decrypt = this.decrypt;
  34234. chunk = decrypt(chunk, !hasMoreData);
  34235. var bufferLength = this.bufferLength;
  34236. var i, n = chunk.length;
  34237. var buffer = this.ensureBuffer(bufferLength + n);
  34238. for (i = 0; i < n; i++) {
  34239. buffer[bufferLength++] = chunk[i];
  34240. }
  34241. this.bufferLength = bufferLength;
  34242. };
  34243. return DecryptStream;
  34244. })();
  34245. var Ascii85Stream = (function Ascii85StreamClosure() {
  34246. function Ascii85Stream(str, maybeLength) {
  34247. this.str = str;
  34248. this.dict = str.dict;
  34249. this.input = new Uint8Array(5);
  34250. // Most streams increase in size when decoded, but Ascii85 streams
  34251. // typically shrink by ~20%.
  34252. if (maybeLength) {
  34253. maybeLength = 0.8 * maybeLength;
  34254. }
  34255. DecodeStream.call(this, maybeLength);
  34256. }
  34257. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  34258. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  34259. var TILDA_CHAR = 0x7E; // '~'
  34260. var Z_LOWER_CHAR = 0x7A; // 'z'
  34261. var EOF = -1;
  34262. var str = this.str;
  34263. var c = str.getByte();
  34264. while (Lexer.isSpace(c)) {
  34265. c = str.getByte();
  34266. }
  34267. if (c === EOF || c === TILDA_CHAR) {
  34268. this.eof = true;
  34269. return;
  34270. }
  34271. var bufferLength = this.bufferLength, buffer;
  34272. var i;
  34273. // special code for z
  34274. if (c == Z_LOWER_CHAR) {
  34275. buffer = this.ensureBuffer(bufferLength + 4);
  34276. for (i = 0; i < 4; ++i) {
  34277. buffer[bufferLength + i] = 0;
  34278. }
  34279. this.bufferLength += 4;
  34280. } else {
  34281. var input = this.input;
  34282. input[0] = c;
  34283. for (i = 1; i < 5; ++i) {
  34284. c = str.getByte();
  34285. while (Lexer.isSpace(c)) {
  34286. c = str.getByte();
  34287. }
  34288. input[i] = c;
  34289. if (c === EOF || c == TILDA_CHAR) {
  34290. break;
  34291. }
  34292. }
  34293. buffer = this.ensureBuffer(bufferLength + i - 1);
  34294. this.bufferLength += i - 1;
  34295. // partial ending;
  34296. if (i < 5) {
  34297. for (; i < 5; ++i) {
  34298. input[i] = 0x21 + 84;
  34299. }
  34300. this.eof = true;
  34301. }
  34302. var t = 0;
  34303. for (i = 0; i < 5; ++i) {
  34304. t = t * 85 + (input[i] - 0x21);
  34305. }
  34306. for (i = 3; i >= 0; --i) {
  34307. buffer[bufferLength + i] = t & 0xFF;
  34308. t >>= 8;
  34309. }
  34310. }
  34311. };
  34312. return Ascii85Stream;
  34313. })();
  34314. var AsciiHexStream = (function AsciiHexStreamClosure() {
  34315. function AsciiHexStream(str, maybeLength) {
  34316. this.str = str;
  34317. this.dict = str.dict;
  34318. this.firstDigit = -1;
  34319. // Most streams increase in size when decoded, but AsciiHex streams shrink
  34320. // by 50%.
  34321. if (maybeLength) {
  34322. maybeLength = 0.5 * maybeLength;
  34323. }
  34324. DecodeStream.call(this, maybeLength);
  34325. }
  34326. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  34327. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  34328. var UPSTREAM_BLOCK_SIZE = 8000;
  34329. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  34330. if (!bytes.length) {
  34331. this.eof = true;
  34332. return;
  34333. }
  34334. var maxDecodeLength = (bytes.length + 1) >> 1;
  34335. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  34336. var bufferLength = this.bufferLength;
  34337. var firstDigit = this.firstDigit;
  34338. for (var i = 0, ii = bytes.length; i < ii; i++) {
  34339. var ch = bytes[i], digit;
  34340. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  34341. digit = ch & 0x0F;
  34342. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  34343. // 'A'-'Z', 'a'-'z'
  34344. digit = (ch & 0x0F) + 9;
  34345. } else if (ch === 0x3E) { // '>'
  34346. this.eof = true;
  34347. break;
  34348. } else { // probably whitespace
  34349. continue; // ignoring
  34350. }
  34351. if (firstDigit < 0) {
  34352. firstDigit = digit;
  34353. } else {
  34354. buffer[bufferLength++] = (firstDigit << 4) | digit;
  34355. firstDigit = -1;
  34356. }
  34357. }
  34358. if (firstDigit >= 0 && this.eof) {
  34359. // incomplete byte
  34360. buffer[bufferLength++] = (firstDigit << 4);
  34361. firstDigit = -1;
  34362. }
  34363. this.firstDigit = firstDigit;
  34364. this.bufferLength = bufferLength;
  34365. };
  34366. return AsciiHexStream;
  34367. })();
  34368. var RunLengthStream = (function RunLengthStreamClosure() {
  34369. function RunLengthStream(str, maybeLength) {
  34370. this.str = str;
  34371. this.dict = str.dict;
  34372. DecodeStream.call(this, maybeLength);
  34373. }
  34374. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  34375. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  34376. // The repeatHeader has following format. The first byte defines type of run
  34377. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  34378. // (in addition to the second byte from the header), n = 129 through 255 -
  34379. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  34380. var repeatHeader = this.str.getBytes(2);
  34381. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  34382. this.eof = true;
  34383. return;
  34384. }
  34385. var buffer;
  34386. var bufferLength = this.bufferLength;
  34387. var n = repeatHeader[0];
  34388. if (n < 128) {
  34389. // copy n bytes
  34390. buffer = this.ensureBuffer(bufferLength + n + 1);
  34391. buffer[bufferLength++] = repeatHeader[1];
  34392. if (n > 0) {
  34393. var source = this.str.getBytes(n);
  34394. buffer.set(source, bufferLength);
  34395. bufferLength += n;
  34396. }
  34397. } else {
  34398. n = 257 - n;
  34399. var b = repeatHeader[1];
  34400. buffer = this.ensureBuffer(bufferLength + n + 1);
  34401. for (var i = 0; i < n; i++) {
  34402. buffer[bufferLength++] = b;
  34403. }
  34404. }
  34405. this.bufferLength = bufferLength;
  34406. };
  34407. return RunLengthStream;
  34408. })();
  34409. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  34410. var ccittEOL = -2;
  34411. var twoDimPass = 0;
  34412. var twoDimHoriz = 1;
  34413. var twoDimVert0 = 2;
  34414. var twoDimVertR1 = 3;
  34415. var twoDimVertL1 = 4;
  34416. var twoDimVertR2 = 5;
  34417. var twoDimVertL2 = 6;
  34418. var twoDimVertR3 = 7;
  34419. var twoDimVertL3 = 8;
  34420. var twoDimTable = [
  34421. [-1, -1], [-1, -1], // 000000x
  34422. [7, twoDimVertL3], // 0000010
  34423. [7, twoDimVertR3], // 0000011
  34424. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  34425. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  34426. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  34427. [4, twoDimPass], [4, twoDimPass],
  34428. [4, twoDimPass], [4, twoDimPass],
  34429. [4, twoDimPass], [4, twoDimPass],
  34430. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  34431. [3, twoDimHoriz], [3, twoDimHoriz],
  34432. [3, twoDimHoriz], [3, twoDimHoriz],
  34433. [3, twoDimHoriz], [3, twoDimHoriz],
  34434. [3, twoDimHoriz], [3, twoDimHoriz],
  34435. [3, twoDimHoriz], [3, twoDimHoriz],
  34436. [3, twoDimHoriz], [3, twoDimHoriz],
  34437. [3, twoDimHoriz], [3, twoDimHoriz],
  34438. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  34439. [3, twoDimVertL1], [3, twoDimVertL1],
  34440. [3, twoDimVertL1], [3, twoDimVertL1],
  34441. [3, twoDimVertL1], [3, twoDimVertL1],
  34442. [3, twoDimVertL1], [3, twoDimVertL1],
  34443. [3, twoDimVertL1], [3, twoDimVertL1],
  34444. [3, twoDimVertL1], [3, twoDimVertL1],
  34445. [3, twoDimVertL1], [3, twoDimVertL1],
  34446. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  34447. [3, twoDimVertR1], [3, twoDimVertR1],
  34448. [3, twoDimVertR1], [3, twoDimVertR1],
  34449. [3, twoDimVertR1], [3, twoDimVertR1],
  34450. [3, twoDimVertR1], [3, twoDimVertR1],
  34451. [3, twoDimVertR1], [3, twoDimVertR1],
  34452. [3, twoDimVertR1], [3, twoDimVertR1],
  34453. [3, twoDimVertR1], [3, twoDimVertR1],
  34454. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  34455. [1, twoDimVert0], [1, twoDimVert0],
  34456. [1, twoDimVert0], [1, twoDimVert0],
  34457. [1, twoDimVert0], [1, twoDimVert0],
  34458. [1, twoDimVert0], [1, twoDimVert0],
  34459. [1, twoDimVert0], [1, twoDimVert0],
  34460. [1, twoDimVert0], [1, twoDimVert0],
  34461. [1, twoDimVert0], [1, twoDimVert0],
  34462. [1, twoDimVert0], [1, twoDimVert0],
  34463. [1, twoDimVert0], [1, twoDimVert0],
  34464. [1, twoDimVert0], [1, twoDimVert0],
  34465. [1, twoDimVert0], [1, twoDimVert0],
  34466. [1, twoDimVert0], [1, twoDimVert0],
  34467. [1, twoDimVert0], [1, twoDimVert0],
  34468. [1, twoDimVert0], [1, twoDimVert0],
  34469. [1, twoDimVert0], [1, twoDimVert0],
  34470. [1, twoDimVert0], [1, twoDimVert0],
  34471. [1, twoDimVert0], [1, twoDimVert0],
  34472. [1, twoDimVert0], [1, twoDimVert0],
  34473. [1, twoDimVert0], [1, twoDimVert0],
  34474. [1, twoDimVert0], [1, twoDimVert0],
  34475. [1, twoDimVert0], [1, twoDimVert0],
  34476. [1, twoDimVert0], [1, twoDimVert0],
  34477. [1, twoDimVert0], [1, twoDimVert0],
  34478. [1, twoDimVert0], [1, twoDimVert0],
  34479. [1, twoDimVert0], [1, twoDimVert0],
  34480. [1, twoDimVert0], [1, twoDimVert0],
  34481. [1, twoDimVert0], [1, twoDimVert0],
  34482. [1, twoDimVert0], [1, twoDimVert0],
  34483. [1, twoDimVert0], [1, twoDimVert0],
  34484. [1, twoDimVert0], [1, twoDimVert0],
  34485. [1, twoDimVert0], [1, twoDimVert0]
  34486. ];
  34487. var whiteTable1 = [
  34488. [-1, -1], // 00000
  34489. [12, ccittEOL], // 00001
  34490. [-1, -1], [-1, -1], // 0001x
  34491. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  34492. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  34493. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  34494. [11, 1792], [11, 1792], // 1000x
  34495. [12, 1984], // 10010
  34496. [12, 2048], // 10011
  34497. [12, 2112], // 10100
  34498. [12, 2176], // 10101
  34499. [12, 2240], // 10110
  34500. [12, 2304], // 10111
  34501. [11, 1856], [11, 1856], // 1100x
  34502. [11, 1920], [11, 1920], // 1101x
  34503. [12, 2368], // 11100
  34504. [12, 2432], // 11101
  34505. [12, 2496], // 11110
  34506. [12, 2560] // 11111
  34507. ];
  34508. var whiteTable2 = [
  34509. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  34510. [8, 29], [8, 29], // 00000010x
  34511. [8, 30], [8, 30], // 00000011x
  34512. [8, 45], [8, 45], // 00000100x
  34513. [8, 46], [8, 46], // 00000101x
  34514. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  34515. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  34516. [8, 47], [8, 47], // 00001010x
  34517. [8, 48], [8, 48], // 00001011x
  34518. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  34519. [6, 13], [6, 13], [6, 13], [6, 13],
  34520. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  34521. [8, 33], [8, 33], // 00010010x
  34522. [8, 34], [8, 34], // 00010011x
  34523. [8, 35], [8, 35], // 00010100x
  34524. [8, 36], [8, 36], // 00010101x
  34525. [8, 37], [8, 37], // 00010110x
  34526. [8, 38], [8, 38], // 00010111x
  34527. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  34528. [8, 31], [8, 31], // 00011010x
  34529. [8, 32], [8, 32], // 00011011x
  34530. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  34531. [6, 1], [6, 1], [6, 1], [6, 1],
  34532. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  34533. [6, 12], [6, 12], [6, 12], [6, 12],
  34534. [8, 53], [8, 53], // 00100100x
  34535. [8, 54], [8, 54], // 00100101x
  34536. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  34537. [8, 39], [8, 39], // 00101000x
  34538. [8, 40], [8, 40], // 00101001x
  34539. [8, 41], [8, 41], // 00101010x
  34540. [8, 42], [8, 42], // 00101011x
  34541. [8, 43], [8, 43], // 00101100x
  34542. [8, 44], [8, 44], // 00101101x
  34543. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  34544. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  34545. [8, 61], [8, 61], // 00110010x
  34546. [8, 62], [8, 62], // 00110011x
  34547. [8, 63], [8, 63], // 00110100x
  34548. [8, 0], [8, 0], // 00110101x
  34549. [8, 320], [8, 320], // 00110110x
  34550. [8, 384], [8, 384], // 00110111x
  34551. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  34552. [5, 10], [5, 10], [5, 10], [5, 10],
  34553. [5, 10], [5, 10], [5, 10], [5, 10],
  34554. [5, 10], [5, 10], [5, 10], [5, 10],
  34555. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  34556. [5, 11], [5, 11], [5, 11], [5, 11],
  34557. [5, 11], [5, 11], [5, 11], [5, 11],
  34558. [5, 11], [5, 11], [5, 11], [5, 11],
  34559. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  34560. [8, 59], [8, 59], // 01001010x
  34561. [8, 60], [8, 60], // 01001011x
  34562. [9, 1472], // 010011000
  34563. [9, 1536], // 010011001
  34564. [9, 1600], // 010011010
  34565. [9, 1728], // 010011011
  34566. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  34567. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  34568. [8, 49], [8, 49], // 01010010x
  34569. [8, 50], [8, 50], // 01010011x
  34570. [8, 51], [8, 51], // 01010100x
  34571. [8, 52], [8, 52], // 01010101x
  34572. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  34573. [8, 55], [8, 55], // 01011000x
  34574. [8, 56], [8, 56], // 01011001x
  34575. [8, 57], [8, 57], // 01011010x
  34576. [8, 58], [8, 58], // 01011011x
  34577. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  34578. [6, 192], [6, 192], [6, 192], [6, 192],
  34579. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  34580. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  34581. [8, 448], [8, 448], // 01100100x
  34582. [8, 512], [8, 512], // 01100101x
  34583. [9, 704], // 011001100
  34584. [9, 768], // 011001101
  34585. [8, 640], [8, 640], // 01100111x
  34586. [8, 576], [8, 576], // 01101000x
  34587. [9, 832], // 011010010
  34588. [9, 896], // 011010011
  34589. [9, 960], // 011010100
  34590. [9, 1024], // 011010101
  34591. [9, 1088], // 011010110
  34592. [9, 1152], // 011010111
  34593. [9, 1216], // 011011000
  34594. [9, 1280], // 011011001
  34595. [9, 1344], // 011011010
  34596. [9, 1408], // 011011011
  34597. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  34598. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  34599. [4, 2], [4, 2], [4, 2], [4, 2],
  34600. [4, 2], [4, 2], [4, 2], [4, 2],
  34601. [4, 2], [4, 2], [4, 2], [4, 2],
  34602. [4, 2], [4, 2], [4, 2], [4, 2],
  34603. [4, 2], [4, 2], [4, 2], [4, 2],
  34604. [4, 2], [4, 2], [4, 2], [4, 2],
  34605. [4, 2], [4, 2], [4, 2], [4, 2],
  34606. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  34607. [4, 3], [4, 3], [4, 3], [4, 3],
  34608. [4, 3], [4, 3], [4, 3], [4, 3],
  34609. [4, 3], [4, 3], [4, 3], [4, 3],
  34610. [4, 3], [4, 3], [4, 3], [4, 3],
  34611. [4, 3], [4, 3], [4, 3], [4, 3],
  34612. [4, 3], [4, 3], [4, 3], [4, 3],
  34613. [4, 3], [4, 3], [4, 3], [4, 3],
  34614. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  34615. [5, 128], [5, 128], [5, 128], [5, 128],
  34616. [5, 128], [5, 128], [5, 128], [5, 128],
  34617. [5, 128], [5, 128], [5, 128], [5, 128],
  34618. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  34619. [5, 8], [5, 8], [5, 8], [5, 8],
  34620. [5, 8], [5, 8], [5, 8], [5, 8],
  34621. [5, 8], [5, 8], [5, 8], [5, 8],
  34622. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  34623. [5, 9], [5, 9], [5, 9], [5, 9],
  34624. [5, 9], [5, 9], [5, 9], [5, 9],
  34625. [5, 9], [5, 9], [5, 9], [5, 9],
  34626. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  34627. [6, 16], [6, 16], [6, 16], [6, 16],
  34628. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  34629. [6, 17], [6, 17], [6, 17], [6, 17],
  34630. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  34631. [4, 4], [4, 4], [4, 4], [4, 4],
  34632. [4, 4], [4, 4], [4, 4], [4, 4],
  34633. [4, 4], [4, 4], [4, 4], [4, 4],
  34634. [4, 4], [4, 4], [4, 4], [4, 4],
  34635. [4, 4], [4, 4], [4, 4], [4, 4],
  34636. [4, 4], [4, 4], [4, 4], [4, 4],
  34637. [4, 4], [4, 4], [4, 4], [4, 4],
  34638. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  34639. [4, 5], [4, 5], [4, 5], [4, 5],
  34640. [4, 5], [4, 5], [4, 5], [4, 5],
  34641. [4, 5], [4, 5], [4, 5], [4, 5],
  34642. [4, 5], [4, 5], [4, 5], [4, 5],
  34643. [4, 5], [4, 5], [4, 5], [4, 5],
  34644. [4, 5], [4, 5], [4, 5], [4, 5],
  34645. [4, 5], [4, 5], [4, 5], [4, 5],
  34646. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  34647. [6, 14], [6, 14], [6, 14], [6, 14],
  34648. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  34649. [6, 15], [6, 15], [6, 15], [6, 15],
  34650. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  34651. [5, 64], [5, 64], [5, 64], [5, 64],
  34652. [5, 64], [5, 64], [5, 64], [5, 64],
  34653. [5, 64], [5, 64], [5, 64], [5, 64],
  34654. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  34655. [4, 6], [4, 6], [4, 6], [4, 6],
  34656. [4, 6], [4, 6], [4, 6], [4, 6],
  34657. [4, 6], [4, 6], [4, 6], [4, 6],
  34658. [4, 6], [4, 6], [4, 6], [4, 6],
  34659. [4, 6], [4, 6], [4, 6], [4, 6],
  34660. [4, 6], [4, 6], [4, 6], [4, 6],
  34661. [4, 6], [4, 6], [4, 6], [4, 6],
  34662. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  34663. [4, 7], [4, 7], [4, 7], [4, 7],
  34664. [4, 7], [4, 7], [4, 7], [4, 7],
  34665. [4, 7], [4, 7], [4, 7], [4, 7],
  34666. [4, 7], [4, 7], [4, 7], [4, 7],
  34667. [4, 7], [4, 7], [4, 7], [4, 7],
  34668. [4, 7], [4, 7], [4, 7], [4, 7],
  34669. [4, 7], [4, 7], [4, 7], [4, 7]
  34670. ];
  34671. var blackTable1 = [
  34672. [-1, -1], [-1, -1], // 000000000000x
  34673. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  34674. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  34675. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  34676. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  34677. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  34678. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  34679. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  34680. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  34681. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  34682. [12, 1984], [12, 1984], // 000000010010x
  34683. [12, 2048], [12, 2048], // 000000010011x
  34684. [12, 2112], [12, 2112], // 000000010100x
  34685. [12, 2176], [12, 2176], // 000000010101x
  34686. [12, 2240], [12, 2240], // 000000010110x
  34687. [12, 2304], [12, 2304], // 000000010111x
  34688. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  34689. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  34690. [12, 2368], [12, 2368], // 000000011100x
  34691. [12, 2432], [12, 2432], // 000000011101x
  34692. [12, 2496], [12, 2496], // 000000011110x
  34693. [12, 2560], [12, 2560], // 000000011111x
  34694. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  34695. [10, 18], [10, 18], [10, 18], [10, 18],
  34696. [12, 52], [12, 52], // 000000100100x
  34697. [13, 640], // 0000001001010
  34698. [13, 704], // 0000001001011
  34699. [13, 768], // 0000001001100
  34700. [13, 832], // 0000001001101
  34701. [12, 55], [12, 55], // 000000100111x
  34702. [12, 56], [12, 56], // 000000101000x
  34703. [13, 1280], // 0000001010010
  34704. [13, 1344], // 0000001010011
  34705. [13, 1408], // 0000001010100
  34706. [13, 1472], // 0000001010101
  34707. [12, 59], [12, 59], // 000000101011x
  34708. [12, 60], [12, 60], // 000000101100x
  34709. [13, 1536], // 0000001011010
  34710. [13, 1600], // 0000001011011
  34711. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  34712. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  34713. [13, 1664], // 0000001100100
  34714. [13, 1728], // 0000001100101
  34715. [12, 320], [12, 320], // 000000110011x
  34716. [12, 384], [12, 384], // 000000110100x
  34717. [12, 448], [12, 448], // 000000110101x
  34718. [13, 512], // 0000001101100
  34719. [13, 576], // 0000001101101
  34720. [12, 53], [12, 53], // 000000110111x
  34721. [12, 54], [12, 54], // 000000111000x
  34722. [13, 896], // 0000001110010
  34723. [13, 960], // 0000001110011
  34724. [13, 1024], // 0000001110100
  34725. [13, 1088], // 0000001110101
  34726. [13, 1152], // 0000001110110
  34727. [13, 1216], // 0000001110111
  34728. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  34729. [10, 64], [10, 64], [10, 64], [10, 64]
  34730. ];
  34731. var blackTable2 = [
  34732. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  34733. [8, 13], [8, 13], [8, 13], [8, 13],
  34734. [8, 13], [8, 13], [8, 13], [8, 13],
  34735. [8, 13], [8, 13], [8, 13], [8, 13],
  34736. [11, 23], [11, 23], // 00000101000x
  34737. [12, 50], // 000001010010
  34738. [12, 51], // 000001010011
  34739. [12, 44], // 000001010100
  34740. [12, 45], // 000001010101
  34741. [12, 46], // 000001010110
  34742. [12, 47], // 000001010111
  34743. [12, 57], // 000001011000
  34744. [12, 58], // 000001011001
  34745. [12, 61], // 000001011010
  34746. [12, 256], // 000001011011
  34747. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  34748. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  34749. [12, 48], // 000001100100
  34750. [12, 49], // 000001100101
  34751. [12, 62], // 000001100110
  34752. [12, 63], // 000001100111
  34753. [12, 30], // 000001101000
  34754. [12, 31], // 000001101001
  34755. [12, 32], // 000001101010
  34756. [12, 33], // 000001101011
  34757. [12, 40], // 000001101100
  34758. [12, 41], // 000001101101
  34759. [11, 22], [11, 22], // 00000110111x
  34760. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  34761. [8, 14], [8, 14], [8, 14], [8, 14],
  34762. [8, 14], [8, 14], [8, 14], [8, 14],
  34763. [8, 14], [8, 14], [8, 14], [8, 14],
  34764. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  34765. [7, 10], [7, 10], [7, 10], [7, 10],
  34766. [7, 10], [7, 10], [7, 10], [7, 10],
  34767. [7, 10], [7, 10], [7, 10], [7, 10],
  34768. [7, 10], [7, 10], [7, 10], [7, 10],
  34769. [7, 10], [7, 10], [7, 10], [7, 10],
  34770. [7, 10], [7, 10], [7, 10], [7, 10],
  34771. [7, 10], [7, 10], [7, 10], [7, 10],
  34772. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  34773. [7, 11], [7, 11], [7, 11], [7, 11],
  34774. [7, 11], [7, 11], [7, 11], [7, 11],
  34775. [7, 11], [7, 11], [7, 11], [7, 11],
  34776. [7, 11], [7, 11], [7, 11], [7, 11],
  34777. [7, 11], [7, 11], [7, 11], [7, 11],
  34778. [7, 11], [7, 11], [7, 11], [7, 11],
  34779. [7, 11], [7, 11], [7, 11], [7, 11],
  34780. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  34781. [9, 15], [9, 15], [9, 15], [9, 15],
  34782. [12, 128], // 000011001000
  34783. [12, 192], // 000011001001
  34784. [12, 26], // 000011001010
  34785. [12, 27], // 000011001011
  34786. [12, 28], // 000011001100
  34787. [12, 29], // 000011001101
  34788. [11, 19], [11, 19], // 00001100111x
  34789. [11, 20], [11, 20], // 00001101000x
  34790. [12, 34], // 000011010010
  34791. [12, 35], // 000011010011
  34792. [12, 36], // 000011010100
  34793. [12, 37], // 000011010101
  34794. [12, 38], // 000011010110
  34795. [12, 39], // 000011010111
  34796. [11, 21], [11, 21], // 00001101100x
  34797. [12, 42], // 000011011010
  34798. [12, 43], // 000011011011
  34799. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  34800. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  34801. [7, 12], [7, 12], [7, 12], [7, 12],
  34802. [7, 12], [7, 12], [7, 12], [7, 12],
  34803. [7, 12], [7, 12], [7, 12], [7, 12],
  34804. [7, 12], [7, 12], [7, 12], [7, 12],
  34805. [7, 12], [7, 12], [7, 12], [7, 12],
  34806. [7, 12], [7, 12], [7, 12], [7, 12],
  34807. [7, 12], [7, 12], [7, 12], [7, 12]
  34808. ];
  34809. var blackTable3 = [
  34810. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  34811. [6, 9], // 000100
  34812. [6, 8], // 000101
  34813. [5, 7], [5, 7], // 00011x
  34814. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  34815. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  34816. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  34817. [3, 1], [3, 1], [3, 1], [3, 1],
  34818. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  34819. [3, 4], [3, 4], [3, 4], [3, 4],
  34820. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  34821. [2, 3], [2, 3], [2, 3], [2, 3],
  34822. [2, 3], [2, 3], [2, 3], [2, 3],
  34823. [2, 3], [2, 3], [2, 3], [2, 3],
  34824. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  34825. [2, 2], [2, 2], [2, 2], [2, 2],
  34826. [2, 2], [2, 2], [2, 2], [2, 2],
  34827. [2, 2], [2, 2], [2, 2], [2, 2]
  34828. ];
  34829. function CCITTFaxStream(str, maybeLength, params) {
  34830. this.str = str;
  34831. this.dict = str.dict;
  34832. params = params || Dict.empty;
  34833. this.encoding = params.get('K') || 0;
  34834. this.eoline = params.get('EndOfLine') || false;
  34835. this.byteAlign = params.get('EncodedByteAlign') || false;
  34836. this.columns = params.get('Columns') || 1728;
  34837. this.rows = params.get('Rows') || 0;
  34838. var eoblock = params.get('EndOfBlock');
  34839. if (eoblock === null || eoblock === undefined) {
  34840. eoblock = true;
  34841. }
  34842. this.eoblock = eoblock;
  34843. this.black = params.get('BlackIs1') || false;
  34844. this.codingLine = new Uint32Array(this.columns + 1);
  34845. this.refLine = new Uint32Array(this.columns + 2);
  34846. this.codingLine[0] = this.columns;
  34847. this.codingPos = 0;
  34848. this.row = 0;
  34849. this.nextLine2D = this.encoding < 0;
  34850. this.inputBits = 0;
  34851. this.inputBuf = 0;
  34852. this.outputBits = 0;
  34853. var code1;
  34854. while ((code1 = this.lookBits(12)) === 0) {
  34855. this.eatBits(1);
  34856. }
  34857. if (code1 == 1) {
  34858. this.eatBits(12);
  34859. }
  34860. if (this.encoding > 0) {
  34861. this.nextLine2D = !this.lookBits(1);
  34862. this.eatBits(1);
  34863. }
  34864. DecodeStream.call(this, maybeLength);
  34865. }
  34866. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  34867. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  34868. while (!this.eof) {
  34869. var c = this.lookChar();
  34870. this.ensureBuffer(this.bufferLength + 1);
  34871. this.buffer[this.bufferLength++] = c;
  34872. }
  34873. };
  34874. CCITTFaxStream.prototype.addPixels =
  34875. function ccittFaxStreamAddPixels(a1, blackPixels) {
  34876. var codingLine = this.codingLine;
  34877. var codingPos = this.codingPos;
  34878. if (a1 > codingLine[codingPos]) {
  34879. if (a1 > this.columns) {
  34880. info('row is wrong length');
  34881. this.err = true;
  34882. a1 = this.columns;
  34883. }
  34884. if ((codingPos & 1) ^ blackPixels) {
  34885. ++codingPos;
  34886. }
  34887. codingLine[codingPos] = a1;
  34888. }
  34889. this.codingPos = codingPos;
  34890. };
  34891. CCITTFaxStream.prototype.addPixelsNeg =
  34892. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  34893. var codingLine = this.codingLine;
  34894. var codingPos = this.codingPos;
  34895. if (a1 > codingLine[codingPos]) {
  34896. if (a1 > this.columns) {
  34897. info('row is wrong length');
  34898. this.err = true;
  34899. a1 = this.columns;
  34900. }
  34901. if ((codingPos & 1) ^ blackPixels) {
  34902. ++codingPos;
  34903. }
  34904. codingLine[codingPos] = a1;
  34905. } else if (a1 < codingLine[codingPos]) {
  34906. if (a1 < 0) {
  34907. info('invalid code');
  34908. this.err = true;
  34909. a1 = 0;
  34910. }
  34911. while (codingPos > 0 && a1 < codingLine[codingPos - 1]) {
  34912. --codingPos;
  34913. }
  34914. codingLine[codingPos] = a1;
  34915. }
  34916. this.codingPos = codingPos;
  34917. };
  34918. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  34919. var refLine = this.refLine;
  34920. var codingLine = this.codingLine;
  34921. var columns = this.columns;
  34922. var refPos, blackPixels, bits, i;
  34923. if (this.outputBits === 0) {
  34924. if (this.eof) {
  34925. return null;
  34926. }
  34927. this.err = false;
  34928. var code1, code2, code3;
  34929. if (this.nextLine2D) {
  34930. for (i = 0; codingLine[i] < columns; ++i) {
  34931. refLine[i] = codingLine[i];
  34932. }
  34933. refLine[i++] = columns;
  34934. refLine[i] = columns;
  34935. codingLine[0] = 0;
  34936. this.codingPos = 0;
  34937. refPos = 0;
  34938. blackPixels = 0;
  34939. while (codingLine[this.codingPos] < columns) {
  34940. code1 = this.getTwoDimCode();
  34941. switch (code1) {
  34942. case twoDimPass:
  34943. this.addPixels(refLine[refPos + 1], blackPixels);
  34944. if (refLine[refPos + 1] < columns) {
  34945. refPos += 2;
  34946. }
  34947. break;
  34948. case twoDimHoriz:
  34949. code1 = code2 = 0;
  34950. if (blackPixels) {
  34951. do {
  34952. code1 += (code3 = this.getBlackCode());
  34953. } while (code3 >= 64);
  34954. do {
  34955. code2 += (code3 = this.getWhiteCode());
  34956. } while (code3 >= 64);
  34957. } else {
  34958. do {
  34959. code1 += (code3 = this.getWhiteCode());
  34960. } while (code3 >= 64);
  34961. do {
  34962. code2 += (code3 = this.getBlackCode());
  34963. } while (code3 >= 64);
  34964. }
  34965. this.addPixels(codingLine[this.codingPos] +
  34966. code1, blackPixels);
  34967. if (codingLine[this.codingPos] < columns) {
  34968. this.addPixels(codingLine[this.codingPos] + code2,
  34969. blackPixels ^ 1);
  34970. }
  34971. while (refLine[refPos] <= codingLine[this.codingPos] &&
  34972. refLine[refPos] < columns) {
  34973. refPos += 2;
  34974. }
  34975. break;
  34976. case twoDimVertR3:
  34977. this.addPixels(refLine[refPos] + 3, blackPixels);
  34978. blackPixels ^= 1;
  34979. if (codingLine[this.codingPos] < columns) {
  34980. ++refPos;
  34981. while (refLine[refPos] <= codingLine[this.codingPos] &&
  34982. refLine[refPos] < columns) {
  34983. refPos += 2;
  34984. }
  34985. }
  34986. break;
  34987. case twoDimVertR2:
  34988. this.addPixels(refLine[refPos] + 2, blackPixels);
  34989. blackPixels ^= 1;
  34990. if (codingLine[this.codingPos] < columns) {
  34991. ++refPos;
  34992. while (refLine[refPos] <= codingLine[this.codingPos] &&
  34993. refLine[refPos] < columns) {
  34994. refPos += 2;
  34995. }
  34996. }
  34997. break;
  34998. case twoDimVertR1:
  34999. this.addPixels(refLine[refPos] + 1, blackPixels);
  35000. blackPixels ^= 1;
  35001. if (codingLine[this.codingPos] < columns) {
  35002. ++refPos;
  35003. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35004. refLine[refPos] < columns) {
  35005. refPos += 2;
  35006. }
  35007. }
  35008. break;
  35009. case twoDimVert0:
  35010. this.addPixels(refLine[refPos], blackPixels);
  35011. blackPixels ^= 1;
  35012. if (codingLine[this.codingPos] < columns) {
  35013. ++refPos;
  35014. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35015. refLine[refPos] < columns) {
  35016. refPos += 2;
  35017. }
  35018. }
  35019. break;
  35020. case twoDimVertL3:
  35021. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  35022. blackPixels ^= 1;
  35023. if (codingLine[this.codingPos] < columns) {
  35024. if (refPos > 0) {
  35025. --refPos;
  35026. } else {
  35027. ++refPos;
  35028. }
  35029. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35030. refLine[refPos] < columns) {
  35031. refPos += 2;
  35032. }
  35033. }
  35034. break;
  35035. case twoDimVertL2:
  35036. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  35037. blackPixels ^= 1;
  35038. if (codingLine[this.codingPos] < columns) {
  35039. if (refPos > 0) {
  35040. --refPos;
  35041. } else {
  35042. ++refPos;
  35043. }
  35044. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35045. refLine[refPos] < columns) {
  35046. refPos += 2;
  35047. }
  35048. }
  35049. break;
  35050. case twoDimVertL1:
  35051. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  35052. blackPixels ^= 1;
  35053. if (codingLine[this.codingPos] < columns) {
  35054. if (refPos > 0) {
  35055. --refPos;
  35056. } else {
  35057. ++refPos;
  35058. }
  35059. while (refLine[refPos] <= codingLine[this.codingPos] &&
  35060. refLine[refPos] < columns) {
  35061. refPos += 2;
  35062. }
  35063. }
  35064. break;
  35065. case EOF:
  35066. this.addPixels(columns, 0);
  35067. this.eof = true;
  35068. break;
  35069. default:
  35070. info('bad 2d code');
  35071. this.addPixels(columns, 0);
  35072. this.err = true;
  35073. }
  35074. }
  35075. } else {
  35076. codingLine[0] = 0;
  35077. this.codingPos = 0;
  35078. blackPixels = 0;
  35079. while (codingLine[this.codingPos] < columns) {
  35080. code1 = 0;
  35081. if (blackPixels) {
  35082. do {
  35083. code1 += (code3 = this.getBlackCode());
  35084. } while (code3 >= 64);
  35085. } else {
  35086. do {
  35087. code1 += (code3 = this.getWhiteCode());
  35088. } while (code3 >= 64);
  35089. }
  35090. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  35091. blackPixels ^= 1;
  35092. }
  35093. }
  35094. if (this.byteAlign) {
  35095. this.inputBits &= ~7;
  35096. }
  35097. var gotEOL = false;
  35098. if (!this.eoblock && this.row == this.rows - 1) {
  35099. this.eof = true;
  35100. } else {
  35101. code1 = this.lookBits(12);
  35102. while (code1 === 0) {
  35103. this.eatBits(1);
  35104. code1 = this.lookBits(12);
  35105. }
  35106. if (code1 == 1) {
  35107. this.eatBits(12);
  35108. gotEOL = true;
  35109. } else if (code1 == EOF) {
  35110. this.eof = true;
  35111. }
  35112. }
  35113. if (!this.eof && this.encoding > 0) {
  35114. this.nextLine2D = !this.lookBits(1);
  35115. this.eatBits(1);
  35116. }
  35117. if (this.eoblock && gotEOL) {
  35118. code1 = this.lookBits(12);
  35119. if (code1 == 1) {
  35120. this.eatBits(12);
  35121. if (this.encoding > 0) {
  35122. this.lookBits(1);
  35123. this.eatBits(1);
  35124. }
  35125. if (this.encoding >= 0) {
  35126. for (i = 0; i < 4; ++i) {
  35127. code1 = this.lookBits(12);
  35128. if (code1 != 1) {
  35129. info('bad rtc code: ' + code1);
  35130. }
  35131. this.eatBits(12);
  35132. if (this.encoding > 0) {
  35133. this.lookBits(1);
  35134. this.eatBits(1);
  35135. }
  35136. }
  35137. }
  35138. this.eof = true;
  35139. }
  35140. } else if (this.err && this.eoline) {
  35141. while (true) {
  35142. code1 = this.lookBits(13);
  35143. if (code1 == EOF) {
  35144. this.eof = true;
  35145. return null;
  35146. }
  35147. if ((code1 >> 1) == 1) {
  35148. break;
  35149. }
  35150. this.eatBits(1);
  35151. }
  35152. this.eatBits(12);
  35153. if (this.encoding > 0) {
  35154. this.eatBits(1);
  35155. this.nextLine2D = !(code1 & 1);
  35156. }
  35157. }
  35158. if (codingLine[0] > 0) {
  35159. this.outputBits = codingLine[this.codingPos = 0];
  35160. } else {
  35161. this.outputBits = codingLine[this.codingPos = 1];
  35162. }
  35163. this.row++;
  35164. }
  35165. var c;
  35166. if (this.outputBits >= 8) {
  35167. c = (this.codingPos & 1) ? 0 : 0xFF;
  35168. this.outputBits -= 8;
  35169. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  35170. this.codingPos++;
  35171. this.outputBits = (codingLine[this.codingPos] -
  35172. codingLine[this.codingPos - 1]);
  35173. }
  35174. } else {
  35175. bits = 8;
  35176. c = 0;
  35177. do {
  35178. if (this.outputBits > bits) {
  35179. c <<= bits;
  35180. if (!(this.codingPos & 1)) {
  35181. c |= 0xFF >> (8 - bits);
  35182. }
  35183. this.outputBits -= bits;
  35184. bits = 0;
  35185. } else {
  35186. c <<= this.outputBits;
  35187. if (!(this.codingPos & 1)) {
  35188. c |= 0xFF >> (8 - this.outputBits);
  35189. }
  35190. bits -= this.outputBits;
  35191. this.outputBits = 0;
  35192. if (codingLine[this.codingPos] < columns) {
  35193. this.codingPos++;
  35194. this.outputBits = (codingLine[this.codingPos] -
  35195. codingLine[this.codingPos - 1]);
  35196. } else if (bits > 0) {
  35197. c <<= bits;
  35198. bits = 0;
  35199. }
  35200. }
  35201. } while (bits);
  35202. }
  35203. if (this.black) {
  35204. c ^= 0xFF;
  35205. }
  35206. return c;
  35207. };
  35208. // This functions returns the code found from the table.
  35209. // The start and end parameters set the boundaries for searching the table.
  35210. // The limit parameter is optional. Function returns an array with three
  35211. // values. The first array element indicates whether a valid code is being
  35212. // returned. The second array element is the actual code. The third array
  35213. // element indicates whether EOF was reached.
  35214. CCITTFaxStream.prototype.findTableCode =
  35215. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  35216. var limitValue = limit || 0;
  35217. for (var i = start; i <= end; ++i) {
  35218. var code = this.lookBits(i);
  35219. if (code == EOF) {
  35220. return [true, 1, false];
  35221. }
  35222. if (i < end) {
  35223. code <<= end - i;
  35224. }
  35225. if (!limitValue || code >= limitValue) {
  35226. var p = table[code - limitValue];
  35227. if (p[0] == i) {
  35228. this.eatBits(i);
  35229. return [true, p[1], true];
  35230. }
  35231. }
  35232. }
  35233. return [false, 0, false];
  35234. };
  35235. CCITTFaxStream.prototype.getTwoDimCode =
  35236. function ccittFaxStreamGetTwoDimCode() {
  35237. var code = 0;
  35238. var p;
  35239. if (this.eoblock) {
  35240. code = this.lookBits(7);
  35241. p = twoDimTable[code];
  35242. if (p && p[0] > 0) {
  35243. this.eatBits(p[0]);
  35244. return p[1];
  35245. }
  35246. } else {
  35247. var result = this.findTableCode(1, 7, twoDimTable);
  35248. if (result[0] && result[2]) {
  35249. return result[1];
  35250. }
  35251. }
  35252. info('Bad two dim code');
  35253. return EOF;
  35254. };
  35255. CCITTFaxStream.prototype.getWhiteCode =
  35256. function ccittFaxStreamGetWhiteCode() {
  35257. var code = 0;
  35258. var p;
  35259. if (this.eoblock) {
  35260. code = this.lookBits(12);
  35261. if (code == EOF) {
  35262. return 1;
  35263. }
  35264. if ((code >> 5) === 0) {
  35265. p = whiteTable1[code];
  35266. } else {
  35267. p = whiteTable2[code >> 3];
  35268. }
  35269. if (p[0] > 0) {
  35270. this.eatBits(p[0]);
  35271. return p[1];
  35272. }
  35273. } else {
  35274. var result = this.findTableCode(1, 9, whiteTable2);
  35275. if (result[0]) {
  35276. return result[1];
  35277. }
  35278. result = this.findTableCode(11, 12, whiteTable1);
  35279. if (result[0]) {
  35280. return result[1];
  35281. }
  35282. }
  35283. info('bad white code');
  35284. this.eatBits(1);
  35285. return 1;
  35286. };
  35287. CCITTFaxStream.prototype.getBlackCode =
  35288. function ccittFaxStreamGetBlackCode() {
  35289. var code, p;
  35290. if (this.eoblock) {
  35291. code = this.lookBits(13);
  35292. if (code == EOF) {
  35293. return 1;
  35294. }
  35295. if ((code >> 7) === 0) {
  35296. p = blackTable1[code];
  35297. } else if ((code >> 9) === 0 && (code >> 7) !== 0) {
  35298. p = blackTable2[(code >> 1) - 64];
  35299. } else {
  35300. p = blackTable3[code >> 7];
  35301. }
  35302. if (p[0] > 0) {
  35303. this.eatBits(p[0]);
  35304. return p[1];
  35305. }
  35306. } else {
  35307. var result = this.findTableCode(2, 6, blackTable3);
  35308. if (result[0]) {
  35309. return result[1];
  35310. }
  35311. result = this.findTableCode(7, 12, blackTable2, 64);
  35312. if (result[0]) {
  35313. return result[1];
  35314. }
  35315. result = this.findTableCode(10, 13, blackTable1);
  35316. if (result[0]) {
  35317. return result[1];
  35318. }
  35319. }
  35320. info('bad black code');
  35321. this.eatBits(1);
  35322. return 1;
  35323. };
  35324. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  35325. var c;
  35326. while (this.inputBits < n) {
  35327. if ((c = this.str.getByte()) === -1) {
  35328. if (this.inputBits === 0) {
  35329. return EOF;
  35330. }
  35331. return ((this.inputBuf << (n - this.inputBits)) &
  35332. (0xFFFF >> (16 - n)));
  35333. }
  35334. this.inputBuf = (this.inputBuf << 8) + c;
  35335. this.inputBits += 8;
  35336. }
  35337. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  35338. };
  35339. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  35340. if ((this.inputBits -= n) < 0) {
  35341. this.inputBits = 0;
  35342. }
  35343. };
  35344. return CCITTFaxStream;
  35345. })();
  35346. var LZWStream = (function LZWStreamClosure() {
  35347. function LZWStream(str, maybeLength, earlyChange) {
  35348. this.str = str;
  35349. this.dict = str.dict;
  35350. this.cachedData = 0;
  35351. this.bitsCached = 0;
  35352. var maxLzwDictionarySize = 4096;
  35353. var lzwState = {
  35354. earlyChange: earlyChange,
  35355. codeLength: 9,
  35356. nextCode: 258,
  35357. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  35358. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  35359. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  35360. currentSequence: new Uint8Array(maxLzwDictionarySize),
  35361. currentSequenceLength: 0
  35362. };
  35363. for (var i = 0; i < 256; ++i) {
  35364. lzwState.dictionaryValues[i] = i;
  35365. lzwState.dictionaryLengths[i] = 1;
  35366. }
  35367. this.lzwState = lzwState;
  35368. DecodeStream.call(this, maybeLength);
  35369. }
  35370. LZWStream.prototype = Object.create(DecodeStream.prototype);
  35371. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  35372. var bitsCached = this.bitsCached;
  35373. var cachedData = this.cachedData;
  35374. while (bitsCached < n) {
  35375. var c = this.str.getByte();
  35376. if (c === -1) {
  35377. this.eof = true;
  35378. return null;
  35379. }
  35380. cachedData = (cachedData << 8) | c;
  35381. bitsCached += 8;
  35382. }
  35383. this.bitsCached = (bitsCached -= n);
  35384. this.cachedData = cachedData;
  35385. this.lastCode = null;
  35386. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  35387. };
  35388. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  35389. var blockSize = 512;
  35390. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  35391. var i, j, q;
  35392. var lzwState = this.lzwState;
  35393. if (!lzwState) {
  35394. return; // eof was found
  35395. }
  35396. var earlyChange = lzwState.earlyChange;
  35397. var nextCode = lzwState.nextCode;
  35398. var dictionaryValues = lzwState.dictionaryValues;
  35399. var dictionaryLengths = lzwState.dictionaryLengths;
  35400. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  35401. var codeLength = lzwState.codeLength;
  35402. var prevCode = lzwState.prevCode;
  35403. var currentSequence = lzwState.currentSequence;
  35404. var currentSequenceLength = lzwState.currentSequenceLength;
  35405. var decodedLength = 0;
  35406. var currentBufferLength = this.bufferLength;
  35407. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35408. for (i = 0; i < blockSize; i++) {
  35409. var code = this.readBits(codeLength);
  35410. var hasPrev = currentSequenceLength > 0;
  35411. if (code < 256) {
  35412. currentSequence[0] = code;
  35413. currentSequenceLength = 1;
  35414. } else if (code >= 258) {
  35415. if (code < nextCode) {
  35416. currentSequenceLength = dictionaryLengths[code];
  35417. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  35418. currentSequence[j] = dictionaryValues[q];
  35419. q = dictionaryPrevCodes[q];
  35420. }
  35421. } else {
  35422. currentSequence[currentSequenceLength++] = currentSequence[0];
  35423. }
  35424. } else if (code == 256) {
  35425. codeLength = 9;
  35426. nextCode = 258;
  35427. currentSequenceLength = 0;
  35428. continue;
  35429. } else {
  35430. this.eof = true;
  35431. delete this.lzwState;
  35432. break;
  35433. }
  35434. if (hasPrev) {
  35435. dictionaryPrevCodes[nextCode] = prevCode;
  35436. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  35437. dictionaryValues[nextCode] = currentSequence[0];
  35438. nextCode++;
  35439. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  35440. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  35441. 0.6931471805599453 + 1, 12) | 0;
  35442. }
  35443. prevCode = code;
  35444. decodedLength += currentSequenceLength;
  35445. if (estimatedDecodedSize < decodedLength) {
  35446. do {
  35447. estimatedDecodedSize += decodedSizeDelta;
  35448. } while (estimatedDecodedSize < decodedLength);
  35449. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  35450. }
  35451. for (j = 0; j < currentSequenceLength; j++) {
  35452. buffer[currentBufferLength++] = currentSequence[j];
  35453. }
  35454. }
  35455. lzwState.nextCode = nextCode;
  35456. lzwState.codeLength = codeLength;
  35457. lzwState.prevCode = prevCode;
  35458. lzwState.currentSequenceLength = currentSequenceLength;
  35459. this.bufferLength = currentBufferLength;
  35460. };
  35461. return LZWStream;
  35462. })();
  35463. var NullStream = (function NullStreamClosure() {
  35464. function NullStream() {
  35465. Stream.call(this, new Uint8Array(0));
  35466. }
  35467. NullStream.prototype = Stream.prototype;
  35468. return NullStream;
  35469. })();
  35470. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  35471. setup: function wphSetup(handler) {
  35472. var pdfManager;
  35473. function loadDocument(recoveryMode) {
  35474. var loadDocumentPromise = new LegacyPromise();
  35475. var parseSuccess = function parseSuccess() {
  35476. var numPagesPromise = pdfManager.ensureDoc('numPages');
  35477. var fingerprintPromise = pdfManager.ensureDoc('fingerprint');
  35478. var outlinePromise = pdfManager.ensureCatalog('documentOutline');
  35479. var infoPromise = pdfManager.ensureDoc('documentInfo');
  35480. var metadataPromise = pdfManager.ensureCatalog('metadata');
  35481. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  35482. var javaScriptPromise = pdfManager.ensureCatalog('javaScript');
  35483. Promise.all([numPagesPromise, fingerprintPromise, outlinePromise,
  35484. infoPromise, metadataPromise, encryptedPromise,
  35485. javaScriptPromise]).then(function onDocReady(results) {
  35486. var doc = {
  35487. numPages: results[0],
  35488. fingerprint: results[1],
  35489. outline: results[2],
  35490. info: results[3],
  35491. metadata: results[4],
  35492. encrypted: !!results[5],
  35493. javaScript: results[6]
  35494. };
  35495. loadDocumentPromise.resolve(doc);
  35496. },
  35497. parseFailure);
  35498. };
  35499. var parseFailure = function parseFailure(e) {
  35500. loadDocumentPromise.reject(e);
  35501. };
  35502. pdfManager.ensureDoc('checkHeader', []).then(function() {
  35503. pdfManager.ensureDoc('parseStartXRef', []).then(function() {
  35504. pdfManager.ensureDoc('parse', [recoveryMode]).then(
  35505. parseSuccess, parseFailure);
  35506. }, parseFailure);
  35507. }, parseFailure);
  35508. return loadDocumentPromise;
  35509. }
  35510. function getPdfManager(data) {
  35511. var pdfManagerPromise = new LegacyPromise();
  35512. var source = data.source;
  35513. var disableRange = data.disableRange;
  35514. if (source.data) {
  35515. try {
  35516. pdfManager = new LocalPdfManager(source.data, source.password);
  35517. pdfManagerPromise.resolve();
  35518. } catch (ex) {
  35519. pdfManagerPromise.reject(ex);
  35520. }
  35521. return pdfManagerPromise;
  35522. } else if (source.chunkedViewerLoading) {
  35523. try {
  35524. pdfManager = new NetworkPdfManager(source, handler);
  35525. pdfManagerPromise.resolve();
  35526. } catch (ex) {
  35527. pdfManagerPromise.reject(ex);
  35528. }
  35529. return pdfManagerPromise;
  35530. }
  35531. var networkManager = new NetworkManager(source.url, {
  35532. httpHeaders: source.httpHeaders,
  35533. withCredentials: source.withCredentials
  35534. });
  35535. var fullRequestXhrId = networkManager.requestFull({
  35536. onHeadersReceived: function onHeadersReceived() {
  35537. if (disableRange) {
  35538. return;
  35539. }
  35540. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  35541. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  35542. return;
  35543. }
  35544. var contentEncoding =
  35545. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  35546. if (contentEncoding !== 'identity') {
  35547. return;
  35548. }
  35549. var length = fullRequestXhr.getResponseHeader('Content-Length');
  35550. length = parseInt(length, 10);
  35551. if (!isInt(length)) {
  35552. return;
  35553. }
  35554. source.length = length;
  35555. if (length <= 2 * RANGE_CHUNK_SIZE) {
  35556. // The file size is smaller than the size of two chunks, so it does
  35557. // not make any sense to abort the request and retry with a range
  35558. // request.
  35559. return;
  35560. }
  35561. // NOTE: by cancelling the full request, and then issuing range
  35562. // requests, there will be an issue for sites where you can only
  35563. // request the pdf once. However, if this is the case, then the
  35564. // server should not be returning that it can support range requests.
  35565. networkManager.abortRequest(fullRequestXhrId);
  35566. try {
  35567. pdfManager = new NetworkPdfManager(source, handler);
  35568. pdfManagerPromise.resolve(pdfManager);
  35569. } catch (ex) {
  35570. pdfManagerPromise.reject(ex);
  35571. }
  35572. },
  35573. onDone: function onDone(args) {
  35574. // the data is array, instantiating directly from it
  35575. try {
  35576. pdfManager = new LocalPdfManager(args.chunk, source.password);
  35577. pdfManagerPromise.resolve();
  35578. } catch (ex) {
  35579. pdfManagerPromise.reject(ex);
  35580. }
  35581. },
  35582. onError: function onError(status) {
  35583. if (status == 404) {
  35584. var exception = new MissingPDFException('Missing PDF "' +
  35585. source.url + '".');
  35586. handler.send('MissingPDF', { exception: exception });
  35587. } else {
  35588. handler.send('DocError', 'Unexpected server response (' +
  35589. status + ') while retrieving PDF "' +
  35590. source.url + '".');
  35591. }
  35592. },
  35593. onProgress: function onProgress(evt) {
  35594. handler.send('DocProgress', {
  35595. loaded: evt.loaded,
  35596. total: evt.lengthComputable ? evt.total : source.length
  35597. });
  35598. }
  35599. });
  35600. return pdfManagerPromise;
  35601. }
  35602. handler.on('test', function wphSetupTest(data) {
  35603. // check if Uint8Array can be sent to worker
  35604. if (!(data instanceof Uint8Array)) {
  35605. handler.send('test', false);
  35606. return;
  35607. }
  35608. // making sure postMessage transfers are working
  35609. var supportTransfers = data[0] === 255;
  35610. handler.postMessageTransfers = supportTransfers;
  35611. // check if the response property is supported by xhr
  35612. var xhr = new XMLHttpRequest();
  35613. var responseExists = 'response' in xhr;
  35614. // check if the property is actually implemented
  35615. try {
  35616. var dummy = xhr.responseType;
  35617. } catch (e) {
  35618. responseExists = false;
  35619. }
  35620. if (!responseExists) {
  35621. handler.send('test', false);
  35622. return;
  35623. }
  35624. handler.send('test', {
  35625. supportTypedArray: true,
  35626. supportTransfers: supportTransfers
  35627. });
  35628. });
  35629. handler.on('GetDocRequest', function wphSetupDoc(data) {
  35630. var onSuccess = function(doc) {
  35631. handler.send('GetDoc', { pdfInfo: doc });
  35632. };
  35633. var onFailure = function(e) {
  35634. if (e instanceof PasswordException) {
  35635. if (e.code === PasswordResponses.NEED_PASSWORD) {
  35636. handler.send('NeedPassword', {
  35637. exception: e
  35638. });
  35639. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  35640. handler.send('IncorrectPassword', {
  35641. exception: e
  35642. });
  35643. }
  35644. } else if (e instanceof InvalidPDFException) {
  35645. handler.send('InvalidPDF', {
  35646. exception: e
  35647. });
  35648. } else if (e instanceof MissingPDFException) {
  35649. handler.send('MissingPDF', {
  35650. exception: e
  35651. });
  35652. } else {
  35653. handler.send('UnknownError', {
  35654. exception: new UnknownErrorException(e.message, e.toString())
  35655. });
  35656. }
  35657. };
  35658. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  35659. -1 : data.maxImageSize;
  35660. PDFJS.disableFontFace = data.disableFontFace;
  35661. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  35662. PDFJS.verbosity = data.verbosity;
  35663. PDFJS.cMapUrl = data.cMapUrl === undefined ?
  35664. null : data.cMapUrl;
  35665. PDFJS.cMapPacked = data.cMapPacked === true;
  35666. getPdfManager(data).then(function () {
  35667. pdfManager.onLoadedStream().then(function(stream) {
  35668. handler.send('DataLoaded', { length: stream.bytes.byteLength });
  35669. });
  35670. }).then(function pdfManagerReady() {
  35671. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  35672. // Try again with recoveryMode == true
  35673. if (!(ex instanceof XRefParseException)) {
  35674. if (ex instanceof PasswordException) {
  35675. // after password exception prepare to receive a new password
  35676. // to repeat loading
  35677. pdfManager.passwordChangedPromise = new LegacyPromise();
  35678. pdfManager.passwordChangedPromise.then(pdfManagerReady);
  35679. }
  35680. onFailure(ex);
  35681. return;
  35682. }
  35683. pdfManager.requestLoadedStream();
  35684. pdfManager.onLoadedStream().then(function() {
  35685. loadDocument(true).then(onSuccess, onFailure);
  35686. });
  35687. }, onFailure);
  35688. }, onFailure);
  35689. });
  35690. handler.on('GetPageRequest', function wphSetupGetPage(data) {
  35691. var pageIndex = data.pageIndex;
  35692. pdfManager.getPage(pageIndex).then(function(page) {
  35693. var rotatePromise = pdfManager.ensure(page, 'rotate');
  35694. var refPromise = pdfManager.ensure(page, 'ref');
  35695. var viewPromise = pdfManager.ensure(page, 'view');
  35696. Promise.all([rotatePromise, refPromise, viewPromise]).then(
  35697. function(results) {
  35698. var page = {
  35699. pageIndex: data.pageIndex,
  35700. rotate: results[0],
  35701. ref: results[1],
  35702. view: results[2]
  35703. };
  35704. handler.send('GetPage', { pageInfo: page });
  35705. });
  35706. });
  35707. });
  35708. handler.on('GetPageIndex', function wphSetupGetPageIndex(data, deferred) {
  35709. var ref = new Ref(data.ref.num, data.ref.gen);
  35710. var catalog = pdfManager.pdfDocument.catalog;
  35711. catalog.getPageIndex(ref).then(function (pageIndex) {
  35712. deferred.resolve(pageIndex);
  35713. }, deferred.reject);
  35714. });
  35715. handler.on('GetDestinations',
  35716. function wphSetupGetDestinations(data, deferred) {
  35717. pdfManager.ensureCatalog('destinations').then(function(destinations) {
  35718. deferred.resolve(destinations);
  35719. });
  35720. }
  35721. );
  35722. handler.on('GetAttachments',
  35723. function wphSetupGetAttachments(data, deferred) {
  35724. pdfManager.ensureCatalog('attachments').then(function(attachments) {
  35725. deferred.resolve(attachments);
  35726. }, deferred.reject);
  35727. }
  35728. );
  35729. handler.on('GetData', function wphSetupGetData(data, deferred) {
  35730. pdfManager.requestLoadedStream();
  35731. pdfManager.onLoadedStream().then(function(stream) {
  35732. deferred.resolve(stream.bytes);
  35733. });
  35734. });
  35735. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  35736. pdfManager.updatePassword(data);
  35737. });
  35738. handler.on('GetAnnotationsRequest', function wphSetupGetAnnotations(data) {
  35739. pdfManager.getPage(data.pageIndex).then(function(page) {
  35740. pdfManager.ensure(page, 'getAnnotationsData', []).then(
  35741. function(annotationsData) {
  35742. handler.send('GetAnnotations', {
  35743. pageIndex: data.pageIndex,
  35744. annotations: annotationsData
  35745. });
  35746. }
  35747. );
  35748. });
  35749. });
  35750. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  35751. pdfManager.getPage(data.pageIndex).then(function(page) {
  35752. var pageNum = data.pageIndex + 1;
  35753. var start = Date.now();
  35754. // Pre compile the pdf page and fetch the fonts/images.
  35755. page.getOperatorList(handler, data.intent).then(function(operatorList) {
  35756. info('page=' + pageNum + ' - getOperatorList: time=' +
  35757. (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);
  35758. }, function(e) {
  35759. var minimumStackMessage =
  35760. 'worker.js: while trying to getPage() and getOperatorList()';
  35761. var wrappedException;
  35762. // Turn the error into an obj that can be serialized
  35763. if (typeof e === 'string') {
  35764. wrappedException = {
  35765. message: e,
  35766. stack: minimumStackMessage
  35767. };
  35768. } else if (typeof e === 'object') {
  35769. wrappedException = {
  35770. message: e.message || e.toString(),
  35771. stack: e.stack || minimumStackMessage
  35772. };
  35773. } else {
  35774. wrappedException = {
  35775. message: 'Unknown exception type: ' + (typeof e),
  35776. stack: minimumStackMessage
  35777. };
  35778. }
  35779. handler.send('PageError', {
  35780. pageNum: pageNum,
  35781. error: wrappedException,
  35782. intent: data.intent
  35783. });
  35784. });
  35785. });
  35786. }, this);
  35787. handler.on('GetTextContent', function wphExtractText(data, deferred) {
  35788. pdfManager.getPage(data.pageIndex).then(function(page) {
  35789. var pageNum = data.pageIndex + 1;
  35790. var start = Date.now();
  35791. page.extractTextContent().then(function(textContent) {
  35792. deferred.resolve(textContent);
  35793. info('text indexing: page=' + pageNum + ' - time=' +
  35794. (Date.now() - start) + 'ms');
  35795. }, function (e) {
  35796. // Skip errored pages
  35797. deferred.reject(e);
  35798. });
  35799. });
  35800. });
  35801. handler.on('Cleanup', function wphCleanup(data, deferred) {
  35802. pdfManager.cleanup();
  35803. deferred.resolve(true);
  35804. });
  35805. handler.on('Terminate', function wphTerminate(data, deferred) {
  35806. pdfManager.terminate();
  35807. deferred.resolve();
  35808. });
  35809. }
  35810. };
  35811. var consoleTimer = {};
  35812. var workerConsole = {
  35813. log: function log() {
  35814. var args = Array.prototype.slice.call(arguments);
  35815. globalScope.postMessage({
  35816. action: 'console_log',
  35817. data: args
  35818. });
  35819. },
  35820. error: function error() {
  35821. var args = Array.prototype.slice.call(arguments);
  35822. globalScope.postMessage({
  35823. action: 'console_error',
  35824. data: args
  35825. });
  35826. throw 'pdf.js execution error';
  35827. },
  35828. time: function time(name) {
  35829. consoleTimer[name] = Date.now();
  35830. },
  35831. timeEnd: function timeEnd(name) {
  35832. var time = consoleTimer[name];
  35833. if (!time) {
  35834. error('Unknown timer name ' + name);
  35835. }
  35836. this.log('Timer:', name, Date.now() - time);
  35837. }
  35838. };
  35839. // Worker thread?
  35840. if (typeof window === 'undefined') {
  35841. if (!('console' in globalScope)) {
  35842. globalScope.console = workerConsole;
  35843. }
  35844. // Listen for unsupported features so we can pass them on to the main thread.
  35845. PDFJS.UnsupportedManager.listen(function (msg) {
  35846. globalScope.postMessage({
  35847. action: '_unsupported_feature',
  35848. data: msg
  35849. });
  35850. });
  35851. var handler = new MessageHandler('worker_processor', this);
  35852. WorkerMessageHandler.setup(handler);
  35853. }
  35854. /* This class implements the QM Coder decoding as defined in
  35855. * JPEG 2000 Part I Final Committee Draft Version 1.0
  35856. * Annex C.3 Arithmetic decoding procedure
  35857. * available at http://www.jpeg.org/public/fcd15444-1.pdf
  35858. *
  35859. * The arithmetic decoder is used in conjunction with context models to decode
  35860. * JPEG2000 and JBIG2 streams.
  35861. */
  35862. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  35863. // Table C-2
  35864. var QeTable = [
  35865. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  35866. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  35867. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  35868. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  35869. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  35870. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  35871. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  35872. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  35873. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  35874. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  35875. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  35876. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  35877. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  35878. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  35879. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  35880. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  35881. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  35882. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  35883. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  35884. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  35885. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  35886. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  35887. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  35888. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  35889. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  35890. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  35891. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  35892. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  35893. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  35894. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  35895. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  35896. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  35897. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  35898. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  35899. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  35900. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  35901. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  35902. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  35903. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  35904. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  35905. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  35906. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  35907. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  35908. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  35909. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  35910. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  35911. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  35912. ];
  35913. // C.3.5 Initialisation of the decoder (INITDEC)
  35914. function ArithmeticDecoder(data, start, end) {
  35915. this.data = data;
  35916. this.bp = start;
  35917. this.dataEnd = end;
  35918. this.chigh = data[start];
  35919. this.clow = 0;
  35920. this.byteIn();
  35921. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  35922. this.clow = (this.clow << 7) & 0xFFFF;
  35923. this.ct -= 7;
  35924. this.a = 0x8000;
  35925. }
  35926. ArithmeticDecoder.prototype = {
  35927. // C.3.4 Compressed data input (BYTEIN)
  35928. byteIn: function ArithmeticDecoder_byteIn() {
  35929. var data = this.data;
  35930. var bp = this.bp;
  35931. if (data[bp] == 0xFF) {
  35932. var b1 = data[bp + 1];
  35933. if (b1 > 0x8F) {
  35934. this.clow += 0xFF00;
  35935. this.ct = 8;
  35936. } else {
  35937. bp++;
  35938. this.clow += (data[bp] << 9);
  35939. this.ct = 7;
  35940. this.bp = bp;
  35941. }
  35942. } else {
  35943. bp++;
  35944. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  35945. this.ct = 8;
  35946. this.bp = bp;
  35947. }
  35948. if (this.clow > 0xFFFF) {
  35949. this.chigh += (this.clow >> 16);
  35950. this.clow &= 0xFFFF;
  35951. }
  35952. },
  35953. // C.3.2 Decoding a decision (DECODE)
  35954. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  35955. // contexts are packed into 1 byte:
  35956. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  35957. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  35958. var qeTableIcx = QeTable[cx_index];
  35959. var qeIcx = qeTableIcx.qe;
  35960. var d;
  35961. var a = this.a - qeIcx;
  35962. if (this.chigh < qeIcx) {
  35963. // exchangeLps
  35964. if (a < qeIcx) {
  35965. a = qeIcx;
  35966. d = cx_mps;
  35967. cx_index = qeTableIcx.nmps;
  35968. } else {
  35969. a = qeIcx;
  35970. d = 1 ^ cx_mps;
  35971. if (qeTableIcx.switchFlag === 1) {
  35972. cx_mps = d;
  35973. }
  35974. cx_index = qeTableIcx.nlps;
  35975. }
  35976. } else {
  35977. this.chigh -= qeIcx;
  35978. if ((a & 0x8000) !== 0) {
  35979. this.a = a;
  35980. return cx_mps;
  35981. }
  35982. // exchangeMps
  35983. if (a < qeIcx) {
  35984. d = 1 ^ cx_mps;
  35985. if (qeTableIcx.switchFlag === 1) {
  35986. cx_mps = d;
  35987. }
  35988. cx_index = qeTableIcx.nlps;
  35989. } else {
  35990. d = cx_mps;
  35991. cx_index = qeTableIcx.nmps;
  35992. }
  35993. }
  35994. // C.3.3 renormD;
  35995. do {
  35996. if (this.ct === 0) {
  35997. this.byteIn();
  35998. }
  35999. a <<= 1;
  36000. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  36001. this.clow = (this.clow << 1) & 0xFFFF;
  36002. this.ct--;
  36003. } while ((a & 0x8000) === 0);
  36004. this.a = a;
  36005. contexts[pos] = cx_index << 1 | cx_mps;
  36006. return d;
  36007. }
  36008. };
  36009. return ArithmeticDecoder;
  36010. })();
  36011. var JpegImage = (function jpegImage() {
  36012. var dctZigZag = new Int32Array([
  36013. 0,
  36014. 1, 8,
  36015. 16, 9, 2,
  36016. 3, 10, 17, 24,
  36017. 32, 25, 18, 11, 4,
  36018. 5, 12, 19, 26, 33, 40,
  36019. 48, 41, 34, 27, 20, 13, 6,
  36020. 7, 14, 21, 28, 35, 42, 49, 56,
  36021. 57, 50, 43, 36, 29, 22, 15,
  36022. 23, 30, 37, 44, 51, 58,
  36023. 59, 52, 45, 38, 31,
  36024. 39, 46, 53, 60,
  36025. 61, 54, 47,
  36026. 55, 62,
  36027. 63
  36028. ]);
  36029. var dctCos1 = 4017; // cos(pi/16)
  36030. var dctSin1 = 799; // sin(pi/16)
  36031. var dctCos3 = 3406; // cos(3*pi/16)
  36032. var dctSin3 = 2276; // sin(3*pi/16)
  36033. var dctCos6 = 1567; // cos(6*pi/16)
  36034. var dctSin6 = 3784; // sin(6*pi/16)
  36035. var dctSqrt2 = 5793; // sqrt(2)
  36036. var dctSqrt1d2 = 2896; // sqrt(2) / 2
  36037. function constructor() {
  36038. }
  36039. function buildHuffmanTable(codeLengths, values) {
  36040. var k = 0, code = [], i, j, length = 16;
  36041. while (length > 0 && !codeLengths[length - 1]) {
  36042. length--;
  36043. }
  36044. code.push({children: [], index: 0});
  36045. var p = code[0], q;
  36046. for (i = 0; i < length; i++) {
  36047. for (j = 0; j < codeLengths[i]; j++) {
  36048. p = code.pop();
  36049. p.children[p.index] = values[k];
  36050. while (p.index > 0) {
  36051. p = code.pop();
  36052. }
  36053. p.index++;
  36054. code.push(p);
  36055. while (code.length <= i) {
  36056. code.push(q = {children: [], index: 0});
  36057. p.children[p.index] = q.children;
  36058. p = q;
  36059. }
  36060. k++;
  36061. }
  36062. if (i + 1 < length) {
  36063. // p here points to last code
  36064. code.push(q = {children: [], index: 0});
  36065. p.children[p.index] = q.children;
  36066. p = q;
  36067. }
  36068. }
  36069. return code[0].children;
  36070. }
  36071. function getBlockBufferOffset(component, row, col) {
  36072. return 64 * ((component.blocksPerLine + 1) * row + col);
  36073. }
  36074. function decodeScan(data, offset,
  36075. frame, components, resetInterval,
  36076. spectralStart, spectralEnd,
  36077. successivePrev, successive) {
  36078. var precision = frame.precision;
  36079. var samplesPerLine = frame.samplesPerLine;
  36080. var scanLines = frame.scanLines;
  36081. var mcusPerLine = frame.mcusPerLine;
  36082. var progressive = frame.progressive;
  36083. var maxH = frame.maxH, maxV = frame.maxV;
  36084. var startOffset = offset, bitsData = 0, bitsCount = 0;
  36085. function readBit() {
  36086. if (bitsCount > 0) {
  36087. bitsCount--;
  36088. return (bitsData >> bitsCount) & 1;
  36089. }
  36090. bitsData = data[offset++];
  36091. if (bitsData == 0xFF) {
  36092. var nextByte = data[offset++];
  36093. if (nextByte) {
  36094. throw 'unexpected marker: ' +
  36095. ((bitsData << 8) | nextByte).toString(16);
  36096. }
  36097. // unstuff 0
  36098. }
  36099. bitsCount = 7;
  36100. return bitsData >>> 7;
  36101. }
  36102. function decodeHuffman(tree) {
  36103. var node = tree;
  36104. var bit;
  36105. while ((bit = readBit()) !== null) {
  36106. node = node[bit];
  36107. if (typeof node === 'number') {
  36108. return node;
  36109. }
  36110. if (typeof node !== 'object') {
  36111. throw 'invalid huffman sequence';
  36112. }
  36113. }
  36114. return null;
  36115. }
  36116. function receive(length) {
  36117. var n = 0;
  36118. while (length > 0) {
  36119. var bit = readBit();
  36120. if (bit === null) {
  36121. return;
  36122. }
  36123. n = (n << 1) | bit;
  36124. length--;
  36125. }
  36126. return n;
  36127. }
  36128. function receiveAndExtend(length) {
  36129. var n = receive(length);
  36130. if (n >= 1 << (length - 1)) {
  36131. return n;
  36132. }
  36133. return n + (-1 << length) + 1;
  36134. }
  36135. function decodeBaseline(component, offset) {
  36136. var t = decodeHuffman(component.huffmanTableDC);
  36137. var diff = t === 0 ? 0 : receiveAndExtend(t);
  36138. component.blockData[offset] = (component.pred += diff);
  36139. var k = 1;
  36140. while (k < 64) {
  36141. var rs = decodeHuffman(component.huffmanTableAC);
  36142. var s = rs & 15, r = rs >> 4;
  36143. if (s === 0) {
  36144. if (r < 15) {
  36145. break;
  36146. }
  36147. k += 16;
  36148. continue;
  36149. }
  36150. k += r;
  36151. var z = dctZigZag[k];
  36152. component.blockData[offset + z] = receiveAndExtend(s);
  36153. k++;
  36154. }
  36155. }
  36156. function decodeDCFirst(component, offset) {
  36157. var t = decodeHuffman(component.huffmanTableDC);
  36158. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  36159. component.blockData[offset] = (component.pred += diff);
  36160. }
  36161. function decodeDCSuccessive(component, offset) {
  36162. component.blockData[offset] |= readBit() << successive;
  36163. }
  36164. var eobrun = 0;
  36165. function decodeACFirst(component, offset) {
  36166. if (eobrun > 0) {
  36167. eobrun--;
  36168. return;
  36169. }
  36170. var k = spectralStart, e = spectralEnd;
  36171. while (k <= e) {
  36172. var rs = decodeHuffman(component.huffmanTableAC);
  36173. var s = rs & 15, r = rs >> 4;
  36174. if (s === 0) {
  36175. if (r < 15) {
  36176. eobrun = receive(r) + (1 << r) - 1;
  36177. break;
  36178. }
  36179. k += 16;
  36180. continue;
  36181. }
  36182. k += r;
  36183. var z = dctZigZag[k];
  36184. component.blockData[offset + z] =
  36185. receiveAndExtend(s) * (1 << successive);
  36186. k++;
  36187. }
  36188. }
  36189. var successiveACState = 0, successiveACNextValue;
  36190. function decodeACSuccessive(component, offset) {
  36191. var k = spectralStart;
  36192. var e = spectralEnd;
  36193. var r = 0;
  36194. var s;
  36195. var rs;
  36196. while (k <= e) {
  36197. var z = dctZigZag[k];
  36198. switch (successiveACState) {
  36199. case 0: // initial state
  36200. rs = decodeHuffman(component.huffmanTableAC);
  36201. s = rs & 15;
  36202. r = rs >> 4;
  36203. if (s === 0) {
  36204. if (r < 15) {
  36205. eobrun = receive(r) + (1 << r);
  36206. successiveACState = 4;
  36207. } else {
  36208. r = 16;
  36209. successiveACState = 1;
  36210. }
  36211. } else {
  36212. if (s !== 1) {
  36213. throw 'invalid ACn encoding';
  36214. }
  36215. successiveACNextValue = receiveAndExtend(s);
  36216. successiveACState = r ? 2 : 3;
  36217. }
  36218. continue;
  36219. case 1: // skipping r zero items
  36220. case 2:
  36221. if (component.blockData[offset + z]) {
  36222. component.blockData[offset + z] += (readBit() << successive);
  36223. } else {
  36224. r--;
  36225. if (r === 0) {
  36226. successiveACState = successiveACState == 2 ? 3 : 0;
  36227. }
  36228. }
  36229. break;
  36230. case 3: // set value for a zero item
  36231. if (component.blockData[offset + z]) {
  36232. component.blockData[offset + z] += (readBit() << successive);
  36233. } else {
  36234. component.blockData[offset + z] =
  36235. successiveACNextValue << successive;
  36236. successiveACState = 0;
  36237. }
  36238. break;
  36239. case 4: // eob
  36240. if (component.blockData[offset + z]) {
  36241. component.blockData[offset + z] += (readBit() << successive);
  36242. }
  36243. break;
  36244. }
  36245. k++;
  36246. }
  36247. if (successiveACState === 4) {
  36248. eobrun--;
  36249. if (eobrun === 0) {
  36250. successiveACState = 0;
  36251. }
  36252. }
  36253. }
  36254. function decodeMcu(component, decode, mcu, row, col) {
  36255. var mcuRow = (mcu / mcusPerLine) | 0;
  36256. var mcuCol = mcu % mcusPerLine;
  36257. var blockRow = mcuRow * component.v + row;
  36258. var blockCol = mcuCol * component.h + col;
  36259. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36260. decode(component, offset);
  36261. }
  36262. function decodeBlock(component, decode, mcu) {
  36263. var blockRow = (mcu / component.blocksPerLine) | 0;
  36264. var blockCol = mcu % component.blocksPerLine;
  36265. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36266. decode(component, offset);
  36267. }
  36268. var componentsLength = components.length;
  36269. var component, i, j, k, n;
  36270. var decodeFn;
  36271. if (progressive) {
  36272. if (spectralStart === 0) {
  36273. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  36274. } else {
  36275. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  36276. }
  36277. } else {
  36278. decodeFn = decodeBaseline;
  36279. }
  36280. var mcu = 0, marker;
  36281. var mcuExpected;
  36282. if (componentsLength == 1) {
  36283. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  36284. } else {
  36285. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  36286. }
  36287. if (!resetInterval) {
  36288. resetInterval = mcuExpected;
  36289. }
  36290. var h, v;
  36291. while (mcu < mcuExpected) {
  36292. // reset interval stuff
  36293. for (i = 0; i < componentsLength; i++) {
  36294. components[i].pred = 0;
  36295. }
  36296. eobrun = 0;
  36297. if (componentsLength == 1) {
  36298. component = components[0];
  36299. for (n = 0; n < resetInterval; n++) {
  36300. decodeBlock(component, decodeFn, mcu);
  36301. mcu++;
  36302. }
  36303. } else {
  36304. for (n = 0; n < resetInterval; n++) {
  36305. for (i = 0; i < componentsLength; i++) {
  36306. component = components[i];
  36307. h = component.h;
  36308. v = component.v;
  36309. for (j = 0; j < v; j++) {
  36310. for (k = 0; k < h; k++) {
  36311. decodeMcu(component, decodeFn, mcu, j, k);
  36312. }
  36313. }
  36314. }
  36315. mcu++;
  36316. }
  36317. }
  36318. // find marker
  36319. bitsCount = 0;
  36320. marker = (data[offset] << 8) | data[offset + 1];
  36321. if (marker <= 0xFF00) {
  36322. throw 'marker was not found';
  36323. }
  36324. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  36325. offset += 2;
  36326. } else {
  36327. break;
  36328. }
  36329. }
  36330. return offset - startOffset;
  36331. }
  36332. // A port of poppler's IDCT method which in turn is taken from:
  36333. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  36334. // 'Practical Fast 1-D DCT Algorithms with 11 Multiplications',
  36335. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  36336. // 988-991.
  36337. function quantizeAndInverse(component, blockBufferOffset, p) {
  36338. var qt = component.quantizationTable;
  36339. var v0, v1, v2, v3, v4, v5, v6, v7, t;
  36340. var i;
  36341. // dequant
  36342. for (i = 0; i < 64; i++) {
  36343. p[i] = component.blockData[blockBufferOffset + i] * qt[i];
  36344. }
  36345. // inverse DCT on rows
  36346. for (i = 0; i < 8; ++i) {
  36347. var row = 8 * i;
  36348. // check for all-zero AC coefficients
  36349. if (p[1 + row] === 0 && p[2 + row] === 0 && p[3 + row] === 0 &&
  36350. p[4 + row] === 0 && p[5 + row] === 0 && p[6 + row] === 0 &&
  36351. p[7 + row] === 0) {
  36352. t = (dctSqrt2 * p[0 + row] + 512) >> 10;
  36353. p[0 + row] = t;
  36354. p[1 + row] = t;
  36355. p[2 + row] = t;
  36356. p[3 + row] = t;
  36357. p[4 + row] = t;
  36358. p[5 + row] = t;
  36359. p[6 + row] = t;
  36360. p[7 + row] = t;
  36361. continue;
  36362. }
  36363. // stage 4
  36364. v0 = (dctSqrt2 * p[0 + row] + 128) >> 8;
  36365. v1 = (dctSqrt2 * p[4 + row] + 128) >> 8;
  36366. v2 = p[2 + row];
  36367. v3 = p[6 + row];
  36368. v4 = (dctSqrt1d2 * (p[1 + row] - p[7 + row]) + 128) >> 8;
  36369. v7 = (dctSqrt1d2 * (p[1 + row] + p[7 + row]) + 128) >> 8;
  36370. v5 = p[3 + row] << 4;
  36371. v6 = p[5 + row] << 4;
  36372. // stage 3
  36373. t = (v0 - v1+ 1) >> 1;
  36374. v0 = (v0 + v1 + 1) >> 1;
  36375. v1 = t;
  36376. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  36377. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  36378. v3 = t;
  36379. t = (v4 - v6 + 1) >> 1;
  36380. v4 = (v4 + v6 + 1) >> 1;
  36381. v6 = t;
  36382. t = (v7 + v5 + 1) >> 1;
  36383. v5 = (v7 - v5 + 1) >> 1;
  36384. v7 = t;
  36385. // stage 2
  36386. t = (v0 - v3 + 1) >> 1;
  36387. v0 = (v0 + v3 + 1) >> 1;
  36388. v3 = t;
  36389. t = (v1 - v2 + 1) >> 1;
  36390. v1 = (v1 + v2 + 1) >> 1;
  36391. v2 = t;
  36392. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36393. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36394. v7 = t;
  36395. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36396. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36397. v6 = t;
  36398. // stage 1
  36399. p[0 + row] = v0 + v7;
  36400. p[7 + row] = v0 - v7;
  36401. p[1 + row] = v1 + v6;
  36402. p[6 + row] = v1 - v6;
  36403. p[2 + row] = v2 + v5;
  36404. p[5 + row] = v2 - v5;
  36405. p[3 + row] = v3 + v4;
  36406. p[4 + row] = v3 - v4;
  36407. }
  36408. // inverse DCT on columns
  36409. for (i = 0; i < 8; ++i) {
  36410. var col = i;
  36411. // check for all-zero AC coefficients
  36412. if (p[1*8 + col] === 0 && p[2*8 + col] === 0 && p[3*8 + col] === 0 &&
  36413. p[4*8 + col] === 0 && p[5*8 + col] === 0 && p[6*8 + col] === 0 &&
  36414. p[7*8 + col] === 0) {
  36415. t = (dctSqrt2 * p[i+0] + 8192) >> 14;
  36416. p[0*8 + col] = t;
  36417. p[1*8 + col] = t;
  36418. p[2*8 + col] = t;
  36419. p[3*8 + col] = t;
  36420. p[4*8 + col] = t;
  36421. p[5*8 + col] = t;
  36422. p[6*8 + col] = t;
  36423. p[7*8 + col] = t;
  36424. continue;
  36425. }
  36426. // stage 4
  36427. v0 = (dctSqrt2 * p[0*8 + col] + 2048) >> 12;
  36428. v1 = (dctSqrt2 * p[4*8 + col] + 2048) >> 12;
  36429. v2 = p[2*8 + col];
  36430. v3 = p[6*8 + col];
  36431. v4 = (dctSqrt1d2 * (p[1*8 + col] - p[7*8 + col]) + 2048) >> 12;
  36432. v7 = (dctSqrt1d2 * (p[1*8 + col] + p[7*8 + col]) + 2048) >> 12;
  36433. v5 = p[3*8 + col];
  36434. v6 = p[5*8 + col];
  36435. // stage 3
  36436. t = (v0 - v1 + 1) >> 1;
  36437. v0 = (v0 + v1 + 1) >> 1;
  36438. v1 = t;
  36439. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  36440. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  36441. v3 = t;
  36442. t = (v4 - v6 + 1) >> 1;
  36443. v4 = (v4 + v6 + 1) >> 1;
  36444. v6 = t;
  36445. t = (v7 + v5 + 1) >> 1;
  36446. v5 = (v7 - v5 + 1) >> 1;
  36447. v7 = t;
  36448. // stage 2
  36449. t = (v0 - v3 + 1) >> 1;
  36450. v0 = (v0 + v3 + 1) >> 1;
  36451. v3 = t;
  36452. t = (v1 - v2 + 1) >> 1;
  36453. v1 = (v1 + v2 + 1) >> 1;
  36454. v2 = t;
  36455. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  36456. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  36457. v7 = t;
  36458. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  36459. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  36460. v6 = t;
  36461. // stage 1
  36462. p[0*8 + col] = v0 + v7;
  36463. p[7*8 + col] = v0 - v7;
  36464. p[1*8 + col] = v1 + v6;
  36465. p[6*8 + col] = v1 - v6;
  36466. p[2*8 + col] = v2 + v5;
  36467. p[5*8 + col] = v2 - v5;
  36468. p[3*8 + col] = v3 + v4;
  36469. p[4*8 + col] = v3 - v4;
  36470. }
  36471. // convert to 8-bit integers
  36472. for (i = 0; i < 64; ++i) {
  36473. var index = blockBufferOffset + i;
  36474. var q = p[i];
  36475. q = (q <= -2056) ? 0 : (q >= 2024) ? 255 : (q + 2056) >> 4;
  36476. component.blockData[index] = q;
  36477. }
  36478. }
  36479. function buildComponentData(frame, component) {
  36480. var lines = [];
  36481. var blocksPerLine = component.blocksPerLine;
  36482. var blocksPerColumn = component.blocksPerColumn;
  36483. var samplesPerLine = blocksPerLine << 3;
  36484. var computationBuffer = new Int32Array(64);
  36485. var i, j, ll = 0;
  36486. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  36487. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  36488. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  36489. quantizeAndInverse(component, offset, computationBuffer);
  36490. }
  36491. }
  36492. return component.blockData;
  36493. }
  36494. function clamp0to255(a) {
  36495. return a <= 0 ? 0 : a >= 255 ? 255 : a;
  36496. }
  36497. constructor.prototype = {
  36498. parse: function parse(data) {
  36499. function readUint16() {
  36500. var value = (data[offset] << 8) | data[offset + 1];
  36501. offset += 2;
  36502. return value;
  36503. }
  36504. function readDataBlock() {
  36505. var length = readUint16();
  36506. var array = data.subarray(offset, offset + length - 2);
  36507. offset += array.length;
  36508. return array;
  36509. }
  36510. function prepareComponents(frame) {
  36511. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH);
  36512. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV);
  36513. for (var i = 0; i < frame.components.length; i++) {
  36514. component = frame.components[i];
  36515. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
  36516. component.h / frame.maxH);
  36517. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
  36518. component.v / frame.maxV);
  36519. var blocksPerLineForMcu = mcusPerLine * component.h;
  36520. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  36521. var blocksBufferSize = 64 * blocksPerColumnForMcu *
  36522. (blocksPerLineForMcu + 1);
  36523. component.blockData = new Int16Array(blocksBufferSize);
  36524. component.blocksPerLine = blocksPerLine;
  36525. component.blocksPerColumn = blocksPerColumn;
  36526. }
  36527. frame.mcusPerLine = mcusPerLine;
  36528. frame.mcusPerColumn = mcusPerColumn;
  36529. }
  36530. var offset = 0, length = data.length;
  36531. var jfif = null;
  36532. var adobe = null;
  36533. var pixels = null;
  36534. var frame, resetInterval;
  36535. var quantizationTables = [];
  36536. var huffmanTablesAC = [], huffmanTablesDC = [];
  36537. var fileMarker = readUint16();
  36538. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  36539. throw 'SOI not found';
  36540. }
  36541. fileMarker = readUint16();
  36542. while (fileMarker != 0xFFD9) { // EOI (End of image)
  36543. var i, j, l;
  36544. switch(fileMarker) {
  36545. case 0xFFE0: // APP0 (Application Specific)
  36546. case 0xFFE1: // APP1
  36547. case 0xFFE2: // APP2
  36548. case 0xFFE3: // APP3
  36549. case 0xFFE4: // APP4
  36550. case 0xFFE5: // APP5
  36551. case 0xFFE6: // APP6
  36552. case 0xFFE7: // APP7
  36553. case 0xFFE8: // APP8
  36554. case 0xFFE9: // APP9
  36555. case 0xFFEA: // APP10
  36556. case 0xFFEB: // APP11
  36557. case 0xFFEC: // APP12
  36558. case 0xFFED: // APP13
  36559. case 0xFFEE: // APP14
  36560. case 0xFFEF: // APP15
  36561. case 0xFFFE: // COM (Comment)
  36562. var appData = readDataBlock();
  36563. if (fileMarker === 0xFFE0) {
  36564. if (appData[0] === 0x4A && appData[1] === 0x46 &&
  36565. appData[2] === 0x49 && appData[3] === 0x46 &&
  36566. appData[4] === 0) { // 'JFIF\x00'
  36567. jfif = {
  36568. version: { major: appData[5], minor: appData[6] },
  36569. densityUnits: appData[7],
  36570. xDensity: (appData[8] << 8) | appData[9],
  36571. yDensity: (appData[10] << 8) | appData[11],
  36572. thumbWidth: appData[12],
  36573. thumbHeight: appData[13],
  36574. thumbData: appData.subarray(14, 14 +
  36575. 3 * appData[12] * appData[13])
  36576. };
  36577. }
  36578. }
  36579. // TODO APP1 - Exif
  36580. if (fileMarker === 0xFFEE) {
  36581. if (appData[0] === 0x41 && appData[1] === 0x64 &&
  36582. appData[2] === 0x6F && appData[3] === 0x62 &&
  36583. appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  36584. adobe = {
  36585. version: appData[6],
  36586. flags0: (appData[7] << 8) | appData[8],
  36587. flags1: (appData[9] << 8) | appData[10],
  36588. transformCode: appData[11]
  36589. };
  36590. }
  36591. }
  36592. break;
  36593. case 0xFFDB: // DQT (Define Quantization Tables)
  36594. var quantizationTablesLength = readUint16();
  36595. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  36596. var z;
  36597. while (offset < quantizationTablesEnd) {
  36598. var quantizationTableSpec = data[offset++];
  36599. var tableData = new Int32Array(64);
  36600. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  36601. for (j = 0; j < 64; j++) {
  36602. z = dctZigZag[j];
  36603. tableData[z] = data[offset++];
  36604. }
  36605. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  36606. for (j = 0; j < 64; j++) {
  36607. z = dctZigZag[j];
  36608. tableData[z] = readUint16();
  36609. }
  36610. } else {
  36611. throw 'DQT: invalid table spec';
  36612. }
  36613. quantizationTables[quantizationTableSpec & 15] = tableData;
  36614. }
  36615. break;
  36616. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  36617. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  36618. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  36619. if (frame) {
  36620. throw 'Only single frame JPEGs supported';
  36621. }
  36622. readUint16(); // skip data length
  36623. frame = {};
  36624. frame.extended = (fileMarker === 0xFFC1);
  36625. frame.progressive = (fileMarker === 0xFFC2);
  36626. frame.precision = data[offset++];
  36627. frame.scanLines = readUint16();
  36628. frame.samplesPerLine = readUint16();
  36629. frame.components = [];
  36630. frame.componentIds = {};
  36631. var componentsCount = data[offset++], componentId;
  36632. var maxH = 0, maxV = 0;
  36633. for (i = 0; i < componentsCount; i++) {
  36634. componentId = data[offset];
  36635. var h = data[offset + 1] >> 4;
  36636. var v = data[offset + 1] & 15;
  36637. if (maxH < h) {
  36638. maxH = h;
  36639. }
  36640. if (maxV < v) {
  36641. maxV = v;
  36642. }
  36643. var qId = data[offset + 2];
  36644. l = frame.components.push({
  36645. h: h,
  36646. v: v,
  36647. quantizationTable: quantizationTables[qId]
  36648. });
  36649. frame.componentIds[componentId] = l - 1;
  36650. offset += 3;
  36651. }
  36652. frame.maxH = maxH;
  36653. frame.maxV = maxV;
  36654. prepareComponents(frame);
  36655. break;
  36656. case 0xFFC4: // DHT (Define Huffman Tables)
  36657. var huffmanLength = readUint16();
  36658. for (i = 2; i < huffmanLength;) {
  36659. var huffmanTableSpec = data[offset++];
  36660. var codeLengths = new Uint8Array(16);
  36661. var codeLengthSum = 0;
  36662. for (j = 0; j < 16; j++, offset++) {
  36663. codeLengthSum += (codeLengths[j] = data[offset]);
  36664. }
  36665. var huffmanValues = new Uint8Array(codeLengthSum);
  36666. for (j = 0; j < codeLengthSum; j++, offset++) {
  36667. huffmanValues[j] = data[offset];
  36668. }
  36669. i += 17 + codeLengthSum;
  36670. ((huffmanTableSpec >> 4) === 0 ?
  36671. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  36672. buildHuffmanTable(codeLengths, huffmanValues);
  36673. }
  36674. break;
  36675. case 0xFFDD: // DRI (Define Restart Interval)
  36676. readUint16(); // skip data length
  36677. resetInterval = readUint16();
  36678. break;
  36679. case 0xFFDA: // SOS (Start of Scan)
  36680. var scanLength = readUint16();
  36681. var selectorsCount = data[offset++];
  36682. var components = [], component;
  36683. for (i = 0; i < selectorsCount; i++) {
  36684. var componentIndex = frame.componentIds[data[offset++]];
  36685. component = frame.components[componentIndex];
  36686. var tableSpec = data[offset++];
  36687. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  36688. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  36689. components.push(component);
  36690. }
  36691. var spectralStart = data[offset++];
  36692. var spectralEnd = data[offset++];
  36693. var successiveApproximation = data[offset++];
  36694. var processed = decodeScan(data, offset,
  36695. frame, components, resetInterval,
  36696. spectralStart, spectralEnd,
  36697. successiveApproximation >> 4, successiveApproximation & 15);
  36698. offset += processed;
  36699. break;
  36700. default:
  36701. if (data[offset - 3] == 0xFF &&
  36702. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  36703. // could be incorrect encoding -- last 0xFF byte of the previous
  36704. // block was eaten by the encoder
  36705. offset -= 3;
  36706. break;
  36707. }
  36708. throw 'unknown JPEG marker ' + fileMarker.toString(16);
  36709. }
  36710. fileMarker = readUint16();
  36711. }
  36712. this.width = frame.samplesPerLine;
  36713. this.height = frame.scanLines;
  36714. this.jfif = jfif;
  36715. this.adobe = adobe;
  36716. this.components = [];
  36717. for (i = 0; i < frame.components.length; i++) {
  36718. component = frame.components[i];
  36719. this.components.push({
  36720. output: buildComponentData(frame, component),
  36721. scaleX: component.h / frame.maxH,
  36722. scaleY: component.v / frame.maxV,
  36723. blocksPerLine: component.blocksPerLine,
  36724. blocksPerColumn: component.blocksPerColumn
  36725. });
  36726. }
  36727. this.numComponents = this.components.length;
  36728. },
  36729. _getLinearizedBlockData: function getLinearizedBlockData(width, height) {
  36730. var scaleX = this.width / width, scaleY = this.height / height;
  36731. var component, componentScaleX, componentScaleY;
  36732. var x, y, i;
  36733. var offset = 0;
  36734. var Y, Cb, Cr, K, C, M, Ye, R, G, B;
  36735. var colorTransform;
  36736. var numComponents = this.components.length;
  36737. var dataLength = width * height * numComponents;
  36738. var data = new Uint8Array(dataLength);
  36739. var componentLine;
  36740. // lineData is reused for all components. Assume first component is
  36741. // the biggest
  36742. var lineData = new Uint8Array((this.components[0].blocksPerLine << 3) *
  36743. this.components[0].blocksPerColumn * 8);
  36744. // First construct image data ...
  36745. for (i = 0; i < numComponents; i++) {
  36746. component = this.components[i];
  36747. var blocksPerLine = component.blocksPerLine;
  36748. var blocksPerColumn = component.blocksPerColumn;
  36749. var samplesPerLine = blocksPerLine << 3;
  36750. var j, k, ll = 0;
  36751. var sample;
  36752. var lineOffset = 0;
  36753. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  36754. var scanLine = blockRow << 3;
  36755. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  36756. var bufferOffset = getBlockBufferOffset(component,
  36757. blockRow, blockCol);
  36758. offset = 0;
  36759. sample = blockCol << 3;
  36760. for (j = 0; j < 8; j++) {
  36761. lineOffset = (scanLine + j) * samplesPerLine;
  36762. for (k = 0; k < 8; k++) {
  36763. lineData[lineOffset + sample + k] =
  36764. component.output[bufferOffset + offset++];
  36765. }
  36766. }
  36767. }
  36768. }
  36769. componentScaleX = component.scaleX * scaleX;
  36770. componentScaleY = component.scaleY * scaleY;
  36771. offset = i;
  36772. var cx, cy;
  36773. var index;
  36774. for (y = 0; y < height; y++) {
  36775. for (x = 0; x < width; x++) {
  36776. cy = 0 | (y * componentScaleY);
  36777. cx = 0 | (x * componentScaleX);
  36778. index = cy * samplesPerLine + cx;
  36779. data[offset] = lineData[index];
  36780. offset += numComponents;
  36781. }
  36782. }
  36783. }
  36784. return data;
  36785. },
  36786. _isColorConversionNeeded: function isColorConversionNeeded() {
  36787. if (this.adobe && this.adobe.transformCode) {
  36788. // The adobe transform marker overrides any previous setting
  36789. return true;
  36790. } else if (this.numComponents == 3) {
  36791. return true;
  36792. } else if (typeof this.colorTransform !== 'undefined') {
  36793. return !!this.colorTransform;
  36794. } else {
  36795. return false;
  36796. }
  36797. },
  36798. _convertYccToRgb: function convertYccToRgb(data) {
  36799. var Y, Cb, Cr;
  36800. for (var i = 0; i < data.length; i += this.numComponents) {
  36801. Y = data[i ];
  36802. Cb = data[i + 1];
  36803. Cr = data[i + 2];
  36804. data[i ] = clamp0to255(Y - 179.456 + 1.402 * Cr);
  36805. data[i + 1] = clamp0to255(Y + 135.459 - 0.344 * Cb - 0.714 * Cr);
  36806. data[i + 2] = clamp0to255(Y - 226.816 + 1.772 * Cb);
  36807. }
  36808. return data;
  36809. },
  36810. _convertYcckToRgb: function convertYcckToRgb(data) {
  36811. var Y, Cb, Cr, k, CbCb, CbCr, CbY, Cbk, CrCr, Crk, CrY, YY, Yk, kk;
  36812. var offset = 0;
  36813. for (var i = 0; i < data.length; i += this.numComponents) {
  36814. Y = data[i];
  36815. Cb = data[i + 1];
  36816. Cr = data[i + 2];
  36817. k = data[i + 3];
  36818. CbCb = Cb * Cb;
  36819. CbCr = Cb * Cr;
  36820. CbY = Cb * Y;
  36821. Cbk = Cb * k;
  36822. CrCr = Cr * Cr;
  36823. Crk = Cr * k;
  36824. CrY = Cr * Y;
  36825. YY = Y * Y;
  36826. Yk = Y * k;
  36827. kk = k * k;
  36828. var r = - 122.67195406894 -
  36829. 6.60635669420364e-5 * CbCb + 0.000437130475926232 * CbCr -
  36830. 5.4080610064599e-5* CbY + 0.00048449797120281* Cbk -
  36831. 0.154362151871126 * Cb - 0.000957964378445773 * CrCr +
  36832. 0.000817076911346625 * CrY - 0.00477271405408747 * Crk +
  36833. 1.53380253221734 * Cr + 0.000961250184130688 * YY -
  36834. 0.00266257332283933 * Yk + 0.48357088451265 * Y -
  36835. 0.000336197177618394 * kk + 0.484791561490776 * k;
  36836. var g = 107.268039397724 +
  36837. 2.19927104525741e-5 * CbCb - 0.000640992018297945 * CbCr +
  36838. 0.000659397001245577* CbY + 0.000426105652938837* Cbk -
  36839. 0.176491792462875 * Cb - 0.000778269941513683 * CrCr +
  36840. 0.00130872261408275 * CrY + 0.000770482631801132 * Crk -
  36841. 0.151051492775562 * Cr + 0.00126935368114843 * YY -
  36842. 0.00265090189010898 * Yk + 0.25802910206845 * Y -
  36843. 0.000318913117588328 * kk - 0.213742400323665 * k;
  36844. var b = - 20.810012546947 -
  36845. 0.000570115196973677 * CbCb - 2.63409051004589e-5 * CbCr +
  36846. 0.0020741088115012* CbY - 0.00288260236853442* Cbk +
  36847. 0.814272968359295 * Cb - 1.53496057440975e-5 * CrCr -
  36848. 0.000132689043961446 * CrY + 0.000560833691242812 * Crk -
  36849. 0.195152027534049 * Cr + 0.00174418132927582 * YY -
  36850. 0.00255243321439347 * Yk + 0.116935020465145 * Y -
  36851. 0.000343531996510555 * kk + 0.24165260232407 * k;
  36852. data[offset++] = clamp0to255(r);
  36853. data[offset++] = clamp0to255(g);
  36854. data[offset++] = clamp0to255(b);
  36855. }
  36856. return data;
  36857. },
  36858. _convertYcckToCmyk: function convertYcckToCmyk(data) {
  36859. var Y, Cb, Cr;
  36860. for (var i = 0; i < data.length; i += this.numComponents) {
  36861. Y = data[i];
  36862. Cb = data[i + 1];
  36863. Cr = data[i + 2];
  36864. data[i ] = clamp0to255(434.456 - Y - 1.402 * Cr);
  36865. data[i + 1] = clamp0to255(119.541 - Y + 0.344 * Cb + 0.714 * Cr);
  36866. data[i + 2] = clamp0to255(481.816 - Y - 1.772 * Cb);
  36867. // K in data[i + 3] is unchanged
  36868. }
  36869. return data;
  36870. },
  36871. _convertCmykToRgb: function convertCmykToRgb(data) {
  36872. var c, m, y, k;
  36873. var offset = 0;
  36874. for (var i = 0; i < data.length; i += this.numComponents) {
  36875. c = data[i ] * 0.00392156862745098;
  36876. m = data[i + 1] * 0.00392156862745098;
  36877. y = data[i + 2] * 0.00392156862745098;
  36878. k = data[i + 3] * 0.00392156862745098;
  36879. var r =
  36880. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  36881. 18.82290502165302 * y + 212.25662451639585 * k +
  36882. -285.2331026137004) +
  36883. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  36884. -17.873870861415444 * k - 5.497006427196366) +
  36885. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  36886. 17.5119270841813) +
  36887. k * (-21.86122147463605 * k - 189.48180835922747) + 255;
  36888. var g =
  36889. c * (8.841041422036149 * c + 60.118027045597366 * m +
  36890. 6.871425592049007 * y + 31.159100130055922 * k +
  36891. -79.2970844816548) +
  36892. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  36893. 131.35250912493976 * k - 190.9453302588951) +
  36894. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.8674158255588) +
  36895. k * (-20.737325471181034 * k - 187.80453709719578) + 255;
  36896. var b =
  36897. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  36898. 30.89978309703729 * y - 0.23883238689178934 * k +
  36899. -14.183576799673286) +
  36900. m * (10.49593273432072 * m + 63.02378494754052 * y +
  36901. 50.606957656360734 * k - 112.23884253719248) +
  36902. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  36903. -193.58209356861505) +
  36904. k * (-22.33816807309886 * k - 180.12613974708367) + 255;
  36905. data[offset++] = clamp0to255(r);
  36906. data[offset++] = clamp0to255(g);
  36907. data[offset++] = clamp0to255(b);
  36908. }
  36909. return data;
  36910. },
  36911. getData: function getData(width, height, forceRGBoutput) {
  36912. var i;
  36913. var Y, Cb, Cr, K, C, M, Ye, R, G, B;
  36914. var colorTransform;
  36915. if (this.numComponents > 4) {
  36916. throw 'Unsupported color mode';
  36917. }
  36918. // type of data: Uint8Array(width * height * numComponents)
  36919. var data = this._getLinearizedBlockData(width, height);
  36920. if (this.numComponents === 3) {
  36921. return this._convertYccToRgb(data);
  36922. } else if (this.numComponents === 4) {
  36923. if (this._isColorConversionNeeded()) {
  36924. if (forceRGBoutput) {
  36925. return this._convertYcckToRgb(data);
  36926. } else {
  36927. return this._convertYcckToCmyk(data);
  36928. }
  36929. } else {
  36930. return this._convertCmykToRgb(data);
  36931. }
  36932. }
  36933. return data;
  36934. }
  36935. };
  36936. return constructor;
  36937. })();
  36938. var JpxImage = (function JpxImageClosure() {
  36939. // Table E.1
  36940. var SubbandsGainLog2 = {
  36941. 'LL': 0,
  36942. 'LH': 1,
  36943. 'HL': 1,
  36944. 'HH': 2
  36945. };
  36946. function JpxImage() {
  36947. this.failOnCorruptedImage = false;
  36948. }
  36949. JpxImage.prototype = {
  36950. load: function JpxImage_load(url) {
  36951. var xhr = new XMLHttpRequest();
  36952. xhr.open('GET', url, true);
  36953. xhr.responseType = 'arraybuffer';
  36954. xhr.onload = (function() {
  36955. // TODO catch parse error
  36956. var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
  36957. this.parse(data);
  36958. if (this.onload) {
  36959. this.onload();
  36960. }
  36961. }).bind(this);
  36962. xhr.send(null);
  36963. },
  36964. parse: function JpxImage_parse(data) {
  36965. var head = readUint16(data, 0);
  36966. // No box header, immediate start of codestream (SOC)
  36967. if (head === 0xFF4F) {
  36968. this.parseCodestream(data, 0, data.length);
  36969. return;
  36970. }
  36971. var position = 0, length = data.length;
  36972. while (position < length) {
  36973. var headerSize = 8;
  36974. var lbox = readUint32(data, position);
  36975. var tbox = readUint32(data, position + 4);
  36976. position += headerSize;
  36977. if (lbox === 1) {
  36978. // XLBox: read UInt64 according to spec.
  36979. // JavaScript's int precision of 53 bit should be sufficient here.
  36980. lbox = readUint32(data, position) * 4294967296 +
  36981. readUint32(data, position + 4);
  36982. position += 8;
  36983. headerSize += 8;
  36984. }
  36985. if (lbox === 0) {
  36986. lbox = length - position + headerSize;
  36987. }
  36988. if (lbox < headerSize) {
  36989. error('JPX error: Invalid box field size');
  36990. }
  36991. var dataLength = lbox - headerSize;
  36992. var jumpDataLength = true;
  36993. switch (tbox) {
  36994. case 0x6A501A1A: // 'jP\032\032'
  36995. // TODO
  36996. break;
  36997. case 0x6A703268: // 'jp2h'
  36998. jumpDataLength = false; // parsing child boxes
  36999. break;
  37000. case 0x636F6C72: // 'colr'
  37001. // TODO
  37002. break;
  37003. case 0x6A703263: // 'jp2c'
  37004. this.parseCodestream(data, position, position + dataLength);
  37005. break;
  37006. }
  37007. if (jumpDataLength) {
  37008. position += dataLength;
  37009. }
  37010. }
  37011. },
  37012. parseImageProperties: function JpxImage_parseImageProperties(stream) {
  37013. try {
  37014. var newByte = stream.getByte();
  37015. while (newByte >= 0) {
  37016. var oldByte = newByte;
  37017. newByte = stream.getByte();
  37018. var code = (oldByte << 8) | newByte;
  37019. // Image and tile size (SIZ)
  37020. if (code == 0xFF51) {
  37021. stream.skip(4);
  37022. var Xsiz = stream.getInt32() >>> 0; // Byte 4
  37023. var Ysiz = stream.getInt32() >>> 0; // Byte 8
  37024. var XOsiz = stream.getInt32() >>> 0; // Byte 12
  37025. var YOsiz = stream.getInt32() >>> 0; // Byte 16
  37026. stream.skip(16);
  37027. var Csiz = stream.getUint16(); // Byte 36
  37028. this.width = Xsiz - XOsiz;
  37029. this.height = Ysiz - YOsiz;
  37030. this.componentsCount = Csiz;
  37031. // Results are always returned as Uint8Arrays
  37032. this.bitsPerComponent = 8;
  37033. return;
  37034. }
  37035. }
  37036. throw 'No size marker found in JPX stream';
  37037. } catch (e) {
  37038. if (this.failOnCorruptedImage) {
  37039. error('JPX error: ' + e);
  37040. } else {
  37041. warn('JPX error: ' + e + '. Trying to recover');
  37042. }
  37043. }
  37044. },
  37045. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  37046. var context = {};
  37047. try {
  37048. var position = start;
  37049. while (position + 1 < end) {
  37050. var code = readUint16(data, position);
  37051. position += 2;
  37052. var length = 0, j, sqcd, spqcds, spqcdSize, scalarExpounded, tile;
  37053. switch (code) {
  37054. case 0xFF4F: // Start of codestream (SOC)
  37055. context.mainHeader = true;
  37056. break;
  37057. case 0xFFD9: // End of codestream (EOC)
  37058. break;
  37059. case 0xFF51: // Image and tile size (SIZ)
  37060. length = readUint16(data, position);
  37061. var siz = {};
  37062. siz.Xsiz = readUint32(data, position + 4);
  37063. siz.Ysiz = readUint32(data, position + 8);
  37064. siz.XOsiz = readUint32(data, position + 12);
  37065. siz.YOsiz = readUint32(data, position + 16);
  37066. siz.XTsiz = readUint32(data, position + 20);
  37067. siz.YTsiz = readUint32(data, position + 24);
  37068. siz.XTOsiz = readUint32(data, position + 28);
  37069. siz.YTOsiz = readUint32(data, position + 32);
  37070. var componentsCount = readUint16(data, position + 36);
  37071. siz.Csiz = componentsCount;
  37072. var components = [];
  37073. j = position + 38;
  37074. for (var i = 0; i < componentsCount; i++) {
  37075. var component = {
  37076. precision: (data[j] & 0x7F) + 1,
  37077. isSigned: !!(data[j] & 0x80),
  37078. XRsiz: data[j + 1],
  37079. YRsiz: data[j + 1]
  37080. };
  37081. calculateComponentDimensions(component, siz);
  37082. components.push(component);
  37083. }
  37084. context.SIZ = siz;
  37085. context.components = components;
  37086. calculateTileGrids(context, components);
  37087. context.QCC = [];
  37088. context.COC = [];
  37089. break;
  37090. case 0xFF5C: // Quantization default (QCD)
  37091. length = readUint16(data, position);
  37092. var qcd = {};
  37093. j = position + 2;
  37094. sqcd = data[j++];
  37095. switch (sqcd & 0x1F) {
  37096. case 0:
  37097. spqcdSize = 8;
  37098. scalarExpounded = true;
  37099. break;
  37100. case 1:
  37101. spqcdSize = 16;
  37102. scalarExpounded = false;
  37103. break;
  37104. case 2:
  37105. spqcdSize = 16;
  37106. scalarExpounded = true;
  37107. break;
  37108. default:
  37109. throw 'Invalid SQcd value ' + sqcd;
  37110. }
  37111. qcd.noQuantization = (spqcdSize == 8);
  37112. qcd.scalarExpounded = scalarExpounded;
  37113. qcd.guardBits = sqcd >> 5;
  37114. spqcds = [];
  37115. while (j < length + position) {
  37116. var spqcd = {};
  37117. if (spqcdSize == 8) {
  37118. spqcd.epsilon = data[j++] >> 3;
  37119. spqcd.mu = 0;
  37120. } else {
  37121. spqcd.epsilon = data[j] >> 3;
  37122. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37123. j += 2;
  37124. }
  37125. spqcds.push(spqcd);
  37126. }
  37127. qcd.SPqcds = spqcds;
  37128. if (context.mainHeader) {
  37129. context.QCD = qcd;
  37130. } else {
  37131. context.currentTile.QCD = qcd;
  37132. context.currentTile.QCC = [];
  37133. }
  37134. break;
  37135. case 0xFF5D: // Quantization component (QCC)
  37136. length = readUint16(data, position);
  37137. var qcc = {};
  37138. j = position + 2;
  37139. var cqcc;
  37140. if (context.SIZ.Csiz < 257) {
  37141. cqcc = data[j++];
  37142. } else {
  37143. cqcc = readUint16(data, j);
  37144. j += 2;
  37145. }
  37146. sqcd = data[j++];
  37147. switch (sqcd & 0x1F) {
  37148. case 0:
  37149. spqcdSize = 8;
  37150. scalarExpounded = true;
  37151. break;
  37152. case 1:
  37153. spqcdSize = 16;
  37154. scalarExpounded = false;
  37155. break;
  37156. case 2:
  37157. spqcdSize = 16;
  37158. scalarExpounded = true;
  37159. break;
  37160. default:
  37161. throw 'Invalid SQcd value ' + sqcd;
  37162. }
  37163. qcc.noQuantization = (spqcdSize == 8);
  37164. qcc.scalarExpounded = scalarExpounded;
  37165. qcc.guardBits = sqcd >> 5;
  37166. spqcds = [];
  37167. while (j < (length + position)) {
  37168. spqcd = {};
  37169. if (spqcdSize == 8) {
  37170. spqcd.epsilon = data[j++] >> 3;
  37171. spqcd.mu = 0;
  37172. } else {
  37173. spqcd.epsilon = data[j] >> 3;
  37174. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  37175. j += 2;
  37176. }
  37177. spqcds.push(spqcd);
  37178. }
  37179. qcc.SPqcds = spqcds;
  37180. if (context.mainHeader) {
  37181. context.QCC[cqcc] = qcc;
  37182. } else {
  37183. context.currentTile.QCC[cqcc] = qcc;
  37184. }
  37185. break;
  37186. case 0xFF52: // Coding style default (COD)
  37187. length = readUint16(data, position);
  37188. var cod = {};
  37189. j = position + 2;
  37190. var scod = data[j++];
  37191. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  37192. cod.sopMarkerUsed = !!(scod & 2);
  37193. cod.ephMarkerUsed = !!(scod & 4);
  37194. cod.progressionOrder = data[j++];
  37195. cod.layersCount = readUint16(data, j);
  37196. j += 2;
  37197. cod.multipleComponentTransform = data[j++];
  37198. cod.decompositionLevelsCount = data[j++];
  37199. cod.xcb = (data[j++] & 0xF) + 2;
  37200. cod.ycb = (data[j++] & 0xF) + 2;
  37201. var blockStyle = data[j++];
  37202. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  37203. cod.resetContextProbabilities = !!(blockStyle & 2);
  37204. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  37205. cod.verticalyStripe = !!(blockStyle & 8);
  37206. cod.predictableTermination = !!(blockStyle & 16);
  37207. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  37208. cod.reversibleTransformation = data[j++];
  37209. if (cod.entropyCoderWithCustomPrecincts) {
  37210. var precinctsSizes = [];
  37211. while (j < length + position) {
  37212. var precinctsSize = data[j++];
  37213. precinctsSizes.push({
  37214. PPx: precinctsSize & 0xF,
  37215. PPy: precinctsSize >> 4
  37216. });
  37217. }
  37218. cod.precinctsSizes = precinctsSizes;
  37219. }
  37220. if (cod.sopMarkerUsed || cod.ephMarkerUsed ||
  37221. cod.selectiveArithmeticCodingBypass ||
  37222. cod.resetContextProbabilities ||
  37223. cod.terminationOnEachCodingPass ||
  37224. cod.verticalyStripe || cod.predictableTermination) {
  37225. throw 'Unsupported COD options: ' +
  37226. globalScope.JSON.stringify(cod);
  37227. }
  37228. if (context.mainHeader) {
  37229. context.COD = cod;
  37230. } else {
  37231. context.currentTile.COD = cod;
  37232. context.currentTile.COC = [];
  37233. }
  37234. break;
  37235. case 0xFF90: // Start of tile-part (SOT)
  37236. length = readUint16(data, position);
  37237. tile = {};
  37238. tile.index = readUint16(data, position + 2);
  37239. tile.length = readUint32(data, position + 4);
  37240. tile.dataEnd = tile.length + position - 2;
  37241. tile.partIndex = data[position + 8];
  37242. tile.partsCount = data[position + 9];
  37243. context.mainHeader = false;
  37244. if (tile.partIndex === 0) {
  37245. // reset component specific settings
  37246. tile.COD = context.COD;
  37247. tile.COC = context.COC.slice(0); // clone of the global COC
  37248. tile.QCD = context.QCD;
  37249. tile.QCC = context.QCC.slice(0); // clone of the global COC
  37250. }
  37251. context.currentTile = tile;
  37252. break;
  37253. case 0xFF93: // Start of data (SOD)
  37254. tile = context.currentTile;
  37255. if (tile.partIndex === 0) {
  37256. initializeTile(context, tile.index);
  37257. buildPackets(context);
  37258. }
  37259. // moving to the end of the data
  37260. length = tile.dataEnd - position;
  37261. parseTilePackets(context, data, position, length);
  37262. break;
  37263. case 0xFF64: // Comment (COM)
  37264. length = readUint16(data, position);
  37265. // skipping content
  37266. break;
  37267. case 0xFF53: // Coding style component (COC)
  37268. throw 'Codestream code 0xFF53 (COC) is not implemented';
  37269. default:
  37270. throw 'Unknown codestream code: ' + code.toString(16);
  37271. }
  37272. position += length;
  37273. }
  37274. } catch (e) {
  37275. if (this.failOnCorruptedImage) {
  37276. error('JPX error: ' + e);
  37277. } else {
  37278. warn('JPX error: ' + e + '. Trying to recover');
  37279. }
  37280. }
  37281. this.tiles = transformComponents(context);
  37282. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  37283. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  37284. this.componentsCount = context.SIZ.Csiz;
  37285. }
  37286. };
  37287. function calculateComponentDimensions(component, siz) {
  37288. // Section B.2 Component mapping
  37289. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  37290. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  37291. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  37292. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  37293. component.width = component.x1 - component.x0;
  37294. component.height = component.y1 - component.y0;
  37295. }
  37296. function calculateTileGrids(context, components) {
  37297. var siz = context.SIZ;
  37298. // Section B.3 Division into tile and tile-components
  37299. var tile, tiles = [];
  37300. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  37301. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  37302. for (var q = 0; q < numYtiles; q++) {
  37303. for (var p = 0; p < numXtiles; p++) {
  37304. tile = {};
  37305. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  37306. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  37307. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  37308. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  37309. tile.width = tile.tx1 - tile.tx0;
  37310. tile.height = tile.ty1 - tile.ty0;
  37311. tile.components = [];
  37312. tiles.push(tile);
  37313. }
  37314. }
  37315. context.tiles = tiles;
  37316. var componentsCount = siz.Csiz;
  37317. for (var i = 0, ii = componentsCount; i < ii; i++) {
  37318. var component = components[i];
  37319. for (var j = 0, jj = tiles.length; j < jj; j++) {
  37320. var tileComponent = {};
  37321. tile = tiles[j];
  37322. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  37323. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  37324. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  37325. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  37326. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  37327. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  37328. tile.components[i] = tileComponent;
  37329. }
  37330. }
  37331. }
  37332. function getBlocksDimensions(context, component, r) {
  37333. var codOrCoc = component.codingStyleParameters;
  37334. var result = {};
  37335. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  37336. result.PPx = 15;
  37337. result.PPy = 15;
  37338. } else {
  37339. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  37340. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  37341. }
  37342. // calculate codeblock size as described in section B.7
  37343. result.xcb_ = (r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  37344. Math.min(codOrCoc.xcb, result.PPx));
  37345. result.ycb_ = (r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  37346. Math.min(codOrCoc.ycb, result.PPy));
  37347. return result;
  37348. }
  37349. function buildPrecincts(context, resolution, dimensions) {
  37350. // Section B.6 Division resolution to precincts
  37351. var precinctWidth = 1 << dimensions.PPx;
  37352. var precinctHeight = 1 << dimensions.PPy;
  37353. var numprecinctswide = (resolution.trx1 > resolution.trx0 ?
  37354. Math.ceil(resolution.trx1 / precinctWidth) -
  37355. Math.floor(resolution.trx0 / precinctWidth) : 0);
  37356. var numprecinctshigh = (resolution.try1 > resolution.try0 ?
  37357. Math.ceil(resolution.try1 / precinctHeight) -
  37358. Math.floor(resolution.try0 / precinctHeight) : 0);
  37359. var numprecincts = numprecinctswide * numprecinctshigh;
  37360. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  37361. precinctWidth;
  37362. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  37363. precinctHeight;
  37364. resolution.precinctParameters = {
  37365. precinctXOffset: precinctXOffset,
  37366. precinctYOffset: precinctYOffset,
  37367. precinctWidth: precinctWidth,
  37368. precinctHeight: precinctHeight,
  37369. numprecinctswide: numprecinctswide,
  37370. numprecinctshigh: numprecinctshigh,
  37371. numprecincts: numprecincts
  37372. };
  37373. }
  37374. function buildCodeblocks(context, subband, dimensions) {
  37375. // Section B.7 Division sub-band into code-blocks
  37376. var xcb_ = dimensions.xcb_;
  37377. var ycb_ = dimensions.ycb_;
  37378. var codeblockWidth = 1 << xcb_;
  37379. var codeblockHeight = 1 << ycb_;
  37380. var cbx0 = subband.tbx0 >> xcb_;
  37381. var cby0 = subband.tby0 >> ycb_;
  37382. var cbx1 = (subband.tbx1 + codeblockWidth - 1) >> xcb_;
  37383. var cby1 = (subband.tby1 + codeblockHeight - 1) >> ycb_;
  37384. var precinctParameters = subband.resolution.precinctParameters;
  37385. var codeblocks = [];
  37386. var precincts = [];
  37387. var i, j, codeblock, precinctNumber;
  37388. for (j = cby0; j < cby1; j++) {
  37389. for (i = cbx0; i < cbx1; i++) {
  37390. codeblock = {
  37391. cbx: i,
  37392. cby: j,
  37393. tbx0: codeblockWidth * i,
  37394. tby0: codeblockHeight * j,
  37395. tbx1: codeblockWidth * (i + 1),
  37396. tby1: codeblockHeight * (j + 1)
  37397. };
  37398. // calculate precinct number
  37399. var pi = Math.floor((codeblock.tbx0 -
  37400. precinctParameters.precinctXOffset) /
  37401. precinctParameters.precinctWidth);
  37402. var pj = Math.floor((codeblock.tby0 -
  37403. precinctParameters.precinctYOffset) /
  37404. precinctParameters.precinctHeight);
  37405. precinctNumber = pj + pi * precinctParameters.numprecinctswide;
  37406. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  37407. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  37408. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  37409. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  37410. codeblock.precinctNumber = precinctNumber;
  37411. codeblock.subbandType = subband.type;
  37412. codeblock.Lblock = 3;
  37413. codeblocks.push(codeblock);
  37414. // building precinct for the sub-band
  37415. var precinct = precincts[precinctNumber];
  37416. if (precinct !== undefined) {
  37417. if (i < precinct.cbxMin) {
  37418. precinct.cbxMin = i;
  37419. } else if (i > precinct.cbxMax) {
  37420. precinct.cbxMax = i;
  37421. }
  37422. if (j < precinct.cbyMin) {
  37423. precinct.cbxMin = j;
  37424. } else if (j > precinct.cbyMax) {
  37425. precinct.cbyMax = j;
  37426. }
  37427. } else {
  37428. precincts[precinctNumber] = precinct = {
  37429. cbxMin: i,
  37430. cbyMin: j,
  37431. cbxMax: i,
  37432. cbyMax: j
  37433. };
  37434. }
  37435. codeblock.precinct = precinct;
  37436. }
  37437. }
  37438. subband.codeblockParameters = {
  37439. codeblockWidth: xcb_,
  37440. codeblockHeight: ycb_,
  37441. numcodeblockwide: cbx1 - cbx0 + 1,
  37442. numcodeblockhigh: cby1 - cby1 + 1
  37443. };
  37444. subband.codeblocks = codeblocks;
  37445. subband.precincts = precincts;
  37446. }
  37447. function createPacket(resolution, precinctNumber, layerNumber) {
  37448. var precinctCodeblocks = [];
  37449. // Section B.10.8 Order of info in packet
  37450. var subbands = resolution.subbands;
  37451. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  37452. for (var i = 0, ii = subbands.length; i < ii; i++) {
  37453. var subband = subbands[i];
  37454. var codeblocks = subband.codeblocks;
  37455. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  37456. var codeblock = codeblocks[j];
  37457. if (codeblock.precinctNumber != precinctNumber) {
  37458. continue;
  37459. }
  37460. precinctCodeblocks.push(codeblock);
  37461. }
  37462. }
  37463. return {
  37464. layerNumber: layerNumber,
  37465. codeblocks: precinctCodeblocks
  37466. };
  37467. }
  37468. function LayerResolutionComponentPositionIterator(context) {
  37469. var siz = context.SIZ;
  37470. var tileIndex = context.currentTile.index;
  37471. var tile = context.tiles[tileIndex];
  37472. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37473. var componentsCount = siz.Csiz;
  37474. var maxDecompositionLevelsCount = 0;
  37475. for (var q = 0; q < componentsCount; q++) {
  37476. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37477. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37478. }
  37479. var l = 0, r = 0, i = 0, k = 0;
  37480. this.nextPacket = function JpxImage_nextPacket() {
  37481. // Section B.12.1.1 Layer-resolution-component-position
  37482. for (; l < layersCount; l++) {
  37483. for (; r <= maxDecompositionLevelsCount; r++) {
  37484. for (; i < componentsCount; i++) {
  37485. var component = tile.components[i];
  37486. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37487. continue;
  37488. }
  37489. var resolution = component.resolutions[r];
  37490. var numprecincts = resolution.precinctParameters.numprecincts;
  37491. for (; k < numprecincts;) {
  37492. var packet = createPacket(resolution, k, l);
  37493. k++;
  37494. return packet;
  37495. }
  37496. k = 0;
  37497. }
  37498. i = 0;
  37499. }
  37500. r = 0;
  37501. }
  37502. throw 'Out of packets';
  37503. };
  37504. }
  37505. function ResolutionLayerComponentPositionIterator(context) {
  37506. var siz = context.SIZ;
  37507. var tileIndex = context.currentTile.index;
  37508. var tile = context.tiles[tileIndex];
  37509. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  37510. var componentsCount = siz.Csiz;
  37511. var maxDecompositionLevelsCount = 0;
  37512. for (var q = 0; q < componentsCount; q++) {
  37513. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  37514. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  37515. }
  37516. var r = 0, l = 0, i = 0, k = 0;
  37517. this.nextPacket = function JpxImage_nextPacket() {
  37518. // Section B.12.1.2 Resolution-layer-component-position
  37519. for (; r <= maxDecompositionLevelsCount; r++) {
  37520. for (; l < layersCount; l++) {
  37521. for (; i < componentsCount; i++) {
  37522. var component = tile.components[i];
  37523. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  37524. continue;
  37525. }
  37526. var resolution = component.resolutions[r];
  37527. var numprecincts = resolution.precinctParameters.numprecincts;
  37528. for (; k < numprecincts;) {
  37529. var packet = createPacket(resolution, k, l);
  37530. k++;
  37531. return packet;
  37532. }
  37533. k = 0;
  37534. }
  37535. i = 0;
  37536. }
  37537. l = 0;
  37538. }
  37539. throw 'Out of packets';
  37540. };
  37541. }
  37542. function buildPackets(context) {
  37543. var siz = context.SIZ;
  37544. var tileIndex = context.currentTile.index;
  37545. var tile = context.tiles[tileIndex];
  37546. var componentsCount = siz.Csiz;
  37547. // Creating resolutions and sub-bands for each component
  37548. for (var c = 0; c < componentsCount; c++) {
  37549. var component = tile.components[c];
  37550. var decompositionLevelsCount =
  37551. component.codingStyleParameters.decompositionLevelsCount;
  37552. // Section B.5 Resolution levels and sub-bands
  37553. var resolutions = [];
  37554. var subbands = [];
  37555. for (var r = 0; r <= decompositionLevelsCount; r++) {
  37556. var blocksDimensions = getBlocksDimensions(context, component, r);
  37557. var resolution = {};
  37558. var scale = 1 << (decompositionLevelsCount - r);
  37559. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  37560. resolution.try0 = Math.ceil(component.tcy0 / scale);
  37561. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  37562. resolution.try1 = Math.ceil(component.tcy1 / scale);
  37563. buildPrecincts(context, resolution, blocksDimensions);
  37564. resolutions.push(resolution);
  37565. var subband;
  37566. if (r === 0) {
  37567. // one sub-band (LL) with last decomposition
  37568. subband = {};
  37569. subband.type = 'LL';
  37570. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  37571. subband.tby0 = Math.ceil(component.tcy0 / scale);
  37572. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  37573. subband.tby1 = Math.ceil(component.tcy1 / scale);
  37574. subband.resolution = resolution;
  37575. buildCodeblocks(context, subband, blocksDimensions);
  37576. subbands.push(subband);
  37577. resolution.subbands = [subband];
  37578. } else {
  37579. var bscale = 1 << (decompositionLevelsCount - r + 1);
  37580. var resolutionSubbands = [];
  37581. // three sub-bands (HL, LH and HH) with rest of decompositions
  37582. subband = {};
  37583. subband.type = 'HL';
  37584. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37585. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  37586. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37587. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  37588. subband.resolution = resolution;
  37589. buildCodeblocks(context, subband, blocksDimensions);
  37590. subbands.push(subband);
  37591. resolutionSubbands.push(subband);
  37592. subband = {};
  37593. subband.type = 'LH';
  37594. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  37595. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37596. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  37597. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37598. subband.resolution = resolution;
  37599. buildCodeblocks(context, subband, blocksDimensions);
  37600. subbands.push(subband);
  37601. resolutionSubbands.push(subband);
  37602. subband = {};
  37603. subband.type = 'HH';
  37604. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  37605. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  37606. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  37607. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  37608. subband.resolution = resolution;
  37609. buildCodeblocks(context, subband, blocksDimensions);
  37610. subbands.push(subband);
  37611. resolutionSubbands.push(subband);
  37612. resolution.subbands = resolutionSubbands;
  37613. }
  37614. }
  37615. component.resolutions = resolutions;
  37616. component.subbands = subbands;
  37617. }
  37618. // Generate the packets sequence
  37619. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  37620. switch (progressionOrder) {
  37621. case 0:
  37622. tile.packetsIterator =
  37623. new LayerResolutionComponentPositionIterator(context);
  37624. break;
  37625. case 1:
  37626. tile.packetsIterator =
  37627. new ResolutionLayerComponentPositionIterator(context);
  37628. break;
  37629. default:
  37630. throw 'Unsupported progression order ' + progressionOrder;
  37631. }
  37632. }
  37633. function parseTilePackets(context, data, offset, dataLength) {
  37634. var position = 0;
  37635. var buffer, bufferSize = 0, skipNextBit = false;
  37636. function readBits(count) {
  37637. while (bufferSize < count) {
  37638. var b = data[offset + position];
  37639. position++;
  37640. if (skipNextBit) {
  37641. buffer = (buffer << 7) | b;
  37642. bufferSize += 7;
  37643. skipNextBit = false;
  37644. } else {
  37645. buffer = (buffer << 8) | b;
  37646. bufferSize += 8;
  37647. }
  37648. if (b == 0xFF) {
  37649. skipNextBit = true;
  37650. }
  37651. }
  37652. bufferSize -= count;
  37653. return (buffer >>> bufferSize) & ((1 << count) - 1);
  37654. }
  37655. function alignToByte() {
  37656. bufferSize = 0;
  37657. if (skipNextBit) {
  37658. position++;
  37659. skipNextBit = false;
  37660. }
  37661. }
  37662. function readCodingpasses() {
  37663. if (readBits(1) === 0) {
  37664. return 1;
  37665. }
  37666. if (readBits(1) === 0) {
  37667. return 2;
  37668. }
  37669. var value = readBits(2);
  37670. if (value < 3) {
  37671. return value + 3;
  37672. }
  37673. value = readBits(5);
  37674. if (value < 31) {
  37675. return value + 6;
  37676. }
  37677. value = readBits(7);
  37678. return value + 37;
  37679. }
  37680. var tileIndex = context.currentTile.index;
  37681. var tile = context.tiles[tileIndex];
  37682. var packetsIterator = tile.packetsIterator;
  37683. while (position < dataLength) {
  37684. var packet = packetsIterator.nextPacket();
  37685. if (!readBits(1)) {
  37686. alignToByte();
  37687. continue;
  37688. }
  37689. var layerNumber = packet.layerNumber;
  37690. var queue = [], codeblock;
  37691. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  37692. codeblock = packet.codeblocks[i];
  37693. var precinct = codeblock.precinct;
  37694. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  37695. var codeblockRow = codeblock.cby - precinct.cbyMin;
  37696. var codeblockIncluded = false;
  37697. var firstTimeInclusion = false;
  37698. var valueReady;
  37699. if ('included' in codeblock) {
  37700. codeblockIncluded = !!readBits(1);
  37701. } else {
  37702. // reading inclusion tree
  37703. precinct = codeblock.precinct;
  37704. var inclusionTree, zeroBitPlanesTree;
  37705. if ('inclusionTree' in precinct) {
  37706. inclusionTree = precinct.inclusionTree;
  37707. } else {
  37708. // building inclusion and zero bit-planes trees
  37709. var width = precinct.cbxMax - precinct.cbxMin + 1;
  37710. var height = precinct.cbyMax - precinct.cbyMin + 1;
  37711. inclusionTree = new InclusionTree(width, height, layerNumber);
  37712. zeroBitPlanesTree = new TagTree(width, height);
  37713. precinct.inclusionTree = inclusionTree;
  37714. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  37715. }
  37716. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  37717. while (true) {
  37718. if (readBits(1)) {
  37719. valueReady = !inclusionTree.nextLevel();
  37720. if (valueReady) {
  37721. codeblock.included = true;
  37722. codeblockIncluded = firstTimeInclusion = true;
  37723. break;
  37724. }
  37725. } else {
  37726. inclusionTree.incrementValue(layerNumber);
  37727. break;
  37728. }
  37729. }
  37730. }
  37731. }
  37732. if (!codeblockIncluded) {
  37733. continue;
  37734. }
  37735. if (firstTimeInclusion) {
  37736. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  37737. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  37738. while (true) {
  37739. if (readBits(1)) {
  37740. valueReady = !zeroBitPlanesTree.nextLevel();
  37741. if (valueReady) {
  37742. break;
  37743. }
  37744. } else {
  37745. zeroBitPlanesTree.incrementValue();
  37746. }
  37747. }
  37748. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  37749. }
  37750. var codingpasses = readCodingpasses();
  37751. while (readBits(1)) {
  37752. codeblock.Lblock++;
  37753. }
  37754. var codingpassesLog2 = log2(codingpasses);
  37755. // rounding down log2
  37756. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  37757. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  37758. var codedDataLength = readBits(bits);
  37759. queue.push({
  37760. codeblock: codeblock,
  37761. codingpasses: codingpasses,
  37762. dataLength: codedDataLength
  37763. });
  37764. }
  37765. alignToByte();
  37766. while (queue.length > 0) {
  37767. var packetItem = queue.shift();
  37768. codeblock = packetItem.codeblock;
  37769. if (!('data' in codeblock)) {
  37770. codeblock.data = [];
  37771. }
  37772. codeblock.data.push({
  37773. data: data,
  37774. start: offset + position,
  37775. end: offset + position + packetItem.dataLength,
  37776. codingpasses: packetItem.codingpasses
  37777. });
  37778. position += packetItem.dataLength;
  37779. }
  37780. }
  37781. return position;
  37782. }
  37783. function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
  37784. delta, mb, reversible, segmentationSymbolUsed) {
  37785. var x0 = subband.tbx0;
  37786. var y0 = subband.tby0;
  37787. var width = subband.tbx1 - subband.tbx0;
  37788. var codeblocks = subband.codeblocks;
  37789. var right = subband.type.charAt(0) === 'H' ? 1 : 0;
  37790. var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0;
  37791. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  37792. var codeblock = codeblocks[i];
  37793. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  37794. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  37795. if (blockWidth === 0 || blockHeight === 0) {
  37796. continue;
  37797. }
  37798. if (!('data' in codeblock)) {
  37799. continue;
  37800. }
  37801. var bitModel, currentCodingpassType;
  37802. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  37803. codeblock.zeroBitPlanes, mb);
  37804. currentCodingpassType = 2; // first bit plane starts from cleanup
  37805. // collect data
  37806. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  37807. var j, jj, dataItem;
  37808. for (j = 0, jj = data.length; j < jj; j++) {
  37809. dataItem = data[j];
  37810. totalLength += dataItem.end - dataItem.start;
  37811. codingpasses += dataItem.codingpasses;
  37812. }
  37813. var encodedData = new Uint8Array(totalLength);
  37814. var position = 0;
  37815. for (j = 0, jj = data.length; j < jj; j++) {
  37816. dataItem = data[j];
  37817. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  37818. encodedData.set(chunk, position);
  37819. position += chunk.length;
  37820. }
  37821. // decoding the item
  37822. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  37823. bitModel.setDecoder(decoder);
  37824. for (j = 0; j < codingpasses; j++) {
  37825. switch (currentCodingpassType) {
  37826. case 0:
  37827. bitModel.runSignificancePropogationPass();
  37828. break;
  37829. case 1:
  37830. bitModel.runMagnitudeRefinementPass();
  37831. break;
  37832. case 2:
  37833. bitModel.runCleanupPass();
  37834. if (segmentationSymbolUsed) {
  37835. bitModel.checkSegmentationSymbol();
  37836. }
  37837. break;
  37838. }
  37839. currentCodingpassType = (currentCodingpassType + 1) % 3;
  37840. }
  37841. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  37842. var sign = bitModel.coefficentsSign;
  37843. var magnitude = bitModel.coefficentsMagnitude;
  37844. var bitsDecoded = bitModel.bitsDecoded;
  37845. var magnitudeCorrection = reversible ? 0 : 0.5;
  37846. var k, n, nb;
  37847. position = 0;
  37848. // Do the interleaving of Section F.3.3 here, so we do not need
  37849. // to copy later. LL level is not interleaved, just copied.
  37850. var interleave = (subband.type !== 'LL');
  37851. for (j = 0; j < blockHeight; j++) {
  37852. var row = (offset / width) | 0; // row in the non-interleaved subband
  37853. var levelOffset = 2 * row * (levelWidth - width) + right + bottom;
  37854. for (k = 0; k < blockWidth; k++) {
  37855. n = magnitude[position];
  37856. if (n !== 0) {
  37857. n = (n + magnitudeCorrection) * delta;
  37858. if (sign[position] !== 0) {
  37859. n = -n;
  37860. }
  37861. nb = bitsDecoded[position];
  37862. var pos = interleave ? (levelOffset + (offset << 1)) : offset;
  37863. if (reversible && (nb >= mb)) {
  37864. coefficients[pos] = n;
  37865. } else {
  37866. coefficients[pos] = n * (1 << (mb - nb));
  37867. }
  37868. }
  37869. offset++;
  37870. position++;
  37871. }
  37872. offset += width - blockWidth;
  37873. }
  37874. }
  37875. }
  37876. function transformTile(context, tile, c) {
  37877. var component = tile.components[c];
  37878. var codingStyleParameters = component.codingStyleParameters;
  37879. var quantizationParameters = component.quantizationParameters;
  37880. var decompositionLevelsCount =
  37881. codingStyleParameters.decompositionLevelsCount;
  37882. var spqcds = quantizationParameters.SPqcds;
  37883. var scalarExpounded = quantizationParameters.scalarExpounded;
  37884. var guardBits = quantizationParameters.guardBits;
  37885. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  37886. var precision = context.components[c].precision;
  37887. var reversible = codingStyleParameters.reversibleTransformation;
  37888. var transform = (reversible ? new ReversibleTransform() :
  37889. new IrreversibleTransform());
  37890. var subbandCoefficients = [];
  37891. var b = 0;
  37892. for (var i = 0; i <= decompositionLevelsCount; i++) {
  37893. var resolution = component.resolutions[i];
  37894. var width = resolution.trx1 - resolution.trx0;
  37895. var height = resolution.try1 - resolution.try0;
  37896. // Allocate space for the whole sublevel.
  37897. var coefficients = new Float32Array(width * height);
  37898. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  37899. var mu, epsilon;
  37900. if (!scalarExpounded) {
  37901. // formula E-5
  37902. mu = spqcds[0].mu;
  37903. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  37904. } else {
  37905. mu = spqcds[b].mu;
  37906. epsilon = spqcds[b].epsilon;
  37907. b++;
  37908. }
  37909. var subband = resolution.subbands[j];
  37910. var gainLog2 = SubbandsGainLog2[subband.type];
  37911. // calulate quantization coefficient (Section E.1.1.1)
  37912. var delta = (reversible ? 1 :
  37913. Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048));
  37914. var mb = (guardBits + epsilon - 1);
  37915. // In the first resolution level, copyCoefficients will fill the
  37916. // whole array with coefficients. In the succeding passes,
  37917. // copyCoefficients will consecutively fill in the values that belong
  37918. // to the interleaved positions of the HL, LH, and HH coefficients.
  37919. // The LL coefficients will then be interleaved in Transform.iterate().
  37920. copyCoefficients(coefficients, width, height, subband, delta, mb,
  37921. reversible, segmentationSymbolUsed);
  37922. }
  37923. subbandCoefficients.push({
  37924. width: width,
  37925. height: height,
  37926. items: coefficients
  37927. });
  37928. }
  37929. var result = transform.calculate(subbandCoefficients,
  37930. component.tcx0, component.tcy0);
  37931. return {
  37932. left: component.tcx0,
  37933. top: component.tcy0,
  37934. width: result.width,
  37935. height: result.height,
  37936. items: result.items
  37937. };
  37938. }
  37939. function transformComponents(context) {
  37940. var siz = context.SIZ;
  37941. var components = context.components;
  37942. var componentsCount = siz.Csiz;
  37943. var resultImages = [];
  37944. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  37945. var tile = context.tiles[i];
  37946. var transformedTiles = [];
  37947. var c;
  37948. for (c = 0; c < componentsCount; c++) {
  37949. transformedTiles[c] = transformTile(context, tile, c);
  37950. }
  37951. var tile0 = transformedTiles[0];
  37952. var out = new Uint8Array(tile0.items.length * componentsCount);
  37953. var result = {
  37954. left: tile0.left,
  37955. top: tile0.top,
  37956. width: tile0.width,
  37957. height: tile0.height,
  37958. items: out
  37959. };
  37960. // Section G.2.2 Inverse multi component transform
  37961. var shift, offset, max, min;
  37962. var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val;
  37963. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  37964. var fourComponents = componentsCount === 4;
  37965. var y0items = transformedTiles[0].items;
  37966. var y1items = transformedTiles[1].items;
  37967. var y2items = transformedTiles[2].items;
  37968. var y3items = fourComponents ? transformedTiles[3].items : null;
  37969. // HACK: The multiple component transform formulas below assume that
  37970. // all components have the same precision. With this in mind, we
  37971. // compute shift and offset only once.
  37972. shift = components[0].precision - 8;
  37973. offset = (128 << shift) + 0.5;
  37974. max = (127.5 * (1 << shift));
  37975. min = -max;
  37976. var component0 = tile.components[0];
  37977. if (!component0.codingStyleParameters.reversibleTransformation) {
  37978. // inverse irreversible multiple component transform
  37979. for (j = 0, jj = y0items.length; j < jj; ++j) {
  37980. y0 = y0items[j];
  37981. y1 = y1items[j];
  37982. y2 = y2items[j];
  37983. r = y0 + 1.402 * y2;
  37984. g = y0 - 0.34413 * y1 - 0.71414 * y2;
  37985. b = y0 + 1.772 * y1;
  37986. out[pos++] = r <= min ? 0 : r >= max ? 255 : (r + offset) >> shift;
  37987. out[pos++] = g <= min ? 0 : g >= max ? 255 : (g + offset) >> shift;
  37988. out[pos++] = b <= min ? 0 : b >= max ? 255 : (b + offset) >> shift;
  37989. if (fourComponents) {
  37990. k = y3items[j];
  37991. out[pos++] =
  37992. k <= min ? 0 : k >= max ? 255 : (k + offset) >> shift;
  37993. }
  37994. }
  37995. } else {
  37996. // inverse reversible multiple component transform
  37997. for (j = 0, jj = y0items.length; j < jj; ++j) {
  37998. y0 = y0items[j];
  37999. y1 = y1items[j];
  38000. y2 = y2items[j];
  38001. g = y0 - ((y2 + y1) >> 2);
  38002. r = g + y2;
  38003. b = g + y1;
  38004. out[pos++] = r <= min ? 0 : r >= max ? 255 : (r + offset) >> shift;
  38005. out[pos++] = g <= min ? 0 : g >= max ? 255 : (g + offset) >> shift;
  38006. out[pos++] = b <= min ? 0 : b >= max ? 255 : (b + offset) >> shift;
  38007. if (fourComponents) {
  38008. k = y3items[j];
  38009. out[pos++] =
  38010. k <= min ? 0 : k >= max ? 255 : (k + offset) >> shift;
  38011. }
  38012. }
  38013. }
  38014. } else { // no multi-component transform
  38015. for (c = 0; c < componentsCount; c++) {
  38016. var items = transformedTiles[c].items;
  38017. shift = components[c].precision - 8;
  38018. offset = (128 << shift) + 0.5;
  38019. max = (127.5 * (1 << shift));
  38020. min = -max;
  38021. for (pos = c, j = 0, jj = items.length; j < jj; j++) {
  38022. val = items[j];
  38023. out[pos] = val <= min ? 0 :
  38024. val >= max ? 255 : (val + offset) >> shift;
  38025. pos += componentsCount;
  38026. }
  38027. }
  38028. }
  38029. resultImages.push(result);
  38030. }
  38031. return resultImages;
  38032. }
  38033. function initializeTile(context, tileIndex) {
  38034. var siz = context.SIZ;
  38035. var componentsCount = siz.Csiz;
  38036. var tile = context.tiles[tileIndex];
  38037. for (var c = 0; c < componentsCount; c++) {
  38038. var component = tile.components[c];
  38039. var qcdOrQcc = (c in context.currentTile.QCC ?
  38040. context.currentTile.QCC[c] : context.currentTile.QCD);
  38041. component.quantizationParameters = qcdOrQcc;
  38042. var codOrCoc = (c in context.currentTile.COC ?
  38043. context.currentTile.COC[c] : context.currentTile.COD);
  38044. component.codingStyleParameters = codOrCoc;
  38045. }
  38046. tile.codingStyleDefaultParameters = context.currentTile.COD;
  38047. }
  38048. // Section B.10.2 Tag trees
  38049. var TagTree = (function TagTreeClosure() {
  38050. function TagTree(width, height) {
  38051. var levelsLength = log2(Math.max(width, height)) + 1;
  38052. this.levels = [];
  38053. for (var i = 0; i < levelsLength; i++) {
  38054. var level = {
  38055. width: width,
  38056. height: height,
  38057. items: []
  38058. };
  38059. this.levels.push(level);
  38060. width = Math.ceil(width / 2);
  38061. height = Math.ceil(height / 2);
  38062. }
  38063. }
  38064. TagTree.prototype = {
  38065. reset: function TagTree_reset(i, j) {
  38066. var currentLevel = 0, value = 0, level;
  38067. while (currentLevel < this.levels.length) {
  38068. level = this.levels[currentLevel];
  38069. var index = i + j * level.width;
  38070. if (index in level.items) {
  38071. value = level.items[index];
  38072. break;
  38073. }
  38074. level.index = index;
  38075. i >>= 1;
  38076. j >>= 1;
  38077. currentLevel++;
  38078. }
  38079. currentLevel--;
  38080. level = this.levels[currentLevel];
  38081. level.items[level.index] = value;
  38082. this.currentLevel = currentLevel;
  38083. delete this.value;
  38084. },
  38085. incrementValue: function TagTree_incrementValue() {
  38086. var level = this.levels[this.currentLevel];
  38087. level.items[level.index]++;
  38088. },
  38089. nextLevel: function TagTree_nextLevel() {
  38090. var currentLevel = this.currentLevel;
  38091. var level = this.levels[currentLevel];
  38092. var value = level.items[level.index];
  38093. currentLevel--;
  38094. if (currentLevel < 0) {
  38095. this.value = value;
  38096. return false;
  38097. }
  38098. this.currentLevel = currentLevel;
  38099. level = this.levels[currentLevel];
  38100. level.items[level.index] = value;
  38101. return true;
  38102. }
  38103. };
  38104. return TagTree;
  38105. })();
  38106. var InclusionTree = (function InclusionTreeClosure() {
  38107. function InclusionTree(width, height, defaultValue) {
  38108. var levelsLength = log2(Math.max(width, height)) + 1;
  38109. this.levels = [];
  38110. for (var i = 0; i < levelsLength; i++) {
  38111. var items = new Uint8Array(width * height);
  38112. for (var j = 0, jj = items.length; j < jj; j++) {
  38113. items[j] = defaultValue;
  38114. }
  38115. var level = {
  38116. width: width,
  38117. height: height,
  38118. items: items
  38119. };
  38120. this.levels.push(level);
  38121. width = Math.ceil(width / 2);
  38122. height = Math.ceil(height / 2);
  38123. }
  38124. }
  38125. InclusionTree.prototype = {
  38126. reset: function InclusionTree_reset(i, j, stopValue) {
  38127. var currentLevel = 0;
  38128. while (currentLevel < this.levels.length) {
  38129. var level = this.levels[currentLevel];
  38130. var index = i + j * level.width;
  38131. level.index = index;
  38132. var value = level.items[index];
  38133. if (value == 0xFF) {
  38134. break;
  38135. }
  38136. if (value > stopValue) {
  38137. this.currentLevel = currentLevel;
  38138. // already know about this one, propagating the value to top levels
  38139. this.propagateValues();
  38140. return false;
  38141. }
  38142. i >>= 1;
  38143. j >>= 1;
  38144. currentLevel++;
  38145. }
  38146. this.currentLevel = currentLevel - 1;
  38147. return true;
  38148. },
  38149. incrementValue: function InclusionTree_incrementValue(stopValue) {
  38150. var level = this.levels[this.currentLevel];
  38151. level.items[level.index] = stopValue + 1;
  38152. this.propagateValues();
  38153. },
  38154. propagateValues: function InclusionTree_propagateValues() {
  38155. var levelIndex = this.currentLevel;
  38156. var level = this.levels[levelIndex];
  38157. var currentValue = level.items[level.index];
  38158. while (--levelIndex >= 0) {
  38159. level = this.levels[levelIndex];
  38160. level.items[level.index] = currentValue;
  38161. }
  38162. },
  38163. nextLevel: function InclusionTree_nextLevel() {
  38164. var currentLevel = this.currentLevel;
  38165. var level = this.levels[currentLevel];
  38166. var value = level.items[level.index];
  38167. level.items[level.index] = 0xFF;
  38168. currentLevel--;
  38169. if (currentLevel < 0) {
  38170. return false;
  38171. }
  38172. this.currentLevel = currentLevel;
  38173. level = this.levels[currentLevel];
  38174. level.items[level.index] = value;
  38175. return true;
  38176. }
  38177. };
  38178. return InclusionTree;
  38179. })();
  38180. // Section D. Coefficient bit modeling
  38181. var BitModel = (function BitModelClosure() {
  38182. var UNIFORM_CONTEXT = 17;
  38183. var RUNLENGTH_CONTEXT = 18;
  38184. // Table D-1
  38185. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  38186. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  38187. var LLAndLHContextsLabel = new Uint8Array([
  38188. 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,
  38189. 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,
  38190. 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
  38191. ]);
  38192. var HLContextLabel = new Uint8Array([
  38193. 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,
  38194. 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,
  38195. 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
  38196. ]);
  38197. var HHContextLabel = new Uint8Array([
  38198. 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,
  38199. 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,
  38200. 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
  38201. ]);
  38202. function BitModel(width, height, subband, zeroBitPlanes, mb) {
  38203. this.width = width;
  38204. this.height = height;
  38205. this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
  38206. (subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel));
  38207. var coefficientCount = width * height;
  38208. // coefficients outside the encoding region treated as insignificant
  38209. // add border state cells for significanceState
  38210. this.neighborsSignificance = new Uint8Array(coefficientCount);
  38211. this.coefficentsSign = new Uint8Array(coefficientCount);
  38212. this.coefficentsMagnitude = mb > 14 ? new Uint32Array(coefficientCount) :
  38213. mb > 6 ? new Uint16Array(coefficientCount) :
  38214. new Uint8Array(coefficientCount);
  38215. this.processingFlags = new Uint8Array(coefficientCount);
  38216. var bitsDecoded = new Uint8Array(coefficientCount);
  38217. if (zeroBitPlanes !== 0) {
  38218. for (var i = 0; i < coefficientCount; i++) {
  38219. bitsDecoded[i] = zeroBitPlanes;
  38220. }
  38221. }
  38222. this.bitsDecoded = bitsDecoded;
  38223. this.reset();
  38224. }
  38225. BitModel.prototype = {
  38226. setDecoder: function BitModel_setDecoder(decoder) {
  38227. this.decoder = decoder;
  38228. },
  38229. reset: function BitModel_reset() {
  38230. // We have 17 contexts that are accessed via context labels,
  38231. // plus the uniform and runlength context.
  38232. this.contexts = new Int8Array(19);
  38233. // Contexts are packed into 1 byte:
  38234. // highest 7 bits carry the index, lowest bit carries mps
  38235. this.contexts[0] = (4 << 1) | 0;
  38236. this.contexts[UNIFORM_CONTEXT] = (46 << 1) | 0;
  38237. this.contexts[RUNLENGTH_CONTEXT] = (3 << 1) | 0;
  38238. },
  38239. setNeighborsSignificance:
  38240. function BitModel_setNeighborsSignificance(row, column, index) {
  38241. var neighborsSignificance = this.neighborsSignificance;
  38242. var width = this.width, height = this.height;
  38243. var left = (column > 0);
  38244. var right = (column + 1 < width);
  38245. var i;
  38246. if (row > 0) {
  38247. i = index - width;
  38248. if (left) {
  38249. neighborsSignificance[i - 1] += 0x10;
  38250. }
  38251. if (right) {
  38252. neighborsSignificance[i + 1] += 0x10;
  38253. }
  38254. neighborsSignificance[i] += 0x04;
  38255. }
  38256. if (row + 1 < height) {
  38257. i = index + width;
  38258. if (left) {
  38259. neighborsSignificance[i - 1] += 0x10;
  38260. }
  38261. if (right) {
  38262. neighborsSignificance[i + 1] += 0x10;
  38263. }
  38264. neighborsSignificance[i] += 0x04;
  38265. }
  38266. if (left) {
  38267. neighborsSignificance[index - 1] += 0x01;
  38268. }
  38269. if (right) {
  38270. neighborsSignificance[index + 1] += 0x01;
  38271. }
  38272. neighborsSignificance[index] |= 0x80;
  38273. },
  38274. runSignificancePropogationPass:
  38275. function BitModel_runSignificancePropogationPass() {
  38276. var decoder = this.decoder;
  38277. var width = this.width, height = this.height;
  38278. var coefficentsMagnitude = this.coefficentsMagnitude;
  38279. var coefficentsSign = this.coefficentsSign;
  38280. var neighborsSignificance = this.neighborsSignificance;
  38281. var processingFlags = this.processingFlags;
  38282. var contexts = this.contexts;
  38283. var labels = this.contextLabelTable;
  38284. var bitsDecoded = this.bitsDecoded;
  38285. var processedInverseMask = ~1;
  38286. var processedMask = 1;
  38287. var firstMagnitudeBitMask = 2;
  38288. for (var i0 = 0; i0 < height; i0 += 4) {
  38289. for (var j = 0; j < width; j++) {
  38290. var index = i0 * width + j;
  38291. for (var i1 = 0; i1 < 4; i1++, index += width) {
  38292. var i = i0 + i1;
  38293. if (i >= height) {
  38294. break;
  38295. }
  38296. // clear processed flag first
  38297. processingFlags[index] &= processedInverseMask;
  38298. if (coefficentsMagnitude[index] ||
  38299. !neighborsSignificance[index]) {
  38300. continue;
  38301. }
  38302. var contextLabel = labels[neighborsSignificance[index]];
  38303. var decision = decoder.readBit(contexts, contextLabel);
  38304. if (decision) {
  38305. var sign = this.decodeSignBit(i, j, index);
  38306. coefficentsSign[index] = sign;
  38307. coefficentsMagnitude[index] = 1;
  38308. this.setNeighborsSignificance(i, j, index);
  38309. processingFlags[index] |= firstMagnitudeBitMask;
  38310. }
  38311. bitsDecoded[index]++;
  38312. processingFlags[index] |= processedMask;
  38313. }
  38314. }
  38315. }
  38316. },
  38317. decodeSignBit: function BitModel_decodeSignBit(row, column, index) {
  38318. var width = this.width, height = this.height;
  38319. var coefficentsMagnitude = this.coefficentsMagnitude;
  38320. var coefficentsSign = this.coefficentsSign;
  38321. var contribution, sign0, sign1, significance1;
  38322. var contextLabel, decoded;
  38323. // calculate horizontal contribution
  38324. significance1 = (column > 0 && coefficentsMagnitude[index - 1] !== 0);
  38325. if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) {
  38326. sign1 = coefficentsSign[index + 1];
  38327. if (significance1) {
  38328. sign0 = coefficentsSign[index - 1];
  38329. contribution = 1 - sign1 - sign0;
  38330. } else {
  38331. contribution = 1 - sign1 - sign1;
  38332. }
  38333. } else if (significance1) {
  38334. sign0 = coefficentsSign[index - 1];
  38335. contribution = 1 - sign0 - sign0;
  38336. } else {
  38337. contribution = 0;
  38338. }
  38339. var horizontalContribution = 3 * contribution;
  38340. // calculate vertical contribution and combine with the horizontal
  38341. significance1 = (row > 0 && coefficentsMagnitude[index - width] !== 0);
  38342. if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) {
  38343. sign1 = coefficentsSign[index + width];
  38344. if (significance1) {
  38345. sign0 = coefficentsSign[index - width];
  38346. contribution = 1 - sign1 - sign0 + horizontalContribution;
  38347. } else {
  38348. contribution = 1 - sign1 - sign1 + horizontalContribution;
  38349. }
  38350. } else if (significance1) {
  38351. sign0 = coefficentsSign[index - width];
  38352. contribution = 1 - sign0 - sign0 + horizontalContribution;
  38353. } else {
  38354. contribution = horizontalContribution;
  38355. }
  38356. if (contribution >= 0) {
  38357. contextLabel = 9 + contribution;
  38358. decoded = this.decoder.readBit(this.contexts, contextLabel);
  38359. } else {
  38360. contextLabel = 9 - contribution;
  38361. decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1;
  38362. }
  38363. return decoded;
  38364. },
  38365. runMagnitudeRefinementPass:
  38366. function BitModel_runMagnitudeRefinementPass() {
  38367. var decoder = this.decoder;
  38368. var width = this.width, height = this.height;
  38369. var coefficentsMagnitude = this.coefficentsMagnitude;
  38370. var neighborsSignificance = this.neighborsSignificance;
  38371. var contexts = this.contexts;
  38372. var bitsDecoded = this.bitsDecoded;
  38373. var processingFlags = this.processingFlags;
  38374. var processedMask = 1;
  38375. var firstMagnitudeBitMask = 2;
  38376. var length = width * height;
  38377. var width4 = width * 4;
  38378. for (var index0 = 0, indexNext; index0 < length; index0 = indexNext) {
  38379. indexNext = Math.min(length, index0 + width4);
  38380. for (var j = 0; j < width; j++) {
  38381. for (var index = index0 + j; index < indexNext; index += width) {
  38382. // significant but not those that have just become
  38383. if (!coefficentsMagnitude[index] ||
  38384. (processingFlags[index] & processedMask) !== 0) {
  38385. continue;
  38386. }
  38387. var contextLabel = 16;
  38388. if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) {
  38389. processingFlags[index] ^= firstMagnitudeBitMask;
  38390. // first refinement
  38391. var significance = neighborsSignificance[index] & 127;
  38392. contextLabel = significance === 0 ? 15 : 14;
  38393. }
  38394. var bit = decoder.readBit(contexts, contextLabel);
  38395. coefficentsMagnitude[index] =
  38396. (coefficentsMagnitude[index] << 1) | bit;
  38397. bitsDecoded[index]++;
  38398. processingFlags[index] |= processedMask;
  38399. }
  38400. }
  38401. }
  38402. },
  38403. runCleanupPass: function BitModel_runCleanupPass() {
  38404. var decoder = this.decoder;
  38405. var width = this.width, height = this.height;
  38406. var neighborsSignificance = this.neighborsSignificance;
  38407. var coefficentsMagnitude = this.coefficentsMagnitude;
  38408. var coefficentsSign = this.coefficentsSign;
  38409. var contexts = this.contexts;
  38410. var labels = this.contextLabelTable;
  38411. var bitsDecoded = this.bitsDecoded;
  38412. var processingFlags = this.processingFlags;
  38413. var processedMask = 1;
  38414. var firstMagnitudeBitMask = 2;
  38415. var oneRowDown = width;
  38416. var twoRowsDown = width * 2;
  38417. var threeRowsDown = width * 3;
  38418. var iNext;
  38419. for (var i0 = 0; i0 < height; i0 = iNext) {
  38420. iNext = Math.min(i0 + 4, height);
  38421. var indexBase = i0 * width;
  38422. var checkAllEmpty = i0 + 3 < height;
  38423. for (var j = 0; j < width; j++) {
  38424. var index0 = indexBase + j;
  38425. // using the property: labels[neighborsSignificance[index]] == 0
  38426. // when neighborsSignificance[index] == 0
  38427. var allEmpty = (checkAllEmpty &&
  38428. processingFlags[index0] === 0 &&
  38429. processingFlags[index0 + oneRowDown] === 0 &&
  38430. processingFlags[index0 + twoRowsDown] === 0 &&
  38431. processingFlags[index0 + threeRowsDown] === 0 &&
  38432. neighborsSignificance[index0] === 0 &&
  38433. neighborsSignificance[index0 + oneRowDown] === 0 &&
  38434. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  38435. neighborsSignificance[index0 + threeRowsDown] === 0);
  38436. var i1 = 0, index = index0;
  38437. var i = i0, sign;
  38438. if (allEmpty) {
  38439. var hasSignificantCoefficent =
  38440. decoder.readBit(contexts, RUNLENGTH_CONTEXT);
  38441. if (!hasSignificantCoefficent) {
  38442. bitsDecoded[index0]++;
  38443. bitsDecoded[index0 + oneRowDown]++;
  38444. bitsDecoded[index0 + twoRowsDown]++;
  38445. bitsDecoded[index0 + threeRowsDown]++;
  38446. continue; // next column
  38447. }
  38448. i1 = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38449. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38450. if (i1 !== 0) {
  38451. i = i0 + i1;
  38452. index += i1 * width;
  38453. }
  38454. sign = this.decodeSignBit(i, j, index);
  38455. coefficentsSign[index] = sign;
  38456. coefficentsMagnitude[index] = 1;
  38457. this.setNeighborsSignificance(i, j, index);
  38458. processingFlags[index] |= firstMagnitudeBitMask;
  38459. index = index0;
  38460. for (var i2 = i0; i2 <= i; i2++, index += width) {
  38461. bitsDecoded[index]++;
  38462. }
  38463. i1++;
  38464. }
  38465. for (i = i0 + i1; i < iNext; i++, index += width) {
  38466. if (coefficentsMagnitude[index] ||
  38467. (processingFlags[index] & processedMask) !== 0) {
  38468. continue;
  38469. }
  38470. var contextLabel = labels[neighborsSignificance[index]];
  38471. var decision = decoder.readBit(contexts, contextLabel);
  38472. if (decision === 1) {
  38473. sign = this.decodeSignBit(i, j, index);
  38474. coefficentsSign[index] = sign;
  38475. coefficentsMagnitude[index] = 1;
  38476. this.setNeighborsSignificance(i, j, index);
  38477. processingFlags[index] |= firstMagnitudeBitMask;
  38478. }
  38479. bitsDecoded[index]++;
  38480. }
  38481. }
  38482. }
  38483. },
  38484. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  38485. var decoder = this.decoder;
  38486. var contexts = this.contexts;
  38487. var symbol = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 3) |
  38488. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 2) |
  38489. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  38490. decoder.readBit(contexts, UNIFORM_CONTEXT);
  38491. if (symbol != 0xA) {
  38492. throw 'Invalid segmentation symbol';
  38493. }
  38494. }
  38495. };
  38496. return BitModel;
  38497. })();
  38498. // Section F, Discrete wavelet transformation
  38499. var Transform = (function TransformClosure() {
  38500. function Transform() {}
  38501. Transform.prototype.calculate =
  38502. function transformCalculate(subbands, u0, v0) {
  38503. var ll = subbands[0];
  38504. for (var i = 1, ii = subbands.length; i < ii; i++) {
  38505. ll = this.iterate(ll, subbands[i], u0, v0);
  38506. }
  38507. return ll;
  38508. };
  38509. Transform.prototype.extend = function extend(buffer, offset, size) {
  38510. // Section F.3.7 extending... using max extension of 4
  38511. var i1 = offset - 1, j1 = offset + 1;
  38512. var i2 = offset + size - 2, j2 = offset + size;
  38513. buffer[i1--] = buffer[j1++];
  38514. buffer[j2++] = buffer[i2--];
  38515. buffer[i1--] = buffer[j1++];
  38516. buffer[j2++] = buffer[i2--];
  38517. buffer[i1--] = buffer[j1++];
  38518. buffer[j2++] = buffer[i2--];
  38519. buffer[i1] = buffer[j1];
  38520. buffer[j2] = buffer[i2];
  38521. };
  38522. Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
  38523. u0, v0) {
  38524. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  38525. var width = hl_lh_hh.width;
  38526. var height = hl_lh_hh.height;
  38527. var items = hl_lh_hh.items;
  38528. var i, j, k, l, u, v;
  38529. // Interleave LL according to Section F.3.3
  38530. for (k = 0, i = 0; i < llHeight; i++) {
  38531. l = i * 2 * width;
  38532. for (j = 0; j < llWidth; j++, k++, l += 2) {
  38533. items[l] = llItems[k];
  38534. }
  38535. }
  38536. // The LL band is not needed anymore.
  38537. llItems = ll.items = null;
  38538. var bufferPadding = 4;
  38539. var rowBuffer = new Float32Array(width + 2 * bufferPadding);
  38540. // Section F.3.4 HOR_SR
  38541. if (width === 1) {
  38542. // if width = 1, when u0 even keep items as is, when odd divide by 2
  38543. if ((u0 & 1) !== 0) {
  38544. for (v = 0, k = 0; v < height; v++, k += width) {
  38545. items[k] *= 0.5;
  38546. }
  38547. }
  38548. } else {
  38549. for (v = 0, k = 0; v < height; v++, k += width) {
  38550. rowBuffer.set(items.subarray(k, k + width), bufferPadding);
  38551. this.extend(rowBuffer, bufferPadding, width);
  38552. this.filter(rowBuffer, bufferPadding, width);
  38553. items.set(
  38554. rowBuffer.subarray(bufferPadding, bufferPadding + width),
  38555. k);
  38556. }
  38557. }
  38558. // Accesses to the items array can take long, because it may not fit into
  38559. // CPU cache and has to be fetched from main memory. Since subsequent
  38560. // accesses to the items array are not local when reading columns, we
  38561. // have a cache miss every time. To reduce cache misses, get up to
  38562. // 'numBuffers' items at a time and store them into the individual
  38563. // buffers. The colBuffers should be small enough to fit into CPU cache.
  38564. var numBuffers = 16;
  38565. var colBuffers = [];
  38566. for (i = 0; i < numBuffers; i++) {
  38567. colBuffers.push(new Float32Array(height + 2 * bufferPadding));
  38568. }
  38569. var b, currentBuffer = 0;
  38570. ll = bufferPadding + height;
  38571. // Section F.3.5 VER_SR
  38572. if (height === 1) {
  38573. // if height = 1, when v0 even keep items as is, when odd divide by 2
  38574. if ((v0 & 1) !== 0) {
  38575. for (u = 0; u < width; u++) {
  38576. items[u] *= 0.5;
  38577. }
  38578. }
  38579. } else {
  38580. for (u = 0; u < width; u++) {
  38581. // if we ran out of buffers, copy several image columns at once
  38582. if (currentBuffer === 0) {
  38583. numBuffers = Math.min(width - u, numBuffers);
  38584. for (k = u, l = bufferPadding; l < ll; k += width, l++) {
  38585. for (b = 0; b < numBuffers; b++) {
  38586. colBuffers[b][l] = items[k + b];
  38587. }
  38588. }
  38589. currentBuffer = numBuffers;
  38590. }
  38591. currentBuffer--;
  38592. var buffer = colBuffers[currentBuffer];
  38593. this.extend(buffer, bufferPadding, height);
  38594. this.filter(buffer, bufferPadding, height);
  38595. // If this is last buffer in this group of buffers, flush all buffers.
  38596. if (currentBuffer === 0) {
  38597. k = u - numBuffers + 1;
  38598. for (l = bufferPadding; l < ll; k += width, l++) {
  38599. for (b = 0; b < numBuffers; b++) {
  38600. items[k + b] = colBuffers[b][l];
  38601. }
  38602. }
  38603. }
  38604. }
  38605. }
  38606. return {
  38607. width: width,
  38608. height: height,
  38609. items: items
  38610. };
  38611. };
  38612. return Transform;
  38613. })();
  38614. // Section 3.8.2 Irreversible 9-7 filter
  38615. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  38616. function IrreversibleTransform() {
  38617. Transform.call(this);
  38618. }
  38619. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  38620. IrreversibleTransform.prototype.filter =
  38621. function irreversibleTransformFilter(x, offset, length) {
  38622. var len = length >> 1;
  38623. offset = offset | 0;
  38624. var j, n, current, next;
  38625. var alpha = -1.586134342059924;
  38626. var beta = -0.052980118572961;
  38627. var gamma = 0.882911075530934;
  38628. var delta = 0.443506852043971;
  38629. var K = 1.230174104914001;
  38630. var K_ = 1 / K;
  38631. // step 1 is combined with step 3
  38632. // step 2
  38633. j = offset - 3;
  38634. for (n = len + 4; n--; j += 2) {
  38635. x[j] *= K_;
  38636. }
  38637. // step 1 & 3
  38638. j = offset - 2;
  38639. current = delta * x[j -1];
  38640. for (n = len + 3; n--; j += 2) {
  38641. next = delta * x[j + 1];
  38642. x[j] = K * x[j] - current - next;
  38643. if (n--) {
  38644. j += 2;
  38645. current = delta * x[j + 1];
  38646. x[j] = K * x[j] - current - next;
  38647. } else {
  38648. break;
  38649. }
  38650. }
  38651. // step 4
  38652. j = offset - 1;
  38653. current = gamma * x[j - 1];
  38654. for (n = len + 2; n--; j += 2) {
  38655. next = gamma * x[j + 1];
  38656. x[j] -= current + next;
  38657. if (n--) {
  38658. j += 2;
  38659. current = gamma * x[j + 1];
  38660. x[j] -= current + next;
  38661. } else {
  38662. break;
  38663. }
  38664. }
  38665. // step 5
  38666. j = offset;
  38667. current = beta * x[j - 1];
  38668. for (n = len + 1; n--; j += 2) {
  38669. next = beta * x[j + 1];
  38670. x[j] -= current + next;
  38671. if (n--) {
  38672. j += 2;
  38673. current = beta * x[j + 1];
  38674. x[j] -= current + next;
  38675. } else {
  38676. break;
  38677. }
  38678. }
  38679. // step 6
  38680. if (len !== 0) {
  38681. j = offset + 1;
  38682. current = alpha * x[j - 1];
  38683. for (n = len; n--; j += 2) {
  38684. next = alpha * x[j + 1];
  38685. x[j] -= current + next;
  38686. if (n--) {
  38687. j += 2;
  38688. current = alpha * x[j + 1];
  38689. x[j] -= current + next;
  38690. } else {
  38691. break;
  38692. }
  38693. }
  38694. }
  38695. };
  38696. return IrreversibleTransform;
  38697. })();
  38698. // Section 3.8.1 Reversible 5-3 filter
  38699. var ReversibleTransform = (function ReversibleTransformClosure() {
  38700. function ReversibleTransform() {
  38701. Transform.call(this);
  38702. }
  38703. ReversibleTransform.prototype = Object.create(Transform.prototype);
  38704. ReversibleTransform.prototype.filter =
  38705. function reversibleTransformFilter(x, offset, length) {
  38706. var len = length >> 1;
  38707. offset = offset | 0;
  38708. var j, n;
  38709. for (j = offset, n = len + 1; n--; j += 2) {
  38710. x[j] -= (x[j - 1] + x[j + 1] + 2) >> 2;
  38711. }
  38712. for (j = offset + 1, n = len; n--; j += 2) {
  38713. x[j] += (x[j - 1] + x[j + 1]) >> 1;
  38714. }
  38715. };
  38716. return ReversibleTransform;
  38717. })();
  38718. return JpxImage;
  38719. })();
  38720. var Jbig2Image = (function Jbig2ImageClosure() {
  38721. // Utility data structures
  38722. function ContextCache() {}
  38723. ContextCache.prototype = {
  38724. getContexts: function(id) {
  38725. if (id in this) {
  38726. return this[id];
  38727. }
  38728. return (this[id] = new Int8Array(1<<16));
  38729. }
  38730. };
  38731. function DecodingContext(data, start, end) {
  38732. this.data = data;
  38733. this.start = start;
  38734. this.end = end;
  38735. }
  38736. DecodingContext.prototype = {
  38737. get decoder() {
  38738. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  38739. return shadow(this, 'decoder', decoder);
  38740. },
  38741. get contextCache() {
  38742. var cache = new ContextCache();
  38743. return shadow(this, 'contextCache', cache);
  38744. }
  38745. };
  38746. // Annex A. Arithmetic Integer Decoding Procedure
  38747. // A.2 Procedure for decoding values
  38748. function decodeInteger(contextCache, procedure, decoder) {
  38749. var contexts = contextCache.getContexts(procedure);
  38750. var prev = 1;
  38751. var state = 1, v = 0, s;
  38752. var toRead = 32, offset = 4436; // defaults for state 7
  38753. while (state) {
  38754. var bit = decoder.readBit(contexts, prev);
  38755. prev = (prev < 256 ? (prev << 1) | bit :
  38756. (((prev << 1) | bit) & 511) | 256);
  38757. switch (state) {
  38758. case 1:
  38759. s = !!bit;
  38760. break;
  38761. case 2:
  38762. if (bit) {
  38763. break;
  38764. }
  38765. state = 7;
  38766. toRead = 2;
  38767. offset = 0;
  38768. break;
  38769. case 3:
  38770. if (bit) {
  38771. break;
  38772. }
  38773. state = 7;
  38774. toRead = 4;
  38775. offset = 4;
  38776. break;
  38777. case 4:
  38778. if (bit) {
  38779. break;
  38780. }
  38781. state = 7;
  38782. toRead = 6;
  38783. offset = 20;
  38784. break;
  38785. case 5:
  38786. if (bit) {
  38787. break;
  38788. }
  38789. state = 7;
  38790. toRead = 8;
  38791. offset = 84;
  38792. break;
  38793. case 6:
  38794. if (bit) {
  38795. break;
  38796. }
  38797. state = 7;
  38798. toRead = 12;
  38799. offset = 340;
  38800. break;
  38801. default:
  38802. v = ((v << 1) | bit) >>> 0;
  38803. if (--toRead === 0) {
  38804. state = 0;
  38805. }
  38806. continue;
  38807. }
  38808. state++;
  38809. }
  38810. v += offset;
  38811. return (!s ? v : (v > 0 ? -v : null));
  38812. }
  38813. // A.3 The IAID decoding procedure
  38814. function decodeIAID(contextCache, decoder, codeLength) {
  38815. var contexts = contextCache.getContexts('IAID');
  38816. var prev = 1;
  38817. for (var i = 0; i < codeLength; i++) {
  38818. var bit = decoder.readBit(contexts, prev);
  38819. prev = (prev << 1) | bit;
  38820. }
  38821. if (codeLength < 31) {
  38822. return prev & ((1 << codeLength) - 1);
  38823. }
  38824. return prev & 0x7FFFFFFF;
  38825. }
  38826. // 7.3 Segment types
  38827. var SegmentTypes = [
  38828. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  38829. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  38830. null, null, null, null, null, 'patternDictionary', null, null, null,
  38831. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  38832. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  38833. null, null, null, null, null, 'IntermediateGenericRegion', null,
  38834. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  38835. 'IntermediateGenericRefinementRegion', null,
  38836. 'ImmediateGenericRefinementRegion',
  38837. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  38838. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  38839. 'Tables', null, null, null, null, null, null, null, null,
  38840. 'Extension'
  38841. ];
  38842. var CodingTemplates = [
  38843. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  38844. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: 2, y: -1},
  38845. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  38846. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  38847. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  38848. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  38849. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  38850. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  38851. {x: -1, y: 0}],
  38852. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  38853. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  38854. ];
  38855. var RefinementTemplates = [
  38856. {
  38857. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  38858. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  38859. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  38860. },
  38861. {
  38862. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  38863. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  38864. {x: 0, y: 1}, {x: 1, y: 1}]
  38865. }
  38866. ];
  38867. var ReusedContexts = [
  38868. 0x1CD3, // '00111001101' (template) + '0011' (at),
  38869. 0x079A, // '001111001101' + '0',
  38870. 0x00E3, // '001110001' + '1',
  38871. 0x018B // '011000101' + '1'
  38872. ];
  38873. var RefinementReusedContexts = [
  38874. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  38875. 0x0008 // '0000' + '001000'
  38876. ];
  38877. // 6.2 Generic Region Decoding Procedure
  38878. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  38879. decodingContext) {
  38880. if (mmr) {
  38881. error('JBIG2 error: MMR encoding is not supported');
  38882. }
  38883. var useskip = !!skip;
  38884. var template = CodingTemplates[templateIndex].concat(at);
  38885. // Sorting is non-standard, and it is not required. But sorting increases
  38886. // the number of template bits that can be reused from the previous
  38887. // contextLabel in the main loop.
  38888. template.sort(function (a, b) {
  38889. return (a.y - b.y) || (a.x - b.x);
  38890. });
  38891. var templateLength = template.length;
  38892. var templateX = new Int8Array(templateLength);
  38893. var templateY = new Int8Array(templateLength);
  38894. var changingTemplateEntries = [];
  38895. var reuseMask = 0, minX = 0, maxX = 0, minY = 0;
  38896. var c, k;
  38897. for (k = 0; k < templateLength; k++) {
  38898. templateX[k] = template[k].x;
  38899. templateY[k] = template[k].y;
  38900. minX = Math.min(minX, template[k].x);
  38901. maxX = Math.max(maxX, template[k].x);
  38902. minY = Math.min(minY, template[k].y);
  38903. // Check if the template pixel appears in two consecutive context labels,
  38904. // so it can be reused. Otherwise, we add it to the list of changing
  38905. // template entries.
  38906. if (k < templateLength - 1 &&
  38907. template[k].y === template[k + 1].y &&
  38908. template[k].x === template[k + 1].x - 1) {
  38909. reuseMask |= 1 << (templateLength - 1 - k);
  38910. } else {
  38911. changingTemplateEntries.push(k);
  38912. }
  38913. }
  38914. var changingEntriesLength = changingTemplateEntries.length;
  38915. var changingTemplateX = new Int8Array(changingEntriesLength);
  38916. var changingTemplateY = new Int8Array(changingEntriesLength);
  38917. var changingTemplateBit = new Uint16Array(changingEntriesLength);
  38918. for (c = 0; c < changingEntriesLength; c++) {
  38919. k = changingTemplateEntries[c];
  38920. changingTemplateX[c] = template[k].x;
  38921. changingTemplateY[c] = template[k].y;
  38922. changingTemplateBit[c] = 1 << (templateLength - 1 - k);
  38923. }
  38924. // Get the safe bounding box edges from the width, height, minX, maxX, minY
  38925. var sbb_left = -minX;
  38926. var sbb_top = -minY;
  38927. var sbb_right = width - maxX;
  38928. var pseudoPixelContext = ReusedContexts[templateIndex];
  38929. var row = new Uint8Array(width);
  38930. var bitmap = [];
  38931. var decoder = decodingContext.decoder;
  38932. var contexts = decodingContext.contextCache.getContexts('GB');
  38933. var ltp = 0, j, i0, j0, contextLabel = 0, bit, shift;
  38934. for (var i = 0; i < height; i++) {
  38935. if (prediction) {
  38936. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  38937. ltp ^= sltp;
  38938. if (ltp) {
  38939. bitmap.push(row); // duplicate previous row
  38940. continue;
  38941. }
  38942. }
  38943. row = new Uint8Array(row);
  38944. bitmap.push(row);
  38945. for (j = 0; j < width; j++) {
  38946. if (useskip && skip[i][j]) {
  38947. row[j] = 0;
  38948. continue;
  38949. }
  38950. // Are we in the middle of a scanline, so we can reuse contextLabel
  38951. // bits?
  38952. if (j >= sbb_left && j < sbb_right && i >= sbb_top) {
  38953. // If yes, we can just shift the bits that are reusable and only
  38954. // fetch the remaining ones.
  38955. contextLabel = (contextLabel << 1) & reuseMask;
  38956. for (k = 0; k < changingEntriesLength; k++) {
  38957. i0 = i + changingTemplateY[k];
  38958. j0 = j + changingTemplateX[k];
  38959. bit = bitmap[i0][j0];
  38960. if (bit) {
  38961. bit = changingTemplateBit[k];
  38962. contextLabel |= bit;
  38963. }
  38964. }
  38965. } else {
  38966. // compute the contextLabel from scratch
  38967. contextLabel = 0;
  38968. shift = templateLength - 1;
  38969. for (k = 0; k < templateLength; k++, shift--) {
  38970. j0 = j + templateX[k];
  38971. if (j0 >= 0 && j0 < width) {
  38972. i0 = i + templateY[k];
  38973. if (i0 >= 0) {
  38974. bit = bitmap[i0][j0];
  38975. if (bit) {
  38976. contextLabel |= bit << shift;
  38977. }
  38978. }
  38979. }
  38980. }
  38981. }
  38982. var pixel = decoder.readBit(contexts, contextLabel);
  38983. row[j] = pixel;
  38984. }
  38985. }
  38986. return bitmap;
  38987. }
  38988. // 6.3.2 Generic Refinement Region Decoding Procedure
  38989. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  38990. offsetX, offsetY, prediction, at,
  38991. decodingContext) {
  38992. var codingTemplate = RefinementTemplates[templateIndex].coding;
  38993. if (templateIndex === 0) {
  38994. codingTemplate = codingTemplate.concat([at[0]]);
  38995. }
  38996. var codingTemplateLength = codingTemplate.length;
  38997. var codingTemplateX = new Int32Array(codingTemplateLength);
  38998. var codingTemplateY = new Int32Array(codingTemplateLength);
  38999. var k;
  39000. for (k = 0; k < codingTemplateLength; k++) {
  39001. codingTemplateX[k] = codingTemplate[k].x;
  39002. codingTemplateY[k] = codingTemplate[k].y;
  39003. }
  39004. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  39005. if (templateIndex === 0) {
  39006. referenceTemplate = referenceTemplate.concat([at[1]]);
  39007. }
  39008. var referenceTemplateLength = referenceTemplate.length;
  39009. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  39010. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  39011. for (k = 0; k < referenceTemplateLength; k++) {
  39012. referenceTemplateX[k] = referenceTemplate[k].x;
  39013. referenceTemplateY[k] = referenceTemplate[k].y;
  39014. }
  39015. var referenceWidth = referenceBitmap[0].length;
  39016. var referenceHeight = referenceBitmap.length;
  39017. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  39018. var bitmap = [];
  39019. var decoder = decodingContext.decoder;
  39020. var contexts = decodingContext.contextCache.getContexts('GR');
  39021. var ltp = 0;
  39022. for (var i = 0; i < height; i++) {
  39023. if (prediction) {
  39024. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  39025. ltp ^= sltp;
  39026. if (ltp) {
  39027. error('JBIG2 error: prediction is not supported');
  39028. }
  39029. }
  39030. var row = new Uint8Array(width);
  39031. bitmap.push(row);
  39032. for (var j = 0; j < width; j++) {
  39033. var i0, j0;
  39034. var contextLabel = 0;
  39035. for (k = 0; k < codingTemplateLength; k++) {
  39036. i0 = i + codingTemplateY[k];
  39037. j0 = j + codingTemplateX[k];
  39038. if (i0 < 0 || j0 < 0 || j0 >= width) {
  39039. contextLabel <<= 1; // out of bound pixel
  39040. } else {
  39041. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  39042. }
  39043. }
  39044. for (k = 0; k < referenceTemplateLength; k++) {
  39045. i0 = i + referenceTemplateY[k] + offsetY;
  39046. j0 = j + referenceTemplateX[k] + offsetX;
  39047. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 ||
  39048. j0 >= referenceWidth) {
  39049. contextLabel <<= 1; // out of bound pixel
  39050. } else {
  39051. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  39052. }
  39053. }
  39054. var pixel = decoder.readBit(contexts, contextLabel);
  39055. row[j] = pixel;
  39056. }
  39057. }
  39058. return bitmap;
  39059. }
  39060. // 6.5.5 Decoding the symbol dictionary
  39061. function decodeSymbolDictionary(huffman, refinement, symbols,
  39062. numberOfNewSymbols, numberOfExportedSymbols,
  39063. huffmanTables, templateIndex, at,
  39064. refinementTemplateIndex, refinementAt,
  39065. decodingContext) {
  39066. if (huffman) {
  39067. error('JBIG2 error: huffman is not supported');
  39068. }
  39069. var newSymbols = [];
  39070. var currentHeight = 0;
  39071. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  39072. var decoder = decodingContext.decoder;
  39073. var contextCache = decodingContext.contextCache;
  39074. while (newSymbols.length < numberOfNewSymbols) {
  39075. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  39076. currentHeight += deltaHeight;
  39077. var currentWidth = 0;
  39078. var totalWidth = 0;
  39079. while (true) {
  39080. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  39081. if (deltaWidth === null) {
  39082. break; // OOB
  39083. }
  39084. currentWidth += deltaWidth;
  39085. totalWidth += currentWidth;
  39086. var bitmap;
  39087. if (refinement) {
  39088. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  39089. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  39090. if (numberOfInstances > 1) {
  39091. bitmap = decodeTextRegion(huffman, refinement,
  39092. currentWidth, currentHeight, 0,
  39093. numberOfInstances, 1, //strip size
  39094. symbols.concat(newSymbols),
  39095. symbolCodeLength,
  39096. 0, //transposed
  39097. 0, //ds offset
  39098. 1, //top left 7.4.3.1.1
  39099. 0, //OR operator
  39100. huffmanTables,
  39101. refinementTemplateIndex, refinementAt,
  39102. decodingContext);
  39103. } else {
  39104. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39105. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39106. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39107. var symbol = (symbolId < symbols.length ? symbols[symbolId] :
  39108. newSymbols[symbolId - symbols.length]);
  39109. bitmap = decodeRefinement(currentWidth, currentHeight,
  39110. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  39111. decodingContext);
  39112. }
  39113. } else {
  39114. // 6.5.8.1 Direct-coded symbol bitmap
  39115. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  39116. templateIndex, false, null, at, decodingContext);
  39117. }
  39118. newSymbols.push(bitmap);
  39119. }
  39120. }
  39121. // 6.5.10 Exported symbols
  39122. var exportedSymbols = [];
  39123. var flags = [], currentFlag = false;
  39124. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  39125. while (flags.length < totalSymbolsLength) {
  39126. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  39127. while (runLength--) {
  39128. flags.push(currentFlag);
  39129. }
  39130. currentFlag = !currentFlag;
  39131. }
  39132. for (var i = 0, ii = symbols.length; i < ii; i++) {
  39133. if (flags[i]) {
  39134. exportedSymbols.push(symbols[i]);
  39135. }
  39136. }
  39137. for (var j = 0; j < numberOfNewSymbols; i++, j++) {
  39138. if (flags[i]) {
  39139. exportedSymbols.push(newSymbols[j]);
  39140. }
  39141. }
  39142. return exportedSymbols;
  39143. }
  39144. function decodeTextRegion(huffman, refinement, width, height,
  39145. defaultPixelValue, numberOfSymbolInstances,
  39146. stripSize, inputSymbols, symbolCodeLength,
  39147. transposed, dsOffset, referenceCorner,
  39148. combinationOperator, huffmanTables,
  39149. refinementTemplateIndex, refinementAt,
  39150. decodingContext) {
  39151. if (huffman) {
  39152. error('JBIG2 error: huffman is not supported');
  39153. }
  39154. // Prepare bitmap
  39155. var bitmap = [];
  39156. var i, row;
  39157. for (i = 0; i < height; i++) {
  39158. row = new Uint8Array(width);
  39159. if (defaultPixelValue) {
  39160. for (var j = 0; j < width; j++) {
  39161. row[j] = defaultPixelValue;
  39162. }
  39163. }
  39164. bitmap.push(row);
  39165. }
  39166. var decoder = decodingContext.decoder;
  39167. var contextCache = decodingContext.contextCache;
  39168. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39169. var firstS = 0;
  39170. i = 0;
  39171. while (i < numberOfSymbolInstances) {
  39172. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  39173. stripT += deltaT;
  39174. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  39175. firstS += deltaFirstS;
  39176. var currentS = firstS;
  39177. do {
  39178. var currentT = (stripSize == 1 ? 0 :
  39179. decodeInteger(contextCache, 'IAIT', decoder)); // 6.4.9
  39180. var t = stripSize * stripT + currentT;
  39181. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  39182. var applyRefinement = (refinement &&
  39183. decodeInteger(contextCache, 'IARI', decoder));
  39184. var symbolBitmap = inputSymbols[symbolId];
  39185. var symbolWidth = symbolBitmap[0].length;
  39186. var symbolHeight = symbolBitmap.length;
  39187. if (applyRefinement) {
  39188. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  39189. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  39190. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  39191. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  39192. symbolWidth += rdw;
  39193. symbolHeight += rdh;
  39194. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  39195. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  39196. (rdh >> 1) + rdy, false, refinementAt,
  39197. decodingContext);
  39198. }
  39199. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  39200. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  39201. var s2, t2, symbolRow;
  39202. if (transposed) {
  39203. // Place Symbol Bitmap from T1,S1
  39204. for (s2 = 0; s2 < symbolHeight; s2++) {
  39205. row = bitmap[offsetS + s2];
  39206. if (!row) {
  39207. continue;
  39208. }
  39209. symbolRow = symbolBitmap[s2];
  39210. // To ignore Parts of Symbol bitmap which goes
  39211. // outside bitmap region
  39212. var maxWidth = Math.min(width - offsetT, symbolWidth);
  39213. switch (combinationOperator) {
  39214. case 0: // OR
  39215. for (t2 = 0; t2 < maxWidth; t2++) {
  39216. row[offsetT + t2] |= symbolRow[t2];
  39217. }
  39218. break;
  39219. case 2: // XOR
  39220. for (t2 = 0; t2 < maxWidth; t2++) {
  39221. row[offsetT + t2] ^= symbolRow[t2];
  39222. }
  39223. break;
  39224. default:
  39225. error('JBIG2 error: operator ' + combinationOperator +
  39226. ' is not supported');
  39227. }
  39228. }
  39229. currentS += symbolHeight - 1;
  39230. } else {
  39231. for (t2 = 0; t2 < symbolHeight; t2++) {
  39232. row = bitmap[offsetT + t2];
  39233. if (!row) {
  39234. continue;
  39235. }
  39236. symbolRow = symbolBitmap[t2];
  39237. switch (combinationOperator) {
  39238. case 0: // OR
  39239. for (s2 = 0; s2 < symbolWidth; s2++) {
  39240. row[offsetS + s2] |= symbolRow[s2];
  39241. }
  39242. break;
  39243. case 2: // XOR
  39244. for (s2 = 0; s2 < symbolWidth; s2++) {
  39245. row[offsetS + s2] ^= symbolRow[s2];
  39246. }
  39247. break;
  39248. default:
  39249. error('JBIG2 error: operator ' + combinationOperator +
  39250. ' is not supported');
  39251. }
  39252. }
  39253. currentS += symbolWidth - 1;
  39254. }
  39255. i++;
  39256. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  39257. if (deltaS === null) {
  39258. break; // OOB
  39259. }
  39260. currentS += deltaS + dsOffset;
  39261. } while (true);
  39262. }
  39263. return bitmap;
  39264. }
  39265. function readSegmentHeader(data, start) {
  39266. var segmentHeader = {};
  39267. segmentHeader.number = readUint32(data, start);
  39268. var flags = data[start + 4];
  39269. var segmentType = flags & 0x3F;
  39270. if (!SegmentTypes[segmentType]) {
  39271. error('JBIG2 error: invalid segment type: ' + segmentType);
  39272. }
  39273. segmentHeader.type = segmentType;
  39274. segmentHeader.typeName = SegmentTypes[segmentType];
  39275. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  39276. var pageAssociationFieldSize = !!(flags & 0x40);
  39277. var referredFlags = data[start + 5];
  39278. var referredToCount = (referredFlags >> 5) & 7;
  39279. var retainBits = [referredFlags & 31];
  39280. var position = start + 6;
  39281. if (referredFlags == 7) {
  39282. referredToCount = readUint32(data, position - 1) & 0x1FFFFFFF;
  39283. position += 3;
  39284. var bytes = (referredToCount + 7) >> 3;
  39285. retainBits[0] = data[position++];
  39286. while (--bytes > 0) {
  39287. retainBits.push(data[position++]);
  39288. }
  39289. } else if (referredFlags == 5 || referredFlags == 6) {
  39290. error('JBIG2 error: invalid referred-to flags');
  39291. }
  39292. segmentHeader.retainBits = retainBits;
  39293. var referredToSegmentNumberSize = (segmentHeader.number <= 256 ? 1 :
  39294. (segmentHeader.number <= 65536 ? 2 : 4));
  39295. var referredTo = [];
  39296. var i, ii;
  39297. for (i = 0; i < referredToCount; i++) {
  39298. var number = (referredToSegmentNumberSize == 1 ? data[position] :
  39299. (referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  39300. readUint32(data, position)));
  39301. referredTo.push(number);
  39302. position += referredToSegmentNumberSize;
  39303. }
  39304. segmentHeader.referredTo = referredTo;
  39305. if (!pageAssociationFieldSize) {
  39306. segmentHeader.pageAssociation = data[position++];
  39307. } else {
  39308. segmentHeader.pageAssociation = readUint32(data, position);
  39309. position += 4;
  39310. }
  39311. segmentHeader.length = readUint32(data, position);
  39312. position += 4;
  39313. if (segmentHeader.length == 0xFFFFFFFF) {
  39314. // 7.2.7 Segment data length, unknown segment length
  39315. if (segmentType === 38) { // ImmediateGenericRegion
  39316. var genericRegionInfo = readRegionSegmentInformation(data, position);
  39317. var genericRegionSegmentFlags = data[position +
  39318. RegionSegmentInformationFieldLength];
  39319. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  39320. // searching for the segment end
  39321. var searchPatternLength = 6;
  39322. var searchPattern = new Uint8Array(searchPatternLength);
  39323. if (!genericRegionMmr) {
  39324. searchPattern[0] = 0xFF;
  39325. searchPattern[1] = 0xAC;
  39326. }
  39327. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  39328. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  39329. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  39330. searchPattern[5] = genericRegionInfo.height & 0xFF;
  39331. for (i = position, ii = data.length; i < ii; i++) {
  39332. var j = 0;
  39333. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  39334. j++;
  39335. }
  39336. if (j == searchPatternLength) {
  39337. segmentHeader.length = i + searchPatternLength;
  39338. break;
  39339. }
  39340. }
  39341. if (segmentHeader.length == 0xFFFFFFFF) {
  39342. error('JBIG2 error: segment end was not found');
  39343. }
  39344. } else {
  39345. error('JBIG2 error: invalid unknown segment length');
  39346. }
  39347. }
  39348. segmentHeader.headerEnd = position;
  39349. return segmentHeader;
  39350. }
  39351. function readSegments(header, data, start, end) {
  39352. var segments = [];
  39353. var position = start;
  39354. while (position < end) {
  39355. var segmentHeader = readSegmentHeader(data, position);
  39356. position = segmentHeader.headerEnd;
  39357. var segment = {
  39358. header: segmentHeader,
  39359. data: data
  39360. };
  39361. if (!header.randomAccess) {
  39362. segment.start = position;
  39363. position += segmentHeader.length;
  39364. segment.end = position;
  39365. }
  39366. segments.push(segment);
  39367. if (segmentHeader.type == 51) {
  39368. break; // end of file is found
  39369. }
  39370. }
  39371. if (header.randomAccess) {
  39372. for (var i = 0, ii = segments.length; i < ii; i++) {
  39373. segments[i].start = position;
  39374. position += segments[i].header.length;
  39375. segments[i].end = position;
  39376. }
  39377. }
  39378. return segments;
  39379. }
  39380. // 7.4.1 Region segment information field
  39381. function readRegionSegmentInformation(data, start) {
  39382. return {
  39383. width: readUint32(data, start),
  39384. height: readUint32(data, start + 4),
  39385. x: readUint32(data, start + 8),
  39386. y: readUint32(data, start + 12),
  39387. combinationOperator: data[start + 16] & 7
  39388. };
  39389. }
  39390. var RegionSegmentInformationFieldLength = 17;
  39391. function processSegment(segment, visitor) {
  39392. var header = segment.header;
  39393. var data = segment.data, position = segment.start, end = segment.end;
  39394. var args, at, i, atLength;
  39395. switch (header.type) {
  39396. case 0: // SymbolDictionary
  39397. // 7.4.2 Symbol dictionary segment syntax
  39398. var dictionary = {};
  39399. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  39400. dictionary.huffman = !!(dictionaryFlags & 1);
  39401. dictionary.refinement = !!(dictionaryFlags & 2);
  39402. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  39403. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  39404. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  39405. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  39406. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  39407. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  39408. dictionary.template = (dictionaryFlags >> 10) & 3;
  39409. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  39410. position += 2;
  39411. if (!dictionary.huffman) {
  39412. atLength = dictionary.template === 0 ? 4 : 1;
  39413. at = [];
  39414. for (i = 0; i < atLength; i++) {
  39415. at.push({
  39416. x: readInt8(data, position),
  39417. y: readInt8(data, position + 1)
  39418. });
  39419. position += 2;
  39420. }
  39421. dictionary.at = at;
  39422. }
  39423. if (dictionary.refinement && !dictionary.refinementTemplate) {
  39424. at = [];
  39425. for (i = 0; i < 2; i++) {
  39426. at.push({
  39427. x: readInt8(data, position),
  39428. y: readInt8(data, position + 1)
  39429. });
  39430. position += 2;
  39431. }
  39432. dictionary.refinementAt = at;
  39433. }
  39434. dictionary.numberOfExportedSymbols = readUint32(data, position);
  39435. position += 4;
  39436. dictionary.numberOfNewSymbols = readUint32(data, position);
  39437. position += 4;
  39438. args = [dictionary, header.number, header.referredTo,
  39439. data, position, end];
  39440. break;
  39441. case 6: // ImmediateTextRegion
  39442. case 7: // ImmediateLosslessTextRegion
  39443. var textRegion = {};
  39444. textRegion.info = readRegionSegmentInformation(data, position);
  39445. position += RegionSegmentInformationFieldLength;
  39446. var textRegionSegmentFlags = readUint16(data, position);
  39447. position += 2;
  39448. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  39449. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  39450. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  39451. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  39452. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  39453. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  39454. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  39455. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  39456. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  39457. if (textRegion.huffman) {
  39458. var textRegionHuffmanFlags = readUint16(data, position);
  39459. position += 2;
  39460. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  39461. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  39462. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  39463. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  39464. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  39465. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  39466. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  39467. textRegion.huffmanRefinementSizeSelector =
  39468. !!(textRegionHuffmanFlags & 14);
  39469. }
  39470. if (textRegion.refinement && !textRegion.refinementTemplate) {
  39471. at = [];
  39472. for (i = 0; i < 2; i++) {
  39473. at.push({
  39474. x: readInt8(data, position),
  39475. y: readInt8(data, position + 1)
  39476. });
  39477. position += 2;
  39478. }
  39479. textRegion.refinementAt = at;
  39480. }
  39481. textRegion.numberOfSymbolInstances = readUint32(data, position);
  39482. position += 4;
  39483. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  39484. if (textRegion.huffman) {
  39485. error('JBIG2 error: huffman is not supported');
  39486. }
  39487. args = [textRegion, header.referredTo, data, position, end];
  39488. break;
  39489. case 38: // ImmediateGenericRegion
  39490. case 39: // ImmediateLosslessGenericRegion
  39491. var genericRegion = {};
  39492. genericRegion.info = readRegionSegmentInformation(data, position);
  39493. position += RegionSegmentInformationFieldLength;
  39494. var genericRegionSegmentFlags = data[position++];
  39495. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  39496. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  39497. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  39498. if (!genericRegion.mmr) {
  39499. atLength = genericRegion.template === 0 ? 4 : 1;
  39500. at = [];
  39501. for (i = 0; i < atLength; i++) {
  39502. at.push({
  39503. x: readInt8(data, position),
  39504. y: readInt8(data, position + 1)
  39505. });
  39506. position += 2;
  39507. }
  39508. genericRegion.at = at;
  39509. }
  39510. args = [genericRegion, data, position, end];
  39511. break;
  39512. case 48: // PageInformation
  39513. var pageInfo = {
  39514. width: readUint32(data, position),
  39515. height: readUint32(data, position + 4),
  39516. resolutionX: readUint32(data, position + 8),
  39517. resolutionY: readUint32(data, position + 12)
  39518. };
  39519. if (pageInfo.height == 0xFFFFFFFF) {
  39520. delete pageInfo.height;
  39521. }
  39522. var pageSegmentFlags = data[position + 16];
  39523. var pageStripingInformatiom = readUint16(data, position + 17);
  39524. pageInfo.lossless = !!(pageSegmentFlags & 1);
  39525. pageInfo.refinement = !!(pageSegmentFlags & 2);
  39526. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  39527. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  39528. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  39529. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  39530. args = [pageInfo];
  39531. break;
  39532. case 49: // EndOfPage
  39533. break;
  39534. case 50: // EndOfStripe
  39535. break;
  39536. case 51: // EndOfFile
  39537. break;
  39538. case 62: // 7.4.15 defines 2 extension types which
  39539. // are comments and can be ignored.
  39540. break;
  39541. default:
  39542. error('JBIG2 error: segment type ' + header.typeName + '(' +
  39543. header.type + ') is not implemented');
  39544. }
  39545. var callbackName = 'on' + header.typeName;
  39546. if (callbackName in visitor) {
  39547. visitor[callbackName].apply(visitor, args);
  39548. }
  39549. }
  39550. function processSegments(segments, visitor) {
  39551. for (var i = 0, ii = segments.length; i < ii; i++) {
  39552. processSegment(segments[i], visitor);
  39553. }
  39554. }
  39555. function parseJbig2(data, start, end) {
  39556. var position = start;
  39557. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  39558. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  39559. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  39560. data[position + 6] != 0x1A || data[position + 7] != 0x0A) {
  39561. error('JBIG2 error: invalid header');
  39562. }
  39563. var header = {};
  39564. position += 8;
  39565. var flags = data[position++];
  39566. header.randomAccess = !(flags & 1);
  39567. if (!(flags & 2)) {
  39568. header.numberOfPages = readUint32(data, position);
  39569. position += 4;
  39570. }
  39571. var segments = readSegments(header, data, position, end);
  39572. error('Not implemented');
  39573. // processSegments(segments, new SimpleSegmentVisitor());
  39574. }
  39575. function parseJbig2Chunks(chunks) {
  39576. var visitor = new SimpleSegmentVisitor();
  39577. for (var i = 0, ii = chunks.length; i < ii; i++) {
  39578. var chunk = chunks[i];
  39579. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  39580. processSegments(segments, visitor);
  39581. }
  39582. return visitor.buffer;
  39583. }
  39584. function SimpleSegmentVisitor() {}
  39585. SimpleSegmentVisitor.prototype = {
  39586. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  39587. this.currentPageInfo = info;
  39588. var rowSize = (info.width + 7) >> 3;
  39589. var buffer = new Uint8Array(rowSize * info.height);
  39590. // The contents of ArrayBuffers are initialized to 0.
  39591. // Fill the buffer with 0xFF only if info.defaultPixelValue is set
  39592. if (info.defaultPixelValue) {
  39593. for (var i = 0, ii = buffer.length; i < ii; i++) {
  39594. buffer[i] = 0xFF;
  39595. }
  39596. }
  39597. this.buffer = buffer;
  39598. },
  39599. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  39600. var pageInfo = this.currentPageInfo;
  39601. var width = regionInfo.width, height = regionInfo.height;
  39602. var rowSize = (pageInfo.width + 7) >> 3;
  39603. var combinationOperator = pageInfo.combinationOperatorOverride ?
  39604. regionInfo.combinationOperator : pageInfo.combinationOperator;
  39605. var buffer = this.buffer;
  39606. var mask0 = 128 >> (regionInfo.x & 7);
  39607. var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
  39608. var i, j, mask, offset;
  39609. switch (combinationOperator) {
  39610. case 0: // OR
  39611. for (i = 0; i < height; i++) {
  39612. mask = mask0;
  39613. offset = offset0;
  39614. for (j = 0; j < width; j++) {
  39615. if (bitmap[i][j]) {
  39616. buffer[offset] |= mask;
  39617. }
  39618. mask >>= 1;
  39619. if (!mask) {
  39620. mask = 128;
  39621. offset++;
  39622. }
  39623. }
  39624. offset0 += rowSize;
  39625. }
  39626. break;
  39627. case 2: // XOR
  39628. for (i = 0; i < height; i++) {
  39629. mask = mask0;
  39630. offset = offset0;
  39631. for (j = 0; j < width; j++) {
  39632. if (bitmap[i][j]) {
  39633. buffer[offset] ^= mask;
  39634. }
  39635. mask >>= 1;
  39636. if (!mask) {
  39637. mask = 128;
  39638. offset++;
  39639. }
  39640. }
  39641. offset0 += rowSize;
  39642. }
  39643. break;
  39644. default:
  39645. error('JBIG2 error: operator ' + combinationOperator +
  39646. ' is not supported');
  39647. }
  39648. },
  39649. onImmediateGenericRegion:
  39650. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  39651. start, end) {
  39652. var regionInfo = region.info;
  39653. var decodingContext = new DecodingContext(data, start, end);
  39654. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  39655. region.template, region.prediction, null,
  39656. region.at, decodingContext);
  39657. this.drawBitmap(regionInfo, bitmap);
  39658. },
  39659. onImmediateLosslessGenericRegion:
  39660. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  39661. this.onImmediateGenericRegion.apply(this, arguments);
  39662. },
  39663. onSymbolDictionary:
  39664. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  39665. currentSegment,
  39666. referredSegments,
  39667. data, start, end) {
  39668. var huffmanTables;
  39669. if (dictionary.huffman) {
  39670. error('JBIG2 error: huffman is not supported');
  39671. }
  39672. // Combines exported symbols from all referred segments
  39673. var symbols = this.symbols;
  39674. if (!symbols) {
  39675. this.symbols = symbols = {};
  39676. }
  39677. var inputSymbols = [];
  39678. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39679. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39680. }
  39681. var decodingContext = new DecodingContext(data, start, end);
  39682. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  39683. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  39684. dictionary.numberOfExportedSymbols, huffmanTables,
  39685. dictionary.template, dictionary.at,
  39686. dictionary.refinementTemplate, dictionary.refinementAt,
  39687. decodingContext);
  39688. },
  39689. onImmediateTextRegion:
  39690. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  39691. referredSegments,
  39692. data, start, end) {
  39693. var regionInfo = region.info;
  39694. var huffmanTables;
  39695. // Combines exported symbols from all referred segments
  39696. var symbols = this.symbols;
  39697. var inputSymbols = [];
  39698. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  39699. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  39700. }
  39701. var symbolCodeLength = log2(inputSymbols.length);
  39702. var decodingContext = new DecodingContext(data, start, end);
  39703. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  39704. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  39705. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  39706. symbolCodeLength, region.transposed, region.dsOffset,
  39707. region.referenceCorner, region.combinationOperator, huffmanTables,
  39708. region.refinementTemplate, region.refinementAt, decodingContext);
  39709. this.drawBitmap(regionInfo, bitmap);
  39710. },
  39711. onImmediateLosslessTextRegion:
  39712. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  39713. this.onImmediateTextRegion.apply(this, arguments);
  39714. }
  39715. };
  39716. function Jbig2Image() {}
  39717. Jbig2Image.prototype = {
  39718. parseChunks: function Jbig2Image_parseChunks(chunks) {
  39719. return parseJbig2Chunks(chunks);
  39720. }
  39721. };
  39722. return Jbig2Image;
  39723. })();
  39724. var bidi = PDFJS.bidi = (function bidiClosure() {
  39725. // Character types for symbols from 0000 to 00FF.
  39726. var baseTypes = [
  39727. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  39728. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39729. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  39730. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  39731. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  39732. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39733. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  39734. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39735. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39736. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  39737. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39738. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  39739. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  39740. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  39741. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39742. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39743. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39744. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  39745. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  39746. ];
  39747. // Character types for symbols from 0600 to 06FF
  39748. var arabicTypes = [
  39749. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39750. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL',
  39751. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39752. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39753. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39754. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39755. 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39756. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39757. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  39758. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', 'AL', 'AL', 'AL', 'AL',
  39759. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39760. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39761. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39762. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39763. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39764. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39765. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39766. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39767. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  39768. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  39769. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  39770. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  39771. ];
  39772. function isOdd(i) {
  39773. return (i & 1) !== 0;
  39774. }
  39775. function isEven(i) {
  39776. return (i & 1) === 0;
  39777. }
  39778. function findUnequal(arr, start, value) {
  39779. for (var j = start, jj = arr.length; j < jj; ++j) {
  39780. if (arr[j] != value) {
  39781. return j;
  39782. }
  39783. }
  39784. return j;
  39785. }
  39786. function setValues(arr, start, end, value) {
  39787. for (var j = start; j < end; ++j) {
  39788. arr[j] = value;
  39789. }
  39790. }
  39791. function reverseValues(arr, start, end) {
  39792. for (var i = start, j = end - 1; i < j; ++i, --j) {
  39793. var temp = arr[i];
  39794. arr[i] = arr[j];
  39795. arr[j] = temp;
  39796. }
  39797. }
  39798. function createBidiText(str, isLTR, vertical) {
  39799. return {
  39800. str: str,
  39801. dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
  39802. };
  39803. }
  39804. // These are used in bidi(), which is called frequently. We re-use them on
  39805. // each call to avoid unnecessary allocations.
  39806. var chars = [];
  39807. var types = [];
  39808. function bidi(str, startLevel, vertical) {
  39809. var isLTR = true;
  39810. var strLength = str.length;
  39811. if (strLength === 0 || vertical) {
  39812. return createBidiText(str, isLTR, vertical);
  39813. }
  39814. // Get types and fill arrays
  39815. chars.length = 0;
  39816. types.length = 0;
  39817. var numBidi = 0;
  39818. var i, ii;
  39819. for (i = 0; i < strLength; ++i) {
  39820. chars[i] = str.charAt(i);
  39821. var charCode = str.charCodeAt(i);
  39822. var charType = 'L';
  39823. if (charCode <= 0x00ff) {
  39824. charType = baseTypes[charCode];
  39825. } else if (0x0590 <= charCode && charCode <= 0x05f4) {
  39826. charType = 'R';
  39827. } else if (0x0600 <= charCode && charCode <= 0x06ff) {
  39828. charType = arabicTypes[charCode & 0xff];
  39829. } else if (0x0700 <= charCode && charCode <= 0x08AC) {
  39830. charType = 'AL';
  39831. }
  39832. if (charType == 'R' || charType == 'AL' || charType == 'AN') {
  39833. numBidi++;
  39834. }
  39835. types[i] = charType;
  39836. }
  39837. // Detect the bidi method
  39838. // - If there are no rtl characters then no bidi needed
  39839. // - If less than 30% chars are rtl then string is primarily ltr
  39840. // - If more than 30% chars are rtl then string is primarily rtl
  39841. if (numBidi === 0) {
  39842. isLTR = true;
  39843. return createBidiText(str, isLTR);
  39844. }
  39845. if (startLevel == -1) {
  39846. if ((strLength / numBidi) < 0.3) {
  39847. isLTR = true;
  39848. startLevel = 0;
  39849. } else {
  39850. isLTR = false;
  39851. startLevel = 1;
  39852. }
  39853. }
  39854. var levels = [];
  39855. for (i = 0; i < strLength; ++i) {
  39856. levels[i] = startLevel;
  39857. }
  39858. /*
  39859. X1-X10: skip most of this, since we are NOT doing the embeddings.
  39860. */
  39861. var e = (isOdd(startLevel) ? 'R' : 'L');
  39862. var sor = e;
  39863. var eor = sor;
  39864. /*
  39865. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  39866. type of the NSM to the type of the previous character. If the NSM is at the
  39867. start of the level run, it will get the type of sor.
  39868. */
  39869. var lastType = sor;
  39870. for (i = 0; i < strLength; ++i) {
  39871. if (types[i] == 'NSM') {
  39872. types[i] = lastType;
  39873. } else {
  39874. lastType = types[i];
  39875. }
  39876. }
  39877. /*
  39878. W2. Search backwards from each instance of a European number until the
  39879. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  39880. the type of the European number to Arabic number.
  39881. */
  39882. lastType = sor;
  39883. var t;
  39884. for (i = 0; i < strLength; ++i) {
  39885. t = types[i];
  39886. if (t == 'EN') {
  39887. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  39888. } else if (t == 'R' || t == 'L' || t == 'AL') {
  39889. lastType = t;
  39890. }
  39891. }
  39892. /*
  39893. W3. Change all ALs to R.
  39894. */
  39895. for (i = 0; i < strLength; ++i) {
  39896. t = types[i];
  39897. if (t == 'AL') {
  39898. types[i] = 'R';
  39899. }
  39900. }
  39901. /*
  39902. W4. A single European separator between two European numbers changes to a
  39903. European number. A single common separator between two numbers of the same
  39904. type changes to that type:
  39905. */
  39906. for (i = 1; i < strLength - 1; ++i) {
  39907. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN') {
  39908. types[i] = 'EN';
  39909. }
  39910. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  39911. types[i + 1] == types[i - 1]) {
  39912. types[i] = types[i - 1];
  39913. }
  39914. }
  39915. /*
  39916. W5. A sequence of European terminators adjacent to European numbers changes
  39917. to all European numbers:
  39918. */
  39919. for (i = 0; i < strLength; ++i) {
  39920. if (types[i] == 'EN') {
  39921. // do before
  39922. var j;
  39923. for (j = i - 1; j >= 0; --j) {
  39924. if (types[j] != 'ET') {
  39925. break;
  39926. }
  39927. types[j] = 'EN';
  39928. }
  39929. // do after
  39930. for (j = i + 1; j < strLength; --j) {
  39931. if (types[j] != 'ET') {
  39932. break;
  39933. }
  39934. types[j] = 'EN';
  39935. }
  39936. }
  39937. }
  39938. /*
  39939. W6. Otherwise, separators and terminators change to Other Neutral:
  39940. */
  39941. for (i = 0; i < strLength; ++i) {
  39942. t = types[i];
  39943. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS') {
  39944. types[i] = 'ON';
  39945. }
  39946. }
  39947. /*
  39948. W7. Search backwards from each instance of a European number until the
  39949. first strong type (R, L, or sor) is found. If an L is found, then change
  39950. the type of the European number to L.
  39951. */
  39952. lastType = sor;
  39953. for (i = 0; i < strLength; ++i) {
  39954. t = types[i];
  39955. if (t == 'EN') {
  39956. types[i] = ((lastType == 'L') ? 'L' : 'EN');
  39957. } else if (t == 'R' || t == 'L') {
  39958. lastType = t;
  39959. }
  39960. }
  39961. /*
  39962. N1. A sequence of neutrals takes the direction of the surrounding strong
  39963. text if the text on both sides has the same direction. European and Arabic
  39964. numbers are treated as though they were R. Start-of-level-run (sor) and
  39965. end-of-level-run (eor) are used at level run boundaries.
  39966. */
  39967. for (i = 0; i < strLength; ++i) {
  39968. if (types[i] == 'ON') {
  39969. var end = findUnequal(types, i + 1, 'ON');
  39970. var before = sor;
  39971. if (i > 0) {
  39972. before = types[i - 1];
  39973. }
  39974. var after = eor;
  39975. if (end + 1 < strLength) {
  39976. after = types[end + 1];
  39977. }
  39978. if (before != 'L') {
  39979. before = 'R';
  39980. }
  39981. if (after != 'L') {
  39982. after = 'R';
  39983. }
  39984. if (before == after) {
  39985. setValues(types, i, end, before);
  39986. }
  39987. i = end - 1; // reset to end (-1 so next iteration is ok)
  39988. }
  39989. }
  39990. /*
  39991. N2. Any remaining neutrals take the embedding direction.
  39992. */
  39993. for (i = 0; i < strLength; ++i) {
  39994. if (types[i] == 'ON') {
  39995. types[i] = e;
  39996. }
  39997. }
  39998. /*
  39999. I1. For all characters with an even (left-to-right) embedding direction,
  40000. those of type R go up one level and those of type AN or EN go up two
  40001. levels.
  40002. I2. For all characters with an odd (right-to-left) embedding direction,
  40003. those of type L, EN or AN go up one level.
  40004. */
  40005. for (i = 0; i < strLength; ++i) {
  40006. t = types[i];
  40007. if (isEven(levels[i])) {
  40008. if (t == 'R') {
  40009. levels[i] += 1;
  40010. } else if (t == 'AN' || t == 'EN') {
  40011. levels[i] += 2;
  40012. }
  40013. } else { // isOdd
  40014. if (t == 'L' || t == 'AN' || t == 'EN') {
  40015. levels[i] += 1;
  40016. }
  40017. }
  40018. }
  40019. /*
  40020. L1. On each line, reset the embedding level of the following characters to
  40021. the paragraph embedding level:
  40022. segment separators,
  40023. paragraph separators,
  40024. any sequence of whitespace characters preceding a segment separator or
  40025. paragraph separator, and any sequence of white space characters at the end
  40026. of the line.
  40027. */
  40028. // don't bother as text is only single line
  40029. /*
  40030. L2. From the highest level found in the text to the lowest odd level on
  40031. each line, reverse any contiguous sequence of characters that are at that
  40032. level or higher.
  40033. */
  40034. // find highest level & lowest odd level
  40035. var highestLevel = -1;
  40036. var lowestOddLevel = 99;
  40037. var level;
  40038. for (i = 0, ii = levels.length; i < ii; ++i) {
  40039. level = levels[i];
  40040. if (highestLevel < level) {
  40041. highestLevel = level;
  40042. }
  40043. if (lowestOddLevel > level && isOdd(level)) {
  40044. lowestOddLevel = level;
  40045. }
  40046. }
  40047. // now reverse between those limits
  40048. for (level = highestLevel; level >= lowestOddLevel; --level) {
  40049. // find segments to reverse
  40050. var start = -1;
  40051. for (i = 0, ii = levels.length; i < ii; ++i) {
  40052. if (levels[i] < level) {
  40053. if (start >= 0) {
  40054. reverseValues(chars, start, i);
  40055. start = -1;
  40056. }
  40057. } else if (start < 0) {
  40058. start = i;
  40059. }
  40060. }
  40061. if (start >= 0) {
  40062. reverseValues(chars, start, levels.length);
  40063. }
  40064. }
  40065. /*
  40066. L3. Combining marks applied to a right-to-left base character will at this
  40067. point precede their base character. If the rendering engine expects them to
  40068. follow the base characters in the final display process, then the ordering
  40069. of the marks and the base character must be reversed.
  40070. */
  40071. // don't bother for now
  40072. /*
  40073. L4. A character that possesses the mirrored property as specified by
  40074. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  40075. directionality of that character is R.
  40076. */
  40077. // don't mirror as characters are already mirrored in the pdf
  40078. // Finally, return string
  40079. var result = '';
  40080. for (i = 0, ii = chars.length; i < ii; ++i) {
  40081. var ch = chars[i];
  40082. if (ch != '<' && ch != '>') {
  40083. result += ch;
  40084. }
  40085. }
  40086. return createBidiText(result, isLTR);
  40087. }
  40088. return bidi;
  40089. })();
  40090. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  40091. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  40092. /* Copyright 2014 Opera Software ASA
  40093. *
  40094. * Licensed under the Apache License, Version 2.0 (the "License");
  40095. * you may not use this file except in compliance with the License.
  40096. * You may obtain a copy of the License at
  40097. *
  40098. * http://www.apache.org/licenses/LICENSE-2.0
  40099. *
  40100. * Unless required by applicable law or agreed to in writing, software
  40101. * distributed under the License is distributed on an "AS IS" BASIS,
  40102. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40103. * See the License for the specific language governing permissions and
  40104. * limitations under the License.
  40105. *
  40106. *
  40107. * Based on https://code.google.com/p/smhasher/wiki/MurmurHash3.
  40108. * Hashes roughly 100 KB per millisecond on i7 3.4 GHz.
  40109. */
  40110. /* globals Uint32ArrayView */
  40111. 'use strict';
  40112. var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
  40113. // Workaround for missing math precison in JS.
  40114. var MASK_HIGH = 0xffff0000;
  40115. var MASK_LOW = 0xffff;
  40116. function MurmurHash3_64 (seed) {
  40117. var SEED = 0xc3d2e1f0;
  40118. this.h1 = seed ? seed & 0xffffffff : SEED;
  40119. this.h2 = seed ? seed & 0xffffffff : SEED;
  40120. }
  40121. MurmurHash3_64.prototype = {
  40122. update: function MurmurHash3_64_update(input) {
  40123. var useUint32ArrayView = false;
  40124. var i;
  40125. if (typeof input == 'string') {
  40126. var data = new Uint8Array(input.length * 2);
  40127. var length = 0;
  40128. for (i = 0; i < input.length; i++) {
  40129. var code = input.charCodeAt(i);
  40130. if (code <= 0xff) {
  40131. data[length++] = code;
  40132. }
  40133. else {
  40134. data[length++] = code >>> 8;
  40135. data[length++] = code & 0xff;
  40136. }
  40137. }
  40138. } else if (input instanceof Uint8Array) {
  40139. data = input;
  40140. length = data.length;
  40141. } else if (typeof input === 'object' && ('length' in input)) {
  40142. // processing regular arrays as well, e.g. for IE9
  40143. data = input;
  40144. length = data.length;
  40145. useUint32ArrayView = true;
  40146. } else {
  40147. throw new Error('Wrong data format in MurmurHash3_64_update. ' +
  40148. 'Input must be a string or array.');
  40149. }
  40150. var blockCounts = length >> 2;
  40151. var tailLength = length - blockCounts * 4;
  40152. // we don't care about endianness here
  40153. var dataUint32 = useUint32ArrayView ?
  40154. new Uint32ArrayView(data, blockCounts) :
  40155. new Uint32Array(data.buffer, 0, blockCounts);
  40156. var k1 = 0;
  40157. var k2 = 0;
  40158. var h1 = this.h1;
  40159. var h2 = this.h2;
  40160. var C1 = 0xcc9e2d51;
  40161. var C2 = 0x1b873593;
  40162. var C1_LOW = C1 & MASK_LOW;
  40163. var C2_LOW = C2 & MASK_LOW;
  40164. for (i = 0; i < blockCounts; i++) {
  40165. if (i & 1) {
  40166. k1 = dataUint32[i];
  40167. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40168. k1 = k1 << 15 | k1 >>> 17;
  40169. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40170. h1 ^= k1;
  40171. h1 = h1 << 13 | h1 >>> 19;
  40172. h1 = h1 * 5 + 0xe6546b64;
  40173. } else {
  40174. k2 = dataUint32[i];
  40175. k2 = (k2 * C1 & MASK_HIGH) | (k2 * C1_LOW & MASK_LOW);
  40176. k2 = k2 << 15 | k2 >>> 17;
  40177. k2 = (k2 * C2 & MASK_HIGH) | (k2 * C2_LOW & MASK_LOW);
  40178. h2 ^= k2;
  40179. h2 = h2 << 13 | h2 >>> 19;
  40180. h2 = h2 * 5 + 0xe6546b64;
  40181. }
  40182. }
  40183. k1 = 0;
  40184. switch (tailLength) {
  40185. case 3:
  40186. k1 ^= data[blockCounts * 4 + 2] << 16;
  40187. /* falls through */
  40188. case 2:
  40189. k1 ^= data[blockCounts * 4 + 1] << 8;
  40190. /* falls through */
  40191. case 1:
  40192. k1 ^= data[blockCounts * 4];
  40193. /* falls through */
  40194. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  40195. k1 = k1 << 15 | k1 >>> 17;
  40196. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  40197. if (blockCounts & 1) {
  40198. h1 ^= k1;
  40199. } else {
  40200. h2 ^= k1;
  40201. }
  40202. }
  40203. this.h1 = h1;
  40204. this.h2 = h2;
  40205. return this;
  40206. },
  40207. hexdigest: function MurmurHash3_64_hexdigest () {
  40208. var h1 = this.h1;
  40209. var h2 = this.h2;
  40210. h1 ^= h2 >>> 1;
  40211. h1 = (h1 * 0xed558ccd & MASK_HIGH) | (h1 * 0x8ccd & MASK_LOW);
  40212. h2 = (h2 * 0xff51afd7 & MASK_HIGH) |
  40213. (((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16);
  40214. h1 ^= h2 >>> 1;
  40215. h1 = (h1 * 0x1a85ec53 & MASK_HIGH) | (h1 * 0xec53 & MASK_LOW);
  40216. h2 = (h2 * 0xc4ceb9fe & MASK_HIGH) |
  40217. (((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16);
  40218. h1 ^= h2 >>> 1;
  40219. for (var i = 0, arr = [h1, h2], str = ''; i < arr.length; i++) {
  40220. var hex = (arr[i] >>> 0).toString(16);
  40221. while (hex.length < 8) {
  40222. hex = '0' + hex;
  40223. }
  40224. str += hex;
  40225. }
  40226. return str;
  40227. }
  40228. };
  40229. return MurmurHash3_64;
  40230. })();
  40231. }).call((typeof window === 'undefined') ? this : window);
  40232. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  40233. // workerSrc is not set -- using last script url to define default location
  40234. PDFJS.workerSrc = (function () {
  40235. 'use strict';
  40236. var scriptTagContainer = document.body ||
  40237. document.getElementsByTagName('head')[0];
  40238. var pdfjsSrc = scriptTagContainer.lastChild.src;
  40239. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  40240. })();
  40241. }